PR debug/84456
[official-gcc.git] / libssp / configure
blobdf7bff70ba18c950e287ce00f7e04ea3210832e0
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
4099 $as_echo_n "checking for CET support... " >&6; }
4101 case "$host" in
4102 i[34567]86-*-linux* | x86_64-*-linux*)
4103 case "$enable_cet" in
4104 default)
4105 # Check if target supports multi-byte NOPs
4106 # and if assembler supports CET insn.
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4111 main ()
4114 #if !defined(__SSE2__)
4115 #error target does not support multi-byte NOPs
4116 #else
4117 asm ("setssbsy");
4118 #endif
4121 return 0;
4123 _ACEOF
4124 if ac_fn_c_try_compile "$LINENO"; then :
4125 enable_cet=yes
4126 else
4127 enable_cet=no
4129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4131 yes)
4132 # Check if assembler supports CET.
4133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4137 main ()
4139 asm ("setssbsy");
4141 return 0;
4143 _ACEOF
4144 if ac_fn_c_try_compile "$LINENO"; then :
4146 else
4147 as_fn_error "assembler with CET support is required for --enable-cet" "$LINENO" 5
4149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4151 esac
4154 enable_cet=no
4156 esac
4157 if test x$enable_cet = xyes; then
4158 CET_FLAGS="-fcf-protection -mcet"
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4160 $as_echo "yes" >&6; }
4161 else
4162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 $as_echo "no" >&6; }
4166 XCFLAGS="$XCFLAGS $CET_FLAGS"
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hidden visibility is supported" >&5
4170 $as_echo_n "checking whether hidden visibility is supported... " >&6; }
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4174 void __attribute__((visibility ("hidden"))) bar (void) {}
4176 main ()
4180 return 0;
4182 _ACEOF
4183 if ac_fn_c_try_compile "$LINENO"; then :
4184 ssp_hidden=yes
4185 else
4186 ssp_hidden=no
4188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_hidden" >&5
4190 $as_echo "$ssp_hidden" >&6; }
4191 if test x$ssp_hidden = xyes; then
4193 $as_echo "#define HAVE_HIDDEN_VISIBILITY 1" >>confdefs.h
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
4198 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
4199 # Check whether --enable-symvers was given.
4200 if test "${enable_symvers+set}" = set; then :
4201 enableval=$enable_symvers; ssp_use_symver=$enableval
4202 else
4203 ssp_use_symver=yes
4206 if test "x$ssp_use_symver" != xno; then
4207 if test x$gcc_no_link = xyes; then
4208 # If we cannot link, we cannot build shared libraries, so do not use
4209 # symbol versioning.
4210 ssp_use_symver=no
4211 else
4212 save_LDFLAGS="$LDFLAGS"
4213 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
4214 cat > conftest.map <<EOF
4215 FOO_1.0 {
4216 global: *foo*; bar; local: *;
4219 if test x$gcc_no_link = xyes; then
4220 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4223 /* end confdefs.h. */
4224 int foo;
4226 main ()
4230 return 0;
4232 _ACEOF
4233 if ac_fn_c_try_link "$LINENO"; then :
4234 ssp_use_symver=gnu
4235 else
4236 ssp_use_symver=no
4238 rm -f core conftest.err conftest.$ac_objext \
4239 conftest$ac_exeext conftest.$ac_ext
4240 if test x$ssp_use_symver = xno; then
4241 case "$target_os" in
4242 solaris2*)
4243 LDFLAGS="$save_LDFLAGS"
4244 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
4245 # Sun ld cannot handle wildcards and treats all entries as undefined.
4246 cat > conftest.map <<EOF
4247 FOO_1.0 {
4248 global: foo; local: *;
4251 if test x$gcc_no_link = xyes; then
4252 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
4254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4256 int foo;
4258 main ()
4262 return 0;
4264 _ACEOF
4265 if ac_fn_c_try_link "$LINENO"; then :
4266 ssp_use_symver=sun
4267 else
4268 ssp_use_symver=no
4270 rm -f core conftest.err conftest.$ac_objext \
4271 conftest$ac_exeext conftest.$ac_ext
4273 esac
4275 LDFLAGS="$save_LDFLAGS"
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ssp_use_symver" >&5
4279 $as_echo "$ssp_use_symver" >&6; }
4280 if test "x$ssp_use_symver" != xno; then
4281 LIBSSP_USE_SYMVER_TRUE=
4282 LIBSSP_USE_SYMVER_FALSE='#'
4283 else
4284 LIBSSP_USE_SYMVER_TRUE='#'
4285 LIBSSP_USE_SYMVER_FALSE=
4288 if test "x$ssp_use_symver" = xgnu; then
4289 LIBSSP_USE_SYMVER_GNU_TRUE=
4290 LIBSSP_USE_SYMVER_GNU_FALSE='#'
4291 else
4292 LIBSSP_USE_SYMVER_GNU_TRUE='#'
4293 LIBSSP_USE_SYMVER_GNU_FALSE=
4296 if test "x$ssp_use_symver" = xsun; then
4297 LIBSSP_USE_SYMVER_SUN_TRUE=
4298 LIBSSP_USE_SYMVER_SUN_FALSE='#'
4299 else
4300 LIBSSP_USE_SYMVER_SUN_TRUE='#'
4301 LIBSSP_USE_SYMVER_SUN_FALSE=
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4307 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4308 if test "${ac_cv_path_GREP+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 if test -z "$GREP"; then
4312 ac_path_GREP_found=false
4313 # Loop through the user's path and test for each of PROGNAME-LIST
4314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4317 IFS=$as_save_IFS
4318 test -z "$as_dir" && as_dir=.
4319 for ac_prog in grep ggrep; do
4320 for ac_exec_ext in '' $ac_executable_extensions; do
4321 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4322 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4323 # Check for GNU ac_path_GREP and select it if it is found.
4324 # Check for GNU $ac_path_GREP
4325 case `"$ac_path_GREP" --version 2>&1` in
4326 *GNU*)
4327 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4329 ac_count=0
4330 $as_echo_n 0123456789 >"conftest.in"
4331 while :
4333 cat "conftest.in" "conftest.in" >"conftest.tmp"
4334 mv "conftest.tmp" "conftest.in"
4335 cp "conftest.in" "conftest.nl"
4336 $as_echo 'GREP' >> "conftest.nl"
4337 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4338 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4339 as_fn_arith $ac_count + 1 && ac_count=$as_val
4340 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4341 # Best one so far, save it but keep looking for a better one
4342 ac_cv_path_GREP="$ac_path_GREP"
4343 ac_path_GREP_max=$ac_count
4345 # 10*(2^10) chars as input seems more than enough
4346 test $ac_count -gt 10 && break
4347 done
4348 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4349 esac
4351 $ac_path_GREP_found && break 3
4352 done
4353 done
4354 done
4355 IFS=$as_save_IFS
4356 if test -z "$ac_cv_path_GREP"; then
4357 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4359 else
4360 ac_cv_path_GREP=$GREP
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4365 $as_echo "$ac_cv_path_GREP" >&6; }
4366 GREP="$ac_cv_path_GREP"
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4370 $as_echo_n "checking for egrep... " >&6; }
4371 if test "${ac_cv_path_EGREP+set}" = set; then :
4372 $as_echo_n "(cached) " >&6
4373 else
4374 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4375 then ac_cv_path_EGREP="$GREP -E"
4376 else
4377 if test -z "$EGREP"; then
4378 ac_path_EGREP_found=false
4379 # Loop through the user's path and test for each of PROGNAME-LIST
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4383 IFS=$as_save_IFS
4384 test -z "$as_dir" && as_dir=.
4385 for ac_prog in egrep; do
4386 for ac_exec_ext in '' $ac_executable_extensions; do
4387 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4388 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4389 # Check for GNU ac_path_EGREP and select it if it is found.
4390 # Check for GNU $ac_path_EGREP
4391 case `"$ac_path_EGREP" --version 2>&1` in
4392 *GNU*)
4393 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4395 ac_count=0
4396 $as_echo_n 0123456789 >"conftest.in"
4397 while :
4399 cat "conftest.in" "conftest.in" >"conftest.tmp"
4400 mv "conftest.tmp" "conftest.in"
4401 cp "conftest.in" "conftest.nl"
4402 $as_echo 'EGREP' >> "conftest.nl"
4403 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4404 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4405 as_fn_arith $ac_count + 1 && ac_count=$as_val
4406 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4407 # Best one so far, save it but keep looking for a better one
4408 ac_cv_path_EGREP="$ac_path_EGREP"
4409 ac_path_EGREP_max=$ac_count
4411 # 10*(2^10) chars as input seems more than enough
4412 test $ac_count -gt 10 && break
4413 done
4414 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4415 esac
4417 $ac_path_EGREP_found && break 3
4418 done
4419 done
4420 done
4421 IFS=$as_save_IFS
4422 if test -z "$ac_cv_path_EGREP"; then
4423 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4425 else
4426 ac_cv_path_EGREP=$EGREP
4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4432 $as_echo "$ac_cv_path_EGREP" >&6; }
4433 EGREP="$ac_cv_path_EGREP"
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4437 $as_echo_n "checking for ANSI C header files... " >&6; }
4438 if test "${ac_cv_header_stdc+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4443 #include <stdlib.h>
4444 #include <stdarg.h>
4445 #include <string.h>
4446 #include <float.h>
4449 main ()
4453 return 0;
4455 _ACEOF
4456 if ac_fn_c_try_compile "$LINENO"; then :
4457 ac_cv_header_stdc=yes
4458 else
4459 ac_cv_header_stdc=no
4461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4463 if test $ac_cv_header_stdc = yes; then
4464 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4467 #include <string.h>
4469 _ACEOF
4470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4471 $EGREP "memchr" >/dev/null 2>&1; then :
4473 else
4474 ac_cv_header_stdc=no
4476 rm -f conftest*
4480 if test $ac_cv_header_stdc = yes; then
4481 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4483 /* end confdefs.h. */
4484 #include <stdlib.h>
4486 _ACEOF
4487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4488 $EGREP "free" >/dev/null 2>&1; then :
4490 else
4491 ac_cv_header_stdc=no
4493 rm -f conftest*
4497 if test $ac_cv_header_stdc = yes; then
4498 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4499 if test "$cross_compiling" = yes; then :
4501 else
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504 #include <ctype.h>
4505 #include <stdlib.h>
4506 #if ((' ' & 0x0FF) == 0x020)
4507 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4508 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4509 #else
4510 # define ISLOWER(c) \
4511 (('a' <= (c) && (c) <= 'i') \
4512 || ('j' <= (c) && (c) <= 'r') \
4513 || ('s' <= (c) && (c) <= 'z'))
4514 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4515 #endif
4517 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4519 main ()
4521 int i;
4522 for (i = 0; i < 256; i++)
4523 if (XOR (islower (i), ISLOWER (i))
4524 || toupper (i) != TOUPPER (i))
4525 return 2;
4526 return 0;
4528 _ACEOF
4529 if ac_fn_c_try_run "$LINENO"; then :
4531 else
4532 ac_cv_header_stdc=no
4534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4535 conftest.$ac_objext conftest.beam conftest.$ac_ext
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4541 $as_echo "$ac_cv_header_stdc" >&6; }
4542 if test $ac_cv_header_stdc = yes; then
4544 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4548 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4549 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4550 inttypes.h stdint.h unistd.h
4551 do :
4552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4553 ac_fn_c_check_header_compile "$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 for ac_header in alloca.h malloc.h paths.h syslog.h string.h unistd.h fcntl.h stdio.h limits.h
4567 do :
4568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4569 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4570 eval as_val=\$$as_ac_Header
4571 if test "x$as_val" = x""yes; then :
4572 cat >>confdefs.h <<_ACEOF
4573 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4574 _ACEOF
4578 done
4581 if test x$gcc_no_link = xyes; then
4582 # Presume the ISO C functions are available; add target-specific
4583 # configuration here if required.
4584 $as_echo "#define HAVE_STRNCPY 1" >>confdefs.h
4586 $as_echo "#define HAVE_STRNCAT 1" >>confdefs.h
4588 else
4589 for ac_func in memmove mempcpy strncpy strncat
4590 do :
4591 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4592 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4593 eval as_val=\$$as_ac_var
4594 if test "x$as_val" = x""yes; then :
4595 cat >>confdefs.h <<_ACEOF
4596 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4597 _ACEOF
4600 done
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf is usable" >&5
4605 $as_echo_n "checking whether vsnprintf is usable... " >&6; }
4606 if test "$cross_compiling" = yes; then :
4607 ssp_have_usable_vsnprintf=undef
4608 else
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610 /* end confdefs.h. */
4612 #include <stdarg.h>
4613 #include <string.h>
4614 #include <stdio.h>
4615 int foo (char *buf, size_t n, const char *fmt, ...)
4617 va_list ap;
4618 int ret;
4619 va_start (ap, fmt);
4620 ret = vsnprintf (buf, n, fmt, ap);
4621 va_end (ap);
4622 return ret;
4625 main ()
4627 char buf[8]; memset (buf, 'A', sizeof (buf));
4628 if (foo (buf, 4, ".%s.", "CDEFG") != 7)
4629 return 1;
4630 return memcmp (buf, ".CD\0AAAA", sizeof (buf)) != 0;
4632 return 0;
4634 _ACEOF
4635 if ac_fn_c_try_run "$LINENO"; then :
4636 ssp_have_usable_vsnprintf=define
4637 else
4638 ssp_have_usable_vsnprintf=undef
4640 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4641 conftest.$ac_objext conftest.beam conftest.$ac_ext
4644 if test "x$ssp_have_usable_vsnprintf" = xdefine; then
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4646 $as_echo "yes" >&6; }
4648 $as_echo "#define HAVE_USABLE_VSNPRINTF 1" >>confdefs.h
4650 else
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4652 $as_echo "no" >&6; }
4656 case `pwd` in
4657 *\ * | *\ *)
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4659 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4660 esac
4664 macro_version='2.2.7a'
4665 macro_revision='1.3134'
4679 ltmain="$ac_aux_dir/ltmain.sh"
4681 # Backslashify metacharacters that are still active within
4682 # double-quoted strings.
4683 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4685 # Same as above, but do not quote variable references.
4686 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4688 # Sed substitution to delay expansion of an escaped shell variable in a
4689 # double_quote_subst'ed string.
4690 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4692 # Sed substitution to delay expansion of an escaped single quote.
4693 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4695 # Sed substitution to avoid accidental globbing in evaled expressions
4696 no_glob_subst='s/\*/\\\*/g'
4698 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4699 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4700 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4703 $as_echo_n "checking how to print strings... " >&6; }
4704 # Test print first, because it will be a builtin if present.
4705 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4706 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4707 ECHO='print -r --'
4708 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4709 ECHO='printf %s\n'
4710 else
4711 # Use this function as a fallback that always works.
4712 func_fallback_echo ()
4714 eval 'cat <<_LTECHO_EOF
4716 _LTECHO_EOF'
4718 ECHO='func_fallback_echo'
4721 # func_echo_all arg...
4722 # Invoke $ECHO with all args, space-separated.
4723 func_echo_all ()
4725 $ECHO ""
4728 case "$ECHO" in
4729 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4730 $as_echo "printf" >&6; } ;;
4731 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4732 $as_echo "print -r" >&6; } ;;
4733 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4734 $as_echo "cat" >&6; } ;;
4735 esac
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4751 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4752 if test "${ac_cv_path_SED+set}" = set; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4755 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4756 for ac_i in 1 2 3 4 5 6 7; do
4757 ac_script="$ac_script$as_nl$ac_script"
4758 done
4759 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4760 { ac_script=; unset ac_script;}
4761 if test -z "$SED"; then
4762 ac_path_SED_found=false
4763 # Loop through the user's path and test for each of PROGNAME-LIST
4764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4765 for as_dir in $PATH
4767 IFS=$as_save_IFS
4768 test -z "$as_dir" && as_dir=.
4769 for ac_prog in sed gsed; do
4770 for ac_exec_ext in '' $ac_executable_extensions; do
4771 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4772 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4773 # Check for GNU ac_path_SED and select it if it is found.
4774 # Check for GNU $ac_path_SED
4775 case `"$ac_path_SED" --version 2>&1` in
4776 *GNU*)
4777 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4779 ac_count=0
4780 $as_echo_n 0123456789 >"conftest.in"
4781 while :
4783 cat "conftest.in" "conftest.in" >"conftest.tmp"
4784 mv "conftest.tmp" "conftest.in"
4785 cp "conftest.in" "conftest.nl"
4786 $as_echo '' >> "conftest.nl"
4787 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4789 as_fn_arith $ac_count + 1 && ac_count=$as_val
4790 if test $ac_count -gt ${ac_path_SED_max-0}; then
4791 # Best one so far, save it but keep looking for a better one
4792 ac_cv_path_SED="$ac_path_SED"
4793 ac_path_SED_max=$ac_count
4795 # 10*(2^10) chars as input seems more than enough
4796 test $ac_count -gt 10 && break
4797 done
4798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4799 esac
4801 $ac_path_SED_found && break 3
4802 done
4803 done
4804 done
4805 IFS=$as_save_IFS
4806 if test -z "$ac_cv_path_SED"; then
4807 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4809 else
4810 ac_cv_path_SED=$SED
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4815 $as_echo "$ac_cv_path_SED" >&6; }
4816 SED="$ac_cv_path_SED"
4817 rm -f conftest.sed
4819 test -z "$SED" && SED=sed
4820 Xsed="$SED -e 1s/^X//"
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4833 $as_echo_n "checking for fgrep... " >&6; }
4834 if test "${ac_cv_path_FGREP+set}" = set; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4838 then ac_cv_path_FGREP="$GREP -F"
4839 else
4840 if test -z "$FGREP"; then
4841 ac_path_FGREP_found=false
4842 # Loop through the user's path and test for each of PROGNAME-LIST
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_prog in fgrep; do
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4851 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4852 # Check for GNU ac_path_FGREP and select it if it is found.
4853 # Check for GNU $ac_path_FGREP
4854 case `"$ac_path_FGREP" --version 2>&1` in
4855 *GNU*)
4856 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4858 ac_count=0
4859 $as_echo_n 0123456789 >"conftest.in"
4860 while :
4862 cat "conftest.in" "conftest.in" >"conftest.tmp"
4863 mv "conftest.tmp" "conftest.in"
4864 cp "conftest.in" "conftest.nl"
4865 $as_echo 'FGREP' >> "conftest.nl"
4866 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4868 as_fn_arith $ac_count + 1 && ac_count=$as_val
4869 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4870 # Best one so far, save it but keep looking for a better one
4871 ac_cv_path_FGREP="$ac_path_FGREP"
4872 ac_path_FGREP_max=$ac_count
4874 # 10*(2^10) chars as input seems more than enough
4875 test $ac_count -gt 10 && break
4876 done
4877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4878 esac
4880 $ac_path_FGREP_found && break 3
4881 done
4882 done
4883 done
4884 IFS=$as_save_IFS
4885 if test -z "$ac_cv_path_FGREP"; then
4886 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4888 else
4889 ac_cv_path_FGREP=$FGREP
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4895 $as_echo "$ac_cv_path_FGREP" >&6; }
4896 FGREP="$ac_cv_path_FGREP"
4899 test -z "$GREP" && GREP=grep
4919 # Check whether --with-gnu-ld was given.
4920 if test "${with_gnu_ld+set}" = set; then :
4921 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4922 else
4923 with_gnu_ld=no
4926 ac_prog=ld
4927 if test "$GCC" = yes; then
4928 # Check if gcc -print-prog-name=ld gives a path.
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4930 $as_echo_n "checking for ld used by $CC... " >&6; }
4931 case $host in
4932 *-*-mingw*)
4933 # gcc leaves a trailing carriage return which upsets mingw
4934 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4936 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4937 esac
4938 case $ac_prog in
4939 # Accept absolute paths.
4940 [\\/]* | ?:[\\/]*)
4941 re_direlt='/[^/][^/]*/\.\./'
4942 # Canonicalize the pathname of ld
4943 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4944 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4945 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4946 done
4947 test -z "$LD" && LD="$ac_prog"
4950 # If it fails, then pretend we aren't using GCC.
4951 ac_prog=ld
4954 # If it is relative, then search for the first ld in PATH.
4955 with_gnu_ld=unknown
4957 esac
4958 elif test "$with_gnu_ld" = yes; then
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4960 $as_echo_n "checking for GNU ld... " >&6; }
4961 else
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4963 $as_echo_n "checking for non-GNU ld... " >&6; }
4965 if test "${lt_cv_path_LD+set}" = set; then :
4966 $as_echo_n "(cached) " >&6
4967 else
4968 if test -z "$LD"; then
4969 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4970 for ac_dir in $PATH; do
4971 IFS="$lt_save_ifs"
4972 test -z "$ac_dir" && ac_dir=.
4973 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4974 lt_cv_path_LD="$ac_dir/$ac_prog"
4975 # Check to see if the program is GNU ld. I'd rather use --version,
4976 # but apparently some variants of GNU ld only accept -v.
4977 # Break only if it was the GNU/non-GNU ld that we prefer.
4978 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4979 *GNU* | *'with BFD'*)
4980 test "$with_gnu_ld" != no && break
4983 test "$with_gnu_ld" != yes && break
4985 esac
4987 done
4988 IFS="$lt_save_ifs"
4989 else
4990 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4994 LD="$lt_cv_path_LD"
4995 if test -n "$LD"; then
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4997 $as_echo "$LD" >&6; }
4998 else
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5000 $as_echo "no" >&6; }
5002 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5004 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5005 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5006 $as_echo_n "(cached) " >&6
5007 else
5008 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5009 case `$LD -v 2>&1 </dev/null` in
5010 *GNU* | *'with BFD'*)
5011 lt_cv_prog_gnu_ld=yes
5014 lt_cv_prog_gnu_ld=no
5016 esac
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5019 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5020 with_gnu_ld=$lt_cv_prog_gnu_ld
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5031 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5032 if test "${lt_cv_path_NM+set}" = set; then :
5033 $as_echo_n "(cached) " >&6
5034 else
5035 if test -n "$NM"; then
5036 # Let the user override the test.
5037 lt_cv_path_NM="$NM"
5038 else
5039 lt_nm_to_check="${ac_tool_prefix}nm"
5040 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5041 lt_nm_to_check="$lt_nm_to_check nm"
5043 for lt_tmp_nm in $lt_nm_to_check; do
5044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5045 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5046 IFS="$lt_save_ifs"
5047 test -z "$ac_dir" && ac_dir=.
5048 tmp_nm="$ac_dir/$lt_tmp_nm"
5049 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5050 # Check to see if the nm accepts a BSD-compat flag.
5051 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5052 # nm: unknown option "B" ignored
5053 # Tru64's nm complains that /dev/null is an invalid object file
5054 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5055 */dev/null* | *'Invalid file or object type'*)
5056 lt_cv_path_NM="$tmp_nm -B"
5057 break
5060 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5061 */dev/null*)
5062 lt_cv_path_NM="$tmp_nm -p"
5063 break
5066 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5067 continue # so that we can try to find one that supports BSD flags
5069 esac
5071 esac
5073 done
5074 IFS="$lt_save_ifs"
5075 done
5076 : ${lt_cv_path_NM=no}
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5080 $as_echo "$lt_cv_path_NM" >&6; }
5081 if test "$lt_cv_path_NM" != "no"; then
5082 NM="$lt_cv_path_NM"
5083 else
5084 # Didn't find any BSD compatible name lister, look for dumpbin.
5085 if test -n "$DUMPBIN"; then :
5086 # Let the user override the test.
5087 else
5088 if test -n "$ac_tool_prefix"; then
5089 for ac_prog in dumpbin "link -dump"
5091 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5092 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5094 $as_echo_n "checking for $ac_word... " >&6; }
5095 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$DUMPBIN"; then
5099 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5100 else
5101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5102 for as_dir in $PATH
5104 IFS=$as_save_IFS
5105 test -z "$as_dir" && as_dir=.
5106 for ac_exec_ext in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5110 break 2
5112 done
5113 done
5114 IFS=$as_save_IFS
5118 DUMPBIN=$ac_cv_prog_DUMPBIN
5119 if test -n "$DUMPBIN"; then
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5121 $as_echo "$DUMPBIN" >&6; }
5122 else
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5124 $as_echo "no" >&6; }
5128 test -n "$DUMPBIN" && break
5129 done
5131 if test -z "$DUMPBIN"; then
5132 ac_ct_DUMPBIN=$DUMPBIN
5133 for ac_prog in dumpbin "link -dump"
5135 # Extract the first word of "$ac_prog", so it can be a program name with args.
5136 set dummy $ac_prog; ac_word=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 if test -n "$ac_ct_DUMPBIN"; then
5143 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5144 else
5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5146 for as_dir in $PATH
5148 IFS=$as_save_IFS
5149 test -z "$as_dir" && as_dir=.
5150 for ac_exec_ext in '' $ac_executable_extensions; do
5151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5152 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 break 2
5156 done
5157 done
5158 IFS=$as_save_IFS
5162 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5163 if test -n "$ac_ct_DUMPBIN"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5165 $as_echo "$ac_ct_DUMPBIN" >&6; }
5166 else
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5168 $as_echo "no" >&6; }
5172 test -n "$ac_ct_DUMPBIN" && break
5173 done
5175 if test "x$ac_ct_DUMPBIN" = x; then
5176 DUMPBIN=":"
5177 else
5178 case $cross_compiling:$ac_tool_warned in
5179 yes:)
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5181 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5182 ac_tool_warned=yes ;;
5183 esac
5184 DUMPBIN=$ac_ct_DUMPBIN
5188 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5189 *COFF*)
5190 DUMPBIN="$DUMPBIN -symbols"
5193 DUMPBIN=:
5195 esac
5198 if test "$DUMPBIN" != ":"; then
5199 NM="$DUMPBIN"
5202 test -z "$NM" && NM=nm
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5210 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5211 if test "${lt_cv_nm_interface+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 lt_cv_nm_interface="BSD nm"
5215 echo "int some_variable = 0;" > conftest.$ac_ext
5216 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5217 (eval "$ac_compile" 2>conftest.err)
5218 cat conftest.err >&5
5219 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5220 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5221 cat conftest.err >&5
5222 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5223 cat conftest.out >&5
5224 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5225 lt_cv_nm_interface="MS dumpbin"
5227 rm -f conftest*
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5230 $as_echo "$lt_cv_nm_interface" >&6; }
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5233 $as_echo_n "checking whether ln -s works... " >&6; }
5234 LN_S=$as_ln_s
5235 if test "$LN_S" = "ln -s"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5237 $as_echo "yes" >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5240 $as_echo "no, using $LN_S" >&6; }
5243 # find the maximum length of command line arguments
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5245 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5246 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5250 teststring="ABCD"
5252 case $build_os in
5253 msdosdjgpp*)
5254 # On DJGPP, this test can blow up pretty badly due to problems in libc
5255 # (any single argument exceeding 2000 bytes causes a buffer overrun
5256 # during glob expansion). Even if it were fixed, the result of this
5257 # check would be larger than it should be.
5258 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5261 gnu*)
5262 # Under GNU Hurd, this test is not required because there is
5263 # no limit to the length of command line arguments.
5264 # Libtool will interpret -1 as no limit whatsoever
5265 lt_cv_sys_max_cmd_len=-1;
5268 cygwin* | mingw* | cegcc*)
5269 # On Win9x/ME, this test blows up -- it succeeds, but takes
5270 # about 5 minutes as the teststring grows exponentially.
5271 # Worse, since 9x/ME are not pre-emptively multitasking,
5272 # you end up with a "frozen" computer, even though with patience
5273 # the test eventually succeeds (with a max line length of 256k).
5274 # Instead, let's just punt: use the minimum linelength reported by
5275 # all of the supported platforms: 8192 (on NT/2K/XP).
5276 lt_cv_sys_max_cmd_len=8192;
5279 mint*)
5280 # On MiNT this can take a long time and run out of memory.
5281 lt_cv_sys_max_cmd_len=8192;
5284 amigaos*)
5285 # On AmigaOS with pdksh, this test takes hours, literally.
5286 # So we just punt and use a minimum line length of 8192.
5287 lt_cv_sys_max_cmd_len=8192;
5290 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5291 # This has been around since 386BSD, at least. Likely further.
5292 if test -x /sbin/sysctl; then
5293 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5294 elif test -x /usr/sbin/sysctl; then
5295 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5296 else
5297 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5299 # And add a safety zone
5300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5301 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5304 interix*)
5305 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5306 lt_cv_sys_max_cmd_len=196608
5309 osf*)
5310 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5311 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5312 # nice to cause kernel panics so lets avoid the loop below.
5313 # First set a reasonable default.
5314 lt_cv_sys_max_cmd_len=16384
5316 if test -x /sbin/sysconfig; then
5317 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5318 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5319 esac
5322 sco3.2v5*)
5323 lt_cv_sys_max_cmd_len=102400
5325 sysv5* | sco5v6* | sysv4.2uw2*)
5326 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5327 if test -n "$kargmax"; then
5328 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5329 else
5330 lt_cv_sys_max_cmd_len=32768
5334 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5335 if test -n "$lt_cv_sys_max_cmd_len"; then
5336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5337 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5338 else
5339 # Make teststring a little bigger before we do anything with it.
5340 # a 1K string should be a reasonable start.
5341 for i in 1 2 3 4 5 6 7 8 ; do
5342 teststring=$teststring$teststring
5343 done
5344 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5345 # If test is not a shell built-in, we'll probably end up computing a
5346 # maximum length that is only half of the actual maximum length, but
5347 # we can't tell.
5348 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5349 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5350 test $i != 17 # 1/2 MB should be enough
5352 i=`expr $i + 1`
5353 teststring=$teststring$teststring
5354 done
5355 # Only check the string length outside the loop.
5356 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5357 teststring=
5358 # Add a significant safety factor because C++ compilers can tack on
5359 # massive amounts of additional arguments before passing them to the
5360 # linker. It appears as though 1/2 is a usable value.
5361 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5364 esac
5368 if test -n $lt_cv_sys_max_cmd_len ; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5370 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5373 $as_echo "none" >&6; }
5375 max_cmd_len=$lt_cv_sys_max_cmd_len
5382 : ${CP="cp -f"}
5383 : ${MV="mv -f"}
5384 : ${RM="rm -f"}
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5387 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5388 # Try some XSI features
5389 xsi_shell=no
5390 ( _lt_dummy="a/b/c"
5391 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5392 = c,a/b,, \
5393 && eval 'test $(( 1 + 1 )) -eq 2 \
5394 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5395 && xsi_shell=yes
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5397 $as_echo "$xsi_shell" >&6; }
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5401 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5402 lt_shell_append=no
5403 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5404 >/dev/null 2>&1 \
5405 && lt_shell_append=yes
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5407 $as_echo "$lt_shell_append" >&6; }
5410 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5411 lt_unset=unset
5412 else
5413 lt_unset=false
5420 # test EBCDIC or ASCII
5421 case `echo X|tr X '\101'` in
5422 A) # ASCII based system
5423 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5424 lt_SP2NL='tr \040 \012'
5425 lt_NL2SP='tr \015\012 \040\040'
5427 *) # EBCDIC based system
5428 lt_SP2NL='tr \100 \n'
5429 lt_NL2SP='tr \r\n \100\100'
5431 esac
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5442 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5443 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5444 $as_echo_n "(cached) " >&6
5445 else
5446 lt_cv_ld_reload_flag='-r'
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5449 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5450 reload_flag=$lt_cv_ld_reload_flag
5451 case $reload_flag in
5452 "" | " "*) ;;
5453 *) reload_flag=" $reload_flag" ;;
5454 esac
5455 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5456 case $host_os in
5457 darwin*)
5458 if test "$GCC" = yes; then
5459 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5460 else
5461 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5464 esac
5474 if test -n "$ac_tool_prefix"; then
5475 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5476 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5478 $as_echo_n "checking for $ac_word... " >&6; }
5479 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5480 $as_echo_n "(cached) " >&6
5481 else
5482 if test -n "$OBJDUMP"; then
5483 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5484 else
5485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486 for as_dir in $PATH
5488 IFS=$as_save_IFS
5489 test -z "$as_dir" && as_dir=.
5490 for ac_exec_ext in '' $ac_executable_extensions; do
5491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5492 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5493 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5494 break 2
5496 done
5497 done
5498 IFS=$as_save_IFS
5502 OBJDUMP=$ac_cv_prog_OBJDUMP
5503 if test -n "$OBJDUMP"; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5505 $as_echo "$OBJDUMP" >&6; }
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; }
5513 if test -z "$ac_cv_prog_OBJDUMP"; then
5514 ac_ct_OBJDUMP=$OBJDUMP
5515 # Extract the first word of "objdump", so it can be a program name with args.
5516 set dummy objdump; ac_word=$2
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5518 $as_echo_n "checking for $ac_word... " >&6; }
5519 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -n "$ac_ct_OBJDUMP"; then
5523 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5524 else
5525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5526 for as_dir in $PATH
5528 IFS=$as_save_IFS
5529 test -z "$as_dir" && as_dir=.
5530 for ac_exec_ext in '' $ac_executable_extensions; do
5531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5532 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5534 break 2
5536 done
5537 done
5538 IFS=$as_save_IFS
5542 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5543 if test -n "$ac_ct_OBJDUMP"; then
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5545 $as_echo "$ac_ct_OBJDUMP" >&6; }
5546 else
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5548 $as_echo "no" >&6; }
5551 if test "x$ac_ct_OBJDUMP" = x; then
5552 OBJDUMP="false"
5553 else
5554 case $cross_compiling:$ac_tool_warned in
5555 yes:)
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5557 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5558 ac_tool_warned=yes ;;
5559 esac
5560 OBJDUMP=$ac_ct_OBJDUMP
5562 else
5563 OBJDUMP="$ac_cv_prog_OBJDUMP"
5566 test -z "$OBJDUMP" && OBJDUMP=objdump
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5577 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5578 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 lt_cv_file_magic_cmd='$MAGIC_CMD'
5582 lt_cv_file_magic_test_file=
5583 lt_cv_deplibs_check_method='unknown'
5584 # Need to set the preceding variable on all platforms that support
5585 # interlibrary dependencies.
5586 # 'none' -- dependencies not supported.
5587 # `unknown' -- same as none, but documents that we really don't know.
5588 # 'pass_all' -- all dependencies passed with no checks.
5589 # 'test_compile' -- check by making test program.
5590 # 'file_magic [[regex]]' -- check by looking for files in library path
5591 # which responds to the $file_magic_cmd with a given extended regex.
5592 # If you have `file' or equivalent on your system and you're not sure
5593 # whether `pass_all' will *always* work, you probably want this one.
5595 case $host_os in
5596 aix[4-9]*)
5597 lt_cv_deplibs_check_method=pass_all
5600 beos*)
5601 lt_cv_deplibs_check_method=pass_all
5604 bsdi[45]*)
5605 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5606 lt_cv_file_magic_cmd='/usr/bin/file -L'
5607 lt_cv_file_magic_test_file=/shlib/libc.so
5610 cygwin*)
5611 # func_win32_libid is a shell function defined in ltmain.sh
5612 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5613 lt_cv_file_magic_cmd='func_win32_libid'
5616 mingw* | pw32*)
5617 # Base MSYS/MinGW do not provide the 'file' command needed by
5618 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5619 # unless we find 'file', for example because we are cross-compiling.
5620 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5621 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5622 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5623 lt_cv_file_magic_cmd='func_win32_libid'
5624 else
5625 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5626 lt_cv_file_magic_cmd='$OBJDUMP -f'
5630 cegcc*)
5631 # use the weaker test based on 'objdump'. See mingw*.
5632 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5633 lt_cv_file_magic_cmd='$OBJDUMP -f'
5636 darwin* | rhapsody*)
5637 lt_cv_deplibs_check_method=pass_all
5640 freebsd* | dragonfly*)
5641 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5642 case $host_cpu in
5643 i*86 )
5644 # Not sure whether the presence of OpenBSD here was a mistake.
5645 # Let's accept both of them until this is cleared up.
5646 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5647 lt_cv_file_magic_cmd=/usr/bin/file
5648 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5650 esac
5651 else
5652 lt_cv_deplibs_check_method=pass_all
5656 gnu*)
5657 lt_cv_deplibs_check_method=pass_all
5660 haiku*)
5661 lt_cv_deplibs_check_method=pass_all
5664 hpux10.20* | hpux11*)
5665 lt_cv_file_magic_cmd=/usr/bin/file
5666 case $host_cpu in
5667 ia64*)
5668 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5669 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5671 hppa*64*)
5672 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]'
5673 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5676 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5677 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5679 esac
5682 interix[3-9]*)
5683 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5684 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5687 irix5* | irix6* | nonstopux*)
5688 case $LD in
5689 *-32|*"-32 ") libmagic=32-bit;;
5690 *-n32|*"-n32 ") libmagic=N32;;
5691 *-64|*"-64 ") libmagic=64-bit;;
5692 *) libmagic=never-match;;
5693 esac
5694 lt_cv_deplibs_check_method=pass_all
5697 # This must be Linux ELF.
5698 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5699 lt_cv_deplibs_check_method=pass_all
5702 netbsd*)
5703 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5704 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5705 else
5706 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5710 newos6*)
5711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5712 lt_cv_file_magic_cmd=/usr/bin/file
5713 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5716 *nto* | *qnx*)
5717 lt_cv_deplibs_check_method=pass_all
5720 openbsd*)
5721 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5722 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5723 else
5724 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5728 osf3* | osf4* | osf5*)
5729 lt_cv_deplibs_check_method=pass_all
5732 rdos*)
5733 lt_cv_deplibs_check_method=pass_all
5736 solaris*)
5737 lt_cv_deplibs_check_method=pass_all
5740 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5741 lt_cv_deplibs_check_method=pass_all
5744 sysv4 | sysv4.3*)
5745 case $host_vendor in
5746 motorola)
5747 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]'
5748 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5750 ncr)
5751 lt_cv_deplibs_check_method=pass_all
5753 sequent)
5754 lt_cv_file_magic_cmd='/bin/file'
5755 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5757 sni)
5758 lt_cv_file_magic_cmd='/bin/file'
5759 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5760 lt_cv_file_magic_test_file=/lib/libc.so
5762 siemens)
5763 lt_cv_deplibs_check_method=pass_all
5766 lt_cv_deplibs_check_method=pass_all
5768 esac
5771 tpf*)
5772 lt_cv_deplibs_check_method=pass_all
5774 esac
5777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5778 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5779 file_magic_cmd=$lt_cv_file_magic_cmd
5780 deplibs_check_method=$lt_cv_deplibs_check_method
5781 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5794 if test -n "$ac_tool_prefix"; then
5795 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5796 set dummy ${ac_tool_prefix}ar; ac_word=$2
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5798 $as_echo_n "checking for $ac_word... " >&6; }
5799 if test "${ac_cv_prog_AR+set}" = set; then :
5800 $as_echo_n "(cached) " >&6
5801 else
5802 if test -n "$AR"; then
5803 ac_cv_prog_AR="$AR" # Let the user override the test.
5804 else
5805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 for as_dir in $PATH
5808 IFS=$as_save_IFS
5809 test -z "$as_dir" && as_dir=.
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5812 ac_cv_prog_AR="${ac_tool_prefix}ar"
5813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5814 break 2
5816 done
5817 done
5818 IFS=$as_save_IFS
5822 AR=$ac_cv_prog_AR
5823 if test -n "$AR"; then
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5825 $as_echo "$AR" >&6; }
5826 else
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 $as_echo "no" >&6; }
5833 if test -z "$ac_cv_prog_AR"; then
5834 ac_ct_AR=$AR
5835 # Extract the first word of "ar", so it can be a program name with args.
5836 set dummy ar; ac_word=$2
5837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5838 $as_echo_n "checking for $ac_word... " >&6; }
5839 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5840 $as_echo_n "(cached) " >&6
5841 else
5842 if test -n "$ac_ct_AR"; then
5843 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5844 else
5845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5846 for as_dir in $PATH
5848 IFS=$as_save_IFS
5849 test -z "$as_dir" && as_dir=.
5850 for ac_exec_ext in '' $ac_executable_extensions; do
5851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5852 ac_cv_prog_ac_ct_AR="ar"
5853 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5854 break 2
5856 done
5857 done
5858 IFS=$as_save_IFS
5862 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5863 if test -n "$ac_ct_AR"; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5865 $as_echo "$ac_ct_AR" >&6; }
5866 else
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868 $as_echo "no" >&6; }
5871 if test "x$ac_ct_AR" = x; then
5872 AR="false"
5873 else
5874 case $cross_compiling:$ac_tool_warned in
5875 yes:)
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5878 ac_tool_warned=yes ;;
5879 esac
5880 AR=$ac_ct_AR
5882 else
5883 AR="$ac_cv_prog_AR"
5886 test -z "$AR" && AR=ar
5887 test -z "$AR_FLAGS" && AR_FLAGS=cru
5899 if test -n "$ac_tool_prefix"; then
5900 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5901 set dummy ${ac_tool_prefix}strip; ac_word=$2
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5903 $as_echo_n "checking for $ac_word... " >&6; }
5904 if test "${ac_cv_prog_STRIP+set}" = set; then :
5905 $as_echo_n "(cached) " >&6
5906 else
5907 if test -n "$STRIP"; then
5908 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5909 else
5910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5911 for as_dir in $PATH
5913 IFS=$as_save_IFS
5914 test -z "$as_dir" && as_dir=.
5915 for ac_exec_ext in '' $ac_executable_extensions; do
5916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5917 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5919 break 2
5921 done
5922 done
5923 IFS=$as_save_IFS
5927 STRIP=$ac_cv_prog_STRIP
5928 if test -n "$STRIP"; then
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5930 $as_echo "$STRIP" >&6; }
5931 else
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5933 $as_echo "no" >&6; }
5938 if test -z "$ac_cv_prog_STRIP"; then
5939 ac_ct_STRIP=$STRIP
5940 # Extract the first word of "strip", so it can be a program name with args.
5941 set dummy strip; ac_word=$2
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5943 $as_echo_n "checking for $ac_word... " >&6; }
5944 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5945 $as_echo_n "(cached) " >&6
5946 else
5947 if test -n "$ac_ct_STRIP"; then
5948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5949 else
5950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH
5953 IFS=$as_save_IFS
5954 test -z "$as_dir" && as_dir=.
5955 for ac_exec_ext in '' $ac_executable_extensions; do
5956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5957 ac_cv_prog_ac_ct_STRIP="strip"
5958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5959 break 2
5961 done
5962 done
5963 IFS=$as_save_IFS
5967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5968 if test -n "$ac_ct_STRIP"; then
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5970 $as_echo "$ac_ct_STRIP" >&6; }
5971 else
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5973 $as_echo "no" >&6; }
5976 if test "x$ac_ct_STRIP" = x; then
5977 STRIP=":"
5978 else
5979 case $cross_compiling:$ac_tool_warned in
5980 yes:)
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5982 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5983 ac_tool_warned=yes ;;
5984 esac
5985 STRIP=$ac_ct_STRIP
5987 else
5988 STRIP="$ac_cv_prog_STRIP"
5991 test -z "$STRIP" && STRIP=:
5998 if test -n "$ac_tool_prefix"; then
5999 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6000 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6002 $as_echo_n "checking for $ac_word... " >&6; }
6003 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 if test -n "$RANLIB"; then
6007 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6008 else
6009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6010 for as_dir in $PATH
6012 IFS=$as_save_IFS
6013 test -z "$as_dir" && as_dir=.
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6016 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6018 break 2
6020 done
6021 done
6022 IFS=$as_save_IFS
6026 RANLIB=$ac_cv_prog_RANLIB
6027 if test -n "$RANLIB"; then
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6029 $as_echo "$RANLIB" >&6; }
6030 else
6031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 $as_echo "no" >&6; }
6037 if test -z "$ac_cv_prog_RANLIB"; then
6038 ac_ct_RANLIB=$RANLIB
6039 # Extract the first word of "ranlib", so it can be a program name with args.
6040 set dummy ranlib; ac_word=$2
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6042 $as_echo_n "checking for $ac_word... " >&6; }
6043 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6044 $as_echo_n "(cached) " >&6
6045 else
6046 if test -n "$ac_ct_RANLIB"; then
6047 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6048 else
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_prog_ac_ct_RANLIB="ranlib"
6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6060 done
6061 done
6062 IFS=$as_save_IFS
6066 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6067 if test -n "$ac_ct_RANLIB"; then
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6069 $as_echo "$ac_ct_RANLIB" >&6; }
6070 else
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6072 $as_echo "no" >&6; }
6075 if test "x$ac_ct_RANLIB" = x; then
6076 RANLIB=":"
6077 else
6078 case $cross_compiling:$ac_tool_warned in
6079 yes:)
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6082 ac_tool_warned=yes ;;
6083 esac
6084 RANLIB=$ac_ct_RANLIB
6086 else
6087 RANLIB="$ac_cv_prog_RANLIB"
6090 test -z "$RANLIB" && RANLIB=:
6097 # Determine commands to create old-style static archives.
6098 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6099 old_postinstall_cmds='chmod 644 $oldlib'
6100 old_postuninstall_cmds=
6102 if test -n "$RANLIB"; then
6103 case $host_os in
6104 openbsd*)
6105 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6108 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6110 esac
6111 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6114 case $host_os in
6115 darwin*)
6116 lock_old_archive_extraction=yes ;;
6118 lock_old_archive_extraction=no ;;
6119 esac
6159 # If no C compiler was specified, use CC.
6160 LTCC=${LTCC-"$CC"}
6162 # If no C compiler flags were specified, use CFLAGS.
6163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6165 # Allow CC to be a program name with arguments.
6166 compiler=$CC
6169 # Check for command to grab the raw symbol name followed by C symbol from nm.
6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6171 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6172 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6173 $as_echo_n "(cached) " >&6
6174 else
6176 # These are sane defaults that work on at least a few old systems.
6177 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6179 # Character class describing NM global symbol codes.
6180 symcode='[BCDEGRST]'
6182 # Regexp to match symbols that can be accessed directly from C.
6183 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6185 # Define system-specific variables.
6186 case $host_os in
6187 aix*)
6188 symcode='[BCDT]'
6190 cygwin* | mingw* | pw32* | cegcc*)
6191 symcode='[ABCDGISTW]'
6193 hpux*)
6194 if test "$host_cpu" = ia64; then
6195 symcode='[ABCDEGRST]'
6198 irix* | nonstopux*)
6199 symcode='[BCDEGRST]'
6201 osf*)
6202 symcode='[BCDEGQRST]'
6204 solaris*)
6205 symcode='[BDRT]'
6207 sco3.2v5*)
6208 symcode='[DT]'
6210 sysv4.2uw2*)
6211 symcode='[DT]'
6213 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6214 symcode='[ABDT]'
6216 sysv4)
6217 symcode='[DFNSTU]'
6219 esac
6221 # If we're using GNU nm, then use its standard symbol codes.
6222 case `$NM -V 2>&1` in
6223 *GNU* | *'with BFD'*)
6224 symcode='[ABCDGIRSTW]' ;;
6225 esac
6227 # Transform an extracted symbol line into a proper C declaration.
6228 # Some systems (esp. on ia64) link data and code symbols differently,
6229 # so use this general approach.
6230 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6232 # Transform an extracted symbol line into symbol name and symbol address
6233 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6234 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'"
6236 # Handle CRLF in mingw tool chain
6237 opt_cr=
6238 case $build_os in
6239 mingw*)
6240 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6242 esac
6244 # Try without a prefix underscore, then with it.
6245 for ac_symprfx in "" "_"; do
6247 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6248 symxfrm="\\1 $ac_symprfx\\2 \\2"
6250 # Write the raw and C identifiers.
6251 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6252 # Fake it for dumpbin and say T for any non-static function
6253 # and D for any global variable.
6254 # Also find C++ and __fastcall symbols from MSVC++,
6255 # which start with @ or ?.
6256 lt_cv_sys_global_symbol_pipe="$AWK '"\
6257 " {last_section=section; section=\$ 3};"\
6258 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6259 " \$ 0!~/External *\|/{next};"\
6260 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6261 " {if(hide[section]) next};"\
6262 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6263 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6264 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6265 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6266 " ' prfx=^$ac_symprfx"
6267 else
6268 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6271 # Check to see that the pipe works correctly.
6272 pipe_works=no
6274 rm -f conftest*
6275 cat > conftest.$ac_ext <<_LT_EOF
6276 #ifdef __cplusplus
6277 extern "C" {
6278 #endif
6279 char nm_test_var;
6280 void nm_test_func(void);
6281 void nm_test_func(void){}
6282 #ifdef __cplusplus
6284 #endif
6285 int main(){nm_test_var='a';nm_test_func();return(0);}
6286 _LT_EOF
6288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6289 (eval $ac_compile) 2>&5
6290 ac_status=$?
6291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6292 test $ac_status = 0; }; then
6293 # Now try to grab the symbols.
6294 nlist=conftest.nm
6295 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6296 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6297 ac_status=$?
6298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6299 test $ac_status = 0; } && test -s "$nlist"; then
6300 # Try sorting and uniquifying the output.
6301 if sort "$nlist" | uniq > "$nlist"T; then
6302 mv -f "$nlist"T "$nlist"
6303 else
6304 rm -f "$nlist"T
6307 # Make sure that we snagged all the symbols we need.
6308 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6309 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6310 cat <<_LT_EOF > conftest.$ac_ext
6311 #ifdef __cplusplus
6312 extern "C" {
6313 #endif
6315 _LT_EOF
6316 # Now generate the symbol file.
6317 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6319 cat <<_LT_EOF >> conftest.$ac_ext
6321 /* The mapping between symbol names and symbols. */
6322 const struct {
6323 const char *name;
6324 void *address;
6326 lt__PROGRAM__LTX_preloaded_symbols[] =
6328 { "@PROGRAM@", (void *) 0 },
6329 _LT_EOF
6330 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6331 cat <<\_LT_EOF >> conftest.$ac_ext
6332 {0, (void *) 0}
6335 /* This works around a problem in FreeBSD linker */
6336 #ifdef FREEBSD_WORKAROUND
6337 static const void *lt_preloaded_setup() {
6338 return lt__PROGRAM__LTX_preloaded_symbols;
6340 #endif
6342 #ifdef __cplusplus
6344 #endif
6345 _LT_EOF
6346 # Now try linking the two files.
6347 mv conftest.$ac_objext conftstm.$ac_objext
6348 lt_save_LIBS="$LIBS"
6349 lt_save_CFLAGS="$CFLAGS"
6350 LIBS="conftstm.$ac_objext"
6351 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6353 (eval $ac_link) 2>&5
6354 ac_status=$?
6355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6356 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6357 pipe_works=yes
6359 LIBS="$lt_save_LIBS"
6360 CFLAGS="$lt_save_CFLAGS"
6361 else
6362 echo "cannot find nm_test_func in $nlist" >&5
6364 else
6365 echo "cannot find nm_test_var in $nlist" >&5
6367 else
6368 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6370 else
6371 echo "$progname: failed program was:" >&5
6372 cat conftest.$ac_ext >&5
6374 rm -rf conftest* conftst*
6376 # Do not use the global_symbol_pipe unless it works.
6377 if test "$pipe_works" = yes; then
6378 break
6379 else
6380 lt_cv_sys_global_symbol_pipe=
6382 done
6386 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6387 lt_cv_sys_global_symbol_to_cdecl=
6389 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6391 $as_echo "failed" >&6; }
6392 else
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6394 $as_echo "ok" >&6; }
6418 # Check whether --enable-libtool-lock was given.
6419 if test "${enable_libtool_lock+set}" = set; then :
6420 enableval=$enable_libtool_lock;
6423 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6425 # Some flags need to be propagated to the compiler or linker for good
6426 # libtool support.
6427 case $host in
6428 ia64-*-hpux*)
6429 # Find out which ABI we are using.
6430 echo 'int i;' > conftest.$ac_ext
6431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6432 (eval $ac_compile) 2>&5
6433 ac_status=$?
6434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6435 test $ac_status = 0; }; then
6436 case `/usr/bin/file conftest.$ac_objext` in
6437 *ELF-32*)
6438 HPUX_IA64_MODE="32"
6440 *ELF-64*)
6441 HPUX_IA64_MODE="64"
6443 esac
6445 rm -rf conftest*
6447 *-*-irix6*)
6448 # Find out which ABI we are using.
6449 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6451 (eval $ac_compile) 2>&5
6452 ac_status=$?
6453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6454 test $ac_status = 0; }; then
6455 if test "$lt_cv_prog_gnu_ld" = yes; then
6456 case `/usr/bin/file conftest.$ac_objext` in
6457 *32-bit*)
6458 LD="${LD-ld} -melf32bsmip"
6460 *N32*)
6461 LD="${LD-ld} -melf32bmipn32"
6463 *64-bit*)
6464 LD="${LD-ld} -melf64bmip"
6466 esac
6467 else
6468 case `/usr/bin/file conftest.$ac_objext` in
6469 *32-bit*)
6470 LD="${LD-ld} -32"
6472 *N32*)
6473 LD="${LD-ld} -n32"
6475 *64-bit*)
6476 LD="${LD-ld} -64"
6478 esac
6481 rm -rf conftest*
6484 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6485 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6486 # Find out which ABI we are using.
6487 echo 'int i;' > conftest.$ac_ext
6488 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6489 (eval $ac_compile) 2>&5
6490 ac_status=$?
6491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6492 test $ac_status = 0; }; then
6493 case `/usr/bin/file conftest.o` in
6494 *32-bit*)
6495 case $host in
6496 x86_64-*kfreebsd*-gnu)
6497 LD="${LD-ld} -m elf_i386_fbsd"
6499 x86_64-*linux*)
6500 case `/usr/bin/file conftest.o` in
6501 *x86-64*)
6502 LD="${LD-ld} -m elf32_x86_64"
6505 LD="${LD-ld} -m elf_i386"
6507 esac
6509 powerpc64le-*linux*)
6510 LD="${LD-ld} -m elf32lppclinux"
6512 powerpc64-*linux*)
6513 LD="${LD-ld} -m elf32ppclinux"
6515 s390x-*linux*)
6516 LD="${LD-ld} -m elf_s390"
6518 sparc64-*linux*)
6519 LD="${LD-ld} -m elf32_sparc"
6521 esac
6523 *64-bit*)
6524 case $host in
6525 x86_64-*kfreebsd*-gnu)
6526 LD="${LD-ld} -m elf_x86_64_fbsd"
6528 x86_64-*linux*)
6529 LD="${LD-ld} -m elf_x86_64"
6531 powerpcle-*linux*)
6532 LD="${LD-ld} -m elf64lppc"
6534 powerpc-*linux*)
6535 LD="${LD-ld} -m elf64ppc"
6537 s390*-*linux*|s390*-*tpf*)
6538 LD="${LD-ld} -m elf64_s390"
6540 sparc*-*linux*)
6541 LD="${LD-ld} -m elf64_sparc"
6543 esac
6545 esac
6547 rm -rf conftest*
6550 *-*-sco3.2v5*)
6551 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6552 SAVE_CFLAGS="$CFLAGS"
6553 CFLAGS="$CFLAGS -belf"
6554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6555 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6556 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 ac_ext=c
6560 ac_cpp='$CPP $CPPFLAGS'
6561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6565 if test x$gcc_no_link = xyes; then
6566 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
6568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6569 /* end confdefs.h. */
6572 main ()
6576 return 0;
6578 _ACEOF
6579 if ac_fn_c_try_link "$LINENO"; then :
6580 lt_cv_cc_needs_belf=yes
6581 else
6582 lt_cv_cc_needs_belf=no
6584 rm -f core conftest.err conftest.$ac_objext \
6585 conftest$ac_exeext conftest.$ac_ext
6586 ac_ext=c
6587 ac_cpp='$CPP $CPPFLAGS'
6588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6594 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6595 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6596 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6597 CFLAGS="$SAVE_CFLAGS"
6600 sparc*-*solaris*)
6601 # Find out which ABI we are using.
6602 echo 'int i;' > conftest.$ac_ext
6603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6604 (eval $ac_compile) 2>&5
6605 ac_status=$?
6606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6607 test $ac_status = 0; }; then
6608 case `/usr/bin/file conftest.o` in
6609 *64-bit*)
6610 case $lt_cv_prog_gnu_ld in
6611 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6613 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6614 LD="${LD-ld} -64"
6617 esac
6619 esac
6621 rm -rf conftest*
6623 esac
6625 need_locks="$enable_libtool_lock"
6628 case $host_os in
6629 rhapsody* | darwin*)
6630 if test -n "$ac_tool_prefix"; then
6631 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6632 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6634 $as_echo_n "checking for $ac_word... " >&6; }
6635 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6636 $as_echo_n "(cached) " >&6
6637 else
6638 if test -n "$DSYMUTIL"; then
6639 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6640 else
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6642 for as_dir in $PATH
6644 IFS=$as_save_IFS
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6650 break 2
6652 done
6653 done
6654 IFS=$as_save_IFS
6658 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6659 if test -n "$DSYMUTIL"; then
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6661 $as_echo "$DSYMUTIL" >&6; }
6662 else
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6664 $as_echo "no" >&6; }
6669 if test -z "$ac_cv_prog_DSYMUTIL"; then
6670 ac_ct_DSYMUTIL=$DSYMUTIL
6671 # Extract the first word of "dsymutil", so it can be a program name with args.
6672 set dummy dsymutil; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 if test -n "$ac_ct_DSYMUTIL"; then
6679 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6692 done
6693 done
6694 IFS=$as_save_IFS
6698 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6699 if test -n "$ac_ct_DSYMUTIL"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6701 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6702 else
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6707 if test "x$ac_ct_DSYMUTIL" = x; then
6708 DSYMUTIL=":"
6709 else
6710 case $cross_compiling:$ac_tool_warned in
6711 yes:)
6712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6714 ac_tool_warned=yes ;;
6715 esac
6716 DSYMUTIL=$ac_ct_DSYMUTIL
6718 else
6719 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6722 if test -n "$ac_tool_prefix"; then
6723 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6724 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6726 $as_echo_n "checking for $ac_word... " >&6; }
6727 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6728 $as_echo_n "(cached) " >&6
6729 else
6730 if test -n "$NMEDIT"; then
6731 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6732 else
6733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6734 for as_dir in $PATH
6736 IFS=$as_save_IFS
6737 test -z "$as_dir" && as_dir=.
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 break 2
6744 done
6745 done
6746 IFS=$as_save_IFS
6750 NMEDIT=$ac_cv_prog_NMEDIT
6751 if test -n "$NMEDIT"; then
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6753 $as_echo "$NMEDIT" >&6; }
6754 else
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6761 if test -z "$ac_cv_prog_NMEDIT"; then
6762 ac_ct_NMEDIT=$NMEDIT
6763 # Extract the first word of "nmedit", so it can be a program name with args.
6764 set dummy nmedit; ac_word=$2
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 $as_echo_n "checking for $ac_word... " >&6; }
6767 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6768 $as_echo_n "(cached) " >&6
6769 else
6770 if test -n "$ac_ct_NMEDIT"; then
6771 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6772 else
6773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6774 for as_dir in $PATH
6776 IFS=$as_save_IFS
6777 test -z "$as_dir" && as_dir=.
6778 for ac_exec_ext in '' $ac_executable_extensions; do
6779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6780 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 break 2
6784 done
6785 done
6786 IFS=$as_save_IFS
6790 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6791 if test -n "$ac_ct_NMEDIT"; then
6792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6793 $as_echo "$ac_ct_NMEDIT" >&6; }
6794 else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6796 $as_echo "no" >&6; }
6799 if test "x$ac_ct_NMEDIT" = x; then
6800 NMEDIT=":"
6801 else
6802 case $cross_compiling:$ac_tool_warned in
6803 yes:)
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6806 ac_tool_warned=yes ;;
6807 esac
6808 NMEDIT=$ac_ct_NMEDIT
6810 else
6811 NMEDIT="$ac_cv_prog_NMEDIT"
6814 if test -n "$ac_tool_prefix"; then
6815 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6816 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6818 $as_echo_n "checking for $ac_word... " >&6; }
6819 if test "${ac_cv_prog_LIPO+set}" = set; then :
6820 $as_echo_n "(cached) " >&6
6821 else
6822 if test -n "$LIPO"; then
6823 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6824 else
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6826 for as_dir in $PATH
6828 IFS=$as_save_IFS
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6834 break 2
6836 done
6837 done
6838 IFS=$as_save_IFS
6842 LIPO=$ac_cv_prog_LIPO
6843 if test -n "$LIPO"; then
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6845 $as_echo "$LIPO" >&6; }
6846 else
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6848 $as_echo "no" >&6; }
6853 if test -z "$ac_cv_prog_LIPO"; then
6854 ac_ct_LIPO=$LIPO
6855 # Extract the first word of "lipo", so it can be a program name with args.
6856 set dummy lipo; ac_word=$2
6857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6858 $as_echo_n "checking for $ac_word... " >&6; }
6859 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6860 $as_echo_n "(cached) " >&6
6861 else
6862 if test -n "$ac_ct_LIPO"; then
6863 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6864 else
6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6866 for as_dir in $PATH
6868 IFS=$as_save_IFS
6869 test -z "$as_dir" && as_dir=.
6870 for ac_exec_ext in '' $ac_executable_extensions; do
6871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6872 ac_cv_prog_ac_ct_LIPO="lipo"
6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 break 2
6876 done
6877 done
6878 IFS=$as_save_IFS
6882 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6883 if test -n "$ac_ct_LIPO"; then
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6885 $as_echo "$ac_ct_LIPO" >&6; }
6886 else
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6888 $as_echo "no" >&6; }
6891 if test "x$ac_ct_LIPO" = x; then
6892 LIPO=":"
6893 else
6894 case $cross_compiling:$ac_tool_warned in
6895 yes:)
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6898 ac_tool_warned=yes ;;
6899 esac
6900 LIPO=$ac_ct_LIPO
6902 else
6903 LIPO="$ac_cv_prog_LIPO"
6906 if test -n "$ac_tool_prefix"; then
6907 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6908 set dummy ${ac_tool_prefix}otool; ac_word=$2
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6910 $as_echo_n "checking for $ac_word... " >&6; }
6911 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6912 $as_echo_n "(cached) " >&6
6913 else
6914 if test -n "$OTOOL"; then
6915 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6916 else
6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6918 for as_dir in $PATH
6920 IFS=$as_save_IFS
6921 test -z "$as_dir" && as_dir=.
6922 for ac_exec_ext in '' $ac_executable_extensions; do
6923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6924 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 break 2
6928 done
6929 done
6930 IFS=$as_save_IFS
6934 OTOOL=$ac_cv_prog_OTOOL
6935 if test -n "$OTOOL"; then
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6937 $as_echo "$OTOOL" >&6; }
6938 else
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6940 $as_echo "no" >&6; }
6945 if test -z "$ac_cv_prog_OTOOL"; then
6946 ac_ct_OTOOL=$OTOOL
6947 # Extract the first word of "otool", so it can be a program name with args.
6948 set dummy otool; ac_word=$2
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6950 $as_echo_n "checking for $ac_word... " >&6; }
6951 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6952 $as_echo_n "(cached) " >&6
6953 else
6954 if test -n "$ac_ct_OTOOL"; then
6955 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6956 else
6957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6960 IFS=$as_save_IFS
6961 test -z "$as_dir" && as_dir=.
6962 for ac_exec_ext in '' $ac_executable_extensions; do
6963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6964 ac_cv_prog_ac_ct_OTOOL="otool"
6965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6966 break 2
6968 done
6969 done
6970 IFS=$as_save_IFS
6974 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6975 if test -n "$ac_ct_OTOOL"; then
6976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6977 $as_echo "$ac_ct_OTOOL" >&6; }
6978 else
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6980 $as_echo "no" >&6; }
6983 if test "x$ac_ct_OTOOL" = x; then
6984 OTOOL=":"
6985 else
6986 case $cross_compiling:$ac_tool_warned in
6987 yes:)
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6990 ac_tool_warned=yes ;;
6991 esac
6992 OTOOL=$ac_ct_OTOOL
6994 else
6995 OTOOL="$ac_cv_prog_OTOOL"
6998 if test -n "$ac_tool_prefix"; then
6999 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7000 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002 $as_echo_n "checking for $ac_word... " >&6; }
7003 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006 if test -n "$OTOOL64"; then
7007 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7008 else
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7016 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 break 2
7020 done
7021 done
7022 IFS=$as_save_IFS
7026 OTOOL64=$ac_cv_prog_OTOOL64
7027 if test -n "$OTOOL64"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7029 $as_echo "$OTOOL64" >&6; }
7030 else
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 $as_echo "no" >&6; }
7037 if test -z "$ac_cv_prog_OTOOL64"; then
7038 ac_ct_OTOOL64=$OTOOL64
7039 # Extract the first word of "otool64", so it can be a program name with args.
7040 set dummy otool64; ac_word=$2
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7042 $as_echo_n "checking for $ac_word... " >&6; }
7043 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7044 $as_echo_n "(cached) " >&6
7045 else
7046 if test -n "$ac_ct_OTOOL64"; then
7047 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7048 else
7049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7050 for as_dir in $PATH
7052 IFS=$as_save_IFS
7053 test -z "$as_dir" && as_dir=.
7054 for ac_exec_ext in '' $ac_executable_extensions; do
7055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7056 ac_cv_prog_ac_ct_OTOOL64="otool64"
7057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7058 break 2
7060 done
7061 done
7062 IFS=$as_save_IFS
7066 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7067 if test -n "$ac_ct_OTOOL64"; then
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7069 $as_echo "$ac_ct_OTOOL64" >&6; }
7070 else
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7072 $as_echo "no" >&6; }
7075 if test "x$ac_ct_OTOOL64" = x; then
7076 OTOOL64=":"
7077 else
7078 case $cross_compiling:$ac_tool_warned in
7079 yes:)
7080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7081 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7082 ac_tool_warned=yes ;;
7083 esac
7084 OTOOL64=$ac_ct_OTOOL64
7086 else
7087 OTOOL64="$ac_cv_prog_OTOOL64"
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7117 $as_echo_n "checking for -single_module linker flag... " >&6; }
7118 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7119 $as_echo_n "(cached) " >&6
7120 else
7121 lt_cv_apple_cc_single_mod=no
7122 if test -z "${LT_MULTI_MODULE}"; then
7123 # By default we will add the -single_module flag. You can override
7124 # by either setting the environment variable LT_MULTI_MODULE
7125 # non-empty at configure time, or by adding -multi_module to the
7126 # link flags.
7127 rm -rf libconftest.dylib*
7128 echo "int foo(void){return 1;}" > conftest.c
7129 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7130 -dynamiclib -Wl,-single_module conftest.c" >&5
7131 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7132 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7133 _lt_result=$?
7134 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7135 lt_cv_apple_cc_single_mod=yes
7136 else
7137 cat conftest.err >&5
7139 rm -rf libconftest.dylib*
7140 rm -f conftest.*
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7144 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7146 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7147 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7148 $as_echo_n "(cached) " >&6
7149 else
7150 lt_cv_ld_exported_symbols_list=no
7151 save_LDFLAGS=$LDFLAGS
7152 echo "_main" > conftest.sym
7153 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7154 if test x$gcc_no_link = xyes; then
7155 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7161 main ()
7165 return 0;
7167 _ACEOF
7168 if ac_fn_c_try_link "$LINENO"; then :
7169 lt_cv_ld_exported_symbols_list=yes
7170 else
7171 lt_cv_ld_exported_symbols_list=no
7173 rm -f core conftest.err conftest.$ac_objext \
7174 conftest$ac_exeext conftest.$ac_ext
7175 LDFLAGS="$save_LDFLAGS"
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7179 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7181 $as_echo_n "checking for -force_load linker flag... " >&6; }
7182 if test "${lt_cv_ld_force_load+set}" = set; then :
7183 $as_echo_n "(cached) " >&6
7184 else
7185 lt_cv_ld_force_load=no
7186 cat > conftest.c << _LT_EOF
7187 int forced_loaded() { return 2;}
7188 _LT_EOF
7189 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7190 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7191 echo "$AR cru libconftest.a conftest.o" >&5
7192 $AR cru libconftest.a conftest.o 2>&5
7193 cat > conftest.c << _LT_EOF
7194 int main() { return 0;}
7195 _LT_EOF
7196 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7197 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7198 _lt_result=$?
7199 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7200 lt_cv_ld_force_load=yes
7201 else
7202 cat conftest.err >&5
7204 rm -f conftest.err libconftest.a conftest conftest.c
7205 rm -rf conftest.dSYM
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7209 $as_echo "$lt_cv_ld_force_load" >&6; }
7210 case $host_os in
7211 rhapsody* | darwin1.[012])
7212 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7213 darwin1.*)
7214 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7215 darwin*) # darwin 5.x on
7216 # if running on 10.5 or later, the deployment target defaults
7217 # to the OS version, if on x86, and 10.4, the deployment
7218 # target defaults to 10.4. Don't you love it?
7219 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7220 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7221 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7222 10.[012][,.]*)
7223 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7224 10.*)
7225 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7226 esac
7228 esac
7229 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7230 _lt_dar_single_mod='$single_module'
7232 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7233 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7234 else
7235 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7237 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7238 _lt_dsymutil='~$DSYMUTIL $lib || :'
7239 else
7240 _lt_dsymutil=
7243 esac
7245 for ac_header in dlfcn.h
7246 do :
7247 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7249 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7250 cat >>confdefs.h <<_ACEOF
7251 #define HAVE_DLFCN_H 1
7252 _ACEOF
7256 done
7262 # Set options
7266 enable_dlopen=no
7269 enable_win32_dll=no
7272 # Check whether --enable-shared was given.
7273 if test "${enable_shared+set}" = set; then :
7274 enableval=$enable_shared; p=${PACKAGE-default}
7275 case $enableval in
7276 yes) enable_shared=yes ;;
7277 no) enable_shared=no ;;
7279 enable_shared=no
7280 # Look at the argument we got. We use all the common list separators.
7281 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7282 for pkg in $enableval; do
7283 IFS="$lt_save_ifs"
7284 if test "X$pkg" = "X$p"; then
7285 enable_shared=yes
7287 done
7288 IFS="$lt_save_ifs"
7290 esac
7291 else
7292 enable_shared=yes
7303 # Check whether --enable-static was given.
7304 if test "${enable_static+set}" = set; then :
7305 enableval=$enable_static; p=${PACKAGE-default}
7306 case $enableval in
7307 yes) enable_static=yes ;;
7308 no) enable_static=no ;;
7310 enable_static=no
7311 # Look at the argument we got. We use all the common list separators.
7312 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7313 for pkg in $enableval; do
7314 IFS="$lt_save_ifs"
7315 if test "X$pkg" = "X$p"; then
7316 enable_static=yes
7318 done
7319 IFS="$lt_save_ifs"
7321 esac
7322 else
7323 enable_static=yes
7335 # Check whether --with-pic was given.
7336 if test "${with_pic+set}" = set; then :
7337 withval=$with_pic; pic_mode="$withval"
7338 else
7339 pic_mode=default
7343 test -z "$pic_mode" && pic_mode=default
7351 # Check whether --enable-fast-install was given.
7352 if test "${enable_fast_install+set}" = set; then :
7353 enableval=$enable_fast_install; p=${PACKAGE-default}
7354 case $enableval in
7355 yes) enable_fast_install=yes ;;
7356 no) enable_fast_install=no ;;
7358 enable_fast_install=no
7359 # Look at the argument we got. We use all the common list separators.
7360 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7361 for pkg in $enableval; do
7362 IFS="$lt_save_ifs"
7363 if test "X$pkg" = "X$p"; then
7364 enable_fast_install=yes
7366 done
7367 IFS="$lt_save_ifs"
7369 esac
7370 else
7371 enable_fast_install=yes
7384 # This can be used to rebuild libtool when needed
7385 LIBTOOL_DEPS="$ltmain"
7387 # Always use our own libtool.
7388 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7415 test -z "$LN_S" && LN_S="ln -s"
7430 if test -n "${ZSH_VERSION+set}" ; then
7431 setopt NO_GLOB_SUBST
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7435 $as_echo_n "checking for objdir... " >&6; }
7436 if test "${lt_cv_objdir+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 rm -f .libs 2>/dev/null
7440 mkdir .libs 2>/dev/null
7441 if test -d .libs; then
7442 lt_cv_objdir=.libs
7443 else
7444 # MS-DOS does not allow filenames that begin with a dot.
7445 lt_cv_objdir=_libs
7447 rmdir .libs 2>/dev/null
7449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7450 $as_echo "$lt_cv_objdir" >&6; }
7451 objdir=$lt_cv_objdir
7457 cat >>confdefs.h <<_ACEOF
7458 #define LT_OBJDIR "$lt_cv_objdir/"
7459 _ACEOF
7464 case $host_os in
7465 aix3*)
7466 # AIX sometimes has problems with the GCC collect2 program. For some
7467 # reason, if we set the COLLECT_NAMES environment variable, the problems
7468 # vanish in a puff of smoke.
7469 if test "X${COLLECT_NAMES+set}" != Xset; then
7470 COLLECT_NAMES=
7471 export COLLECT_NAMES
7474 esac
7476 # Global variables:
7477 ofile=libtool
7478 can_build_shared=yes
7480 # All known linkers require a `.a' archive for static linking (except MSVC,
7481 # which needs '.lib').
7482 libext=a
7484 with_gnu_ld="$lt_cv_prog_gnu_ld"
7486 old_CC="$CC"
7487 old_CFLAGS="$CFLAGS"
7489 # Set sane defaults for various variables
7490 test -z "$CC" && CC=cc
7491 test -z "$LTCC" && LTCC=$CC
7492 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7493 test -z "$LD" && LD=ld
7494 test -z "$ac_objext" && ac_objext=o
7496 for cc_temp in $compiler""; do
7497 case $cc_temp in
7498 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7499 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7500 \-*) ;;
7501 *) break;;
7502 esac
7503 done
7504 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7507 # Only perform the check for file, if the check method requires it
7508 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7509 case $deplibs_check_method in
7510 file_magic*)
7511 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7513 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7514 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 case $MAGIC_CMD in
7518 [\\/*] | ?:[\\/]*)
7519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7522 lt_save_MAGIC_CMD="$MAGIC_CMD"
7523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7525 for ac_dir in $ac_dummy; do
7526 IFS="$lt_save_ifs"
7527 test -z "$ac_dir" && ac_dir=.
7528 if test -f $ac_dir/${ac_tool_prefix}file; then
7529 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7530 if test -n "$file_magic_test_file"; then
7531 case $deplibs_check_method in
7532 "file_magic "*)
7533 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7536 $EGREP "$file_magic_regex" > /dev/null; then
7538 else
7539 cat <<_LT_EOF 1>&2
7541 *** Warning: the command libtool uses to detect shared libraries,
7542 *** $file_magic_cmd, produces output that libtool cannot recognize.
7543 *** The result is that libtool may fail to recognize shared libraries
7544 *** as such. This will affect the creation of libtool libraries that
7545 *** depend on shared libraries, but programs linked with such libtool
7546 *** libraries will work regardless of this problem. Nevertheless, you
7547 *** may want to report the problem to your system manager and/or to
7548 *** bug-libtool@gnu.org
7550 _LT_EOF
7551 fi ;;
7552 esac
7554 break
7556 done
7557 IFS="$lt_save_ifs"
7558 MAGIC_CMD="$lt_save_MAGIC_CMD"
7560 esac
7563 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7564 if test -n "$MAGIC_CMD"; then
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7566 $as_echo "$MAGIC_CMD" >&6; }
7567 else
7568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569 $as_echo "no" >&6; }
7576 if test -z "$lt_cv_path_MAGIC_CMD"; then
7577 if test -n "$ac_tool_prefix"; then
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7579 $as_echo_n "checking for file... " >&6; }
7580 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 case $MAGIC_CMD in
7584 [\\/*] | ?:[\\/]*)
7585 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7588 lt_save_MAGIC_CMD="$MAGIC_CMD"
7589 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7590 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7591 for ac_dir in $ac_dummy; do
7592 IFS="$lt_save_ifs"
7593 test -z "$ac_dir" && ac_dir=.
7594 if test -f $ac_dir/file; then
7595 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7596 if test -n "$file_magic_test_file"; then
7597 case $deplibs_check_method in
7598 "file_magic "*)
7599 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7600 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7601 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7602 $EGREP "$file_magic_regex" > /dev/null; then
7604 else
7605 cat <<_LT_EOF 1>&2
7607 *** Warning: the command libtool uses to detect shared libraries,
7608 *** $file_magic_cmd, produces output that libtool cannot recognize.
7609 *** The result is that libtool may fail to recognize shared libraries
7610 *** as such. This will affect the creation of libtool libraries that
7611 *** depend on shared libraries, but programs linked with such libtool
7612 *** libraries will work regardless of this problem. Nevertheless, you
7613 *** may want to report the problem to your system manager and/or to
7614 *** bug-libtool@gnu.org
7616 _LT_EOF
7617 fi ;;
7618 esac
7620 break
7622 done
7623 IFS="$lt_save_ifs"
7624 MAGIC_CMD="$lt_save_MAGIC_CMD"
7626 esac
7629 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7630 if test -n "$MAGIC_CMD"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7632 $as_echo "$MAGIC_CMD" >&6; }
7633 else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7639 else
7640 MAGIC_CMD=:
7646 esac
7648 # Use C for the default configuration in the libtool script
7650 lt_save_CC="$CC"
7651 ac_ext=c
7652 ac_cpp='$CPP $CPPFLAGS'
7653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7658 # Source file extension for C test sources.
7659 ac_ext=c
7661 # Object file extension for compiled C test sources.
7662 objext=o
7663 objext=$objext
7665 # Code to be used in simple compile tests
7666 lt_simple_compile_test_code="int some_variable = 0;"
7668 # Code to be used in simple link tests
7669 lt_simple_link_test_code='int main(){return(0);}'
7677 # If no C compiler was specified, use CC.
7678 LTCC=${LTCC-"$CC"}
7680 # If no C compiler flags were specified, use CFLAGS.
7681 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7683 # Allow CC to be a program name with arguments.
7684 compiler=$CC
7686 # Save the default compiler, since it gets overwritten when the other
7687 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7688 compiler_DEFAULT=$CC
7690 # save warnings/boilerplate of simple test code
7691 ac_outfile=conftest.$ac_objext
7692 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7693 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7694 _lt_compiler_boilerplate=`cat conftest.err`
7695 $RM conftest*
7697 ac_outfile=conftest.$ac_objext
7698 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7699 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7700 _lt_linker_boilerplate=`cat conftest.err`
7701 $RM -r conftest*
7704 ## CAVEAT EMPTOR:
7705 ## There is no encapsulation within the following macros, do not change
7706 ## the running order or otherwise move them around unless you know exactly
7707 ## what you are doing...
7708 if test -n "$compiler"; then
7710 lt_prog_compiler_no_builtin_flag=
7712 if test "$GCC" = yes; then
7713 case $cc_basename in
7714 nvcc*)
7715 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7717 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7718 esac
7720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7721 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7722 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7723 $as_echo_n "(cached) " >&6
7724 else
7725 lt_cv_prog_compiler_rtti_exceptions=no
7726 ac_outfile=conftest.$ac_objext
7727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7728 lt_compiler_flag="-fno-rtti -fno-exceptions"
7729 # Insert the option either (1) after the last *FLAGS variable, or
7730 # (2) before a word containing "conftest.", or (3) at the end.
7731 # Note that $ac_compile itself does not contain backslashes and begins
7732 # with a dollar sign (not a hyphen), so the echo should work correctly.
7733 # The option is referenced via a variable to avoid confusing sed.
7734 lt_compile=`echo "$ac_compile" | $SED \
7735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7737 -e 's:$: $lt_compiler_flag:'`
7738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7739 (eval "$lt_compile" 2>conftest.err)
7740 ac_status=$?
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 if (exit $ac_status) && test -s "$ac_outfile"; then
7744 # The compiler can only warn and ignore the option if not recognized
7745 # So say no if there are warnings other than the usual output.
7746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7748 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7749 lt_cv_prog_compiler_rtti_exceptions=yes
7752 $RM conftest*
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7756 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7758 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7759 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7760 else
7771 lt_prog_compiler_wl=
7772 lt_prog_compiler_pic=
7773 lt_prog_compiler_static=
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7776 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7778 if test "$GCC" = yes; then
7779 lt_prog_compiler_wl='-Wl,'
7780 lt_prog_compiler_static='-static'
7782 case $host_os in
7783 aix*)
7784 # All AIX code is PIC.
7785 if test "$host_cpu" = ia64; then
7786 # AIX 5 now supports IA64 processor
7787 lt_prog_compiler_static='-Bstatic'
7789 lt_prog_compiler_pic='-fPIC'
7792 amigaos*)
7793 case $host_cpu in
7794 powerpc)
7795 # see comment about AmigaOS4 .so support
7796 lt_prog_compiler_pic='-fPIC'
7798 m68k)
7799 # FIXME: we need at least 68020 code to build shared libraries, but
7800 # adding the `-m68020' flag to GCC prevents building anything better,
7801 # like `-m68040'.
7802 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7804 esac
7807 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7808 # PIC is the default for these OSes.
7811 mingw* | cygwin* | pw32* | os2* | cegcc*)
7812 # This hack is so that the source file can tell whether it is being
7813 # built for inclusion in a dll (and should export symbols for example).
7814 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7815 # (--disable-auto-import) libraries
7816 lt_prog_compiler_pic='-DDLL_EXPORT'
7819 darwin* | rhapsody*)
7820 # PIC is the default on this platform
7821 # Common symbols not allowed in MH_DYLIB files
7822 lt_prog_compiler_pic='-fno-common'
7825 haiku*)
7826 # PIC is the default for Haiku.
7827 # The "-static" flag exists, but is broken.
7828 lt_prog_compiler_static=
7831 hpux*)
7832 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7833 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7834 # sets the default TLS model and affects inlining.
7835 case $host_cpu in
7836 hppa*64*)
7837 # +Z the default
7840 lt_prog_compiler_pic='-fPIC'
7842 esac
7845 interix[3-9]*)
7846 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7847 # Instead, we relocate shared libraries at runtime.
7850 msdosdjgpp*)
7851 # Just because we use GCC doesn't mean we suddenly get shared libraries
7852 # on systems that don't support them.
7853 lt_prog_compiler_can_build_shared=no
7854 enable_shared=no
7857 *nto* | *qnx*)
7858 # QNX uses GNU C++, but need to define -shared option too, otherwise
7859 # it will coredump.
7860 lt_prog_compiler_pic='-fPIC -shared'
7863 sysv4*MP*)
7864 if test -d /usr/nec; then
7865 lt_prog_compiler_pic=-Kconform_pic
7870 lt_prog_compiler_pic='-fPIC'
7872 esac
7874 case $cc_basename in
7875 nvcc*) # Cuda Compiler Driver 2.2
7876 lt_prog_compiler_wl='-Xlinker '
7877 lt_prog_compiler_pic='-Xcompiler -fPIC'
7879 esac
7880 else
7881 # PORTME Check for flag to pass linker flags through the system compiler.
7882 case $host_os in
7883 aix*)
7884 lt_prog_compiler_wl='-Wl,'
7885 if test "$host_cpu" = ia64; then
7886 # AIX 5 now supports IA64 processor
7887 lt_prog_compiler_static='-Bstatic'
7888 else
7889 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7893 mingw* | cygwin* | pw32* | os2* | cegcc*)
7894 # This hack is so that the source file can tell whether it is being
7895 # built for inclusion in a dll (and should export symbols for example).
7896 lt_prog_compiler_pic='-DDLL_EXPORT'
7899 hpux9* | hpux10* | hpux11*)
7900 lt_prog_compiler_wl='-Wl,'
7901 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7902 # not for PA HP-UX.
7903 case $host_cpu in
7904 hppa*64*|ia64*)
7905 # +Z the default
7908 lt_prog_compiler_pic='+Z'
7910 esac
7911 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7912 lt_prog_compiler_static='${wl}-a ${wl}archive'
7915 irix5* | irix6* | nonstopux*)
7916 lt_prog_compiler_wl='-Wl,'
7917 # PIC (with -KPIC) is the default.
7918 lt_prog_compiler_static='-non_shared'
7921 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7922 case $cc_basename in
7923 # old Intel for x86_64 which still supported -KPIC.
7924 ecc*)
7925 lt_prog_compiler_wl='-Wl,'
7926 lt_prog_compiler_pic='-KPIC'
7927 lt_prog_compiler_static='-static'
7929 # icc used to be incompatible with GCC.
7930 # ICC 10 doesn't accept -KPIC any more.
7931 icc* | ifort*)
7932 lt_prog_compiler_wl='-Wl,'
7933 lt_prog_compiler_pic='-fPIC'
7934 lt_prog_compiler_static='-static'
7936 # Lahey Fortran 8.1.
7937 lf95*)
7938 lt_prog_compiler_wl='-Wl,'
7939 lt_prog_compiler_pic='--shared'
7940 lt_prog_compiler_static='--static'
7942 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
7943 # Portland Group compilers (*not* the Pentium gcc compiler,
7944 # which looks to be a dead project)
7945 lt_prog_compiler_wl='-Wl,'
7946 lt_prog_compiler_pic='-fpic'
7947 lt_prog_compiler_static='-Bstatic'
7949 ccc*)
7950 lt_prog_compiler_wl='-Wl,'
7951 # All Alpha code is PIC.
7952 lt_prog_compiler_static='-non_shared'
7954 xl* | bgxl* | bgf* | mpixl*)
7955 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
7956 lt_prog_compiler_wl='-Wl,'
7957 lt_prog_compiler_pic='-qpic'
7958 lt_prog_compiler_static='-qstaticlink'
7961 case `$CC -V 2>&1 | sed 5q` in
7962 *Sun\ F* | *Sun*Fortran*)
7963 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7964 lt_prog_compiler_pic='-KPIC'
7965 lt_prog_compiler_static='-Bstatic'
7966 lt_prog_compiler_wl=''
7968 *Sun\ C*)
7969 # Sun C 5.9
7970 lt_prog_compiler_pic='-KPIC'
7971 lt_prog_compiler_static='-Bstatic'
7972 lt_prog_compiler_wl='-Wl,'
7974 esac
7976 esac
7979 newsos6)
7980 lt_prog_compiler_pic='-KPIC'
7981 lt_prog_compiler_static='-Bstatic'
7984 *nto* | *qnx*)
7985 # QNX uses GNU C++, but need to define -shared option too, otherwise
7986 # it will coredump.
7987 lt_prog_compiler_pic='-fPIC -shared'
7990 osf3* | osf4* | osf5*)
7991 lt_prog_compiler_wl='-Wl,'
7992 # All OSF/1 code is PIC.
7993 lt_prog_compiler_static='-non_shared'
7996 rdos*)
7997 lt_prog_compiler_static='-non_shared'
8000 solaris*)
8001 lt_prog_compiler_pic='-KPIC'
8002 lt_prog_compiler_static='-Bstatic'
8003 case $cc_basename in
8004 f77* | f90* | f95*)
8005 lt_prog_compiler_wl='-Qoption ld ';;
8007 lt_prog_compiler_wl='-Wl,';;
8008 esac
8011 sunos4*)
8012 lt_prog_compiler_wl='-Qoption ld '
8013 lt_prog_compiler_pic='-PIC'
8014 lt_prog_compiler_static='-Bstatic'
8017 sysv4 | sysv4.2uw2* | sysv4.3*)
8018 lt_prog_compiler_wl='-Wl,'
8019 lt_prog_compiler_pic='-KPIC'
8020 lt_prog_compiler_static='-Bstatic'
8023 sysv4*MP*)
8024 if test -d /usr/nec ;then
8025 lt_prog_compiler_pic='-Kconform_pic'
8026 lt_prog_compiler_static='-Bstatic'
8030 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8031 lt_prog_compiler_wl='-Wl,'
8032 lt_prog_compiler_pic='-KPIC'
8033 lt_prog_compiler_static='-Bstatic'
8036 unicos*)
8037 lt_prog_compiler_wl='-Wl,'
8038 lt_prog_compiler_can_build_shared=no
8041 uts4*)
8042 lt_prog_compiler_pic='-pic'
8043 lt_prog_compiler_static='-Bstatic'
8047 lt_prog_compiler_can_build_shared=no
8049 esac
8052 case $host_os in
8053 # For platforms which do not support PIC, -DPIC is meaningless:
8054 *djgpp*)
8055 lt_prog_compiler_pic=
8058 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8060 esac
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8062 $as_echo "$lt_prog_compiler_pic" >&6; }
8070 # Check to make sure the PIC flag actually works.
8072 if test -n "$lt_prog_compiler_pic"; then
8073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8074 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8075 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8076 $as_echo_n "(cached) " >&6
8077 else
8078 lt_cv_prog_compiler_pic_works=no
8079 ac_outfile=conftest.$ac_objext
8080 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8081 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8082 # Insert the option either (1) after the last *FLAGS variable, or
8083 # (2) before a word containing "conftest.", or (3) at the end.
8084 # Note that $ac_compile itself does not contain backslashes and begins
8085 # with a dollar sign (not a hyphen), so the echo should work correctly.
8086 # The option is referenced via a variable to avoid confusing sed.
8087 lt_compile=`echo "$ac_compile" | $SED \
8088 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8089 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8090 -e 's:$: $lt_compiler_flag:'`
8091 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8092 (eval "$lt_compile" 2>conftest.err)
8093 ac_status=$?
8094 cat conftest.err >&5
8095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 if (exit $ac_status) && test -s "$ac_outfile"; then
8097 # The compiler can only warn and ignore the option if not recognized
8098 # So say no if there are warnings other than the usual output.
8099 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8100 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8101 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8102 lt_cv_prog_compiler_pic_works=yes
8105 $RM conftest*
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8109 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8111 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8112 case $lt_prog_compiler_pic in
8113 "" | " "*) ;;
8114 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8115 esac
8116 else
8117 lt_prog_compiler_pic=
8118 lt_prog_compiler_can_build_shared=no
8129 # Check to make sure the static flag actually works.
8131 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8133 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8134 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8135 $as_echo_n "(cached) " >&6
8136 else
8137 lt_cv_prog_compiler_static_works=no
8138 save_LDFLAGS="$LDFLAGS"
8139 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8140 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8141 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8142 # The linker can only warn and ignore the option if not recognized
8143 # So say no if there are warnings
8144 if test -s conftest.err; then
8145 # Append any errors to the config.log.
8146 cat conftest.err 1>&5
8147 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8148 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8149 if diff conftest.exp conftest.er2 >/dev/null; then
8150 lt_cv_prog_compiler_static_works=yes
8152 else
8153 lt_cv_prog_compiler_static_works=yes
8156 $RM -r conftest*
8157 LDFLAGS="$save_LDFLAGS"
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8161 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8163 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8165 else
8166 lt_prog_compiler_static=
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8176 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8177 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8178 $as_echo_n "(cached) " >&6
8179 else
8180 lt_cv_prog_compiler_c_o=no
8181 $RM -r conftest 2>/dev/null
8182 mkdir conftest
8183 cd conftest
8184 mkdir out
8185 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8187 lt_compiler_flag="-o out/conftest2.$ac_objext"
8188 # Insert the option either (1) after the last *FLAGS variable, or
8189 # (2) before a word containing "conftest.", or (3) at the end.
8190 # Note that $ac_compile itself does not contain backslashes and begins
8191 # with a dollar sign (not a hyphen), so the echo should work correctly.
8192 lt_compile=`echo "$ac_compile" | $SED \
8193 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8194 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8195 -e 's:$: $lt_compiler_flag:'`
8196 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8197 (eval "$lt_compile" 2>out/conftest.err)
8198 ac_status=$?
8199 cat out/conftest.err >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8202 then
8203 # The compiler can only warn and ignore the option if not recognized
8204 # So say no if there are warnings
8205 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8206 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8207 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8208 lt_cv_prog_compiler_c_o=yes
8211 chmod u+w . 2>&5
8212 $RM conftest*
8213 # SGI C++ compiler will create directory out/ii_files/ for
8214 # template instantiation
8215 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8216 $RM out/* && rmdir out
8217 cd ..
8218 $RM -r conftest
8219 $RM conftest*
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8223 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8231 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8232 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 lt_cv_prog_compiler_c_o=no
8236 $RM -r conftest 2>/dev/null
8237 mkdir conftest
8238 cd conftest
8239 mkdir out
8240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8242 lt_compiler_flag="-o out/conftest2.$ac_objext"
8243 # Insert the option either (1) after the last *FLAGS variable, or
8244 # (2) before a word containing "conftest.", or (3) at the end.
8245 # Note that $ac_compile itself does not contain backslashes and begins
8246 # with a dollar sign (not a hyphen), so the echo should work correctly.
8247 lt_compile=`echo "$ac_compile" | $SED \
8248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250 -e 's:$: $lt_compiler_flag:'`
8251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8252 (eval "$lt_compile" 2>out/conftest.err)
8253 ac_status=$?
8254 cat out/conftest.err >&5
8255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8256 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8257 then
8258 # The compiler can only warn and ignore the option if not recognized
8259 # So say no if there are warnings
8260 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8261 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8262 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8263 lt_cv_prog_compiler_c_o=yes
8266 chmod u+w . 2>&5
8267 $RM conftest*
8268 # SGI C++ compiler will create directory out/ii_files/ for
8269 # template instantiation
8270 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8271 $RM out/* && rmdir out
8272 cd ..
8273 $RM -r conftest
8274 $RM conftest*
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8278 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8283 hard_links="nottested"
8284 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8285 # do not overwrite the value of need_locks provided by the user
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8287 $as_echo_n "checking if we can lock with hard links... " >&6; }
8288 hard_links=yes
8289 $RM conftest*
8290 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8291 touch conftest.a
8292 ln conftest.a conftest.b 2>&5 || hard_links=no
8293 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8295 $as_echo "$hard_links" >&6; }
8296 if test "$hard_links" = no; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8298 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8299 need_locks=warn
8301 else
8302 need_locks=no
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8311 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8313 runpath_var=
8314 allow_undefined_flag=
8315 always_export_symbols=no
8316 archive_cmds=
8317 archive_expsym_cmds=
8318 compiler_needs_object=no
8319 enable_shared_with_static_runtimes=no
8320 export_dynamic_flag_spec=
8321 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8322 hardcode_automatic=no
8323 hardcode_direct=no
8324 hardcode_direct_absolute=no
8325 hardcode_libdir_flag_spec=
8326 hardcode_libdir_flag_spec_ld=
8327 hardcode_libdir_separator=
8328 hardcode_minus_L=no
8329 hardcode_shlibpath_var=unsupported
8330 inherit_rpath=no
8331 link_all_deplibs=unknown
8332 module_cmds=
8333 module_expsym_cmds=
8334 old_archive_from_new_cmds=
8335 old_archive_from_expsyms_cmds=
8336 thread_safe_flag_spec=
8337 whole_archive_flag_spec=
8338 # include_expsyms should be a list of space-separated symbols to be *always*
8339 # included in the symbol list
8340 include_expsyms=
8341 # exclude_expsyms can be an extended regexp of symbols to exclude
8342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8344 # as well as any symbol that contains `d'.
8345 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8347 # platforms (ab)use it in PIC code, but their linkers get confused if
8348 # the symbol is explicitly referenced. Since portable code cannot
8349 # rely on this symbol name, it's probably fine to never include it in
8350 # preloaded symbol tables.
8351 # Exclude shared library initialization/finalization symbols.
8352 extract_expsyms_cmds=
8354 case $host_os in
8355 cygwin* | mingw* | pw32* | cegcc*)
8356 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8357 # When not using gcc, we currently assume that we are using
8358 # Microsoft Visual C++.
8359 if test "$GCC" != yes; then
8360 with_gnu_ld=no
8363 interix*)
8364 # we just hope/assume this is gcc and not c89 (= MSVC++)
8365 with_gnu_ld=yes
8367 openbsd*)
8368 with_gnu_ld=no
8370 esac
8372 ld_shlibs=yes
8374 # On some targets, GNU ld is compatible enough with the native linker
8375 # that we're better off using the native interface for both.
8376 lt_use_gnu_ld_interface=no
8377 if test "$with_gnu_ld" = yes; then
8378 case $host_os in
8379 aix*)
8380 # The AIX port of GNU ld has always aspired to compatibility
8381 # with the native linker. However, as the warning in the GNU ld
8382 # block says, versions before 2.19.5* couldn't really create working
8383 # shared libraries, regardless of the interface used.
8384 case `$LD -v 2>&1` in
8385 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8386 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8387 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8389 lt_use_gnu_ld_interface=yes
8391 esac
8394 lt_use_gnu_ld_interface=yes
8396 esac
8399 if test "$lt_use_gnu_ld_interface" = yes; then
8400 # If archive_cmds runs LD, not CC, wlarc should be empty
8401 wlarc='${wl}'
8403 # Set some defaults for GNU ld with shared library support. These
8404 # are reset later if shared libraries are not supported. Putting them
8405 # here allows them to be overridden if necessary.
8406 runpath_var=LD_RUN_PATH
8407 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8408 export_dynamic_flag_spec='${wl}--export-dynamic'
8409 # ancient GNU ld didn't support --whole-archive et. al.
8410 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8411 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8412 else
8413 whole_archive_flag_spec=
8415 supports_anon_versioning=no
8416 case `$LD -v 2>&1` in
8417 *GNU\ gold*) supports_anon_versioning=yes ;;
8418 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8419 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8420 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8421 *\ 2.11.*) ;; # other 2.11 versions
8422 *) supports_anon_versioning=yes ;;
8423 esac
8425 # See if GNU ld supports shared libraries.
8426 case $host_os in
8427 aix[3-9]*)
8428 # On AIX/PPC, the GNU linker is very broken
8429 if test "$host_cpu" != ia64; then
8430 ld_shlibs=no
8431 cat <<_LT_EOF 1>&2
8433 *** Warning: the GNU linker, at least up to release 2.19, is reported
8434 *** to be unable to reliably create shared libraries on AIX.
8435 *** Therefore, libtool is disabling shared libraries support. If you
8436 *** really care for shared libraries, you may want to install binutils
8437 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8438 *** You will then need to restart the configuration process.
8440 _LT_EOF
8444 amigaos*)
8445 case $host_cpu in
8446 powerpc)
8447 # see comment about AmigaOS4 .so support
8448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8449 archive_expsym_cmds=''
8451 m68k)
8452 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)'
8453 hardcode_libdir_flag_spec='-L$libdir'
8454 hardcode_minus_L=yes
8456 esac
8459 beos*)
8460 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8461 allow_undefined_flag=unsupported
8462 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8463 # support --undefined. This deserves some investigation. FIXME
8464 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8465 else
8466 ld_shlibs=no
8470 cygwin* | mingw* | pw32* | cegcc*)
8471 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8472 # as there is no search path for DLLs.
8473 hardcode_libdir_flag_spec='-L$libdir'
8474 export_dynamic_flag_spec='${wl}--export-all-symbols'
8475 allow_undefined_flag=unsupported
8476 always_export_symbols=no
8477 enable_shared_with_static_runtimes=yes
8478 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8480 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8482 # If the export-symbols file already is a .def file (1st line
8483 # is EXPORTS), use it as is; otherwise, prepend...
8484 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8485 cp $export_symbols $output_objdir/$soname.def;
8486 else
8487 echo EXPORTS > $output_objdir/$soname.def;
8488 cat $export_symbols >> $output_objdir/$soname.def;
8490 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8491 else
8492 ld_shlibs=no
8496 haiku*)
8497 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8498 link_all_deplibs=yes
8501 interix[3-9]*)
8502 hardcode_direct=no
8503 hardcode_shlibpath_var=no
8504 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8505 export_dynamic_flag_spec='${wl}-E'
8506 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8507 # Instead, shared libraries are loaded at an image base (0x10000000 by
8508 # default) and relocated if they conflict, which is a slow very memory
8509 # consuming and fragmenting process. To avoid this, we pick a random,
8510 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8511 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8512 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8513 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'
8516 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8517 tmp_diet=no
8518 if test "$host_os" = linux-dietlibc; then
8519 case $cc_basename in
8520 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8521 esac
8523 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8524 && test "$tmp_diet" = no
8525 then
8526 tmp_addflag=' $pic_flag'
8527 tmp_sharedflag='-shared'
8528 case $cc_basename,$host_cpu in
8529 pgcc*) # Portland Group C compiler
8530 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'
8531 tmp_addflag=' $pic_flag'
8533 pgf77* | pgf90* | pgf95* | pgfortran*)
8534 # Portland Group f77 and f90 compilers
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 tmp_addflag=' $pic_flag -Mnomain' ;;
8537 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8538 tmp_addflag=' -i_dynamic' ;;
8539 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8540 tmp_addflag=' -i_dynamic -nofor_main' ;;
8541 ifc* | ifort*) # Intel Fortran compiler
8542 tmp_addflag=' -nofor_main' ;;
8543 lf95*) # Lahey Fortran 8.1
8544 whole_archive_flag_spec=
8545 tmp_sharedflag='--shared' ;;
8546 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8547 tmp_sharedflag='-qmkshrobj'
8548 tmp_addflag= ;;
8549 nvcc*) # Cuda Compiler Driver 2.2
8550 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'
8551 compiler_needs_object=yes
8553 esac
8554 case `$CC -V 2>&1 | sed 5q` in
8555 *Sun\ C*) # Sun C 5.9
8556 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'
8557 compiler_needs_object=yes
8558 tmp_sharedflag='-G' ;;
8559 *Sun\ F*) # Sun Fortran 8.3
8560 tmp_sharedflag='-G' ;;
8561 esac
8562 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8564 if test "x$supports_anon_versioning" = xyes; then
8565 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8566 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8567 echo "local: *; };" >> $output_objdir/$libname.ver~
8568 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8571 case $cc_basename in
8572 xlf* | bgf* | bgxlf* | mpixlf*)
8573 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8574 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8575 hardcode_libdir_flag_spec=
8576 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8577 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8578 if test "x$supports_anon_versioning" = xyes; then
8579 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8580 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8581 echo "local: *; };" >> $output_objdir/$libname.ver~
8582 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8585 esac
8586 else
8587 ld_shlibs=no
8591 netbsd*)
8592 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8593 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8594 wlarc=
8595 else
8596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8597 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8601 solaris*)
8602 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8603 ld_shlibs=no
8604 cat <<_LT_EOF 1>&2
8606 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8607 *** create shared libraries on Solaris systems. Therefore, libtool
8608 *** is disabling shared libraries support. We urge you to upgrade GNU
8609 *** binutils to release 2.9.1 or newer. Another option is to modify
8610 *** your PATH or compiler configuration so that the native linker is
8611 *** used, and then restart.
8613 _LT_EOF
8614 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8616 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8617 else
8618 ld_shlibs=no
8622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8623 case `$LD -v 2>&1` in
8624 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8625 ld_shlibs=no
8626 cat <<_LT_EOF 1>&2
8628 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8629 *** reliably create shared libraries on SCO systems. Therefore, libtool
8630 *** is disabling shared libraries support. We urge you to upgrade GNU
8631 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8632 *** your PATH or compiler configuration so that the native linker is
8633 *** used, and then restart.
8635 _LT_EOF
8638 # For security reasons, it is highly recommended that you always
8639 # use absolute paths for naming shared libraries, and exclude the
8640 # DT_RUNPATH tag from executables and libraries. But doing so
8641 # requires that you compile everything twice, which is a pain.
8642 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8643 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8644 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8645 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8646 else
8647 ld_shlibs=no
8650 esac
8653 sunos4*)
8654 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8655 wlarc=
8656 hardcode_direct=yes
8657 hardcode_shlibpath_var=no
8661 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8663 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8664 else
8665 ld_shlibs=no
8668 esac
8670 if test "$ld_shlibs" = no; then
8671 runpath_var=
8672 hardcode_libdir_flag_spec=
8673 export_dynamic_flag_spec=
8674 whole_archive_flag_spec=
8676 else
8677 # PORTME fill in a description of your system's linker (not GNU ld)
8678 case $host_os in
8679 aix3*)
8680 allow_undefined_flag=unsupported
8681 always_export_symbols=yes
8682 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'
8683 # Note: this linker hardcodes the directories in LIBPATH if there
8684 # are no directories specified by -L.
8685 hardcode_minus_L=yes
8686 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8687 # Neither direct hardcoding nor static linking is supported with a
8688 # broken collect2.
8689 hardcode_direct=unsupported
8693 aix[4-9]*)
8694 if test "$host_cpu" = ia64; then
8695 # On IA64, the linker does run time linking by default, so we don't
8696 # have to do anything special.
8697 aix_use_runtimelinking=no
8698 exp_sym_flag='-Bexport'
8699 no_entry_flag=""
8700 else
8701 # If we're using GNU nm, then we don't want the "-C" option.
8702 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8703 # Also, AIX nm treats weak defined symbols like other global
8704 # defined symbols, whereas GNU nm marks them as "W".
8705 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8706 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'
8707 else
8708 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'
8710 aix_use_runtimelinking=no
8712 # Test if we are trying to use run time linking or normal
8713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8714 # need to do runtime linking.
8715 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8716 for ld_flag in $LDFLAGS; do
8717 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8718 aix_use_runtimelinking=yes
8719 break
8721 done
8723 esac
8725 exp_sym_flag='-bexport'
8726 no_entry_flag='-bnoentry'
8729 # When large executables or shared objects are built, AIX ld can
8730 # have problems creating the table of contents. If linking a library
8731 # or program results in "error TOC overflow" add -mminimal-toc to
8732 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8733 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8735 archive_cmds=''
8736 hardcode_direct=yes
8737 hardcode_direct_absolute=yes
8738 hardcode_libdir_separator=':'
8739 link_all_deplibs=yes
8740 file_list_spec='${wl}-f,'
8742 if test "$GCC" = yes; then
8743 case $host_os in aix4.[012]|aix4.[012].*)
8744 # We only want to do this on AIX 4.2 and lower, the check
8745 # below for broken collect2 doesn't work under 4.3+
8746 collect2name=`${CC} -print-prog-name=collect2`
8747 if test -f "$collect2name" &&
8748 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8749 then
8750 # We have reworked collect2
8752 else
8753 # We have old collect2
8754 hardcode_direct=unsupported
8755 # It fails to find uninstalled libraries when the uninstalled
8756 # path is not listed in the libpath. Setting hardcode_minus_L
8757 # to unsupported forces relinking
8758 hardcode_minus_L=yes
8759 hardcode_libdir_flag_spec='-L$libdir'
8760 hardcode_libdir_separator=
8763 esac
8764 shared_flag='-shared'
8765 if test "$aix_use_runtimelinking" = yes; then
8766 shared_flag="$shared_flag "'${wl}-G'
8768 else
8769 # not using gcc
8770 if test "$host_cpu" = ia64; then
8771 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8772 # chokes on -Wl,-G. The following line is correct:
8773 shared_flag='-G'
8774 else
8775 if test "$aix_use_runtimelinking" = yes; then
8776 shared_flag='${wl}-G'
8777 else
8778 shared_flag='${wl}-bM:SRE'
8783 export_dynamic_flag_spec='${wl}-bexpall'
8784 # It seems that -bexpall does not export symbols beginning with
8785 # underscore (_), so it is better to generate a list of symbols to export.
8786 always_export_symbols=yes
8787 if test "$aix_use_runtimelinking" = yes; then
8788 # Warning - without using the other runtime loading flags (-brtl),
8789 # -berok will link without error, but may produce a broken library.
8790 allow_undefined_flag='-berok'
8791 # Determine the default libpath from the value encoded in an
8792 # empty executable.
8793 if test x$gcc_no_link = xyes; then
8794 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8797 /* end confdefs.h. */
8800 main ()
8804 return 0;
8806 _ACEOF
8807 if ac_fn_c_try_link "$LINENO"; then :
8809 lt_aix_libpath_sed='
8810 /Import File Strings/,/^$/ {
8811 /^0/ {
8812 s/^0 *\(.*\)$/\1/
8816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8817 # Check for a 64-bit object if we didn't find anything.
8818 if test -z "$aix_libpath"; then
8819 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8822 rm -f core conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8824 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8826 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8827 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"
8828 else
8829 if test "$host_cpu" = ia64; then
8830 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8831 allow_undefined_flag="-z nodefs"
8832 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"
8833 else
8834 # Determine the default libpath from the value encoded in an
8835 # empty executable.
8836 if test x$gcc_no_link = xyes; then
8837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8840 /* end confdefs.h. */
8843 main ()
8847 return 0;
8849 _ACEOF
8850 if ac_fn_c_try_link "$LINENO"; then :
8852 lt_aix_libpath_sed='
8853 /Import File Strings/,/^$/ {
8854 /^0/ {
8855 s/^0 *\(.*\)$/\1/
8859 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8860 # Check for a 64-bit object if we didn't find anything.
8861 if test -z "$aix_libpath"; then
8862 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8865 rm -f core conftest.err conftest.$ac_objext \
8866 conftest$ac_exeext conftest.$ac_ext
8867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8869 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8870 # Warning - without using the other run time loading flags,
8871 # -berok will link without error, but may produce a broken library.
8872 no_undefined_flag=' ${wl}-bernotok'
8873 allow_undefined_flag=' ${wl}-berok'
8874 if test "$with_gnu_ld" = yes; then
8875 # We only use this code for GNU lds that support --whole-archive.
8876 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8877 else
8878 # Exported symbols can be pulled into shared objects from archives
8879 whole_archive_flag_spec='$convenience'
8881 archive_cmds_need_lc=yes
8882 # This is similar to how AIX traditionally builds its shared libraries.
8883 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'
8888 amigaos*)
8889 case $host_cpu in
8890 powerpc)
8891 # see comment about AmigaOS4 .so support
8892 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8893 archive_expsym_cmds=''
8895 m68k)
8896 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)'
8897 hardcode_libdir_flag_spec='-L$libdir'
8898 hardcode_minus_L=yes
8900 esac
8903 bsdi[45]*)
8904 export_dynamic_flag_spec=-rdynamic
8907 cygwin* | mingw* | pw32* | cegcc*)
8908 # When not using gcc, we currently assume that we are using
8909 # Microsoft Visual C++.
8910 # hardcode_libdir_flag_spec is actually meaningless, as there is
8911 # no search path for DLLs.
8912 hardcode_libdir_flag_spec=' '
8913 allow_undefined_flag=unsupported
8914 # Tell ltmain to make .lib files, not .a files.
8915 libext=lib
8916 # Tell ltmain to make .dll files, not .so files.
8917 shrext_cmds=".dll"
8918 # FIXME: Setting linknames here is a bad hack.
8919 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8920 # The linker will automatically build a .lib file if we build a DLL.
8921 old_archive_from_new_cmds='true'
8922 # FIXME: Should let the user specify the lib program.
8923 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8924 fix_srcfile_path='`cygpath -w "$srcfile"`'
8925 enable_shared_with_static_runtimes=yes
8928 darwin* | rhapsody*)
8931 archive_cmds_need_lc=no
8932 hardcode_direct=no
8933 hardcode_automatic=yes
8934 hardcode_shlibpath_var=unsupported
8935 if test "$lt_cv_ld_force_load" = "yes"; then
8936 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\"`'
8937 else
8938 whole_archive_flag_spec=''
8940 link_all_deplibs=yes
8941 allow_undefined_flag="$_lt_dar_allow_undefined"
8942 case $cc_basename in
8943 ifort*) _lt_dar_can_shared=yes ;;
8944 *) _lt_dar_can_shared=$GCC ;;
8945 esac
8946 if test "$_lt_dar_can_shared" = "yes"; then
8947 output_verbose_link_cmd=func_echo_all
8948 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8949 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8950 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}"
8951 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}"
8953 else
8954 ld_shlibs=no
8959 dgux*)
8960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8961 hardcode_libdir_flag_spec='-L$libdir'
8962 hardcode_shlibpath_var=no
8965 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8966 # support. Future versions do this automatically, but an explicit c++rt0.o
8967 # does not break anything, and helps significantly (at the cost of a little
8968 # extra space).
8969 freebsd2.2*)
8970 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8971 hardcode_libdir_flag_spec='-R$libdir'
8972 hardcode_direct=yes
8973 hardcode_shlibpath_var=no
8976 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8977 freebsd2.*)
8978 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8979 hardcode_direct=yes
8980 hardcode_minus_L=yes
8981 hardcode_shlibpath_var=no
8984 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8985 freebsd* | dragonfly*)
8986 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8987 hardcode_libdir_flag_spec='-R$libdir'
8988 hardcode_direct=yes
8989 hardcode_shlibpath_var=no
8992 hpux9*)
8993 if test "$GCC" = yes; then
8994 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'
8995 else
8996 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'
8998 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8999 hardcode_libdir_separator=:
9000 hardcode_direct=yes
9002 # hardcode_minus_L: Not really in the search PATH,
9003 # but as the default location of the library.
9004 hardcode_minus_L=yes
9005 export_dynamic_flag_spec='${wl}-E'
9008 hpux10*)
9009 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9010 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9011 else
9012 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9014 if test "$with_gnu_ld" = no; then
9015 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9016 hardcode_libdir_flag_spec_ld='+b $libdir'
9017 hardcode_libdir_separator=:
9018 hardcode_direct=yes
9019 hardcode_direct_absolute=yes
9020 export_dynamic_flag_spec='${wl}-E'
9021 # hardcode_minus_L: Not really in the search PATH,
9022 # but as the default location of the library.
9023 hardcode_minus_L=yes
9027 hpux11*)
9028 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9029 case $host_cpu in
9030 hppa*64*)
9031 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9033 ia64*)
9034 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9037 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9039 esac
9040 else
9041 case $host_cpu in
9042 hppa*64*)
9043 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9045 ia64*)
9046 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9050 # Older versions of the 11.00 compiler do not understand -b yet
9051 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9053 $as_echo_n "checking if $CC understands -b... " >&6; }
9054 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9055 $as_echo_n "(cached) " >&6
9056 else
9057 lt_cv_prog_compiler__b=no
9058 save_LDFLAGS="$LDFLAGS"
9059 LDFLAGS="$LDFLAGS -b"
9060 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9061 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9062 # The linker can only warn and ignore the option if not recognized
9063 # So say no if there are warnings
9064 if test -s conftest.err; then
9065 # Append any errors to the config.log.
9066 cat conftest.err 1>&5
9067 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9068 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9069 if diff conftest.exp conftest.er2 >/dev/null; then
9070 lt_cv_prog_compiler__b=yes
9072 else
9073 lt_cv_prog_compiler__b=yes
9076 $RM -r conftest*
9077 LDFLAGS="$save_LDFLAGS"
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9081 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9083 if test x"$lt_cv_prog_compiler__b" = xyes; then
9084 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9085 else
9086 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9090 esac
9092 if test "$with_gnu_ld" = no; then
9093 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9094 hardcode_libdir_separator=:
9096 case $host_cpu in
9097 hppa*64*|ia64*)
9098 hardcode_direct=no
9099 hardcode_shlibpath_var=no
9102 hardcode_direct=yes
9103 hardcode_direct_absolute=yes
9104 export_dynamic_flag_spec='${wl}-E'
9106 # hardcode_minus_L: Not really in the search PATH,
9107 # but as the default location of the library.
9108 hardcode_minus_L=yes
9110 esac
9114 irix5* | irix6* | nonstopux*)
9115 if test "$GCC" = yes; then
9116 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'
9117 # Try to use the -exported_symbol ld option, if it does not
9118 # work, assume that -exports_file does not work either and
9119 # implicitly export all symbols.
9120 save_LDFLAGS="$LDFLAGS"
9121 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9122 if test x$gcc_no_link = xyes; then
9123 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9126 /* end confdefs.h. */
9127 int foo(void) {}
9128 _ACEOF
9129 if ac_fn_c_try_link "$LINENO"; then :
9130 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'
9133 rm -f core conftest.err conftest.$ac_objext \
9134 conftest$ac_exeext conftest.$ac_ext
9135 LDFLAGS="$save_LDFLAGS"
9136 else
9137 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'
9138 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'
9140 archive_cmds_need_lc='no'
9141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9142 hardcode_libdir_separator=:
9143 inherit_rpath=yes
9144 link_all_deplibs=yes
9147 netbsd*)
9148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9150 else
9151 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9153 hardcode_libdir_flag_spec='-R$libdir'
9154 hardcode_direct=yes
9155 hardcode_shlibpath_var=no
9158 newsos6)
9159 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9160 hardcode_direct=yes
9161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9162 hardcode_libdir_separator=:
9163 hardcode_shlibpath_var=no
9166 *nto* | *qnx*)
9169 openbsd*)
9170 if test -f /usr/libexec/ld.so; then
9171 hardcode_direct=yes
9172 hardcode_shlibpath_var=no
9173 hardcode_direct_absolute=yes
9174 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9175 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9176 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9177 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9178 export_dynamic_flag_spec='${wl}-E'
9179 else
9180 case $host_os in
9181 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9183 hardcode_libdir_flag_spec='-R$libdir'
9186 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9187 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9189 esac
9191 else
9192 ld_shlibs=no
9196 os2*)
9197 hardcode_libdir_flag_spec='-L$libdir'
9198 hardcode_minus_L=yes
9199 allow_undefined_flag=unsupported
9200 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'
9201 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9204 osf3*)
9205 if test "$GCC" = yes; then
9206 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9207 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'
9208 else
9209 allow_undefined_flag=' -expect_unresolved \*'
9210 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'
9212 archive_cmds_need_lc='no'
9213 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9214 hardcode_libdir_separator=:
9217 osf4* | osf5*) # as osf3* with the addition of -msym flag
9218 if test "$GCC" = yes; then
9219 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9220 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'
9221 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9222 else
9223 allow_undefined_flag=' -expect_unresolved \*'
9224 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'
9225 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~
9226 $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'
9228 # Both c and cxx compiler support -rpath directly
9229 hardcode_libdir_flag_spec='-rpath $libdir'
9231 archive_cmds_need_lc='no'
9232 hardcode_libdir_separator=:
9235 solaris*)
9236 no_undefined_flag=' -z defs'
9237 if test "$GCC" = yes; then
9238 wlarc='${wl}'
9239 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9240 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9241 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9242 else
9243 case `$CC -V 2>&1` in
9244 *"Compilers 5.0"*)
9245 wlarc=''
9246 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9247 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9248 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9251 wlarc='${wl}'
9252 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9253 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9254 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9256 esac
9258 hardcode_libdir_flag_spec='-R$libdir'
9259 hardcode_shlibpath_var=no
9260 case $host_os in
9261 solaris2.[0-5] | solaris2.[0-5].*) ;;
9263 # The compiler driver will combine and reorder linker options,
9264 # but understands `-z linker_flag'. GCC discards it without `$wl',
9265 # but is careful enough not to reorder.
9266 # Supported since Solaris 2.6 (maybe 2.5.1?)
9267 if test "$GCC" = yes; then
9268 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9269 else
9270 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9273 esac
9274 link_all_deplibs=yes
9277 sunos4*)
9278 if test "x$host_vendor" = xsequent; then
9279 # Use $CC to link under sequent, because it throws in some extra .o
9280 # files that make .init and .fini sections work.
9281 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9282 else
9283 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9285 hardcode_libdir_flag_spec='-L$libdir'
9286 hardcode_direct=yes
9287 hardcode_minus_L=yes
9288 hardcode_shlibpath_var=no
9291 sysv4)
9292 case $host_vendor in
9293 sni)
9294 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9295 hardcode_direct=yes # is this really true???
9297 siemens)
9298 ## LD is ld it makes a PLAMLIB
9299 ## CC just makes a GrossModule.
9300 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9301 reload_cmds='$CC -r -o $output$reload_objs'
9302 hardcode_direct=no
9304 motorola)
9305 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9306 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9308 esac
9309 runpath_var='LD_RUN_PATH'
9310 hardcode_shlibpath_var=no
9313 sysv4.3*)
9314 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9315 hardcode_shlibpath_var=no
9316 export_dynamic_flag_spec='-Bexport'
9319 sysv4*MP*)
9320 if test -d /usr/nec; then
9321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_shlibpath_var=no
9323 runpath_var=LD_RUN_PATH
9324 hardcode_runpath_var=yes
9325 ld_shlibs=yes
9329 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9330 no_undefined_flag='${wl}-z,text'
9331 archive_cmds_need_lc=no
9332 hardcode_shlibpath_var=no
9333 runpath_var='LD_RUN_PATH'
9335 if test "$GCC" = yes; then
9336 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9337 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9338 else
9339 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9340 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9344 sysv5* | sco3.2v5* | sco5v6*)
9345 # Note: We can NOT use -z defs as we might desire, because we do not
9346 # link with -lc, and that would cause any symbols used from libc to
9347 # always be unresolved, which means just about no library would
9348 # ever link correctly. If we're not using GNU ld we use -z text
9349 # though, which does catch some bad symbols but isn't as heavy-handed
9350 # as -z defs.
9351 no_undefined_flag='${wl}-z,text'
9352 allow_undefined_flag='${wl}-z,nodefs'
9353 archive_cmds_need_lc=no
9354 hardcode_shlibpath_var=no
9355 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9356 hardcode_libdir_separator=':'
9357 link_all_deplibs=yes
9358 export_dynamic_flag_spec='${wl}-Bexport'
9359 runpath_var='LD_RUN_PATH'
9361 if test "$GCC" = yes; then
9362 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9363 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9364 else
9365 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9366 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9370 uts4*)
9371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9372 hardcode_libdir_flag_spec='-L$libdir'
9373 hardcode_shlibpath_var=no
9377 ld_shlibs=no
9379 esac
9381 if test x$host_vendor = xsni; then
9382 case $host in
9383 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9384 export_dynamic_flag_spec='${wl}-Blargedynsym'
9386 esac
9390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9391 $as_echo "$ld_shlibs" >&6; }
9392 test "$ld_shlibs" = no && can_build_shared=no
9394 with_gnu_ld=$with_gnu_ld
9411 # Do we need to explicitly link libc?
9413 case "x$archive_cmds_need_lc" in
9414 x|xyes)
9415 # Assume -lc should be added
9416 archive_cmds_need_lc=yes
9418 if test "$enable_shared" = yes && test "$GCC" = yes; then
9419 case $archive_cmds in
9420 *'~'*)
9421 # FIXME: we may have to deal with multi-command sequences.
9423 '$CC '*)
9424 # Test whether the compiler implicitly links with -lc since on some
9425 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9426 # to ld, don't add -lc before -lgcc.
9427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9428 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9429 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9430 $as_echo_n "(cached) " >&6
9431 else
9432 $RM conftest*
9433 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9436 (eval $ac_compile) 2>&5
9437 ac_status=$?
9438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9439 test $ac_status = 0; } 2>conftest.err; then
9440 soname=conftest
9441 lib=conftest
9442 libobjs=conftest.$ac_objext
9443 deplibs=
9444 wl=$lt_prog_compiler_wl
9445 pic_flag=$lt_prog_compiler_pic
9446 compiler_flags=-v
9447 linker_flags=-v
9448 verstring=
9449 output_objdir=.
9450 libname=conftest
9451 lt_save_allow_undefined_flag=$allow_undefined_flag
9452 allow_undefined_flag=
9453 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9454 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9455 ac_status=$?
9456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9457 test $ac_status = 0; }
9458 then
9459 lt_cv_archive_cmds_need_lc=no
9460 else
9461 lt_cv_archive_cmds_need_lc=yes
9463 allow_undefined_flag=$lt_save_allow_undefined_flag
9464 else
9465 cat conftest.err 1>&5
9467 $RM conftest*
9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9471 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9472 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9474 esac
9477 esac
9635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9636 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9638 if test "$GCC" = yes; then
9639 case $host_os in
9640 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9641 *) lt_awk_arg="/^libraries:/" ;;
9642 esac
9643 case $host_os in
9644 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9645 *) lt_sed_strip_eq="s,=/,/,g" ;;
9646 esac
9647 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9648 case $lt_search_path_spec in
9649 *\;*)
9650 # if the path contains ";" then we assume it to be the separator
9651 # otherwise default to the standard path separator (i.e. ":") - it is
9652 # assumed that no part of a normal pathname contains ";" but that should
9653 # okay in the real world where ";" in dirpaths is itself problematic.
9654 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9657 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9659 esac
9660 # Ok, now we have the path, separated by spaces, we can step through it
9661 # and add multilib dir if necessary.
9662 lt_tmp_lt_search_path_spec=
9663 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9664 for lt_sys_path in $lt_search_path_spec; do
9665 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9666 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9667 else
9668 test -d "$lt_sys_path" && \
9669 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9671 done
9672 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9673 BEGIN {RS=" "; FS="/|\n";} {
9674 lt_foo="";
9675 lt_count=0;
9676 for (lt_i = NF; lt_i > 0; lt_i--) {
9677 if ($lt_i != "" && $lt_i != ".") {
9678 if ($lt_i == "..") {
9679 lt_count++;
9680 } else {
9681 if (lt_count == 0) {
9682 lt_foo="/" $lt_i lt_foo;
9683 } else {
9684 lt_count--;
9689 if (lt_foo != "") { lt_freq[lt_foo]++; }
9690 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9692 # AWK program above erroneously prepends '/' to C:/dos/paths
9693 # for these hosts.
9694 case $host_os in
9695 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9696 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9697 esac
9698 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9699 else
9700 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9702 library_names_spec=
9703 libname_spec='lib$name'
9704 soname_spec=
9705 shrext_cmds=".so"
9706 postinstall_cmds=
9707 postuninstall_cmds=
9708 finish_cmds=
9709 finish_eval=
9710 shlibpath_var=
9711 shlibpath_overrides_runpath=unknown
9712 version_type=none
9713 dynamic_linker="$host_os ld.so"
9714 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9715 need_lib_prefix=unknown
9716 hardcode_into_libs=no
9718 # when you set need_version to no, make sure it does not cause -set_version
9719 # flags to be left without arguments
9720 need_version=unknown
9722 case $host_os in
9723 aix3*)
9724 version_type=linux
9725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9726 shlibpath_var=LIBPATH
9728 # AIX 3 has no versioning support, so we append a major version to the name.
9729 soname_spec='${libname}${release}${shared_ext}$major'
9732 aix[4-9]*)
9733 version_type=linux
9734 need_lib_prefix=no
9735 need_version=no
9736 hardcode_into_libs=yes
9737 if test "$host_cpu" = ia64; then
9738 # AIX 5 supports IA64
9739 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9740 shlibpath_var=LD_LIBRARY_PATH
9741 else
9742 # With GCC up to 2.95.x, collect2 would create an import file
9743 # for dependence libraries. The import file would start with
9744 # the line `#! .'. This would cause the generated library to
9745 # depend on `.', always an invalid library. This was fixed in
9746 # development snapshots of GCC prior to 3.0.
9747 case $host_os in
9748 aix4 | aix4.[01] | aix4.[01].*)
9749 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9750 echo ' yes '
9751 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9753 else
9754 can_build_shared=no
9757 esac
9758 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9759 # soname into executable. Probably we can add versioning support to
9760 # collect2, so additional links can be useful in future.
9761 if test "$aix_use_runtimelinking" = yes; then
9762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9763 # instead of lib<name>.a to let people know that these are not
9764 # typical AIX shared libraries.
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9766 else
9767 # We preserve .a as extension for shared libraries through AIX4.2
9768 # and later when we are not doing run time linking.
9769 library_names_spec='${libname}${release}.a $libname.a'
9770 soname_spec='${libname}${release}${shared_ext}$major'
9772 shlibpath_var=LIBPATH
9776 amigaos*)
9777 case $host_cpu in
9778 powerpc)
9779 # Since July 2007 AmigaOS4 officially supports .so libraries.
9780 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9783 m68k)
9784 library_names_spec='$libname.ixlibrary $libname.a'
9785 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9786 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'
9788 esac
9791 beos*)
9792 library_names_spec='${libname}${shared_ext}'
9793 dynamic_linker="$host_os ld.so"
9794 shlibpath_var=LIBRARY_PATH
9797 bsdi[45]*)
9798 version_type=linux
9799 need_version=no
9800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801 soname_spec='${libname}${release}${shared_ext}$major'
9802 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9803 shlibpath_var=LD_LIBRARY_PATH
9804 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9805 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9806 # the default ld.so.conf also contains /usr/contrib/lib and
9807 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9808 # libtool to hard-code these into programs
9811 cygwin* | mingw* | pw32* | cegcc*)
9812 version_type=windows
9813 shrext_cmds=".dll"
9814 need_version=no
9815 need_lib_prefix=no
9817 case $GCC,$host_os in
9818 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9819 library_names_spec='$libname.dll.a'
9820 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9821 postinstall_cmds='base_file=`basename \${file}`~
9822 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9823 dldir=$destdir/`dirname \$dlpath`~
9824 test -d \$dldir || mkdir -p \$dldir~
9825 $install_prog $dir/$dlname \$dldir/$dlname~
9826 chmod a+x \$dldir/$dlname~
9827 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9828 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9830 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9831 dlpath=$dir/\$dldll~
9832 $RM \$dlpath'
9833 shlibpath_overrides_runpath=yes
9835 case $host_os in
9836 cygwin*)
9837 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9838 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9840 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9842 mingw* | cegcc*)
9843 # MinGW DLLs use traditional 'lib' prefix
9844 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9846 pw32*)
9847 # pw32 DLLs use 'pw' prefix rather than 'lib'
9848 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9850 esac
9854 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9856 esac
9857 dynamic_linker='Win32 ld.exe'
9858 # FIXME: first we should search . and the directory the executable is in
9859 shlibpath_var=PATH
9862 darwin* | rhapsody*)
9863 dynamic_linker="$host_os dyld"
9864 version_type=darwin
9865 need_lib_prefix=no
9866 need_version=no
9867 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9868 soname_spec='${libname}${release}${major}$shared_ext'
9869 shlibpath_overrides_runpath=yes
9870 shlibpath_var=DYLD_LIBRARY_PATH
9871 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9873 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9874 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9877 dgux*)
9878 version_type=linux
9879 need_lib_prefix=no
9880 need_version=no
9881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9882 soname_spec='${libname}${release}${shared_ext}$major'
9883 shlibpath_var=LD_LIBRARY_PATH
9886 freebsd* | dragonfly*)
9887 # DragonFly does not have aout. When/if they implement a new
9888 # versioning mechanism, adjust this.
9889 if test -x /usr/bin/objformat; then
9890 objformat=`/usr/bin/objformat`
9891 else
9892 case $host_os in
9893 freebsd[23].*) objformat=aout ;;
9894 *) objformat=elf ;;
9895 esac
9897 version_type=freebsd-$objformat
9898 case $version_type in
9899 freebsd-elf*)
9900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9901 need_version=no
9902 need_lib_prefix=no
9904 freebsd-*)
9905 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9906 need_version=yes
9908 esac
9909 shlibpath_var=LD_LIBRARY_PATH
9910 case $host_os in
9911 freebsd2.*)
9912 shlibpath_overrides_runpath=yes
9914 freebsd3.[01]* | freebsdelf3.[01]*)
9915 shlibpath_overrides_runpath=yes
9916 hardcode_into_libs=yes
9918 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9919 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9920 shlibpath_overrides_runpath=no
9921 hardcode_into_libs=yes
9923 *) # from 4.6 on, and DragonFly
9924 shlibpath_overrides_runpath=yes
9925 hardcode_into_libs=yes
9927 esac
9930 gnu*)
9931 version_type=linux
9932 need_lib_prefix=no
9933 need_version=no
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9936 shlibpath_var=LD_LIBRARY_PATH
9937 hardcode_into_libs=yes
9940 haiku*)
9941 version_type=linux
9942 need_lib_prefix=no
9943 need_version=no
9944 dynamic_linker="$host_os runtime_loader"
9945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9946 soname_spec='${libname}${release}${shared_ext}$major'
9947 shlibpath_var=LIBRARY_PATH
9948 shlibpath_overrides_runpath=yes
9949 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
9950 hardcode_into_libs=yes
9953 hpux9* | hpux10* | hpux11*)
9954 # Give a soname corresponding to the major version so that dld.sl refuses to
9955 # link against other versions.
9956 version_type=sunos
9957 need_lib_prefix=no
9958 need_version=no
9959 case $host_cpu in
9960 ia64*)
9961 shrext_cmds='.so'
9962 hardcode_into_libs=yes
9963 dynamic_linker="$host_os dld.so"
9964 shlibpath_var=LD_LIBRARY_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 if test "X$HPUX_IA64_MODE" = X32; then
9969 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9970 else
9971 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9975 hppa*64*)
9976 shrext_cmds='.sl'
9977 hardcode_into_libs=yes
9978 dynamic_linker="$host_os dld.sl"
9979 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9980 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982 soname_spec='${libname}${release}${shared_ext}$major'
9983 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9984 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9987 shrext_cmds='.sl'
9988 dynamic_linker="$host_os dld.sl"
9989 shlibpath_var=SHLIB_PATH
9990 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9992 soname_spec='${libname}${release}${shared_ext}$major'
9994 esac
9995 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
9996 postinstall_cmds='chmod 555 $lib'
9997 # or fails outright, so override atomically:
9998 install_override_mode=555
10001 interix[3-9]*)
10002 version_type=linux
10003 need_lib_prefix=no
10004 need_version=no
10005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10006 soname_spec='${libname}${release}${shared_ext}$major'
10007 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10008 shlibpath_var=LD_LIBRARY_PATH
10009 shlibpath_overrides_runpath=no
10010 hardcode_into_libs=yes
10013 irix5* | irix6* | nonstopux*)
10014 case $host_os in
10015 nonstopux*) version_type=nonstopux ;;
10017 if test "$lt_cv_prog_gnu_ld" = yes; then
10018 version_type=linux
10019 else
10020 version_type=irix
10021 fi ;;
10022 esac
10023 need_lib_prefix=no
10024 need_version=no
10025 soname_spec='${libname}${release}${shared_ext}$major'
10026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10027 case $host_os in
10028 irix5* | nonstopux*)
10029 libsuff= shlibsuff=
10032 case $LD in # libtool.m4 will add one of these switches to LD
10033 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10034 libsuff= shlibsuff= libmagic=32-bit;;
10035 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10036 libsuff=32 shlibsuff=N32 libmagic=N32;;
10037 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10038 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10039 *) libsuff= shlibsuff= libmagic=never-match;;
10040 esac
10042 esac
10043 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10044 shlibpath_overrides_runpath=no
10045 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10046 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10047 hardcode_into_libs=yes
10050 # No shared lib support for Linux oldld, aout, or coff.
10051 linux*oldld* | linux*aout* | linux*coff*)
10052 dynamic_linker=no
10055 # This must be Linux ELF.
10056 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10057 version_type=linux
10058 need_lib_prefix=no
10059 need_version=no
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10062 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 shlibpath_overrides_runpath=no
10066 # Some binutils ld are patched to set DT_RUNPATH
10067 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10068 $as_echo_n "(cached) " >&6
10069 else
10070 lt_cv_shlibpath_overrides_runpath=no
10071 save_LDFLAGS=$LDFLAGS
10072 save_libdir=$libdir
10073 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10074 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10075 if test x$gcc_no_link = xyes; then
10076 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10079 /* end confdefs.h. */
10082 main ()
10086 return 0;
10088 _ACEOF
10089 if ac_fn_c_try_link "$LINENO"; then :
10090 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10091 lt_cv_shlibpath_overrides_runpath=yes
10094 rm -f core conftest.err conftest.$ac_objext \
10095 conftest$ac_exeext conftest.$ac_ext
10096 LDFLAGS=$save_LDFLAGS
10097 libdir=$save_libdir
10101 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10103 # This implies no fast_install, which is unacceptable.
10104 # Some rework will be needed to allow for fast_install
10105 # before this can be enabled.
10106 hardcode_into_libs=yes
10108 # Append ld.so.conf contents to the search path
10109 if test -f /etc/ld.so.conf; then
10110 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' ' '`
10111 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10114 # We used to test for /lib/ld.so.1 and disable shared libraries on
10115 # powerpc, because MkLinux only supported shared libraries with the
10116 # GNU dynamic linker. Since this was broken with cross compilers,
10117 # most powerpc-linux boxes support dynamic linking these days and
10118 # people can always --disable-shared, the test was removed, and we
10119 # assume the GNU/Linux dynamic linker is in use.
10120 dynamic_linker='GNU/Linux ld.so'
10123 netbsd*)
10124 version_type=sunos
10125 need_lib_prefix=no
10126 need_version=no
10127 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10130 dynamic_linker='NetBSD (a.out) ld.so'
10131 else
10132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10133 soname_spec='${libname}${release}${shared_ext}$major'
10134 dynamic_linker='NetBSD ld.elf_so'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=yes
10138 hardcode_into_libs=yes
10141 newsos6)
10142 version_type=linux
10143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10144 shlibpath_var=LD_LIBRARY_PATH
10145 shlibpath_overrides_runpath=yes
10148 *nto* | *qnx*)
10149 version_type=qnx
10150 need_lib_prefix=no
10151 need_version=no
10152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10153 soname_spec='${libname}${release}${shared_ext}$major'
10154 shlibpath_var=LD_LIBRARY_PATH
10155 shlibpath_overrides_runpath=no
10156 hardcode_into_libs=yes
10157 dynamic_linker='ldqnx.so'
10160 openbsd*)
10161 version_type=sunos
10162 sys_lib_dlsearch_path_spec="/usr/lib"
10163 need_lib_prefix=no
10164 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10165 case $host_os in
10166 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10167 *) need_version=no ;;
10168 esac
10169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10171 shlibpath_var=LD_LIBRARY_PATH
10172 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10173 case $host_os in
10174 openbsd2.[89] | openbsd2.[89].*)
10175 shlibpath_overrides_runpath=no
10178 shlibpath_overrides_runpath=yes
10180 esac
10181 else
10182 shlibpath_overrides_runpath=yes
10186 os2*)
10187 libname_spec='$name'
10188 shrext_cmds=".dll"
10189 need_lib_prefix=no
10190 library_names_spec='$libname${shared_ext} $libname.a'
10191 dynamic_linker='OS/2 ld.exe'
10192 shlibpath_var=LIBPATH
10195 osf3* | osf4* | osf5*)
10196 version_type=osf
10197 need_lib_prefix=no
10198 need_version=no
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10201 shlibpath_var=LD_LIBRARY_PATH
10202 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10203 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10206 rdos*)
10207 dynamic_linker=no
10210 solaris*)
10211 version_type=linux
10212 need_lib_prefix=no
10213 need_version=no
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215 soname_spec='${libname}${release}${shared_ext}$major'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath=yes
10218 hardcode_into_libs=yes
10219 # ldd complains unless libraries are executable
10220 postinstall_cmds='chmod +x $lib'
10223 sunos4*)
10224 version_type=sunos
10225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10226 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10227 shlibpath_var=LD_LIBRARY_PATH
10228 shlibpath_overrides_runpath=yes
10229 if test "$with_gnu_ld" = yes; then
10230 need_lib_prefix=no
10232 need_version=yes
10235 sysv4 | sysv4.3*)
10236 version_type=linux
10237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238 soname_spec='${libname}${release}${shared_ext}$major'
10239 shlibpath_var=LD_LIBRARY_PATH
10240 case $host_vendor in
10241 sni)
10242 shlibpath_overrides_runpath=no
10243 need_lib_prefix=no
10244 runpath_var=LD_RUN_PATH
10246 siemens)
10247 need_lib_prefix=no
10249 motorola)
10250 need_lib_prefix=no
10251 need_version=no
10252 shlibpath_overrides_runpath=no
10253 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10255 esac
10258 sysv4*MP*)
10259 if test -d /usr/nec ;then
10260 version_type=linux
10261 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10262 soname_spec='$libname${shared_ext}.$major'
10263 shlibpath_var=LD_LIBRARY_PATH
10267 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10268 version_type=freebsd-elf
10269 need_lib_prefix=no
10270 need_version=no
10271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10272 soname_spec='${libname}${release}${shared_ext}$major'
10273 shlibpath_var=LD_LIBRARY_PATH
10274 shlibpath_overrides_runpath=yes
10275 hardcode_into_libs=yes
10276 if test "$with_gnu_ld" = yes; then
10277 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10278 else
10279 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10280 case $host_os in
10281 sco3.2v5*)
10282 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10284 esac
10286 sys_lib_dlsearch_path_spec='/usr/lib'
10289 tpf*)
10290 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10291 version_type=linux
10292 need_lib_prefix=no
10293 need_version=no
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10295 shlibpath_var=LD_LIBRARY_PATH
10296 shlibpath_overrides_runpath=no
10297 hardcode_into_libs=yes
10300 uts4*)
10301 version_type=linux
10302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10303 soname_spec='${libname}${release}${shared_ext}$major'
10304 shlibpath_var=LD_LIBRARY_PATH
10308 dynamic_linker=no
10310 esac
10311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10312 $as_echo "$dynamic_linker" >&6; }
10313 test "$dynamic_linker" = no && can_build_shared=no
10315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10316 if test "$GCC" = yes; then
10317 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10320 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10321 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10323 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10324 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10419 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10420 hardcode_action=
10421 if test -n "$hardcode_libdir_flag_spec" ||
10422 test -n "$runpath_var" ||
10423 test "X$hardcode_automatic" = "Xyes" ; then
10425 # We can hardcode non-existent directories.
10426 if test "$hardcode_direct" != no &&
10427 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10428 # have to relink, otherwise we might link with an installed library
10429 # when we should be linking with a yet-to-be-installed one
10430 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10431 test "$hardcode_minus_L" != no; then
10432 # Linking always hardcodes the temporary library directory.
10433 hardcode_action=relink
10434 else
10435 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10436 hardcode_action=immediate
10438 else
10439 # We cannot hardcode anything, or else we can only hardcode existing
10440 # directories.
10441 hardcode_action=unsupported
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10444 $as_echo "$hardcode_action" >&6; }
10446 if test "$hardcode_action" = relink ||
10447 test "$inherit_rpath" = yes; then
10448 # Fast installation is not supported
10449 enable_fast_install=no
10450 elif test "$shlibpath_overrides_runpath" = yes ||
10451 test "$enable_shared" = no; then
10452 # Fast installation is not necessary
10453 enable_fast_install=needless
10461 if test "x$enable_dlopen" != xyes; then
10462 enable_dlopen=unknown
10463 enable_dlopen_self=unknown
10464 enable_dlopen_self_static=unknown
10465 else
10466 lt_cv_dlopen=no
10467 lt_cv_dlopen_libs=
10469 case $host_os in
10470 beos*)
10471 lt_cv_dlopen="load_add_on"
10472 lt_cv_dlopen_libs=
10473 lt_cv_dlopen_self=yes
10476 mingw* | pw32* | cegcc*)
10477 lt_cv_dlopen="LoadLibrary"
10478 lt_cv_dlopen_libs=
10481 cygwin*)
10482 lt_cv_dlopen="dlopen"
10483 lt_cv_dlopen_libs=
10486 darwin*)
10487 # if libdl is installed we need to link against it
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10489 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10490 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10492 else
10493 ac_check_lib_save_LIBS=$LIBS
10494 LIBS="-ldl $LIBS"
10495 if test x$gcc_no_link = xyes; then
10496 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10501 /* Override any GCC internal prototype to avoid an error.
10502 Use char because int might match the return type of a GCC
10503 builtin and then its argument prototype would still apply. */
10504 #ifdef __cplusplus
10505 extern "C"
10506 #endif
10507 char dlopen ();
10509 main ()
10511 return dlopen ();
10513 return 0;
10515 _ACEOF
10516 if ac_fn_c_try_link "$LINENO"; then :
10517 ac_cv_lib_dl_dlopen=yes
10518 else
10519 ac_cv_lib_dl_dlopen=no
10521 rm -f core conftest.err conftest.$ac_objext \
10522 conftest$ac_exeext conftest.$ac_ext
10523 LIBS=$ac_check_lib_save_LIBS
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10526 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10527 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10528 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10529 else
10531 lt_cv_dlopen="dyld"
10532 lt_cv_dlopen_libs=
10533 lt_cv_dlopen_self=yes
10540 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10541 if test "x$ac_cv_func_shl_load" = x""yes; then :
10542 lt_cv_dlopen="shl_load"
10543 else
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10545 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10546 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10547 $as_echo_n "(cached) " >&6
10548 else
10549 ac_check_lib_save_LIBS=$LIBS
10550 LIBS="-ldld $LIBS"
10551 if test x$gcc_no_link = xyes; then
10552 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10555 /* end confdefs.h. */
10557 /* Override any GCC internal prototype to avoid an error.
10558 Use char because int might match the return type of a GCC
10559 builtin and then its argument prototype would still apply. */
10560 #ifdef __cplusplus
10561 extern "C"
10562 #endif
10563 char shl_load ();
10565 main ()
10567 return shl_load ();
10569 return 0;
10571 _ACEOF
10572 if ac_fn_c_try_link "$LINENO"; then :
10573 ac_cv_lib_dld_shl_load=yes
10574 else
10575 ac_cv_lib_dld_shl_load=no
10577 rm -f core conftest.err conftest.$ac_objext \
10578 conftest$ac_exeext conftest.$ac_ext
10579 LIBS=$ac_check_lib_save_LIBS
10581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10582 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10583 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10584 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10585 else
10586 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10587 if test "x$ac_cv_func_dlopen" = x""yes; then :
10588 lt_cv_dlopen="dlopen"
10589 else
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10591 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10592 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10593 $as_echo_n "(cached) " >&6
10594 else
10595 ac_check_lib_save_LIBS=$LIBS
10596 LIBS="-ldl $LIBS"
10597 if test x$gcc_no_link = xyes; then
10598 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10601 /* end confdefs.h. */
10603 /* Override any GCC internal prototype to avoid an error.
10604 Use char because int might match the return type of a GCC
10605 builtin and then its argument prototype would still apply. */
10606 #ifdef __cplusplus
10607 extern "C"
10608 #endif
10609 char dlopen ();
10611 main ()
10613 return dlopen ();
10615 return 0;
10617 _ACEOF
10618 if ac_fn_c_try_link "$LINENO"; then :
10619 ac_cv_lib_dl_dlopen=yes
10620 else
10621 ac_cv_lib_dl_dlopen=no
10623 rm -f core conftest.err conftest.$ac_objext \
10624 conftest$ac_exeext conftest.$ac_ext
10625 LIBS=$ac_check_lib_save_LIBS
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10628 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10629 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10630 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10631 else
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10633 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10634 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10635 $as_echo_n "(cached) " >&6
10636 else
10637 ac_check_lib_save_LIBS=$LIBS
10638 LIBS="-lsvld $LIBS"
10639 if test x$gcc_no_link = xyes; then
10640 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10643 /* end confdefs.h. */
10645 /* Override any GCC internal prototype to avoid an error.
10646 Use char because int might match the return type of a GCC
10647 builtin and then its argument prototype would still apply. */
10648 #ifdef __cplusplus
10649 extern "C"
10650 #endif
10651 char dlopen ();
10653 main ()
10655 return dlopen ();
10657 return 0;
10659 _ACEOF
10660 if ac_fn_c_try_link "$LINENO"; then :
10661 ac_cv_lib_svld_dlopen=yes
10662 else
10663 ac_cv_lib_svld_dlopen=no
10665 rm -f core conftest.err conftest.$ac_objext \
10666 conftest$ac_exeext conftest.$ac_ext
10667 LIBS=$ac_check_lib_save_LIBS
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10670 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10671 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10672 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10673 else
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10675 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10676 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10677 $as_echo_n "(cached) " >&6
10678 else
10679 ac_check_lib_save_LIBS=$LIBS
10680 LIBS="-ldld $LIBS"
10681 if test x$gcc_no_link = xyes; then
10682 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685 /* end confdefs.h. */
10687 /* Override any GCC internal prototype to avoid an error.
10688 Use char because int might match the return type of a GCC
10689 builtin and then its argument prototype would still apply. */
10690 #ifdef __cplusplus
10691 extern "C"
10692 #endif
10693 char dld_link ();
10695 main ()
10697 return dld_link ();
10699 return 0;
10701 _ACEOF
10702 if ac_fn_c_try_link "$LINENO"; then :
10703 ac_cv_lib_dld_dld_link=yes
10704 else
10705 ac_cv_lib_dld_dld_link=no
10707 rm -f core conftest.err conftest.$ac_objext \
10708 conftest$ac_exeext conftest.$ac_ext
10709 LIBS=$ac_check_lib_save_LIBS
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10712 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10713 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10714 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10733 esac
10735 if test "x$lt_cv_dlopen" != xno; then
10736 enable_dlopen=yes
10737 else
10738 enable_dlopen=no
10741 case $lt_cv_dlopen in
10742 dlopen)
10743 save_CPPFLAGS="$CPPFLAGS"
10744 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10746 save_LDFLAGS="$LDFLAGS"
10747 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10749 save_LIBS="$LIBS"
10750 LIBS="$lt_cv_dlopen_libs $LIBS"
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10753 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10754 if test "${lt_cv_dlopen_self+set}" = set; then :
10755 $as_echo_n "(cached) " >&6
10756 else
10757 if test "$cross_compiling" = yes; then :
10758 lt_cv_dlopen_self=cross
10759 else
10760 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10761 lt_status=$lt_dlunknown
10762 cat > conftest.$ac_ext <<_LT_EOF
10763 #line 10763 "configure"
10764 #include "confdefs.h"
10766 #if HAVE_DLFCN_H
10767 #include <dlfcn.h>
10768 #endif
10770 #include <stdio.h>
10772 #ifdef RTLD_GLOBAL
10773 # define LT_DLGLOBAL RTLD_GLOBAL
10774 #else
10775 # ifdef DL_GLOBAL
10776 # define LT_DLGLOBAL DL_GLOBAL
10777 # else
10778 # define LT_DLGLOBAL 0
10779 # endif
10780 #endif
10782 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10783 find out it does not work in some platform. */
10784 #ifndef LT_DLLAZY_OR_NOW
10785 # ifdef RTLD_LAZY
10786 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10787 # else
10788 # ifdef DL_LAZY
10789 # define LT_DLLAZY_OR_NOW DL_LAZY
10790 # else
10791 # ifdef RTLD_NOW
10792 # define LT_DLLAZY_OR_NOW RTLD_NOW
10793 # else
10794 # ifdef DL_NOW
10795 # define LT_DLLAZY_OR_NOW DL_NOW
10796 # else
10797 # define LT_DLLAZY_OR_NOW 0
10798 # endif
10799 # endif
10800 # endif
10801 # endif
10802 #endif
10804 /* When -fvisbility=hidden is used, assume the code has been annotated
10805 correspondingly for the symbols needed. */
10806 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10807 void fnord () __attribute__((visibility("default")));
10808 #endif
10810 void fnord () { int i=42; }
10811 int main ()
10813 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10814 int status = $lt_dlunknown;
10816 if (self)
10818 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10819 else
10821 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10822 else puts (dlerror ());
10824 /* dlclose (self); */
10826 else
10827 puts (dlerror ());
10829 return status;
10831 _LT_EOF
10832 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10833 (eval $ac_link) 2>&5
10834 ac_status=$?
10835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10836 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10837 (./conftest; exit; ) >&5 2>/dev/null
10838 lt_status=$?
10839 case x$lt_status in
10840 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10841 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10842 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10843 esac
10844 else :
10845 # compilation failed
10846 lt_cv_dlopen_self=no
10849 rm -fr conftest*
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10854 $as_echo "$lt_cv_dlopen_self" >&6; }
10856 if test "x$lt_cv_dlopen_self" = xyes; then
10857 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10859 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10860 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10861 $as_echo_n "(cached) " >&6
10862 else
10863 if test "$cross_compiling" = yes; then :
10864 lt_cv_dlopen_self_static=cross
10865 else
10866 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10867 lt_status=$lt_dlunknown
10868 cat > conftest.$ac_ext <<_LT_EOF
10869 #line 10869 "configure"
10870 #include "confdefs.h"
10872 #if HAVE_DLFCN_H
10873 #include <dlfcn.h>
10874 #endif
10876 #include <stdio.h>
10878 #ifdef RTLD_GLOBAL
10879 # define LT_DLGLOBAL RTLD_GLOBAL
10880 #else
10881 # ifdef DL_GLOBAL
10882 # define LT_DLGLOBAL DL_GLOBAL
10883 # else
10884 # define LT_DLGLOBAL 0
10885 # endif
10886 #endif
10888 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10889 find out it does not work in some platform. */
10890 #ifndef LT_DLLAZY_OR_NOW
10891 # ifdef RTLD_LAZY
10892 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10893 # else
10894 # ifdef DL_LAZY
10895 # define LT_DLLAZY_OR_NOW DL_LAZY
10896 # else
10897 # ifdef RTLD_NOW
10898 # define LT_DLLAZY_OR_NOW RTLD_NOW
10899 # else
10900 # ifdef DL_NOW
10901 # define LT_DLLAZY_OR_NOW DL_NOW
10902 # else
10903 # define LT_DLLAZY_OR_NOW 0
10904 # endif
10905 # endif
10906 # endif
10907 # endif
10908 #endif
10910 /* When -fvisbility=hidden is used, assume the code has been annotated
10911 correspondingly for the symbols needed. */
10912 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10913 void fnord () __attribute__((visibility("default")));
10914 #endif
10916 void fnord () { int i=42; }
10917 int main ()
10919 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10920 int status = $lt_dlunknown;
10922 if (self)
10924 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10925 else
10927 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10928 else puts (dlerror ());
10930 /* dlclose (self); */
10932 else
10933 puts (dlerror ());
10935 return status;
10937 _LT_EOF
10938 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10939 (eval $ac_link) 2>&5
10940 ac_status=$?
10941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10942 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10943 (./conftest; exit; ) >&5 2>/dev/null
10944 lt_status=$?
10945 case x$lt_status in
10946 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10947 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10948 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10949 esac
10950 else :
10951 # compilation failed
10952 lt_cv_dlopen_self_static=no
10955 rm -fr conftest*
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10960 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10963 CPPFLAGS="$save_CPPFLAGS"
10964 LDFLAGS="$save_LDFLAGS"
10965 LIBS="$save_LIBS"
10967 esac
10969 case $lt_cv_dlopen_self in
10970 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10971 *) enable_dlopen_self=unknown ;;
10972 esac
10974 case $lt_cv_dlopen_self_static in
10975 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10976 *) enable_dlopen_self_static=unknown ;;
10977 esac
10996 striplib=
10997 old_striplib=
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
10999 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11000 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11001 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11002 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11004 $as_echo "yes" >&6; }
11005 else
11006 # FIXME - insert some real tests, host_os isn't really good enough
11007 case $host_os in
11008 darwin*)
11009 if test -n "$STRIP" ; then
11010 striplib="$STRIP -x"
11011 old_striplib="$STRIP -S"
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11013 $as_echo "yes" >&6; }
11014 else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016 $as_echo "no" >&6; }
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11021 $as_echo "no" >&6; }
11023 esac
11037 # Report which library types will actually be built
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11039 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11041 $as_echo "$can_build_shared" >&6; }
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11044 $as_echo_n "checking whether to build shared libraries... " >&6; }
11045 test "$can_build_shared" = "no" && enable_shared=no
11047 # On AIX, shared libraries and static libraries use the same namespace, and
11048 # are all built from PIC.
11049 case $host_os in
11050 aix3*)
11051 test "$enable_shared" = yes && enable_static=no
11052 if test -n "$RANLIB"; then
11053 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11054 postinstall_cmds='$RANLIB $lib'
11058 aix[4-9]*)
11059 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11060 test "$enable_shared" = yes && enable_static=no
11063 esac
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11065 $as_echo "$enable_shared" >&6; }
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11068 $as_echo_n "checking whether to build static libraries... " >&6; }
11069 # Make sure either enable_shared or enable_static is yes.
11070 test "$enable_shared" = yes || enable_static=yes
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11072 $as_echo "$enable_static" >&6; }
11078 ac_ext=c
11079 ac_cpp='$CPP $CPPFLAGS'
11080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11084 CC="$lt_save_CC"
11098 ac_config_commands="$ac_config_commands libtool"
11103 # Only expand once:
11109 case $host in
11110 *-cygwin* | *-mingw*)
11111 # 'host' will be top-level target in the case of a target lib,
11112 # we must compare to with_cross_host to decide if this is a native
11113 # or cross-compiler and select where to install dlls appropriately.
11114 if test -n "$with_cross_host" &&
11115 test x"$with_cross_host" != x"no"; then
11116 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11117 else
11118 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11122 lt_host_flags=
11124 esac
11131 # Calculate toolexeclibdir
11132 # Also toolexecdir, though it's only used in toolexeclibdir
11133 case ${version_specific_libs} in
11134 yes)
11135 # Need the gcc compiler version to know where to install libraries
11136 # and header files if --enable-version-specific-runtime-libs option
11137 # is selected.
11138 toolexecdir='$(libdir)/gcc/$(target_alias)'
11139 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
11142 if test -n "$with_cross_host" &&
11143 test x"$with_cross_host" != x"no"; then
11144 # Install a library built with a cross compiler in tooldir, not libdir.
11145 toolexecdir='$(exec_prefix)/$(target_alias)'
11146 toolexeclibdir='$(toolexecdir)/lib'
11147 else
11148 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
11149 toolexeclibdir='$(libdir)'
11151 multi_os_directory=`$CC -print-multi-os-directory`
11152 case $multi_os_directory in
11153 .) ;; # Avoid trailing /.
11154 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
11155 esac
11157 esac
11161 if test ${multilib} = yes; then
11162 multilib_arg="--enable-multilib"
11163 else
11164 multilib_arg=
11167 # Determine what GCC version number to use in filesystem paths.
11169 get_gcc_base_ver="cat"
11171 # Check whether --with-gcc-major-version-only was given.
11172 if test "${with_gcc_major_version_only+set}" = set; then :
11173 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
11174 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*\$\$/\1/'"
11182 ac_config_files="$ac_config_files Makefile ssp/ssp.h"
11184 cat >confcache <<\_ACEOF
11185 # This file is a shell script that caches the results of configure
11186 # tests run on this system so they can be shared between configure
11187 # scripts and configure runs, see configure's option --config-cache.
11188 # It is not useful on other systems. If it contains results you don't
11189 # want to keep, you may remove or edit it.
11191 # config.status only pays attention to the cache file if you give it
11192 # the --recheck option to rerun configure.
11194 # `ac_cv_env_foo' variables (set or unset) will be overridden when
11195 # loading this file, other *unset* `ac_cv_foo' will be assigned the
11196 # following values.
11198 _ACEOF
11200 # The following way of writing the cache mishandles newlines in values,
11201 # but we know of no workaround that is simple, portable, and efficient.
11202 # So, we kill variables containing newlines.
11203 # Ultrix sh set writes to stderr and can't be redirected directly,
11204 # and sets the high bit in the cache file unless we assign to the vars.
11206 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11207 eval ac_val=\$$ac_var
11208 case $ac_val in #(
11209 *${as_nl}*)
11210 case $ac_var in #(
11211 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11212 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11213 esac
11214 case $ac_var in #(
11215 _ | IFS | as_nl) ;; #(
11216 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11217 *) { eval $ac_var=; unset $ac_var;} ;;
11218 esac ;;
11219 esac
11220 done
11222 (set) 2>&1 |
11223 case $as_nl`(ac_space=' '; set) 2>&1` in #(
11224 *${as_nl}ac_space=\ *)
11225 # `set' does not quote correctly, so add quotes: double-quote
11226 # substitution turns \\\\ into \\, and sed turns \\ into \.
11227 sed -n \
11228 "s/'/'\\\\''/g;
11229 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11230 ;; #(
11232 # `set' quotes correctly as required by POSIX, so do not add quotes.
11233 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11235 esac |
11236 sort
11238 sed '
11239 /^ac_cv_env_/b end
11240 t clear
11241 :clear
11242 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11243 t end
11244 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11245 :end' >>confcache
11246 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11247 if test -w "$cache_file"; then
11248 test "x$cache_file" != "x/dev/null" &&
11249 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11250 $as_echo "$as_me: updating cache $cache_file" >&6;}
11251 cat confcache >$cache_file
11252 else
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11254 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11257 rm -f confcache
11259 test "x$prefix" = xNONE && prefix=$ac_default_prefix
11260 # Let make expand exec_prefix.
11261 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11263 DEFS=-DHAVE_CONFIG_H
11265 ac_libobjs=
11266 ac_ltlibobjs=
11267 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11268 # 1. Remove the extension, and $U if already installed.
11269 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11270 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11271 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11272 # will be set to the directory where LIBOBJS objects are built.
11273 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11274 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11275 done
11276 LIBOBJS=$ac_libobjs
11278 LTLIBOBJS=$ac_ltlibobjs
11281 if test -n "$EXEEXT"; then
11282 am__EXEEXT_TRUE=
11283 am__EXEEXT_FALSE='#'
11284 else
11285 am__EXEEXT_TRUE='#'
11286 am__EXEEXT_FALSE=
11289 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
11290 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
11291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11293 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11294 as_fn_error "conditional \"AMDEP\" was never defined.
11295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11297 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11298 as_fn_error "conditional \"am__fastdepCC\" was never defined.
11299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11301 if test -z "${LIBSSP_USE_SYMVER_TRUE}" && test -z "${LIBSSP_USE_SYMVER_FALSE}"; then
11302 as_fn_error "conditional \"LIBSSP_USE_SYMVER\" was never defined.
11303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11305 if test -z "${LIBSSP_USE_SYMVER_GNU_TRUE}" && test -z "${LIBSSP_USE_SYMVER_GNU_FALSE}"; then
11306 as_fn_error "conditional \"LIBSSP_USE_SYMVER_GNU\" was never defined.
11307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11309 if test -z "${LIBSSP_USE_SYMVER_SUN_TRUE}" && test -z "${LIBSSP_USE_SYMVER_SUN_FALSE}"; then
11310 as_fn_error "conditional \"LIBSSP_USE_SYMVER_SUN\" was never defined.
11311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
11314 : ${CONFIG_STATUS=./config.status}
11315 ac_write_fail=0
11316 ac_clean_files_save=$ac_clean_files
11317 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11319 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11320 as_write_fail=0
11321 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11322 #! $SHELL
11323 # Generated by $as_me.
11324 # Run this file to recreate the current configuration.
11325 # Compiler output produced by configure, useful for debugging
11326 # configure, is in config.log if it exists.
11328 debug=false
11329 ac_cs_recheck=false
11330 ac_cs_silent=false
11332 SHELL=\${CONFIG_SHELL-$SHELL}
11333 export SHELL
11334 _ASEOF
11335 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11336 ## -------------------- ##
11337 ## M4sh Initialization. ##
11338 ## -------------------- ##
11340 # Be more Bourne compatible
11341 DUALCASE=1; export DUALCASE # for MKS sh
11342 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11343 emulate sh
11344 NULLCMD=:
11345 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11346 # is contrary to our usage. Disable this feature.
11347 alias -g '${1+"$@"}'='"$@"'
11348 setopt NO_GLOB_SUBST
11349 else
11350 case `(set -o) 2>/dev/null` in #(
11351 *posix*) :
11352 set -o posix ;; #(
11353 *) :
11355 esac
11359 as_nl='
11361 export as_nl
11362 # Printing a long string crashes Solaris 7 /usr/bin/printf.
11363 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11364 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11365 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11366 # Prefer a ksh shell builtin over an external printf program on Solaris,
11367 # but without wasting forks for bash or zsh.
11368 if test -z "$BASH_VERSION$ZSH_VERSION" \
11369 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11370 as_echo='print -r --'
11371 as_echo_n='print -rn --'
11372 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11373 as_echo='printf %s\n'
11374 as_echo_n='printf %s'
11375 else
11376 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11377 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11378 as_echo_n='/usr/ucb/echo -n'
11379 else
11380 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11381 as_echo_n_body='eval
11382 arg=$1;
11383 case $arg in #(
11384 *"$as_nl"*)
11385 expr "X$arg" : "X\\(.*\\)$as_nl";
11386 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11387 esac;
11388 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11390 export as_echo_n_body
11391 as_echo_n='sh -c $as_echo_n_body as_echo'
11393 export as_echo_body
11394 as_echo='sh -c $as_echo_body as_echo'
11397 # The user is always right.
11398 if test "${PATH_SEPARATOR+set}" != set; then
11399 PATH_SEPARATOR=:
11400 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
11401 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
11402 PATH_SEPARATOR=';'
11407 # IFS
11408 # We need space, tab and new line, in precisely that order. Quoting is
11409 # there to prevent editors from complaining about space-tab.
11410 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
11411 # splitting by setting IFS to empty value.)
11412 IFS=" "" $as_nl"
11414 # Find who we are. Look in the path if we contain no directory separator.
11415 case $0 in #((
11416 *[\\/]* ) as_myself=$0 ;;
11417 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11418 for as_dir in $PATH
11420 IFS=$as_save_IFS
11421 test -z "$as_dir" && as_dir=.
11422 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
11423 done
11424 IFS=$as_save_IFS
11427 esac
11428 # We did not find ourselves, most probably we were run as `sh COMMAND'
11429 # in which case we are not to be found in the path.
11430 if test "x$as_myself" = x; then
11431 as_myself=$0
11433 if test ! -f "$as_myself"; then
11434 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
11435 exit 1
11438 # Unset variables that we do not need and which cause bugs (e.g. in
11439 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
11440 # suppresses any "Segmentation fault" message there. '((' could
11441 # trigger a bug in pdksh 5.2.14.
11442 for as_var in BASH_ENV ENV MAIL MAILPATH
11443 do eval test x\${$as_var+set} = xset \
11444 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
11445 done
11446 PS1='$ '
11447 PS2='> '
11448 PS4='+ '
11450 # NLS nuisances.
11451 LC_ALL=C
11452 export LC_ALL
11453 LANGUAGE=C
11454 export LANGUAGE
11456 # CDPATH.
11457 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11460 # as_fn_error ERROR [LINENO LOG_FD]
11461 # ---------------------------------
11462 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
11463 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
11464 # script with status $?, using 1 if that was 0.
11465 as_fn_error ()
11467 as_status=$?; test $as_status -eq 0 && as_status=1
11468 if test "$3"; then
11469 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
11470 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
11472 $as_echo "$as_me: error: $1" >&2
11473 as_fn_exit $as_status
11474 } # as_fn_error
11477 # as_fn_set_status STATUS
11478 # -----------------------
11479 # Set $? to STATUS, without forking.
11480 as_fn_set_status ()
11482 return $1
11483 } # as_fn_set_status
11485 # as_fn_exit STATUS
11486 # -----------------
11487 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
11488 as_fn_exit ()
11490 set +e
11491 as_fn_set_status $1
11492 exit $1
11493 } # as_fn_exit
11495 # as_fn_unset VAR
11496 # ---------------
11497 # Portably unset VAR.
11498 as_fn_unset ()
11500 { eval $1=; unset $1;}
11502 as_unset=as_fn_unset
11503 # as_fn_append VAR VALUE
11504 # ----------------------
11505 # Append the text in VALUE to the end of the definition contained in VAR. Take
11506 # advantage of any shell optimizations that allow amortized linear growth over
11507 # repeated appends, instead of the typical quadratic growth present in naive
11508 # implementations.
11509 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
11510 eval 'as_fn_append ()
11512 eval $1+=\$2
11514 else
11515 as_fn_append ()
11517 eval $1=\$$1\$2
11519 fi # as_fn_append
11521 # as_fn_arith ARG...
11522 # ------------------
11523 # Perform arithmetic evaluation on the ARGs, and store the result in the
11524 # global $as_val. Take advantage of shells that can avoid forks. The arguments
11525 # must be portable across $(()) and expr.
11526 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
11527 eval 'as_fn_arith ()
11529 as_val=$(( $* ))
11531 else
11532 as_fn_arith ()
11534 as_val=`expr "$@" || test $? -eq 1`
11536 fi # as_fn_arith
11539 if expr a : '\(a\)' >/dev/null 2>&1 &&
11540 test "X`expr 00001 : '.*\(...\)'`" = X001; then
11541 as_expr=expr
11542 else
11543 as_expr=false
11546 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
11547 as_basename=basename
11548 else
11549 as_basename=false
11552 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
11553 as_dirname=dirname
11554 else
11555 as_dirname=false
11558 as_me=`$as_basename -- "$0" ||
11559 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
11560 X"$0" : 'X\(//\)$' \| \
11561 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
11562 $as_echo X/"$0" |
11563 sed '/^.*\/\([^/][^/]*\)\/*$/{
11564 s//\1/
11567 /^X\/\(\/\/\)$/{
11568 s//\1/
11571 /^X\/\(\/\).*/{
11572 s//\1/
11575 s/.*/./; q'`
11577 # Avoid depending upon Character Ranges.
11578 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
11579 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
11580 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
11581 as_cr_digits='0123456789'
11582 as_cr_alnum=$as_cr_Letters$as_cr_digits
11584 ECHO_C= ECHO_N= ECHO_T=
11585 case `echo -n x` in #(((((
11586 -n*)
11587 case `echo 'xy\c'` in
11588 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
11589 xy) ECHO_C='\c';;
11590 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
11591 ECHO_T=' ';;
11592 esac;;
11594 ECHO_N='-n';;
11595 esac
11597 rm -f conf$$ conf$$.exe conf$$.file
11598 if test -d conf$$.dir; then
11599 rm -f conf$$.dir/conf$$.file
11600 else
11601 rm -f conf$$.dir
11602 mkdir conf$$.dir 2>/dev/null
11604 if (echo >conf$$.file) 2>/dev/null; then
11605 if ln -s conf$$.file conf$$ 2>/dev/null; then
11606 as_ln_s='ln -s'
11607 # ... but there are two gotchas:
11608 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
11609 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
11610 # In both cases, we have to default to `cp -p'.
11611 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
11612 as_ln_s='cp -p'
11613 elif ln conf$$.file conf$$ 2>/dev/null; then
11614 as_ln_s=ln
11615 else
11616 as_ln_s='cp -p'
11618 else
11619 as_ln_s='cp -p'
11621 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
11622 rmdir conf$$.dir 2>/dev/null
11625 # as_fn_mkdir_p
11626 # -------------
11627 # Create "$as_dir" as a directory, including parents if necessary.
11628 as_fn_mkdir_p ()
11631 case $as_dir in #(
11632 -*) as_dir=./$as_dir;;
11633 esac
11634 test -d "$as_dir" || eval $as_mkdir_p || {
11635 as_dirs=
11636 while :; do
11637 case $as_dir in #(
11638 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
11639 *) as_qdir=$as_dir;;
11640 esac
11641 as_dirs="'$as_qdir' $as_dirs"
11642 as_dir=`$as_dirname -- "$as_dir" ||
11643 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
11644 X"$as_dir" : 'X\(//\)[^/]' \| \
11645 X"$as_dir" : 'X\(//\)$' \| \
11646 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
11647 $as_echo X"$as_dir" |
11648 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
11649 s//\1/
11652 /^X\(\/\/\)[^/].*/{
11653 s//\1/
11656 /^X\(\/\/\)$/{
11657 s//\1/
11660 /^X\(\/\).*/{
11661 s//\1/
11664 s/.*/./; q'`
11665 test -d "$as_dir" && break
11666 done
11667 test -z "$as_dirs" || eval "mkdir $as_dirs"
11668 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
11671 } # as_fn_mkdir_p
11672 if mkdir -p . 2>/dev/null; then
11673 as_mkdir_p='mkdir -p "$as_dir"'
11674 else
11675 test -d ./-p && rmdir ./-p
11676 as_mkdir_p=false
11679 if test -x / >/dev/null 2>&1; then
11680 as_test_x='test -x'
11681 else
11682 if ls -dL / >/dev/null 2>&1; then
11683 as_ls_L_option=L
11684 else
11685 as_ls_L_option=
11687 as_test_x='
11688 eval sh -c '\''
11689 if test -d "$1"; then
11690 test -d "$1/.";
11691 else
11692 case $1 in #(
11693 -*)set "./$1";;
11694 esac;
11695 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
11696 ???[sx]*):;;*)false;;esac;fi
11697 '\'' sh
11700 as_executable_p=$as_test_x
11702 # Sed expression to map a string onto a valid CPP name.
11703 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
11705 # Sed expression to map a string onto a valid variable name.
11706 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
11709 exec 6>&1
11710 ## ----------------------------------- ##
11711 ## Main body of $CONFIG_STATUS script. ##
11712 ## ----------------------------------- ##
11713 _ASEOF
11714 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
11716 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11717 # Save the log message, to keep $0 and so on meaningful, and to
11718 # report actual input values of CONFIG_FILES etc. instead of their
11719 # values after options handling.
11720 ac_log="
11721 This file was extended by libssp $as_me 1.0, which was
11722 generated by GNU Autoconf 2.64. Invocation command line was
11724 CONFIG_FILES = $CONFIG_FILES
11725 CONFIG_HEADERS = $CONFIG_HEADERS
11726 CONFIG_LINKS = $CONFIG_LINKS
11727 CONFIG_COMMANDS = $CONFIG_COMMANDS
11728 $ $0 $@
11730 on `(hostname || uname -n) 2>/dev/null | sed 1q`
11733 _ACEOF
11735 case $ac_config_files in *"
11736 "*) set x $ac_config_files; shift; ac_config_files=$*;;
11737 esac
11739 case $ac_config_headers in *"
11740 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
11741 esac
11744 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11745 # Files that config.status was made for.
11746 config_files="$ac_config_files"
11747 config_headers="$ac_config_headers"
11748 config_commands="$ac_config_commands"
11750 _ACEOF
11752 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11753 ac_cs_usage="\
11754 \`$as_me' instantiates files and other configuration actions
11755 from templates according to the current configuration. Unless the files
11756 and actions are specified as TAGs, all are instantiated by default.
11758 Usage: $0 [OPTION]... [TAG]...
11760 -h, --help print this help, then exit
11761 -V, --version print version number and configuration settings, then exit
11762 -q, --quiet, --silent
11763 do not print progress messages
11764 -d, --debug don't remove temporary files
11765 --recheck update $as_me by reconfiguring in the same conditions
11766 --file=FILE[:TEMPLATE]
11767 instantiate the configuration file FILE
11768 --header=FILE[:TEMPLATE]
11769 instantiate the configuration header FILE
11771 Configuration files:
11772 $config_files
11774 Configuration headers:
11775 $config_headers
11777 Configuration commands:
11778 $config_commands
11780 Report bugs to the package provider."
11782 _ACEOF
11783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11784 ac_cs_version="\\
11785 libssp config.status 1.0
11786 configured by $0, generated by GNU Autoconf 2.64,
11787 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
11789 Copyright (C) 2009 Free Software Foundation, Inc.
11790 This config.status script is free software; the Free Software Foundation
11791 gives unlimited permission to copy, distribute and modify it."
11793 ac_pwd='$ac_pwd'
11794 srcdir='$srcdir'
11795 INSTALL='$INSTALL'
11796 MKDIR_P='$MKDIR_P'
11797 AWK='$AWK'
11798 test -n "\$AWK" || AWK=awk
11799 _ACEOF
11801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11802 # The default lists apply if the user does not specify any file.
11803 ac_need_defaults=:
11804 while test $# != 0
11806 case $1 in
11807 --*=*)
11808 ac_option=`expr "X$1" : 'X\([^=]*\)='`
11809 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
11810 ac_shift=:
11813 ac_option=$1
11814 ac_optarg=$2
11815 ac_shift=shift
11817 esac
11819 case $ac_option in
11820 # Handling of the options.
11821 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
11822 ac_cs_recheck=: ;;
11823 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
11824 $as_echo "$ac_cs_version"; exit ;;
11825 --debug | --debu | --deb | --de | --d | -d )
11826 debug=: ;;
11827 --file | --fil | --fi | --f )
11828 $ac_shift
11829 case $ac_optarg in
11830 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11831 esac
11832 as_fn_append CONFIG_FILES " '$ac_optarg'"
11833 ac_need_defaults=false;;
11834 --header | --heade | --head | --hea )
11835 $ac_shift
11836 case $ac_optarg in
11837 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
11838 esac
11839 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
11840 ac_need_defaults=false;;
11841 --he | --h)
11842 # Conflict between --help and --header
11843 as_fn_error "ambiguous option: \`$1'
11844 Try \`$0 --help' for more information.";;
11845 --help | --hel | -h )
11846 $as_echo "$ac_cs_usage"; exit ;;
11847 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
11848 | -silent | --silent | --silen | --sile | --sil | --si | --s)
11849 ac_cs_silent=: ;;
11851 # This is an error.
11852 -*) as_fn_error "unrecognized option: \`$1'
11853 Try \`$0 --help' for more information." ;;
11855 *) as_fn_append ac_config_targets " $1"
11856 ac_need_defaults=false ;;
11858 esac
11859 shift
11860 done
11862 ac_configure_extra_args=
11864 if $ac_cs_silent; then
11865 exec 6>/dev/null
11866 ac_configure_extra_args="$ac_configure_extra_args --silent"
11869 _ACEOF
11870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11871 if \$ac_cs_recheck; then
11872 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
11873 shift
11874 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
11875 CONFIG_SHELL='$SHELL'
11876 export CONFIG_SHELL
11877 exec "\$@"
11880 _ACEOF
11881 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
11882 exec 5>>config.log
11884 echo
11885 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
11886 ## Running $as_me. ##
11887 _ASBOX
11888 $as_echo "$ac_log"
11889 } >&5
11891 _ACEOF
11892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
11894 # INIT-COMMANDS
11897 srcdir="$srcdir"
11898 host="$host"
11899 target="$target"
11900 with_multisubdir="$with_multisubdir"
11901 with_multisrctop="$with_multisrctop"
11902 with_target_subdir="$with_target_subdir"
11903 ac_configure_args="${multilib_arg} ${ac_configure_args}"
11904 multi_basedir="$multi_basedir"
11905 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
11906 CC="$CC"
11907 CXX="$CXX"
11908 GFORTRAN="$GFORTRAN"
11909 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
11912 # The HP-UX ksh and POSIX shell print the target directory to stdout
11913 # if CDPATH is set.
11914 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11916 sed_quote_subst='$sed_quote_subst'
11917 double_quote_subst='$double_quote_subst'
11918 delay_variable_subst='$delay_variable_subst'
11919 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
11920 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
11921 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
11922 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
11923 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
11924 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
11925 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
11926 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
11927 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
11928 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
11929 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
11930 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
11931 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
11932 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
11933 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
11934 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
11935 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
11936 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
11937 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
11938 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
11939 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
11940 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
11941 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
11942 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
11943 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
11944 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
11945 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
11946 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
11947 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
11948 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
11949 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
11950 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
11951 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
11952 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
11953 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
11954 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
11955 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
11956 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
11957 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
11958 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
11959 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
11960 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
11961 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
11962 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
11963 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
11964 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
11965 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
11966 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
11967 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"`'
11968 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
11969 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
11970 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
11971 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
11972 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
11973 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
11974 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
11975 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
11976 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
11977 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
11978 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
11979 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
11980 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
11981 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
11982 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
11983 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11984 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
11985 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
11986 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
11987 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
11988 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
11989 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
11990 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
11991 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
11992 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11993 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
11994 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
11995 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
11996 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
11997 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
11998 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
11999 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
12000 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
12001 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
12002 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
12003 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
12004 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
12005 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
12006 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
12007 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
12008 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
12009 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
12010 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
12011 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
12012 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
12013 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
12014 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
12015 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
12016 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
12017 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
12018 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
12019 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
12020 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
12021 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
12022 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
12023 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
12024 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
12025 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
12026 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
12027 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
12028 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
12029 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
12030 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
12031 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
12032 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
12033 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
12034 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
12035 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
12036 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
12037 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
12038 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
12040 LTCC='$LTCC'
12041 LTCFLAGS='$LTCFLAGS'
12042 compiler='$compiler_DEFAULT'
12044 # A function that is used when there is no print builtin or printf.
12045 func_fallback_echo ()
12047 eval 'cat <<_LTECHO_EOF
12049 _LTECHO_EOF'
12052 # Quote evaled strings.
12053 for var in SHELL \
12054 ECHO \
12055 SED \
12056 GREP \
12057 EGREP \
12058 FGREP \
12059 LD \
12060 NM \
12061 LN_S \
12062 lt_SP2NL \
12063 lt_NL2SP \
12064 reload_flag \
12065 OBJDUMP \
12066 deplibs_check_method \
12067 file_magic_cmd \
12068 AR \
12069 AR_FLAGS \
12070 STRIP \
12071 RANLIB \
12072 CC \
12073 CFLAGS \
12074 compiler \
12075 lt_cv_sys_global_symbol_pipe \
12076 lt_cv_sys_global_symbol_to_cdecl \
12077 lt_cv_sys_global_symbol_to_c_name_address \
12078 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12079 lt_prog_compiler_no_builtin_flag \
12080 lt_prog_compiler_wl \
12081 lt_prog_compiler_pic \
12082 lt_prog_compiler_static \
12083 lt_cv_prog_compiler_c_o \
12084 need_locks \
12085 DSYMUTIL \
12086 NMEDIT \
12087 LIPO \
12088 OTOOL \
12089 OTOOL64 \
12090 shrext_cmds \
12091 export_dynamic_flag_spec \
12092 whole_archive_flag_spec \
12093 compiler_needs_object \
12094 with_gnu_ld \
12095 allow_undefined_flag \
12096 no_undefined_flag \
12097 hardcode_libdir_flag_spec \
12098 hardcode_libdir_flag_spec_ld \
12099 hardcode_libdir_separator \
12100 fix_srcfile_path \
12101 exclude_expsyms \
12102 include_expsyms \
12103 file_list_spec \
12104 variables_saved_for_relink \
12105 libname_spec \
12106 library_names_spec \
12107 soname_spec \
12108 install_override_mode \
12109 finish_eval \
12110 old_striplib \
12111 striplib; do
12112 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12113 *[\\\\\\\`\\"\\\$]*)
12114 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12117 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12119 esac
12120 done
12122 # Double-quote double-evaled strings.
12123 for var in reload_cmds \
12124 old_postinstall_cmds \
12125 old_postuninstall_cmds \
12126 old_archive_cmds \
12127 extract_expsyms_cmds \
12128 old_archive_from_new_cmds \
12129 old_archive_from_expsyms_cmds \
12130 archive_cmds \
12131 archive_expsym_cmds \
12132 module_cmds \
12133 module_expsym_cmds \
12134 export_symbols_cmds \
12135 prelink_cmds \
12136 postinstall_cmds \
12137 postuninstall_cmds \
12138 finish_cmds \
12139 sys_lib_search_path_spec \
12140 sys_lib_dlsearch_path_spec; do
12141 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
12142 *[\\\\\\\`\\"\\\$]*)
12143 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12146 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12148 esac
12149 done
12151 ac_aux_dir='$ac_aux_dir'
12152 xsi_shell='$xsi_shell'
12153 lt_shell_append='$lt_shell_append'
12155 # See if we are running on zsh, and set the options which allow our
12156 # commands through without removal of \ escapes INIT.
12157 if test -n "\${ZSH_VERSION+set}" ; then
12158 setopt NO_GLOB_SUBST
12162 PACKAGE='$PACKAGE'
12163 VERSION='$VERSION'
12164 TIMESTAMP='$TIMESTAMP'
12165 RM='$RM'
12166 ofile='$ofile'
12171 _ACEOF
12173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12175 # Handling of arguments.
12176 for ac_config_target in $ac_config_targets
12178 case $ac_config_target in
12179 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
12180 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
12181 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12182 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12183 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12184 "ssp/ssp.h") CONFIG_FILES="$CONFIG_FILES ssp/ssp.h" ;;
12186 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12187 esac
12188 done
12191 # If the user did not use the arguments to specify the items to instantiate,
12192 # then the envvar interface is used. Set only those that are not.
12193 # We use the long form for the default assignment because of an extremely
12194 # bizarre bug on SunOS 4.1.3.
12195 if $ac_need_defaults; then
12196 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12197 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12198 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12201 # Have a temporary directory for convenience. Make it in the build tree
12202 # simply because there is no reason against having it here, and in addition,
12203 # creating and moving files from /tmp can sometimes cause problems.
12204 # Hook for its removal unless debugging.
12205 # Note that there is a small window in which the directory will not be cleaned:
12206 # after its creation but before its name has been assigned to `$tmp'.
12207 $debug ||
12209 tmp=
12210 trap 'exit_status=$?
12211 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12213 trap 'as_fn_exit 1' 1 2 13 15
12215 # Create a (secure) tmp directory for tmp files.
12218 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12219 test -n "$tmp" && test -d "$tmp"
12220 } ||
12222 tmp=./conf$$-$RANDOM
12223 (umask 077 && mkdir "$tmp")
12224 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
12226 # Set up the scripts for CONFIG_FILES section.
12227 # No need to generate them if there are no CONFIG_FILES.
12228 # This happens for instance with `./config.status config.h'.
12229 if test -n "$CONFIG_FILES"; then
12232 ac_cr=`echo X | tr X '\015'`
12233 # On cygwin, bash can eat \r inside `` if the user requested igncr.
12234 # But we know of no other shell where ac_cr would be empty at this
12235 # point, so we can use a bashism as a fallback.
12236 if test "x$ac_cr" = x; then
12237 eval ac_cr=\$\'\\r\'
12239 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12240 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12241 ac_cs_awk_cr='\r'
12242 else
12243 ac_cs_awk_cr=$ac_cr
12246 echo 'BEGIN {' >"$tmp/subs1.awk" &&
12247 _ACEOF
12251 echo "cat >conf$$subs.awk <<_ACEOF" &&
12252 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12253 echo "_ACEOF"
12254 } >conf$$subs.sh ||
12255 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12256 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
12257 ac_delim='%!_!# '
12258 for ac_last_try in false false false false false :; do
12259 . ./conf$$subs.sh ||
12260 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12262 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12263 if test $ac_delim_n = $ac_delim_num; then
12264 break
12265 elif $ac_last_try; then
12266 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
12267 else
12268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12270 done
12271 rm -f conf$$subs.sh
12273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12274 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12275 _ACEOF
12276 sed -n '
12278 s/^/S["/; s/!.*/"]=/
12281 s/^[^!]*!//
12282 :repl
12283 t repl
12284 s/'"$ac_delim"'$//
12285 t delim
12288 s/\(.\{148\}\).*/\1/
12289 t more1
12290 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12293 b repl
12294 :more1
12295 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12298 s/.\{148\}//
12299 t nl
12300 :delim
12302 s/\(.\{148\}\).*/\1/
12303 t more2
12304 s/["\\]/\\&/g; s/^/"/; s/$/"/
12307 :more2
12308 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12311 s/.\{148\}//
12312 t delim
12313 ' <conf$$subs.awk | sed '
12314 /^[^""]/{
12316 s/\n//
12318 ' >>$CONFIG_STATUS || ac_write_fail=1
12319 rm -f conf$$subs.awk
12320 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12321 _ACAWK
12322 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12323 for (key in S) S_is_set[key] = 1
12324 FS = "\a"
12328 line = $ 0
12329 nfields = split(line, field, "@")
12330 substed = 0
12331 len = length(field[1])
12332 for (i = 2; i < nfields; i++) {
12333 key = field[i]
12334 keylen = length(key)
12335 if (S_is_set[key]) {
12336 value = S[key]
12337 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12338 len += length(value) + length(field[++i])
12339 substed = 1
12340 } else
12341 len += 1 + keylen
12344 print line
12347 _ACAWK
12348 _ACEOF
12349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12350 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12351 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12352 else
12354 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12355 || as_fn_error "could not setup config files machinery" "$LINENO" 5
12356 _ACEOF
12358 # VPATH may cause trouble with some makes, so we remove $(srcdir),
12359 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
12360 # trailing colons and then remove the whole line if VPATH becomes empty
12361 # (actually we leave an empty line to preserve line numbers).
12362 if test "x$srcdir" = x.; then
12363 ac_vpsub='/^[ ]*VPATH[ ]*=/{
12364 s/:*\$(srcdir):*/:/
12365 s/:*\${srcdir}:*/:/
12366 s/:*@srcdir@:*/:/
12367 s/^\([^=]*=[ ]*\):*/\1/
12368 s/:*$//
12369 s/^[^=]*=[ ]*$//
12373 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12374 fi # test -n "$CONFIG_FILES"
12376 # Set up the scripts for CONFIG_HEADERS section.
12377 # No need to generate them if there are no CONFIG_HEADERS.
12378 # This happens for instance with `./config.status Makefile'.
12379 if test -n "$CONFIG_HEADERS"; then
12380 cat >"$tmp/defines.awk" <<\_ACAWK ||
12381 BEGIN {
12382 _ACEOF
12384 # Transform confdefs.h into an awk script `defines.awk', embedded as
12385 # here-document in config.status, that substitutes the proper values into
12386 # config.h.in to produce config.h.
12388 # Create a delimiter string that does not exist in confdefs.h, to ease
12389 # handling of long lines.
12390 ac_delim='%!_!# '
12391 for ac_last_try in false false :; do
12392 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12393 if test -z "$ac_t"; then
12394 break
12395 elif $ac_last_try; then
12396 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
12397 else
12398 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12400 done
12402 # For the awk script, D is an array of macro values keyed by name,
12403 # likewise P contains macro parameters if any. Preserve backslash
12404 # newline sequences.
12406 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
12407 sed -n '
12408 s/.\{148\}/&'"$ac_delim"'/g
12409 t rset
12410 :rset
12411 s/^[ ]*#[ ]*define[ ][ ]*/ /
12412 t def
12414 :def
12415 s/\\$//
12416 t bsnl
12417 s/["\\]/\\&/g
12418 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12419 D["\1"]=" \3"/p
12420 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
12422 :bsnl
12423 s/["\\]/\\&/g
12424 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
12425 D["\1"]=" \3\\\\\\n"\\/p
12426 t cont
12427 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
12428 t cont
12430 :cont
12432 s/.\{148\}/&'"$ac_delim"'/g
12433 t clear
12434 :clear
12435 s/\\$//
12436 t bsnlc
12437 s/["\\]/\\&/g; s/^/"/; s/$/"/p
12439 :bsnlc
12440 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
12441 b cont
12442 ' <confdefs.h | sed '
12443 s/'"$ac_delim"'/"\\\
12444 "/g' >>$CONFIG_STATUS || ac_write_fail=1
12446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12447 for (key in D) D_is_set[key] = 1
12448 FS = "\a"
12450 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
12451 line = \$ 0
12452 split(line, arg, " ")
12453 if (arg[1] == "#") {
12454 defundef = arg[2]
12455 mac1 = arg[3]
12456 } else {
12457 defundef = substr(arg[1], 2)
12458 mac1 = arg[2]
12460 split(mac1, mac2, "(") #)
12461 macro = mac2[1]
12462 prefix = substr(line, 1, index(line, defundef) - 1)
12463 if (D_is_set[macro]) {
12464 # Preserve the white space surrounding the "#".
12465 print prefix "define", macro P[macro] D[macro]
12466 next
12467 } else {
12468 # Replace #undef with comments. This is necessary, for example,
12469 # in the case of _POSIX_SOURCE, which is predefined and required
12470 # on some systems where configure will not decide to define it.
12471 if (defundef == "undef") {
12472 print "/*", prefix defundef, macro, "*/"
12473 next
12477 { print }
12478 _ACAWK
12479 _ACEOF
12480 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12481 as_fn_error "could not setup config headers machinery" "$LINENO" 5
12482 fi # test -n "$CONFIG_HEADERS"
12485 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
12486 shift
12487 for ac_tag
12489 case $ac_tag in
12490 :[FHLC]) ac_mode=$ac_tag; continue;;
12491 esac
12492 case $ac_mode$ac_tag in
12493 :[FHL]*:*);;
12494 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
12495 :[FH]-) ac_tag=-:-;;
12496 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
12497 esac
12498 ac_save_IFS=$IFS
12499 IFS=:
12500 set x $ac_tag
12501 IFS=$ac_save_IFS
12502 shift
12503 ac_file=$1
12504 shift
12506 case $ac_mode in
12507 :L) ac_source=$1;;
12508 :[FH])
12509 ac_file_inputs=
12510 for ac_f
12512 case $ac_f in
12513 -) ac_f="$tmp/stdin";;
12514 *) # Look for the file first in the build tree, then in the source tree
12515 # (if the path is not absolute). The absolute path cannot be DOS-style,
12516 # because $ac_f cannot contain `:'.
12517 test -f "$ac_f" ||
12518 case $ac_f in
12519 [\\/$]*) false;;
12520 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
12521 esac ||
12522 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
12523 esac
12524 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
12525 as_fn_append ac_file_inputs " '$ac_f'"
12526 done
12528 # Let's still pretend it is `configure' which instantiates (i.e., don't
12529 # use $as_me), people would be surprised to read:
12530 # /* config.h. Generated by config.status. */
12531 configure_input='Generated from '`
12532 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
12533 `' by configure.'
12534 if test x"$ac_file" != x-; then
12535 configure_input="$ac_file. $configure_input"
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
12537 $as_echo "$as_me: creating $ac_file" >&6;}
12539 # Neutralize special characters interpreted by sed in replacement strings.
12540 case $configure_input in #(
12541 *\&* | *\|* | *\\* )
12542 ac_sed_conf_input=`$as_echo "$configure_input" |
12543 sed 's/[\\\\&|]/\\\\&/g'`;; #(
12544 *) ac_sed_conf_input=$configure_input;;
12545 esac
12547 case $ac_tag in
12548 *:-:* | *:-) cat >"$tmp/stdin" \
12549 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
12550 esac
12552 esac
12554 ac_dir=`$as_dirname -- "$ac_file" ||
12555 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12556 X"$ac_file" : 'X\(//\)[^/]' \| \
12557 X"$ac_file" : 'X\(//\)$' \| \
12558 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
12559 $as_echo X"$ac_file" |
12560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12561 s//\1/
12564 /^X\(\/\/\)[^/].*/{
12565 s//\1/
12568 /^X\(\/\/\)$/{
12569 s//\1/
12572 /^X\(\/\).*/{
12573 s//\1/
12576 s/.*/./; q'`
12577 as_dir="$ac_dir"; as_fn_mkdir_p
12578 ac_builddir=.
12580 case "$ac_dir" in
12581 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
12583 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
12584 # A ".." for each directory in $ac_dir_suffix.
12585 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
12586 case $ac_top_builddir_sub in
12587 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
12588 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
12589 esac ;;
12590 esac
12591 ac_abs_top_builddir=$ac_pwd
12592 ac_abs_builddir=$ac_pwd$ac_dir_suffix
12593 # for backward compatibility:
12594 ac_top_builddir=$ac_top_build_prefix
12596 case $srcdir in
12597 .) # We are building in place.
12598 ac_srcdir=.
12599 ac_top_srcdir=$ac_top_builddir_sub
12600 ac_abs_top_srcdir=$ac_pwd ;;
12601 [\\/]* | ?:[\\/]* ) # Absolute name.
12602 ac_srcdir=$srcdir$ac_dir_suffix;
12603 ac_top_srcdir=$srcdir
12604 ac_abs_top_srcdir=$srcdir ;;
12605 *) # Relative name.
12606 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
12607 ac_top_srcdir=$ac_top_build_prefix$srcdir
12608 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
12609 esac
12610 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
12613 case $ac_mode in
12616 # CONFIG_FILE
12619 case $INSTALL in
12620 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
12621 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
12622 esac
12623 ac_MKDIR_P=$MKDIR_P
12624 case $MKDIR_P in
12625 [\\/$]* | ?:[\\/]* ) ;;
12626 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
12627 esac
12628 _ACEOF
12630 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12631 # If the template does not know about datarootdir, expand it.
12632 # FIXME: This hack should be removed a few years after 2.60.
12633 ac_datarootdir_hack=; ac_datarootdir_seen=
12634 ac_sed_dataroot='
12635 /datarootdir/ {
12639 /@datadir@/p
12640 /@docdir@/p
12641 /@infodir@/p
12642 /@localedir@/p
12643 /@mandir@/p'
12644 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
12645 *datarootdir*) ac_datarootdir_seen=yes;;
12646 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
12648 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
12649 _ACEOF
12650 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12651 ac_datarootdir_hack='
12652 s&@datadir@&$datadir&g
12653 s&@docdir@&$docdir&g
12654 s&@infodir@&$infodir&g
12655 s&@localedir@&$localedir&g
12656 s&@mandir@&$mandir&g
12657 s&\\\${datarootdir}&$datarootdir&g' ;;
12658 esac
12659 _ACEOF
12661 # Neutralize VPATH when `$srcdir' = `.'.
12662 # Shell code in configure.ac might set extrasub.
12663 # FIXME: do we really want to maintain this feature?
12664 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12665 ac_sed_extra="$ac_vpsub
12666 $extrasub
12667 _ACEOF
12668 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12670 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
12671 s|@configure_input@|$ac_sed_conf_input|;t t
12672 s&@top_builddir@&$ac_top_builddir_sub&;t t
12673 s&@top_build_prefix@&$ac_top_build_prefix&;t t
12674 s&@srcdir@&$ac_srcdir&;t t
12675 s&@abs_srcdir@&$ac_abs_srcdir&;t t
12676 s&@top_srcdir@&$ac_top_srcdir&;t t
12677 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
12678 s&@builddir@&$ac_builddir&;t t
12679 s&@abs_builddir@&$ac_abs_builddir&;t t
12680 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
12681 s&@INSTALL@&$ac_INSTALL&;t t
12682 s&@MKDIR_P@&$ac_MKDIR_P&;t t
12683 $ac_datarootdir_hack
12685 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
12686 || as_fn_error "could not create $ac_file" "$LINENO" 5
12688 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
12689 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
12690 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12692 which seems to be undefined. Please make sure it is defined." >&5
12693 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
12694 which seems to be undefined. Please make sure it is defined." >&2;}
12696 rm -f "$tmp/stdin"
12697 case $ac_file in
12698 -) cat "$tmp/out" && rm -f "$tmp/out";;
12699 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
12700 esac \
12701 || as_fn_error "could not create $ac_file" "$LINENO" 5
12705 # CONFIG_HEADER
12707 if test x"$ac_file" != x-; then
12709 $as_echo "/* $configure_input */" \
12710 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
12711 } >"$tmp/config.h" \
12712 || as_fn_error "could not create $ac_file" "$LINENO" 5
12713 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
12715 $as_echo "$as_me: $ac_file is unchanged" >&6;}
12716 else
12717 rm -f "$ac_file"
12718 mv "$tmp/config.h" "$ac_file" \
12719 || as_fn_error "could not create $ac_file" "$LINENO" 5
12721 else
12722 $as_echo "/* $configure_input */" \
12723 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
12724 || as_fn_error "could not create -" "$LINENO" 5
12726 # Compute "$ac_file"'s index in $config_headers.
12727 _am_arg="$ac_file"
12728 _am_stamp_count=1
12729 for _am_header in $config_headers :; do
12730 case $_am_header in
12731 $_am_arg | $_am_arg:* )
12732 break ;;
12734 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
12735 esac
12736 done
12737 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
12738 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12739 X"$_am_arg" : 'X\(//\)[^/]' \| \
12740 X"$_am_arg" : 'X\(//\)$' \| \
12741 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
12742 $as_echo X"$_am_arg" |
12743 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12744 s//\1/
12747 /^X\(\/\/\)[^/].*/{
12748 s//\1/
12751 /^X\(\/\/\)$/{
12752 s//\1/
12755 /^X\(\/\).*/{
12756 s//\1/
12759 s/.*/./; q'`/stamp-h$_am_stamp_count
12762 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
12763 $as_echo "$as_me: executing $ac_file commands" >&6;}
12765 esac
12768 case $ac_file$ac_mode in
12769 "default-1":C)
12770 # Only add multilib support code if we just rebuilt the top-level
12771 # Makefile.
12772 case " $CONFIG_FILES " in
12773 *" Makefile "*)
12774 ac_file=Makefile . ${multi_basedir}/config-ml.in
12776 esac ;;
12777 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
12778 # Autoconf 2.62 quotes --file arguments for eval, but not when files
12779 # are listed without --file. Let's play safe and only enable the eval
12780 # if we detect the quoting.
12781 case $CONFIG_FILES in
12782 *\'*) eval set x "$CONFIG_FILES" ;;
12783 *) set x $CONFIG_FILES ;;
12784 esac
12785 shift
12786 for mf
12788 # Strip MF so we end up with the name of the file.
12789 mf=`echo "$mf" | sed -e 's/:.*$//'`
12790 # Check whether this is an Automake generated Makefile or not.
12791 # We used to match only the files named `Makefile.in', but
12792 # some people rename them; so instead we look at the file content.
12793 # Grep'ing the first line is not enough: some people post-process
12794 # each Makefile.in and add a new line on top of each file to say so.
12795 # Grep'ing the whole file is not good either: AIX grep has a line
12796 # limit of 2048, but all sed's we know have understand at least 4000.
12797 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
12798 dirpart=`$as_dirname -- "$mf" ||
12799 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12800 X"$mf" : 'X\(//\)[^/]' \| \
12801 X"$mf" : 'X\(//\)$' \| \
12802 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
12803 $as_echo X"$mf" |
12804 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12805 s//\1/
12808 /^X\(\/\/\)[^/].*/{
12809 s//\1/
12812 /^X\(\/\/\)$/{
12813 s//\1/
12816 /^X\(\/\).*/{
12817 s//\1/
12820 s/.*/./; q'`
12821 else
12822 continue
12824 # Extract the definition of DEPDIR, am__include, and am__quote
12825 # from the Makefile without running `make'.
12826 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
12827 test -z "$DEPDIR" && continue
12828 am__include=`sed -n 's/^am__include = //p' < "$mf"`
12829 test -z "am__include" && continue
12830 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
12831 # When using ansi2knr, U may be empty or an underscore; expand it
12832 U=`sed -n 's/^U = //p' < "$mf"`
12833 # Find all dependency output files, they are included files with
12834 # $(DEPDIR) in their names. We invoke sed twice because it is the
12835 # simplest approach to changing $(DEPDIR) to its actual value in the
12836 # expansion.
12837 for file in `sed -n "
12838 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
12839 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
12840 # Make sure the directory exists.
12841 test -f "$dirpart/$file" && continue
12842 fdir=`$as_dirname -- "$file" ||
12843 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12844 X"$file" : 'X\(//\)[^/]' \| \
12845 X"$file" : 'X\(//\)$' \| \
12846 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
12847 $as_echo X"$file" |
12848 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12849 s//\1/
12852 /^X\(\/\/\)[^/].*/{
12853 s//\1/
12856 /^X\(\/\/\)$/{
12857 s//\1/
12860 /^X\(\/\).*/{
12861 s//\1/
12864 s/.*/./; q'`
12865 as_dir=$dirpart/$fdir; as_fn_mkdir_p
12866 # echo "creating $dirpart/$file"
12867 echo '# dummy' > "$dirpart/$file"
12868 done
12869 done
12872 "libtool":C)
12874 # See if we are running on zsh, and set the options which allow our
12875 # commands through without removal of \ escapes.
12876 if test -n "${ZSH_VERSION+set}" ; then
12877 setopt NO_GLOB_SUBST
12880 cfgfile="${ofile}T"
12881 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
12882 $RM "$cfgfile"
12884 cat <<_LT_EOF >> "$cfgfile"
12885 #! $SHELL
12887 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
12888 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
12889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12890 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
12892 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
12893 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
12894 # Written by Gordon Matzigkeit, 1996
12896 # This file is part of GNU Libtool.
12898 # GNU Libtool is free software; you can redistribute it and/or
12899 # modify it under the terms of the GNU General Public License as
12900 # published by the Free Software Foundation; either version 2 of
12901 # the License, or (at your option) any later version.
12903 # As a special exception to the GNU General Public License,
12904 # if you distribute this file as part of a program or library that
12905 # is built using GNU Libtool, you may include this file under the
12906 # same distribution terms that you use for the rest of that program.
12908 # GNU Libtool is distributed in the hope that it will be useful,
12909 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12910 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12911 # GNU General Public License for more details.
12913 # You should have received a copy of the GNU General Public License
12914 # along with GNU Libtool; see the file COPYING. If not, a copy
12915 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
12916 # obtained by writing to the Free Software Foundation, Inc.,
12917 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
12920 # The names of the tagged configurations supported by this script.
12921 available_tags=""
12923 # ### BEGIN LIBTOOL CONFIG
12925 # Which release of libtool.m4 was used?
12926 macro_version=$macro_version
12927 macro_revision=$macro_revision
12929 # Whether or not to build shared libraries.
12930 build_libtool_libs=$enable_shared
12932 # Whether or not to build static libraries.
12933 build_old_libs=$enable_static
12935 # What type of objects to build.
12936 pic_mode=$pic_mode
12938 # Whether or not to optimize for fast installation.
12939 fast_install=$enable_fast_install
12941 # Shell to use when invoking shell scripts.
12942 SHELL=$lt_SHELL
12944 # An echo program that protects backslashes.
12945 ECHO=$lt_ECHO
12947 # The host system.
12948 host_alias=$host_alias
12949 host=$host
12950 host_os=$host_os
12952 # The build system.
12953 build_alias=$build_alias
12954 build=$build
12955 build_os=$build_os
12957 # A sed program that does not truncate output.
12958 SED=$lt_SED
12960 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
12961 Xsed="\$SED -e 1s/^X//"
12963 # A grep program that handles long lines.
12964 GREP=$lt_GREP
12966 # An ERE matcher.
12967 EGREP=$lt_EGREP
12969 # A literal string matcher.
12970 FGREP=$lt_FGREP
12972 # A BSD- or MS-compatible name lister.
12973 NM=$lt_NM
12975 # Whether we need soft or hard links.
12976 LN_S=$lt_LN_S
12978 # What is the maximum length of a command?
12979 max_cmd_len=$max_cmd_len
12981 # Object file suffix (normally "o").
12982 objext=$ac_objext
12984 # Executable file suffix (normally "").
12985 exeext=$exeext
12987 # whether the shell understands "unset".
12988 lt_unset=$lt_unset
12990 # turn spaces into newlines.
12991 SP2NL=$lt_lt_SP2NL
12993 # turn newlines into spaces.
12994 NL2SP=$lt_lt_NL2SP
12996 # An object symbol dumper.
12997 OBJDUMP=$lt_OBJDUMP
12999 # Method to check whether dependent libraries are shared objects.
13000 deplibs_check_method=$lt_deplibs_check_method
13002 # Command to use when deplibs_check_method == "file_magic".
13003 file_magic_cmd=$lt_file_magic_cmd
13005 # The archiver.
13006 AR=$lt_AR
13007 AR_FLAGS=$lt_AR_FLAGS
13009 # A symbol stripping program.
13010 STRIP=$lt_STRIP
13012 # Commands used to install an old-style archive.
13013 RANLIB=$lt_RANLIB
13014 old_postinstall_cmds=$lt_old_postinstall_cmds
13015 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13017 # Whether to use a lock for old archive extraction.
13018 lock_old_archive_extraction=$lock_old_archive_extraction
13020 # A C compiler.
13021 LTCC=$lt_CC
13023 # LTCC compiler flags.
13024 LTCFLAGS=$lt_CFLAGS
13026 # Take the output of nm and produce a listing of raw symbols and C names.
13027 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13029 # Transform the output of nm in a proper C declaration.
13030 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13032 # Transform the output of nm in a C name address pair.
13033 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13035 # Transform the output of nm in a C name address pair when lib prefix is needed.
13036 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13038 # The name of the directory that contains temporary libtool files.
13039 objdir=$objdir
13041 # Used to examine libraries when file_magic_cmd begins with "file".
13042 MAGIC_CMD=$MAGIC_CMD
13044 # Must we lock files when doing compilation?
13045 need_locks=$lt_need_locks
13047 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13048 DSYMUTIL=$lt_DSYMUTIL
13050 # Tool to change global to local symbols on Mac OS X.
13051 NMEDIT=$lt_NMEDIT
13053 # Tool to manipulate fat objects and archives on Mac OS X.
13054 LIPO=$lt_LIPO
13056 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
13057 OTOOL=$lt_OTOOL
13059 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13060 OTOOL64=$lt_OTOOL64
13062 # Old archive suffix (normally "a").
13063 libext=$libext
13065 # Shared library suffix (normally ".so").
13066 shrext_cmds=$lt_shrext_cmds
13068 # The commands to extract the exported symbol list from a shared archive.
13069 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13071 # Variables whose values should be saved in libtool wrapper scripts and
13072 # restored at link time.
13073 variables_saved_for_relink=$lt_variables_saved_for_relink
13075 # Do we need the "lib" prefix for modules?
13076 need_lib_prefix=$need_lib_prefix
13078 # Do we need a version for libraries?
13079 need_version=$need_version
13081 # Library versioning type.
13082 version_type=$version_type
13084 # Shared library runtime path variable.
13085 runpath_var=$runpath_var
13087 # Shared library path variable.
13088 shlibpath_var=$shlibpath_var
13090 # Is shlibpath searched before the hard-coded library search path?
13091 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13093 # Format of library name prefix.
13094 libname_spec=$lt_libname_spec
13096 # List of archive names. First name is the real one, the rest are links.
13097 # The last name is the one that the linker finds with -lNAME
13098 library_names_spec=$lt_library_names_spec
13100 # The coded name of the library, if different from the real name.
13101 soname_spec=$lt_soname_spec
13103 # Permission mode override for installation of shared libraries.
13104 install_override_mode=$lt_install_override_mode
13106 # Command to use after installation of a shared archive.
13107 postinstall_cmds=$lt_postinstall_cmds
13109 # Command to use after uninstallation of a shared archive.
13110 postuninstall_cmds=$lt_postuninstall_cmds
13112 # Commands used to finish a libtool library installation in a directory.
13113 finish_cmds=$lt_finish_cmds
13115 # As "finish_cmds", except a single script fragment to be evaled but
13116 # not shown.
13117 finish_eval=$lt_finish_eval
13119 # Whether we should hardcode library paths into libraries.
13120 hardcode_into_libs=$hardcode_into_libs
13122 # Compile-time system search path for libraries.
13123 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13125 # Run-time system search path for libraries.
13126 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13128 # Whether dlopen is supported.
13129 dlopen_support=$enable_dlopen
13131 # Whether dlopen of programs is supported.
13132 dlopen_self=$enable_dlopen_self
13134 # Whether dlopen of statically linked programs is supported.
13135 dlopen_self_static=$enable_dlopen_self_static
13137 # Commands to strip libraries.
13138 old_striplib=$lt_old_striplib
13139 striplib=$lt_striplib
13142 # The linker used to build libraries.
13143 LD=$lt_LD
13145 # How to create reloadable object files.
13146 reload_flag=$lt_reload_flag
13147 reload_cmds=$lt_reload_cmds
13149 # Commands used to build an old-style archive.
13150 old_archive_cmds=$lt_old_archive_cmds
13152 # A language specific compiler.
13153 CC=$lt_compiler
13155 # Is the compiler the GNU compiler?
13156 with_gcc=$GCC
13158 # Compiler flag to turn off builtin functions.
13159 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13161 # How to pass a linker flag through the compiler.
13162 wl=$lt_lt_prog_compiler_wl
13164 # Additional compiler flags for building library objects.
13165 pic_flag=$lt_lt_prog_compiler_pic
13167 # Compiler flag to prevent dynamic linking.
13168 link_static_flag=$lt_lt_prog_compiler_static
13170 # Does compiler simultaneously support -c and -o options?
13171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13173 # Whether or not to add -lc for building shared libraries.
13174 build_libtool_need_lc=$archive_cmds_need_lc
13176 # Whether or not to disallow shared libs when runtime libs are static.
13177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13179 # Compiler flag to allow reflexive dlopens.
13180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13182 # Compiler flag to generate shared objects directly from archives.
13183 whole_archive_flag_spec=$lt_whole_archive_flag_spec
13185 # Whether the compiler copes with passing no objects directly.
13186 compiler_needs_object=$lt_compiler_needs_object
13188 # Create an old-style archive from a shared archive.
13189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13191 # Create a temporary old-style archive to link instead of a shared archive.
13192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13194 # Commands used to build a shared archive.
13195 archive_cmds=$lt_archive_cmds
13196 archive_expsym_cmds=$lt_archive_expsym_cmds
13198 # Commands used to build a loadable module if different from building
13199 # a shared archive.
13200 module_cmds=$lt_module_cmds
13201 module_expsym_cmds=$lt_module_expsym_cmds
13203 # Whether we are building with GNU ld or not.
13204 with_gnu_ld=$lt_with_gnu_ld
13206 # Flag that allows shared libraries with undefined symbols to be built.
13207 allow_undefined_flag=$lt_allow_undefined_flag
13209 # Flag that enforces no undefined symbols.
13210 no_undefined_flag=$lt_no_undefined_flag
13212 # Flag to hardcode \$libdir into a binary during linking.
13213 # This must work even if \$libdir does not exist
13214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13216 # If ld is used when linking, flag to hardcode \$libdir into a binary
13217 # during linking. This must work even if \$libdir does not exist.
13218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13220 # Whether we need a single "-rpath" flag with a separated argument.
13221 hardcode_libdir_separator=$lt_hardcode_libdir_separator
13223 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13224 # DIR into the resulting binary.
13225 hardcode_direct=$hardcode_direct
13227 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13228 # DIR into the resulting binary and the resulting library dependency is
13229 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13230 # library is relocated.
13231 hardcode_direct_absolute=$hardcode_direct_absolute
13233 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13234 # into the resulting binary.
13235 hardcode_minus_L=$hardcode_minus_L
13237 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13238 # into the resulting binary.
13239 hardcode_shlibpath_var=$hardcode_shlibpath_var
13241 # Set to "yes" if building a shared library automatically hardcodes DIR
13242 # into the library and all subsequent libraries and executables linked
13243 # against it.
13244 hardcode_automatic=$hardcode_automatic
13246 # Set to yes if linker adds runtime paths of dependent libraries
13247 # to runtime path list.
13248 inherit_rpath=$inherit_rpath
13250 # Whether libtool must link a program against all its dependency libraries.
13251 link_all_deplibs=$link_all_deplibs
13253 # Fix the shell variable \$srcfile for the compiler.
13254 fix_srcfile_path=$lt_fix_srcfile_path
13256 # Set to "yes" if exported symbols are required.
13257 always_export_symbols=$always_export_symbols
13259 # The commands to list exported symbols.
13260 export_symbols_cmds=$lt_export_symbols_cmds
13262 # Symbols that should not be listed in the preloaded symbols.
13263 exclude_expsyms=$lt_exclude_expsyms
13265 # Symbols that must always be exported.
13266 include_expsyms=$lt_include_expsyms
13268 # Commands necessary for linking programs (against libraries) with templates.
13269 prelink_cmds=$lt_prelink_cmds
13271 # Specify filename containing input files.
13272 file_list_spec=$lt_file_list_spec
13274 # How to hardcode a shared library path into an executable.
13275 hardcode_action=$hardcode_action
13277 # ### END LIBTOOL CONFIG
13279 _LT_EOF
13281 case $host_os in
13282 aix3*)
13283 cat <<\_LT_EOF >> "$cfgfile"
13284 # AIX sometimes has problems with the GCC collect2 program. For some
13285 # reason, if we set the COLLECT_NAMES environment variable, the problems
13286 # vanish in a puff of smoke.
13287 if test "X${COLLECT_NAMES+set}" != Xset; then
13288 COLLECT_NAMES=
13289 export COLLECT_NAMES
13291 _LT_EOF
13293 esac
13296 ltmain="$ac_aux_dir/ltmain.sh"
13299 # We use sed instead of cat because bash on DJGPP gets confused if
13300 # if finds mixed CR/LF and LF-only lines. Since sed operates in
13301 # text mode, it properly converts lines to CR/LF. This bash problem
13302 # is reportedly fixed, but why not run on old versions too?
13303 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13304 || (rm -f "$cfgfile"; exit 1)
13306 case $xsi_shell in
13307 yes)
13308 cat << \_LT_EOF >> "$cfgfile"
13310 # func_dirname file append nondir_replacement
13311 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13312 # otherwise set result to NONDIR_REPLACEMENT.
13313 func_dirname ()
13315 case ${1} in
13316 */*) func_dirname_result="${1%/*}${2}" ;;
13317 * ) func_dirname_result="${3}" ;;
13318 esac
13321 # func_basename file
13322 func_basename ()
13324 func_basename_result="${1##*/}"
13327 # func_dirname_and_basename file append nondir_replacement
13328 # perform func_basename and func_dirname in a single function
13329 # call:
13330 # dirname: Compute the dirname of FILE. If nonempty,
13331 # add APPEND to the result, otherwise set result
13332 # to NONDIR_REPLACEMENT.
13333 # value returned in "$func_dirname_result"
13334 # basename: Compute filename of FILE.
13335 # value retuned in "$func_basename_result"
13336 # Implementation must be kept synchronized with func_dirname
13337 # and func_basename. For efficiency, we do not delegate to
13338 # those functions but instead duplicate the functionality here.
13339 func_dirname_and_basename ()
13341 case ${1} in
13342 */*) func_dirname_result="${1%/*}${2}" ;;
13343 * ) func_dirname_result="${3}" ;;
13344 esac
13345 func_basename_result="${1##*/}"
13348 # func_stripname prefix suffix name
13349 # strip PREFIX and SUFFIX off of NAME.
13350 # PREFIX and SUFFIX must not contain globbing or regex special
13351 # characters, hashes, percent signs, but SUFFIX may contain a leading
13352 # dot (in which case that matches only a dot).
13353 func_stripname ()
13355 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13356 # positional parameters, so assign one to ordinary parameter first.
13357 func_stripname_result=${3}
13358 func_stripname_result=${func_stripname_result#"${1}"}
13359 func_stripname_result=${func_stripname_result%"${2}"}
13362 # func_opt_split
13363 func_opt_split ()
13365 func_opt_split_opt=${1%%=*}
13366 func_opt_split_arg=${1#*=}
13369 # func_lo2o object
13370 func_lo2o ()
13372 case ${1} in
13373 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13374 *) func_lo2o_result=${1} ;;
13375 esac
13378 # func_xform libobj-or-source
13379 func_xform ()
13381 func_xform_result=${1%.*}.lo
13384 # func_arith arithmetic-term...
13385 func_arith ()
13387 func_arith_result=$(( $* ))
13390 # func_len string
13391 # STRING may not start with a hyphen.
13392 func_len ()
13394 func_len_result=${#1}
13397 _LT_EOF
13399 *) # Bourne compatible functions.
13400 cat << \_LT_EOF >> "$cfgfile"
13402 # func_dirname file append nondir_replacement
13403 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
13404 # otherwise set result to NONDIR_REPLACEMENT.
13405 func_dirname ()
13407 # Extract subdirectory from the argument.
13408 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
13409 if test "X$func_dirname_result" = "X${1}"; then
13410 func_dirname_result="${3}"
13411 else
13412 func_dirname_result="$func_dirname_result${2}"
13416 # func_basename file
13417 func_basename ()
13419 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
13423 # func_stripname prefix suffix name
13424 # strip PREFIX and SUFFIX off of NAME.
13425 # PREFIX and SUFFIX must not contain globbing or regex special
13426 # characters, hashes, percent signs, but SUFFIX may contain a leading
13427 # dot (in which case that matches only a dot).
13428 # func_strip_suffix prefix name
13429 func_stripname ()
13431 case ${2} in
13432 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13433 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13434 esac
13437 # sed scripts:
13438 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13439 my_sed_long_arg='1s/^-[^=]*=//'
13441 # func_opt_split
13442 func_opt_split ()
13444 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
13445 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
13448 # func_lo2o object
13449 func_lo2o ()
13451 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
13454 # func_xform libobj-or-source
13455 func_xform ()
13457 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
13460 # func_arith arithmetic-term...
13461 func_arith ()
13463 func_arith_result=`expr "$@"`
13466 # func_len string
13467 # STRING may not start with a hyphen.
13468 func_len ()
13470 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13473 _LT_EOF
13474 esac
13476 case $lt_shell_append in
13477 yes)
13478 cat << \_LT_EOF >> "$cfgfile"
13480 # func_append var value
13481 # Append VALUE to the end of shell variable VAR.
13482 func_append ()
13484 eval "$1+=\$2"
13486 _LT_EOF
13489 cat << \_LT_EOF >> "$cfgfile"
13491 # func_append var value
13492 # Append VALUE to the end of shell variable VAR.
13493 func_append ()
13495 eval "$1=\$$1\$2"
13498 _LT_EOF
13500 esac
13503 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13504 || (rm -f "$cfgfile"; exit 1)
13506 mv -f "$cfgfile" "$ofile" ||
13507 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13508 chmod +x "$ofile"
13512 esac
13513 done # for ac_tag
13516 as_fn_exit 0
13517 _ACEOF
13518 ac_clean_files=$ac_clean_files_save
13520 test $ac_write_fail = 0 ||
13521 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
13524 # configure is writing to config.log, and then calls config.status.
13525 # config.status does its own redirection, appending to config.log.
13526 # Unfortunately, on DOS this fails, as config.log is still kept open
13527 # by configure, so config.status won't be able to write to it; its
13528 # output is simply discarded. So we exec the FD to /dev/null,
13529 # effectively closing config.log, so it can be properly (re)opened and
13530 # appended to by config.status. When coming back to configure, we
13531 # need to make the FD available again.
13532 if test "$no_create" != yes; then
13533 ac_cs_success=:
13534 ac_config_status_args=
13535 test "$silent" = yes &&
13536 ac_config_status_args="$ac_config_status_args --quiet"
13537 exec 5>/dev/null
13538 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13539 exec 5>>config.log
13540 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
13541 # would make configure fail if this is the last instruction.
13542 $ac_cs_success || as_fn_exit $?
13544 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13546 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}