Daily bump.
[official-gcc.git] / libcilkrts / configure
blob31f848ec46cf7a70ae520af0e58e2eafa9b1cb81
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for Cilk Runtime Library 2.0.
5 # Report bugs to <cilk@intel.com>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and cilk@intel.com
240 $0: about your system, including any error possibly output
241 $0: before this message. Then install a modern shell, or
242 $0: manually run the script under such a shell if you do
243 $0: have one."
245 exit 1
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
263 { eval $1=; unset $1;}
265 as_unset=as_fn_unset
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
272 return $1
273 } # as_fn_set_status
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
280 set +e
281 as_fn_set_status $1
282 exit $1
283 } # as_fn_exit
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
291 case $as_dir in #(
292 -*) as_dir=./$as_dir;;
293 esac
294 test -d "$as_dir" || eval $as_mkdir_p || {
295 as_dirs=
296 while :; do
297 case $as_dir in #(
298 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299 *) as_qdir=$as_dir;;
300 esac
301 as_dirs="'$as_qdir' $as_dirs"
302 as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304 X"$as_dir" : 'X\(//\)[^/]' \| \
305 X"$as_dir" : 'X\(//\)$' \| \
306 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309 s//\1/
312 /^X\(\/\/\)[^/].*/{
313 s//\1/
316 /^X\(\/\/\)$/{
317 s//\1/
320 /^X\(\/\).*/{
321 s//\1/
324 s/.*/./; q'`
325 test -d "$as_dir" && break
326 done
327 test -z "$as_dirs" || eval "mkdir $as_dirs"
328 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339 eval 'as_fn_append ()
341 eval $1+=\$2
343 else
344 as_fn_append ()
346 eval $1=\$$1\$2
348 fi # as_fn_append
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356 eval 'as_fn_arith ()
358 as_val=$(( $* ))
360 else
361 as_fn_arith ()
363 as_val=`expr "$@" || test $? -eq 1`
365 fi # as_fn_arith
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
375 as_status=$?; test $as_status -eq 0 && as_status=1
376 if test "$3"; then
377 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
380 $as_echo "$as_me: error: $1" >&2
381 as_fn_exit $as_status
382 } # as_fn_error
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385 test "X`expr 00001 : '.*\(...\)'`" = X001; then
386 as_expr=expr
387 else
388 as_expr=false
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392 as_basename=basename
393 else
394 as_basename=false
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398 as_dirname=dirname
399 else
400 as_dirname=false
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405 X"$0" : 'X\(//\)$' \| \
406 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408 sed '/^.*\/\([^/][^/]*\)\/*$/{
409 s//\1/
412 /^X\/\(\/\/\)$/{
413 s//\1/
416 /^X\/\(\/\).*/{
417 s//\1/
420 s/.*/./; q'`
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
430 as_lineno_1=$LINENO as_lineno_1a=$LINENO
431 as_lineno_2=$LINENO as_lineno_2a=$LINENO
432 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
435 sed -n '
437 /[$]LINENO/=
438 ' <$as_myself |
439 sed '
440 s/[$]LINENO.*/&-/
441 t lineno
443 :lineno
445 :loop
446 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447 t loop
448 s/-\n.*//
449 ' >$as_me.lineno &&
450 chmod +x "$as_me.lineno" ||
451 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464 case `echo 'xy\c'` in
465 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 xy) ECHO_C='\c';;
467 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468 ECHO_T=' ';;
469 esac;;
471 ECHO_N='-n';;
472 esac
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476 rm -f conf$$.dir/conf$$.file
477 else
478 rm -f conf$$.dir
479 mkdir conf$$.dir 2>/dev/null
481 if (echo >conf$$.file) 2>/dev/null; then
482 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 as_ln_s='ln -s'
484 # ... but there are two gotchas:
485 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487 # In both cases, we have to default to `cp -p'.
488 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 as_ln_s='cp -p'
490 elif ln conf$$.file conf$$ 2>/dev/null; then
491 as_ln_s=ln
492 else
493 as_ln_s='cp -p'
495 else
496 as_ln_s='cp -p'
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
501 if mkdir -p . 2>/dev/null; then
502 as_mkdir_p='mkdir -p "$as_dir"'
503 else
504 test -d ./-p && rmdir ./-p
505 as_mkdir_p=false
508 if test -x / >/dev/null 2>&1; then
509 as_test_x='test -x'
510 else
511 if ls -dL / >/dev/null 2>&1; then
512 as_ls_L_option=L
513 else
514 as_ls_L_option=
516 as_test_x='
517 eval sh -c '\''
518 if test -d "$1"; then
519 test -d "$1/.";
520 else
521 case $1 in #(
522 -*)set "./$1";;
523 esac;
524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525 ???[sx]*):;;*)false;;esac;fi
526 '\'' sh
529 as_executable_p=$as_test_x
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 SHELL=${CONFIG_SHELL-/bin/sh}
540 exec 7<&0 </dev/null 6>&1
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 # Initializations.
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
559 # Identity of this package.
560 PACKAGE_NAME='Cilk Runtime Library'
561 PACKAGE_TARNAME='cilk-runtime-library'
562 PACKAGE_VERSION='2.0'
563 PACKAGE_STRING='Cilk Runtime Library 2.0'
564 PACKAGE_BUGREPORT='cilk@intel.com'
565 PACKAGE_URL=''
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #ifdef HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #ifdef HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #ifdef STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # ifdef HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #ifdef HAVE_STRING_H
585 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #ifdef HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #ifdef HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #ifdef HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #ifdef HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
603 ac_subst_vars='am__EXEEXT_FALSE
604 am__EXEEXT_TRUE
605 LTLIBOBJS
606 LIBOBJS
607 link_cilkrts
608 lt_cv_dlopen_libs
609 toolexeclibdir
610 toolexecdir
611 CXXCPP
612 OTOOL64
613 OTOOL
614 LIPO
615 NMEDIT
616 DSYMUTIL
617 RANLIB
619 OBJDUMP
620 LN_S
622 ac_ct_DUMPBIN
623 DUMPBIN
625 FGREP
627 LIBTOOL
628 MAC_LINKER_SCRIPT_FALSE
629 MAC_LINKER_SCRIPT_TRUE
630 LINUX_LINKER_SCRIPT_FALSE
631 LINUX_LINKER_SCRIPT_TRUE
632 config_dir
633 EGREP
634 GREP
636 ALLOCA
637 am__fastdepCXX_FALSE
638 am__fastdepCXX_TRUE
639 CXXDEPMODE
640 ac_ct_CXX
641 CXXFLAGS
643 am__fastdepCC_FALSE
644 am__fastdepCC_TRUE
645 CCDEPMODE
646 AMDEPBACKSLASH
647 AMDEP_FALSE
648 AMDEP_TRUE
649 am__quote
650 am__include
651 DEPDIR
652 OBJEXT
653 EXEEXT
654 ac_ct_CC
655 CPPFLAGS
656 LDFLAGS
657 CFLAGS
659 multi_basedir
660 MAINT
661 MAINTAINER_MODE_FALSE
662 MAINTAINER_MODE_TRUE
663 am__untar
664 am__tar
665 AMTAR
666 am__leading_dot
667 SET_MAKE
669 mkdir_p
670 MKDIR_P
671 INSTALL_STRIP_PROGRAM
672 STRIP
673 install_sh
674 MAKEINFO
675 AUTOHEADER
676 AUTOMAKE
677 AUTOCONF
678 ACLOCAL
679 VERSION
680 PACKAGE
681 CYGPATH_W
682 am__isrc
683 INSTALL_DATA
684 INSTALL_SCRIPT
685 INSTALL_PROGRAM
686 target_os
687 target_vendor
688 target_cpu
689 target
690 host_os
691 host_vendor
692 host_cpu
693 host
694 build_os
695 build_vendor
696 build_cpu
697 build
698 target_alias
699 host_alias
700 build_alias
701 LIBS
702 ECHO_T
703 ECHO_N
704 ECHO_C
705 DEFS
706 mandir
707 localedir
708 libdir
709 psdir
710 pdfdir
711 dvidir
712 htmldir
713 infodir
714 docdir
715 oldincludedir
716 includedir
717 localstatedir
718 sharedstatedir
719 sysconfdir
720 datadir
721 datarootdir
722 libexecdir
723 sbindir
724 bindir
725 program_transform_name
726 prefix
727 exec_prefix
728 PACKAGE_URL
729 PACKAGE_BUGREPORT
730 PACKAGE_STRING
731 PACKAGE_VERSION
732 PACKAGE_TARNAME
733 PACKAGE_NAME
734 PATH_SEPARATOR
735 SHELL'
736 ac_subst_files=''
737 ac_user_opts='
738 enable_option_checking
739 enable_maintainer_mode
740 enable_multilib
741 enable_dependency_tracking
742 enable_version_specific_runtime_libs
743 enable_shared
744 enable_static
745 with_pic
746 enable_fast_install
747 with_gnu_ld
748 enable_libtool_lock
750 ac_precious_vars='build_alias
751 host_alias
752 target_alias
754 CFLAGS
755 LDFLAGS
756 LIBS
757 CPPFLAGS
759 CXXFLAGS
762 CXXCPP'
765 # Initialize some variables set by options.
766 ac_init_help=
767 ac_init_version=false
768 ac_unrecognized_opts=
769 ac_unrecognized_sep=
770 # The variables have the same names as the options, with
771 # dashes changed to underlines.
772 cache_file=/dev/null
773 exec_prefix=NONE
774 no_create=
775 no_recursion=
776 prefix=NONE
777 program_prefix=NONE
778 program_suffix=NONE
779 program_transform_name=s,x,x,
780 silent=
781 site=
782 srcdir=
783 verbose=
784 x_includes=NONE
785 x_libraries=NONE
787 # Installation directory options.
788 # These are left unexpanded so users can "make install exec_prefix=/foo"
789 # and all the variables that are supposed to be based on exec_prefix
790 # by default will actually change.
791 # Use braces instead of parens because sh, perl, etc. also accept them.
792 # (The list follows the same order as the GNU Coding Standards.)
793 bindir='${exec_prefix}/bin'
794 sbindir='${exec_prefix}/sbin'
795 libexecdir='${exec_prefix}/libexec'
796 datarootdir='${prefix}/share'
797 datadir='${datarootdir}'
798 sysconfdir='${prefix}/etc'
799 sharedstatedir='${prefix}/com'
800 localstatedir='${prefix}/var'
801 includedir='${prefix}/include'
802 oldincludedir='/usr/include'
803 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
804 infodir='${datarootdir}/info'
805 htmldir='${docdir}'
806 dvidir='${docdir}'
807 pdfdir='${docdir}'
808 psdir='${docdir}'
809 libdir='${exec_prefix}/lib'
810 localedir='${datarootdir}/locale'
811 mandir='${datarootdir}/man'
813 ac_prev=
814 ac_dashdash=
815 for ac_option
817 # If the previous option needs an argument, assign it.
818 if test -n "$ac_prev"; then
819 eval $ac_prev=\$ac_option
820 ac_prev=
821 continue
824 case $ac_option in
825 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
826 *) ac_optarg=yes ;;
827 esac
829 # Accept the important Cygnus configure options, so we can diagnose typos.
831 case $ac_dashdash$ac_option in
833 ac_dashdash=yes ;;
835 -bindir | --bindir | --bindi | --bind | --bin | --bi)
836 ac_prev=bindir ;;
837 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
838 bindir=$ac_optarg ;;
840 -build | --build | --buil | --bui | --bu)
841 ac_prev=build_alias ;;
842 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
843 build_alias=$ac_optarg ;;
845 -cache-file | --cache-file | --cache-fil | --cache-fi \
846 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
847 ac_prev=cache_file ;;
848 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
849 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
850 cache_file=$ac_optarg ;;
852 --config-cache | -C)
853 cache_file=config.cache ;;
855 -datadir | --datadir | --datadi | --datad)
856 ac_prev=datadir ;;
857 -datadir=* | --datadir=* | --datadi=* | --datad=*)
858 datadir=$ac_optarg ;;
860 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
861 | --dataroo | --dataro | --datar)
862 ac_prev=datarootdir ;;
863 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
864 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
865 datarootdir=$ac_optarg ;;
867 -disable-* | --disable-*)
868 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
869 # Reject names that are not valid shell variable names.
870 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
871 as_fn_error "invalid feature name: $ac_useropt"
872 ac_useropt_orig=$ac_useropt
873 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
874 case $ac_user_opts in
876 "enable_$ac_useropt"
877 "*) ;;
878 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
879 ac_unrecognized_sep=', ';;
880 esac
881 eval enable_$ac_useropt=no ;;
883 -docdir | --docdir | --docdi | --doc | --do)
884 ac_prev=docdir ;;
885 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
886 docdir=$ac_optarg ;;
888 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
889 ac_prev=dvidir ;;
890 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
891 dvidir=$ac_optarg ;;
893 -enable-* | --enable-*)
894 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
895 # Reject names that are not valid shell variable names.
896 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
897 as_fn_error "invalid feature name: $ac_useropt"
898 ac_useropt_orig=$ac_useropt
899 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
900 case $ac_user_opts in
902 "enable_$ac_useropt"
903 "*) ;;
904 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
905 ac_unrecognized_sep=', ';;
906 esac
907 eval enable_$ac_useropt=\$ac_optarg ;;
909 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
910 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
911 | --exec | --exe | --ex)
912 ac_prev=exec_prefix ;;
913 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
914 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
915 | --exec=* | --exe=* | --ex=*)
916 exec_prefix=$ac_optarg ;;
918 -gas | --gas | --ga | --g)
919 # Obsolete; use --with-gas.
920 with_gas=yes ;;
922 -help | --help | --hel | --he | -h)
923 ac_init_help=long ;;
924 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
925 ac_init_help=recursive ;;
926 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
927 ac_init_help=short ;;
929 -host | --host | --hos | --ho)
930 ac_prev=host_alias ;;
931 -host=* | --host=* | --hos=* | --ho=*)
932 host_alias=$ac_optarg ;;
934 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
935 ac_prev=htmldir ;;
936 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
937 | --ht=*)
938 htmldir=$ac_optarg ;;
940 -includedir | --includedir | --includedi | --included | --include \
941 | --includ | --inclu | --incl | --inc)
942 ac_prev=includedir ;;
943 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
944 | --includ=* | --inclu=* | --incl=* | --inc=*)
945 includedir=$ac_optarg ;;
947 -infodir | --infodir | --infodi | --infod | --info | --inf)
948 ac_prev=infodir ;;
949 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
950 infodir=$ac_optarg ;;
952 -libdir | --libdir | --libdi | --libd)
953 ac_prev=libdir ;;
954 -libdir=* | --libdir=* | --libdi=* | --libd=*)
955 libdir=$ac_optarg ;;
957 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
958 | --libexe | --libex | --libe)
959 ac_prev=libexecdir ;;
960 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
961 | --libexe=* | --libex=* | --libe=*)
962 libexecdir=$ac_optarg ;;
964 -localedir | --localedir | --localedi | --localed | --locale)
965 ac_prev=localedir ;;
966 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
967 localedir=$ac_optarg ;;
969 -localstatedir | --localstatedir | --localstatedi | --localstated \
970 | --localstate | --localstat | --localsta | --localst | --locals)
971 ac_prev=localstatedir ;;
972 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
973 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
974 localstatedir=$ac_optarg ;;
976 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
977 ac_prev=mandir ;;
978 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
979 mandir=$ac_optarg ;;
981 -nfp | --nfp | --nf)
982 # Obsolete; use --without-fp.
983 with_fp=no ;;
985 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
986 | --no-cr | --no-c | -n)
987 no_create=yes ;;
989 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
990 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
991 no_recursion=yes ;;
993 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
994 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
995 | --oldin | --oldi | --old | --ol | --o)
996 ac_prev=oldincludedir ;;
997 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
998 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
999 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1000 oldincludedir=$ac_optarg ;;
1002 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1003 ac_prev=prefix ;;
1004 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1005 prefix=$ac_optarg ;;
1007 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1008 | --program-pre | --program-pr | --program-p)
1009 ac_prev=program_prefix ;;
1010 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1011 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1012 program_prefix=$ac_optarg ;;
1014 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1015 | --program-suf | --program-su | --program-s)
1016 ac_prev=program_suffix ;;
1017 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1018 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1019 program_suffix=$ac_optarg ;;
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 ac_prev=program_transform_name ;;
1029 -program-transform-name=* | --program-transform-name=* \
1030 | --program-transform-nam=* | --program-transform-na=* \
1031 | --program-transform-n=* | --program-transform-=* \
1032 | --program-transform=* | --program-transfor=* \
1033 | --program-transfo=* | --program-transf=* \
1034 | --program-trans=* | --program-tran=* \
1035 | --progr-tra=* | --program-tr=* | --program-t=*)
1036 program_transform_name=$ac_optarg ;;
1038 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1039 ac_prev=pdfdir ;;
1040 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1041 pdfdir=$ac_optarg ;;
1043 -psdir | --psdir | --psdi | --psd | --ps)
1044 ac_prev=psdir ;;
1045 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1046 psdir=$ac_optarg ;;
1048 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1049 | -silent | --silent | --silen | --sile | --sil)
1050 silent=yes ;;
1052 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1053 ac_prev=sbindir ;;
1054 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1055 | --sbi=* | --sb=*)
1056 sbindir=$ac_optarg ;;
1058 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1059 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1060 | --sharedst | --shareds | --shared | --share | --shar \
1061 | --sha | --sh)
1062 ac_prev=sharedstatedir ;;
1063 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1064 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1065 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1066 | --sha=* | --sh=*)
1067 sharedstatedir=$ac_optarg ;;
1069 -site | --site | --sit)
1070 ac_prev=site ;;
1071 -site=* | --site=* | --sit=*)
1072 site=$ac_optarg ;;
1074 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1075 ac_prev=srcdir ;;
1076 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1077 srcdir=$ac_optarg ;;
1079 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1080 | --syscon | --sysco | --sysc | --sys | --sy)
1081 ac_prev=sysconfdir ;;
1082 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1083 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1084 sysconfdir=$ac_optarg ;;
1086 -target | --target | --targe | --targ | --tar | --ta | --t)
1087 ac_prev=target_alias ;;
1088 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1089 target_alias=$ac_optarg ;;
1091 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1092 verbose=yes ;;
1094 -version | --version | --versio | --versi | --vers | -V)
1095 ac_init_version=: ;;
1097 -with-* | --with-*)
1098 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1101 as_fn_error "invalid package name: $ac_useropt"
1102 ac_useropt_orig=$ac_useropt
1103 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1104 case $ac_user_opts in
1106 "with_$ac_useropt"
1107 "*) ;;
1108 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1109 ac_unrecognized_sep=', ';;
1110 esac
1111 eval with_$ac_useropt=\$ac_optarg ;;
1113 -without-* | --without-*)
1114 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1117 as_fn_error "invalid package name: $ac_useropt"
1118 ac_useropt_orig=$ac_useropt
1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1122 "with_$ac_useropt"
1123 "*) ;;
1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1125 ac_unrecognized_sep=', ';;
1126 esac
1127 eval with_$ac_useropt=no ;;
1129 --x)
1130 # Obsolete; use --with-x.
1131 with_x=yes ;;
1133 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1134 | --x-incl | --x-inc | --x-in | --x-i)
1135 ac_prev=x_includes ;;
1136 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1137 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1138 x_includes=$ac_optarg ;;
1140 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1141 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1142 ac_prev=x_libraries ;;
1143 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1144 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1145 x_libraries=$ac_optarg ;;
1147 -*) as_fn_error "unrecognized option: \`$ac_option'
1148 Try \`$0 --help' for more information."
1151 *=*)
1152 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1153 # Reject names that are not valid shell variable names.
1154 case $ac_envvar in #(
1155 '' | [0-9]* | *[!_$as_cr_alnum]* )
1156 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1157 esac
1158 eval $ac_envvar=\$ac_optarg
1159 export $ac_envvar ;;
1162 # FIXME: should be removed in autoconf 3.0.
1163 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1164 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1165 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1166 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1169 esac
1170 done
1172 if test -n "$ac_prev"; then
1173 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1174 as_fn_error "missing argument to $ac_option"
1177 if test -n "$ac_unrecognized_opts"; then
1178 case $enable_option_checking in
1179 no) ;;
1180 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1181 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1182 esac
1185 # Check all directory arguments for consistency.
1186 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1187 datadir sysconfdir sharedstatedir localstatedir includedir \
1188 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1189 libdir localedir mandir
1191 eval ac_val=\$$ac_var
1192 # Remove trailing slashes.
1193 case $ac_val in
1194 */ )
1195 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1196 eval $ac_var=\$ac_val;;
1197 esac
1198 # Be sure to have absolute directory names.
1199 case $ac_val in
1200 [\\/$]* | ?:[\\/]* ) continue;;
1201 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1202 esac
1203 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1204 done
1206 # There might be people who depend on the old broken behavior: `$host'
1207 # used to hold the argument of --host etc.
1208 # FIXME: To remove some day.
1209 build=$build_alias
1210 host=$host_alias
1211 target=$target_alias
1213 # FIXME: To remove some day.
1214 if test "x$host_alias" != x; then
1215 if test "x$build_alias" = x; then
1216 cross_compiling=maybe
1217 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1218 If a cross compiler is detected then cross compile mode will be used." >&2
1219 elif test "x$build_alias" != "x$host_alias"; then
1220 cross_compiling=yes
1224 ac_tool_prefix=
1225 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1227 test "$silent" = yes && exec 6>/dev/null
1230 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1231 ac_ls_di=`ls -di .` &&
1232 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1233 as_fn_error "working directory cannot be determined"
1234 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1235 as_fn_error "pwd does not report name of working directory"
1238 # Find the source files, if location was not specified.
1239 if test -z "$srcdir"; then
1240 ac_srcdir_defaulted=yes
1241 # Try the directory containing this script, then the parent directory.
1242 ac_confdir=`$as_dirname -- "$as_myself" ||
1243 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1244 X"$as_myself" : 'X\(//\)[^/]' \| \
1245 X"$as_myself" : 'X\(//\)$' \| \
1246 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1247 $as_echo X"$as_myself" |
1248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1249 s//\1/
1252 /^X\(\/\/\)[^/].*/{
1253 s//\1/
1256 /^X\(\/\/\)$/{
1257 s//\1/
1260 /^X\(\/\).*/{
1261 s//\1/
1264 s/.*/./; q'`
1265 srcdir=$ac_confdir
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 srcdir=..
1269 else
1270 ac_srcdir_defaulted=no
1272 if test ! -r "$srcdir/$ac_unique_file"; then
1273 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1274 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1276 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1277 ac_abs_confdir=`(
1278 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1279 pwd)`
1280 # When building in place, set srcdir=.
1281 if test "$ac_abs_confdir" = "$ac_pwd"; then
1282 srcdir=.
1284 # Remove unnecessary trailing slashes from srcdir.
1285 # Double slashes in file names in object file debugging info
1286 # mess up M-x gdb in Emacs.
1287 case $srcdir in
1288 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1289 esac
1290 for ac_var in $ac_precious_vars; do
1291 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1292 eval ac_env_${ac_var}_value=\$${ac_var}
1293 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1294 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1295 done
1298 # Report the --help message.
1300 if test "$ac_init_help" = "long"; then
1301 # Omit some internal or obsolete options to make the list less imposing.
1302 # This message is too long to be a string in the A/UX 3.1 sh.
1303 cat <<_ACEOF
1304 \`configure' configures Cilk Runtime Library 2.0 to adapt to many kinds of systems.
1306 Usage: $0 [OPTION]... [VAR=VALUE]...
1308 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1309 VAR=VALUE. See below for descriptions of some of the useful variables.
1311 Defaults for the options are specified in brackets.
1313 Configuration:
1314 -h, --help display this help and exit
1315 --help=short display options specific to this package
1316 --help=recursive display the short help of all the included packages
1317 -V, --version display version information and exit
1318 -q, --quiet, --silent do not print \`checking...' messages
1319 --cache-file=FILE cache test results in FILE [disabled]
1320 -C, --config-cache alias for \`--cache-file=config.cache'
1321 -n, --no-create do not create output files
1322 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1324 Installation directories:
1325 --prefix=PREFIX install architecture-independent files in PREFIX
1326 [$ac_default_prefix]
1327 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1328 [PREFIX]
1330 By default, \`make install' will install all the files in
1331 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1332 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1333 for instance \`--prefix=\$HOME'.
1335 For better control, use the options below.
1337 Fine tuning of the installation directories:
1338 --bindir=DIR user executables [EPREFIX/bin]
1339 --sbindir=DIR system admin executables [EPREFIX/sbin]
1340 --libexecdir=DIR program executables [EPREFIX/libexec]
1341 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1342 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1343 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1344 --libdir=DIR object code libraries [EPREFIX/lib]
1345 --includedir=DIR C header files [PREFIX/include]
1346 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1347 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1348 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1349 --infodir=DIR info documentation [DATAROOTDIR/info]
1350 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1351 --mandir=DIR man documentation [DATAROOTDIR/man]
1352 --docdir=DIR documentation root
1353 [DATAROOTDIR/doc/cilk-runtime-library]
1354 --htmldir=DIR html documentation [DOCDIR]
1355 --dvidir=DIR dvi documentation [DOCDIR]
1356 --pdfdir=DIR pdf documentation [DOCDIR]
1357 --psdir=DIR ps documentation [DOCDIR]
1358 _ACEOF
1360 cat <<\_ACEOF
1362 Program names:
1363 --program-prefix=PREFIX prepend PREFIX to installed program names
1364 --program-suffix=SUFFIX append SUFFIX to installed program names
1365 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1367 System types:
1368 --build=BUILD configure for building on BUILD [guessed]
1369 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1370 --target=TARGET configure for building compilers for TARGET [HOST]
1371 _ACEOF
1374 if test -n "$ac_init_help"; then
1375 case $ac_init_help in
1376 short | recursive ) echo "Configuration of Cilk Runtime Library 2.0:";;
1377 esac
1378 cat <<\_ACEOF
1380 Optional Features:
1381 --disable-option-checking ignore unrecognized --enable/--with options
1382 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1383 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1384 --enable-maintainer-mode enable make rules and dependencies not useful
1385 (and sometimes confusing) to the casual installer
1386 --enable-multilib build many library versions (default)
1387 --disable-dependency-tracking speeds up one-time build
1388 --enable-dependency-tracking do not reject slow dependency extractors
1389 --enable-version-specific-runtime-libs
1390 Specify that runtime libraries should be installed
1391 in a compi ler-specific directory
1392 --enable-shared[=PKGS] build shared libraries [default=yes]
1393 --enable-static[=PKGS] build static libraries [default=yes]
1394 --enable-fast-install[=PKGS]
1395 optimize for fast installation [default=yes]
1396 --disable-libtool-lock avoid locking (might break parallel builds)
1398 Optional Packages:
1399 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1400 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1401 --with-pic try to use only PIC/non-PIC objects [default=use
1402 both]
1403 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1405 Some influential environment variables:
1406 CC C compiler command
1407 CFLAGS C compiler flags
1408 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1409 nonstandard directory <lib dir>
1410 LIBS libraries to pass to the linker, e.g. -l<library>
1411 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1412 you have headers in a nonstandard directory <include dir>
1413 CXX C++ compiler command
1414 CXXFLAGS C++ compiler flags
1415 CPP C preprocessor
1416 CXXCPP C++ preprocessor
1418 Use these variables to override the choices made by `configure' or to help
1419 it to find libraries and programs with nonstandard names/locations.
1421 Report bugs to <cilk@intel.com>.
1422 _ACEOF
1423 ac_status=$?
1426 if test "$ac_init_help" = "recursive"; then
1427 # If there are subdirs, report their specific --help.
1428 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1429 test -d "$ac_dir" ||
1430 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1431 continue
1432 ac_builddir=.
1434 case "$ac_dir" in
1435 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1437 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1438 # A ".." for each directory in $ac_dir_suffix.
1439 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1440 case $ac_top_builddir_sub in
1441 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1442 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1443 esac ;;
1444 esac
1445 ac_abs_top_builddir=$ac_pwd
1446 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1447 # for backward compatibility:
1448 ac_top_builddir=$ac_top_build_prefix
1450 case $srcdir in
1451 .) # We are building in place.
1452 ac_srcdir=.
1453 ac_top_srcdir=$ac_top_builddir_sub
1454 ac_abs_top_srcdir=$ac_pwd ;;
1455 [\\/]* | ?:[\\/]* ) # Absolute name.
1456 ac_srcdir=$srcdir$ac_dir_suffix;
1457 ac_top_srcdir=$srcdir
1458 ac_abs_top_srcdir=$srcdir ;;
1459 *) # Relative name.
1460 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1461 ac_top_srcdir=$ac_top_build_prefix$srcdir
1462 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1463 esac
1464 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1466 cd "$ac_dir" || { ac_status=$?; continue; }
1467 # Check for guested configure.
1468 if test -f "$ac_srcdir/configure.gnu"; then
1469 echo &&
1470 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1471 elif test -f "$ac_srcdir/configure"; then
1472 echo &&
1473 $SHELL "$ac_srcdir/configure" --help=recursive
1474 else
1475 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1476 fi || ac_status=$?
1477 cd "$ac_pwd" || { ac_status=$?; break; }
1478 done
1481 test -n "$ac_init_help" && exit $ac_status
1482 if $ac_init_version; then
1483 cat <<\_ACEOF
1484 Cilk Runtime Library configure 2.0
1485 generated by GNU Autoconf 2.64
1487 Copyright (C) 2009 Free Software Foundation, Inc.
1488 This configure script is free software; the Free Software Foundation
1489 gives unlimited permission to copy, distribute and modify it.
1490 _ACEOF
1491 exit
1494 ## ------------------------ ##
1495 ## Autoconf initialization. ##
1496 ## ------------------------ ##
1498 # ac_fn_c_try_compile LINENO
1499 # --------------------------
1500 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1501 ac_fn_c_try_compile ()
1503 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1504 rm -f conftest.$ac_objext
1505 if { { ac_try="$ac_compile"
1506 case "(($ac_try" in
1507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1508 *) ac_try_echo=$ac_try;;
1509 esac
1510 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1511 $as_echo "$ac_try_echo"; } >&5
1512 (eval "$ac_compile") 2>conftest.err
1513 ac_status=$?
1514 if test -s conftest.err; then
1515 grep -v '^ *+' conftest.err >conftest.er1
1516 cat conftest.er1 >&5
1517 mv -f conftest.er1 conftest.err
1519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1520 test $ac_status = 0; } && {
1521 test -z "$ac_c_werror_flag" ||
1522 test ! -s conftest.err
1523 } && test -s conftest.$ac_objext; then :
1524 ac_retval=0
1525 else
1526 $as_echo "$as_me: failed program was:" >&5
1527 sed 's/^/| /' conftest.$ac_ext >&5
1529 ac_retval=1
1531 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1532 return $ac_retval
1534 } # ac_fn_c_try_compile
1536 # ac_fn_cxx_try_compile LINENO
1537 # ----------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_cxx_try_compile ()
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_cxx_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1567 ac_retval=1
1569 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1570 return $ac_retval
1572 } # ac_fn_cxx_try_compile
1574 # ac_fn_c_try_link LINENO
1575 # -----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_link ()
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext conftest$ac_exeext
1581 if { { ac_try="$ac_link"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest$ac_exeext && {
1600 test "$cross_compiling" = yes ||
1601 $as_test_x conftest$ac_exeext
1602 }; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1608 ac_retval=1
1610 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1611 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1612 # interfere with the next link command; also delete a directory that is
1613 # left behind by Apple's compiler. We do this before executing the actions.
1614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1616 return $ac_retval
1618 } # ac_fn_c_try_link
1620 # ac_fn_c_try_cpp LINENO
1621 # ----------------------
1622 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_cpp ()
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 if { { ac_try="$ac_cpp conftest.$ac_ext"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } >/dev/null && {
1642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 }; then :
1645 ac_retval=0
1646 else
1647 $as_echo "$as_me: failed program was:" >&5
1648 sed 's/^/| /' conftest.$ac_ext >&5
1650 ac_retval=1
1652 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1653 return $ac_retval
1655 } # ac_fn_c_try_cpp
1657 # ac_fn_c_check_func LINENO FUNC VAR
1658 # ----------------------------------
1659 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1660 ac_fn_c_check_func ()
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1664 $as_echo_n "checking for $2... " >&6; }
1665 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1666 $as_echo_n "(cached) " >&6
1667 else
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1670 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1671 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1672 #define $2 innocuous_$2
1674 /* System header to define __stub macros and hopefully few prototypes,
1675 which can conflict with char $2 (); below.
1676 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1677 <limits.h> exists even on freestanding compilers. */
1679 #ifdef __STDC__
1680 # include <limits.h>
1681 #else
1682 # include <assert.h>
1683 #endif
1685 #undef $2
1687 /* Override any GCC internal prototype to avoid an error.
1688 Use char because int might match the return type of a GCC
1689 builtin and then its argument prototype would still apply. */
1690 #ifdef __cplusplus
1691 extern "C"
1692 #endif
1693 char $2 ();
1694 /* The GNU C library defines this for functions which it implements
1695 to always fail with ENOSYS. Some functions are actually named
1696 something starting with __ and the normal name is an alias. */
1697 #if defined __stub_$2 || defined __stub___$2
1698 choke me
1699 #endif
1702 main ()
1704 return $2 ();
1706 return 0;
1708 _ACEOF
1709 if ac_fn_c_try_link "$LINENO"; then :
1710 eval "$3=yes"
1711 else
1712 eval "$3=no"
1714 rm -f core conftest.err conftest.$ac_objext \
1715 conftest$ac_exeext conftest.$ac_ext
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 } # ac_fn_c_check_func
1724 # ac_fn_c_try_run LINENO
1725 # ----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727 # that executables *can* be run.
1728 ac_fn_c_try_run ()
1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>&5
1739 ac_status=$?
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742 { { case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_try") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; }; }; then :
1752 ac_retval=0
1753 else
1754 $as_echo "$as_me: program exited with status $ac_status" >&5
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1758 ac_retval=$ac_status
1760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762 return $ac_retval
1764 } # ac_fn_c_try_run
1766 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1767 # -------------------------------------------------------
1768 # Tests whether HEADER exists and can be compiled using the include files in
1769 # INCLUDES, setting the cache variable VAR accordingly.
1770 ac_fn_c_check_header_compile ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774 $as_echo_n "checking for $2... " >&6; }
1775 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1776 $as_echo_n "(cached) " >&6
1777 else
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1781 #include <$2>
1782 _ACEOF
1783 if ac_fn_c_try_compile "$LINENO"; then :
1784 eval "$3=yes"
1785 else
1786 eval "$3=no"
1788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 } # ac_fn_c_check_header_compile
1797 # ac_fn_cxx_try_cpp LINENO
1798 # ------------------------
1799 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_cxx_try_cpp ()
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 if { { ac_try="$ac_cpp conftest.$ac_ext"
1804 case "(($ac_try" in
1805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1806 *) ac_try_echo=$ac_try;;
1807 esac
1808 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1809 $as_echo "$ac_try_echo"; } >&5
1810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1811 ac_status=$?
1812 if test -s conftest.err; then
1813 grep -v '^ *+' conftest.err >conftest.er1
1814 cat conftest.er1 >&5
1815 mv -f conftest.er1 conftest.err
1817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1818 test $ac_status = 0; } >/dev/null && {
1819 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1820 test ! -s conftest.err
1821 }; then :
1822 ac_retval=0
1823 else
1824 $as_echo "$as_me: failed program was:" >&5
1825 sed 's/^/| /' conftest.$ac_ext >&5
1827 ac_retval=1
1829 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1830 return $ac_retval
1832 } # ac_fn_cxx_try_cpp
1834 # ac_fn_cxx_try_link LINENO
1835 # -------------------------
1836 # Try to link conftest.$ac_ext, and return whether this succeeded.
1837 ac_fn_cxx_try_link ()
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=1
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1876 return $ac_retval
1878 } # ac_fn_cxx_try_link
1879 cat >config.log <<_ACEOF
1880 This file contains any messages produced by compilers while
1881 running configure, to aid debugging if configure makes a mistake.
1883 It was created by Cilk Runtime Library $as_me 2.0, which was
1884 generated by GNU Autoconf 2.64. Invocation command line was
1886 $ $0 $@
1888 _ACEOF
1889 exec 5>>config.log
1891 cat <<_ASUNAME
1892 ## --------- ##
1893 ## Platform. ##
1894 ## --------- ##
1896 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1897 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1898 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1899 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1900 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1902 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1903 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1905 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1906 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1907 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1908 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1909 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1910 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1911 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1913 _ASUNAME
1915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1916 for as_dir in $PATH
1918 IFS=$as_save_IFS
1919 test -z "$as_dir" && as_dir=.
1920 $as_echo "PATH: $as_dir"
1921 done
1922 IFS=$as_save_IFS
1924 } >&5
1926 cat >&5 <<_ACEOF
1929 ## ----------- ##
1930 ## Core tests. ##
1931 ## ----------- ##
1933 _ACEOF
1936 # Keep a trace of the command line.
1937 # Strip out --no-create and --no-recursion so they do not pile up.
1938 # Strip out --silent because we don't want to record it for future runs.
1939 # Also quote any args containing shell meta-characters.
1940 # Make two passes to allow for proper duplicate-argument suppression.
1941 ac_configure_args=
1942 ac_configure_args0=
1943 ac_configure_args1=
1944 ac_must_keep_next=false
1945 for ac_pass in 1 2
1947 for ac_arg
1949 case $ac_arg in
1950 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1951 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1952 | -silent | --silent | --silen | --sile | --sil)
1953 continue ;;
1954 *\'*)
1955 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 esac
1957 case $ac_pass in
1958 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1960 as_fn_append ac_configure_args1 " '$ac_arg'"
1961 if test $ac_must_keep_next = true; then
1962 ac_must_keep_next=false # Got value, back to normal.
1963 else
1964 case $ac_arg in
1965 *=* | --config-cache | -C | -disable-* | --disable-* \
1966 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1967 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1968 | -with-* | --with-* | -without-* | --without-* | --x)
1969 case "$ac_configure_args0 " in
1970 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1971 esac
1973 -* ) ac_must_keep_next=true ;;
1974 esac
1976 as_fn_append ac_configure_args " '$ac_arg'"
1978 esac
1979 done
1980 done
1981 { ac_configure_args0=; unset ac_configure_args0;}
1982 { ac_configure_args1=; unset ac_configure_args1;}
1984 # When interrupted or exit'd, cleanup temporary files, and complete
1985 # config.log. We remove comments because anyway the quotes in there
1986 # would cause problems or look ugly.
1987 # WARNING: Use '\'' to represent an apostrophe within the trap.
1988 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1989 trap 'exit_status=$?
1990 # Save into config.log some information that might help in debugging.
1992 echo
1994 cat <<\_ASBOX
1995 ## ---------------- ##
1996 ## Cache variables. ##
1997 ## ---------------- ##
1998 _ASBOX
1999 echo
2000 # The following way of writing the cache mishandles newlines in values,
2002 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2003 eval ac_val=\$$ac_var
2004 case $ac_val in #(
2005 *${as_nl}*)
2006 case $ac_var in #(
2007 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2008 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2009 esac
2010 case $ac_var in #(
2011 _ | IFS | as_nl) ;; #(
2012 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2013 *) { eval $ac_var=; unset $ac_var;} ;;
2014 esac ;;
2015 esac
2016 done
2017 (set) 2>&1 |
2018 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2019 *${as_nl}ac_space=\ *)
2020 sed -n \
2021 "s/'\''/'\''\\\\'\'''\''/g;
2022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2023 ;; #(
2025 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2027 esac |
2028 sort
2030 echo
2032 cat <<\_ASBOX
2033 ## ----------------- ##
2034 ## Output variables. ##
2035 ## ----------------- ##
2036 _ASBOX
2037 echo
2038 for ac_var in $ac_subst_vars
2040 eval ac_val=\$$ac_var
2041 case $ac_val in
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2043 esac
2044 $as_echo "$ac_var='\''$ac_val'\''"
2045 done | sort
2046 echo
2048 if test -n "$ac_subst_files"; then
2049 cat <<\_ASBOX
2050 ## ------------------- ##
2051 ## File substitutions. ##
2052 ## ------------------- ##
2053 _ASBOX
2054 echo
2055 for ac_var in $ac_subst_files
2057 eval ac_val=\$$ac_var
2058 case $ac_val in
2059 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2060 esac
2061 $as_echo "$ac_var='\''$ac_val'\''"
2062 done | sort
2063 echo
2066 if test -s confdefs.h; then
2067 cat <<\_ASBOX
2068 ## ----------- ##
2069 ## confdefs.h. ##
2070 ## ----------- ##
2071 _ASBOX
2072 echo
2073 cat confdefs.h
2074 echo
2076 test "$ac_signal" != 0 &&
2077 $as_echo "$as_me: caught signal $ac_signal"
2078 $as_echo "$as_me: exit $exit_status"
2079 } >&5
2080 rm -f core *.core core.conftest.* &&
2081 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2082 exit $exit_status
2084 for ac_signal in 1 2 13 15; do
2085 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2086 done
2087 ac_signal=0
2089 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2090 rm -f -r conftest* confdefs.h
2092 $as_echo "/* confdefs.h */" > confdefs.h
2094 # Predefined preprocessor variables.
2096 cat >>confdefs.h <<_ACEOF
2097 #define PACKAGE_NAME "$PACKAGE_NAME"
2098 _ACEOF
2100 cat >>confdefs.h <<_ACEOF
2101 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2102 _ACEOF
2104 cat >>confdefs.h <<_ACEOF
2105 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2106 _ACEOF
2108 cat >>confdefs.h <<_ACEOF
2109 #define PACKAGE_STRING "$PACKAGE_STRING"
2110 _ACEOF
2112 cat >>confdefs.h <<_ACEOF
2113 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2114 _ACEOF
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_URL "$PACKAGE_URL"
2118 _ACEOF
2121 # Let the site file select an alternate cache file if it wants to.
2122 # Prefer an explicitly selected file to automatically selected ones.
2123 ac_site_file1=NONE
2124 ac_site_file2=NONE
2125 if test -n "$CONFIG_SITE"; then
2126 ac_site_file1=$CONFIG_SITE
2127 elif test "x$prefix" != xNONE; then
2128 ac_site_file1=$prefix/share/config.site
2129 ac_site_file2=$prefix/etc/config.site
2130 else
2131 ac_site_file1=$ac_default_prefix/share/config.site
2132 ac_site_file2=$ac_default_prefix/etc/config.site
2134 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2136 test "x$ac_site_file" = xNONE && continue
2137 if test -r "$ac_site_file"; then
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2139 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2140 sed 's/^/| /' "$ac_site_file" >&5
2141 . "$ac_site_file"
2143 done
2145 if test -r "$cache_file"; then
2146 # Some versions of bash will fail to source /dev/null (special
2147 # files actually), so we avoid doing that.
2148 if test -f "$cache_file"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2150 $as_echo "$as_me: loading cache $cache_file" >&6;}
2151 case $cache_file in
2152 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2153 *) . "./$cache_file";;
2154 esac
2156 else
2157 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2158 $as_echo "$as_me: creating cache $cache_file" >&6;}
2159 >$cache_file
2162 # Check that the precious variables saved in the cache have kept the same
2163 # value.
2164 ac_cache_corrupted=false
2165 for ac_var in $ac_precious_vars; do
2166 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2167 eval ac_new_set=\$ac_env_${ac_var}_set
2168 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2169 eval ac_new_val=\$ac_env_${ac_var}_value
2170 case $ac_old_set,$ac_new_set in
2171 set,)
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2173 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2174 ac_cache_corrupted=: ;;
2175 ,set)
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2177 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2178 ac_cache_corrupted=: ;;
2179 ,);;
2181 if test "x$ac_old_val" != "x$ac_new_val"; then
2182 # differences in whitespace do not lead to failure.
2183 ac_old_val_w=`echo x $ac_old_val`
2184 ac_new_val_w=`echo x $ac_new_val`
2185 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2187 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2188 ac_cache_corrupted=:
2189 else
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2191 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2192 eval $ac_var=\$ac_old_val
2194 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2195 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2197 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2198 fi;;
2199 esac
2200 # Pass precious variables to config.status.
2201 if test "$ac_new_set" = set; then
2202 case $ac_new_val in
2203 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2204 *) ac_arg=$ac_var=$ac_new_val ;;
2205 esac
2206 case " $ac_configure_args " in
2207 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2208 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2209 esac
2211 done
2212 if $ac_cache_corrupted; then
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2216 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2217 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2219 ## -------------------- ##
2220 ## Main body of script. ##
2221 ## -------------------- ##
2223 ac_ext=c
2224 ac_cpp='$CPP $CPPFLAGS'
2225 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2226 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2227 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2235 # Needed to define ${target}. Needs to be very early to avoid annoying
2236 # warning about calling AC_ARG_PROGRAM before AC_CANONICAL_SYSTEM
2237 ac_aux_dir=
2238 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2239 for ac_t in install-sh install.sh shtool; do
2240 if test -f "$ac_dir/$ac_t"; then
2241 ac_aux_dir=$ac_dir
2242 ac_install_sh="$ac_aux_dir/$ac_t -c"
2243 break 2
2245 done
2246 done
2247 if test -z "$ac_aux_dir"; then
2248 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2251 # These three variables are undocumented and unsupported,
2252 # and are intended to be withdrawn in a future Autoconf release.
2253 # They can cause serious problems if a builder's source tree is in a directory
2254 # whose full name contains unusual characters.
2255 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2256 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2257 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2260 # Make sure we can run config.sub.
2261 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2262 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2265 $as_echo_n "checking build system type... " >&6; }
2266 if test "${ac_cv_build+set}" = set; then :
2267 $as_echo_n "(cached) " >&6
2268 else
2269 ac_build_alias=$build_alias
2270 test "x$ac_build_alias" = x &&
2271 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2272 test "x$ac_build_alias" = x &&
2273 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2274 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2275 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2279 $as_echo "$ac_cv_build" >&6; }
2280 case $ac_cv_build in
2281 *-*-*) ;;
2282 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2283 esac
2284 build=$ac_cv_build
2285 ac_save_IFS=$IFS; IFS='-'
2286 set x $ac_cv_build
2287 shift
2288 build_cpu=$1
2289 build_vendor=$2
2290 shift; shift
2291 # Remember, the first character of IFS is used to create $*,
2292 # except with old shells:
2293 build_os=$*
2294 IFS=$ac_save_IFS
2295 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2299 $as_echo_n "checking host system type... " >&6; }
2300 if test "${ac_cv_host+set}" = set; then :
2301 $as_echo_n "(cached) " >&6
2302 else
2303 if test "x$host_alias" = x; then
2304 ac_cv_host=$ac_cv_build
2305 else
2306 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2307 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2312 $as_echo "$ac_cv_host" >&6; }
2313 case $ac_cv_host in
2314 *-*-*) ;;
2315 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2316 esac
2317 host=$ac_cv_host
2318 ac_save_IFS=$IFS; IFS='-'
2319 set x $ac_cv_host
2320 shift
2321 host_cpu=$1
2322 host_vendor=$2
2323 shift; shift
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2326 host_os=$*
2327 IFS=$ac_save_IFS
2328 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2332 $as_echo_n "checking target system type... " >&6; }
2333 if test "${ac_cv_target+set}" = set; then :
2334 $as_echo_n "(cached) " >&6
2335 else
2336 if test "x$target_alias" = x; then
2337 ac_cv_target=$ac_cv_host
2338 else
2339 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2340 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2345 $as_echo "$ac_cv_target" >&6; }
2346 case $ac_cv_target in
2347 *-*-*) ;;
2348 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2349 esac
2350 target=$ac_cv_target
2351 ac_save_IFS=$IFS; IFS='-'
2352 set x $ac_cv_target
2353 shift
2354 target_cpu=$1
2355 target_vendor=$2
2356 shift; shift
2357 # Remember, the first character of IFS is used to create $*,
2358 # except with old shells:
2359 target_os=$*
2360 IFS=$ac_save_IFS
2361 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2364 # The aliases save the names the user supplied, while $host etc.
2365 # will get canonicalized.
2366 test -n "$target_alias" &&
2367 test "$program_prefix$program_suffix$program_transform_name" = \
2368 NONENONEs,x,x, &&
2369 program_prefix=${target_alias}-
2371 target_alias=${target_alias-$host_alias}
2373 am__api_version='1.11'
2375 # Find a good install program. We prefer a C program (faster),
2376 # so one script is as good as another. But avoid the broken or
2377 # incompatible versions:
2378 # SysV /etc/install, /usr/sbin/install
2379 # SunOS /usr/etc/install
2380 # IRIX /sbin/install
2381 # AIX /bin/install
2382 # AmigaOS /C/install, which installs bootblocks on floppy discs
2383 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2384 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2385 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2386 # OS/2's system install, which has a completely different semantic
2387 # ./install, which can be erroneously created by make from ./install.sh.
2388 # Reject install programs that cannot install multiple files.
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2390 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2391 if test -z "$INSTALL"; then
2392 if test "${ac_cv_path_install+set}" = set; then :
2393 $as_echo_n "(cached) " >&6
2394 else
2395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2396 for as_dir in $PATH
2398 IFS=$as_save_IFS
2399 test -z "$as_dir" && as_dir=.
2400 # Account for people who put trailing slashes in PATH elements.
2401 case $as_dir/ in #((
2402 ./ | .// | /[cC]/* | \
2403 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2404 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2405 /usr/ucb/* ) ;;
2407 # OSF1 and SCO ODT 3.0 have their own names for install.
2408 # Don't use installbsd from OSF since it installs stuff as root
2409 # by default.
2410 for ac_prog in ginstall scoinst install; do
2411 for ac_exec_ext in '' $ac_executable_extensions; do
2412 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2413 if test $ac_prog = install &&
2414 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415 # AIX install. It has an incompatible calling convention.
2417 elif test $ac_prog = install &&
2418 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419 # program-specific install script used by HP pwplus--don't use.
2421 else
2422 rm -rf conftest.one conftest.two conftest.dir
2423 echo one > conftest.one
2424 echo two > conftest.two
2425 mkdir conftest.dir
2426 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2427 test -s conftest.one && test -s conftest.two &&
2428 test -s conftest.dir/conftest.one &&
2429 test -s conftest.dir/conftest.two
2430 then
2431 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2432 break 3
2436 done
2437 done
2439 esac
2441 done
2442 IFS=$as_save_IFS
2444 rm -rf conftest.one conftest.two conftest.dir
2447 if test "${ac_cv_path_install+set}" = set; then
2448 INSTALL=$ac_cv_path_install
2449 else
2450 # As a last resort, use the slow shell script. Don't cache a
2451 # value for INSTALL within a source directory, because that will
2452 # break other packages using the cache if that directory is
2453 # removed, or if the value is a relative name.
2454 INSTALL=$ac_install_sh
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2458 $as_echo "$INSTALL" >&6; }
2460 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2461 # It thinks the first close brace ends the variable substitution.
2462 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2464 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2466 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2469 $as_echo_n "checking whether build environment is sane... " >&6; }
2470 # Just in case
2471 sleep 1
2472 echo timestamp > conftest.file
2473 # Reject unsafe characters in $srcdir or the absolute working directory
2474 # name. Accept space and tab only in the latter.
2475 am_lf='
2477 case `pwd` in
2478 *[\\\"\#\$\&\'\`$am_lf]*)
2479 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2480 esac
2481 case $srcdir in
2482 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2483 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2484 esac
2486 # Do `set' in a subshell so we don't clobber the current shell's
2487 # arguments. Must try -L first in case configure is actually a
2488 # symlink; some systems play weird games with the mod time of symlinks
2489 # (eg FreeBSD returns the mod time of the symlink's containing
2490 # directory).
2491 if (
2492 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2493 if test "$*" = "X"; then
2494 # -L didn't work.
2495 set X `ls -t "$srcdir/configure" conftest.file`
2497 rm -f conftest.file
2498 if test "$*" != "X $srcdir/configure conftest.file" \
2499 && test "$*" != "X conftest.file $srcdir/configure"; then
2501 # If neither matched, then we have a broken ls. This can happen
2502 # if, for instance, CONFIG_SHELL is bash and it inherits a
2503 # broken ls alias from the environment. This has actually
2504 # happened. Such a system could not be considered "sane".
2505 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2506 alias in your environment" "$LINENO" 5
2509 test "$2" = conftest.file
2511 then
2512 # Ok.
2514 else
2515 as_fn_error "newly created file is older than distributed files!
2516 Check your system clock" "$LINENO" 5
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2519 $as_echo "yes" >&6; }
2520 test "$program_prefix" != NONE &&
2521 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522 # Use a double $ so make ignores it.
2523 test "$program_suffix" != NONE &&
2524 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525 # Double any \ or $.
2526 # By default was `s,x,x', remove it if useless.
2527 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2530 # expand $ac_aux_dir to an absolute path
2531 am_aux_dir=`cd $ac_aux_dir && pwd`
2533 if test x"${MISSING+set}" != xset; then
2534 case $am_aux_dir in
2535 *\ * | *\ *)
2536 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2538 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2539 esac
2541 # Use eval to expand $SHELL
2542 if eval "$MISSING --run true"; then
2543 am_missing_run="$MISSING --run "
2544 else
2545 am_missing_run=
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2547 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2550 if test x"${install_sh}" != xset; then
2551 case $am_aux_dir in
2552 *\ * | *\ *)
2553 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2555 install_sh="\${SHELL} $am_aux_dir/install-sh"
2556 esac
2559 # Installed binaries are usually stripped using `strip' when the user
2560 # run `make install-strip'. However `strip' might not be the right
2561 # tool to use in cross-compilation environments, therefore Automake
2562 # will honor the `STRIP' environment variable to overrule this program.
2563 if test "$cross_compiling" != no; then
2564 if test -n "$ac_tool_prefix"; then
2565 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566 set dummy ${ac_tool_prefix}strip; ac_word=$2
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568 $as_echo_n "checking for $ac_word... " >&6; }
2569 if test "${ac_cv_prog_STRIP+set}" = set; then :
2570 $as_echo_n "(cached) " >&6
2571 else
2572 if test -n "$STRIP"; then
2573 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2574 else
2575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2576 for as_dir in $PATH
2578 IFS=$as_save_IFS
2579 test -z "$as_dir" && as_dir=.
2580 for ac_exec_ext in '' $ac_executable_extensions; do
2581 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 break 2
2586 done
2587 done
2588 IFS=$as_save_IFS
2592 STRIP=$ac_cv_prog_STRIP
2593 if test -n "$STRIP"; then
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2595 $as_echo "$STRIP" >&6; }
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598 $as_echo "no" >&6; }
2603 if test -z "$ac_cv_prog_STRIP"; then
2604 ac_ct_STRIP=$STRIP
2605 # Extract the first word of "strip", so it can be a program name with args.
2606 set dummy strip; ac_word=$2
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608 $as_echo_n "checking for $ac_word... " >&6; }
2609 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2610 $as_echo_n "(cached) " >&6
2611 else
2612 if test -n "$ac_ct_STRIP"; then
2613 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2614 else
2615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2616 for as_dir in $PATH
2618 IFS=$as_save_IFS
2619 test -z "$as_dir" && as_dir=.
2620 for ac_exec_ext in '' $ac_executable_extensions; do
2621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622 ac_cv_prog_ac_ct_STRIP="strip"
2623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 break 2
2626 done
2627 done
2628 IFS=$as_save_IFS
2632 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633 if test -n "$ac_ct_STRIP"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2635 $as_echo "$ac_ct_STRIP" >&6; }
2636 else
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638 $as_echo "no" >&6; }
2641 if test "x$ac_ct_STRIP" = x; then
2642 STRIP=":"
2643 else
2644 case $cross_compiling:$ac_tool_warned in
2645 yes:)
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648 ac_tool_warned=yes ;;
2649 esac
2650 STRIP=$ac_ct_STRIP
2652 else
2653 STRIP="$ac_cv_prog_STRIP"
2657 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2660 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2661 if test -z "$MKDIR_P"; then
2662 if test "${ac_cv_path_mkdir+set}" = set; then :
2663 $as_echo_n "(cached) " >&6
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_prog in mkdir gmkdir; do
2671 for ac_exec_ext in '' $ac_executable_extensions; do
2672 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2673 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2674 'mkdir (GNU coreutils) '* | \
2675 'mkdir (coreutils) '* | \
2676 'mkdir (fileutils) '4.1*)
2677 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2678 break 3;;
2679 esac
2680 done
2681 done
2682 done
2683 IFS=$as_save_IFS
2687 if test "${ac_cv_path_mkdir+set}" = set; then
2688 MKDIR_P="$ac_cv_path_mkdir -p"
2689 else
2690 # As a last resort, use the slow shell script. Don't cache a
2691 # value for MKDIR_P within a source directory, because that will
2692 # break other packages using the cache if that directory is
2693 # removed, or if the value is a relative name.
2694 test -d ./--version && rmdir ./--version
2695 MKDIR_P="$ac_install_sh -d"
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2699 $as_echo "$MKDIR_P" >&6; }
2701 mkdir_p="$MKDIR_P"
2702 case $mkdir_p in
2703 [\\/$]* | ?:[\\/]*) ;;
2704 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2705 esac
2707 for ac_prog in gawk mawk nawk awk
2709 # Extract the first word of "$ac_prog", so it can be a program name with args.
2710 set dummy $ac_prog; ac_word=$2
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712 $as_echo_n "checking for $ac_word... " >&6; }
2713 if test "${ac_cv_prog_AWK+set}" = set; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 if test -n "$AWK"; then
2717 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_AWK="$ac_prog"
2727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2730 done
2731 done
2732 IFS=$as_save_IFS
2736 AWK=$ac_cv_prog_AWK
2737 if test -n "$AWK"; then
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739 $as_echo "$AWK" >&6; }
2740 else
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742 $as_echo "no" >&6; }
2746 test -n "$AWK" && break
2747 done
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2750 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2751 set x ${MAKE-make}
2752 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2753 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2754 $as_echo_n "(cached) " >&6
2755 else
2756 cat >conftest.make <<\_ACEOF
2757 SHELL = /bin/sh
2758 all:
2759 @echo '@@@%%%=$(MAKE)=@@@%%%'
2760 _ACEOF
2761 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2762 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2763 *@@@%%%=?*=@@@%%%*)
2764 eval ac_cv_prog_make_${ac_make}_set=yes;;
2766 eval ac_cv_prog_make_${ac_make}_set=no;;
2767 esac
2768 rm -f conftest.make
2770 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772 $as_echo "yes" >&6; }
2773 SET_MAKE=
2774 else
2775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776 $as_echo "no" >&6; }
2777 SET_MAKE="MAKE=${MAKE-make}"
2780 rm -rf .tst 2>/dev/null
2781 mkdir .tst 2>/dev/null
2782 if test -d .tst; then
2783 am__leading_dot=.
2784 else
2785 am__leading_dot=_
2787 rmdir .tst 2>/dev/null
2789 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2790 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2791 # is not polluted with repeated "-I."
2792 am__isrc=' -I$(srcdir)'
2793 # test to see if srcdir already configured
2794 if test -f $srcdir/config.status; then
2795 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2799 # test whether we have cygpath
2800 if test -z "$CYGPATH_W"; then
2801 if (cygpath --version) >/dev/null 2>/dev/null; then
2802 CYGPATH_W='cygpath -w'
2803 else
2804 CYGPATH_W=echo
2809 # Define the identity of the package.
2810 PACKAGE='cilk-runtime-library'
2811 VERSION='2.0'
2814 cat >>confdefs.h <<_ACEOF
2815 #define PACKAGE "$PACKAGE"
2816 _ACEOF
2819 cat >>confdefs.h <<_ACEOF
2820 #define VERSION "$VERSION"
2821 _ACEOF
2823 # Some tools Automake needs.
2825 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2828 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2831 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2834 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2837 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2839 # We need awk for the "check" target. The system "awk" is bad on
2840 # some platforms.
2841 # Always define AMTAR for backward compatibility.
2843 AMTAR=${AMTAR-"${am_missing_run}tar"}
2845 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2854 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2855 # Check whether --enable-maintainer-mode was given.
2856 if test "${enable_maintainer_mode+set}" = set; then :
2857 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2858 else
2859 USE_MAINTAINER_MODE=no
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2863 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2864 if test $USE_MAINTAINER_MODE = yes; then
2865 MAINTAINER_MODE_TRUE=
2866 MAINTAINER_MODE_FALSE='#'
2867 else
2868 MAINTAINER_MODE_TRUE='#'
2869 MAINTAINER_MODE_FALSE=
2872 MAINT=$MAINTAINER_MODE_TRUE
2876 # Default to --enable-multilib
2877 # Check whether --enable-multilib was given.
2878 if test "${enable_multilib+set}" = set; then :
2879 enableval=$enable_multilib; case "$enableval" in
2880 yes) multilib=yes ;;
2881 no) multilib=no ;;
2882 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
2883 esac
2884 else
2885 multilib=yes
2889 # We may get other options which we leave undocumented:
2890 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2891 # See config-ml.in if you want the gory details.
2893 if test "$srcdir" = "."; then
2894 if test "$with_target_subdir" != "."; then
2895 multi_basedir="$srcdir/$with_multisrctop../.."
2896 else
2897 multi_basedir="$srcdir/$with_multisrctop.."
2899 else
2900 multi_basedir="$srcdir/.."
2904 # Even if the default multilib is not a cross compilation,
2905 # it may be that some of the other multilibs are.
2906 if test $cross_compiling = no && test $multilib = yes \
2907 && test "x${with_multisubdir}" != x ; then
2908 cross_compiling=maybe
2911 ac_config_commands="$ac_config_commands default-1"
2914 # Build a DLL on Windows
2915 # AC_LIBTOOL_WIN32_DLL
2916 ac_ext=c
2917 ac_cpp='$CPP $CPPFLAGS'
2918 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2919 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2920 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2925 $as_echo_n "checking for $ac_word... " >&6; }
2926 if test "${ac_cv_prog_CC+set}" = set; then :
2927 $as_echo_n "(cached) " >&6
2928 else
2929 if test -n "$CC"; then
2930 ac_cv_prog_CC="$CC" # Let the user override the test.
2931 else
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2933 for as_dir in $PATH
2935 IFS=$as_save_IFS
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2941 break 2
2943 done
2944 done
2945 IFS=$as_save_IFS
2949 CC=$ac_cv_prog_CC
2950 if test -n "$CC"; then
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2952 $as_echo "$CC" >&6; }
2953 else
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2955 $as_echo "no" >&6; }
2960 if test -z "$ac_cv_prog_CC"; then
2961 ac_ct_CC=$CC
2962 # Extract the first word of "gcc", so it can be a program name with args.
2963 set dummy gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$ac_ct_CC"; then
2970 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_ac_ct_CC="gcc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2983 done
2984 done
2985 IFS=$as_save_IFS
2989 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2990 if test -n "$ac_ct_CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2992 $as_echo "$ac_ct_CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
2998 if test "x$ac_ct_CC" = x; then
2999 CC=""
3000 else
3001 case $cross_compiling:$ac_tool_warned in
3002 yes:)
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3005 ac_tool_warned=yes ;;
3006 esac
3007 CC=$ac_ct_CC
3009 else
3010 CC="$ac_cv_prog_CC"
3013 if test -z "$CC"; then
3014 if test -n "$ac_tool_prefix"; then
3015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3016 set dummy ${ac_tool_prefix}cc; ac_word=$2
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018 $as_echo_n "checking for $ac_word... " >&6; }
3019 if test "${ac_cv_prog_CC+set}" = set; then :
3020 $as_echo_n "(cached) " >&6
3021 else
3022 if test -n "$CC"; then
3023 ac_cv_prog_CC="$CC" # Let the user override the test.
3024 else
3025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026 for as_dir in $PATH
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3032 ac_cv_prog_CC="${ac_tool_prefix}cc"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3036 done
3037 done
3038 IFS=$as_save_IFS
3042 CC=$ac_cv_prog_CC
3043 if test -n "$CC"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3045 $as_echo "$CC" >&6; }
3046 else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048 $as_echo "no" >&6; }
3054 if test -z "$CC"; then
3055 # Extract the first word of "cc", so it can be a program name with args.
3056 set dummy cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if test "${ac_cv_prog_CC+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 ac_prog_rejected=no
3066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3067 for as_dir in $PATH
3069 IFS=$as_save_IFS
3070 test -z "$as_dir" && as_dir=.
3071 for ac_exec_ext in '' $ac_executable_extensions; do
3072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3073 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3074 ac_prog_rejected=yes
3075 continue
3077 ac_cv_prog_CC="cc"
3078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3081 done
3082 done
3083 IFS=$as_save_IFS
3085 if test $ac_prog_rejected = yes; then
3086 # We found a bogon in the path, so make sure we never use it.
3087 set dummy $ac_cv_prog_CC
3088 shift
3089 if test $# != 0; then
3090 # We chose a different compiler from the bogus one.
3091 # However, it has the same basename, so the bogon will be chosen
3092 # first if we set CC to just the basename; use the full file name.
3093 shift
3094 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3099 CC=$ac_cv_prog_CC
3100 if test -n "$CC"; then
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3102 $as_echo "$CC" >&6; }
3103 else
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3105 $as_echo "no" >&6; }
3110 if test -z "$CC"; then
3111 if test -n "$ac_tool_prefix"; then
3112 for ac_prog in cl.exe
3114 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3115 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3117 $as_echo_n "checking for $ac_word... " >&6; }
3118 if test "${ac_cv_prog_CC+set}" = set; then :
3119 $as_echo_n "(cached) " >&6
3120 else
3121 if test -n "$CC"; then
3122 ac_cv_prog_CC="$CC" # Let the user override the test.
3123 else
3124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3125 for as_dir in $PATH
3127 IFS=$as_save_IFS
3128 test -z "$as_dir" && as_dir=.
3129 for ac_exec_ext in '' $ac_executable_extensions; do
3130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3131 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3133 break 2
3135 done
3136 done
3137 IFS=$as_save_IFS
3141 CC=$ac_cv_prog_CC
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3145 else
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3151 test -n "$CC" && break
3152 done
3154 if test -z "$CC"; then
3155 ac_ct_CC=$CC
3156 for ac_prog in cl.exe
3158 # Extract the first word of "$ac_prog", so it can be a program name with args.
3159 set dummy $ac_prog; ac_word=$2
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3161 $as_echo_n "checking for $ac_word... " >&6; }
3162 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3163 $as_echo_n "(cached) " >&6
3164 else
3165 if test -n "$ac_ct_CC"; then
3166 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3167 else
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3171 IFS=$as_save_IFS
3172 test -z "$as_dir" && as_dir=.
3173 for ac_exec_ext in '' $ac_executable_extensions; do
3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3175 ac_cv_prog_ac_ct_CC="$ac_prog"
3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3177 break 2
3179 done
3180 done
3181 IFS=$as_save_IFS
3185 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3186 if test -n "$ac_ct_CC"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3188 $as_echo "$ac_ct_CC" >&6; }
3189 else
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3195 test -n "$ac_ct_CC" && break
3196 done
3198 if test "x$ac_ct_CC" = x; then
3199 CC=""
3200 else
3201 case $cross_compiling:$ac_tool_warned in
3202 yes:)
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3206 esac
3207 CC=$ac_ct_CC
3214 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3215 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3216 as_fn_error "no acceptable C compiler found in \$PATH
3217 See \`config.log' for more details." "$LINENO" 5; }
3219 # Provide some information about the compiler.
3220 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3221 set X $ac_compile
3222 ac_compiler=$2
3223 for ac_option in --version -v -V -qversion; do
3224 { { ac_try="$ac_compiler $ac_option >&5"
3225 case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228 esac
3229 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230 $as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3232 ac_status=$?
3233 if test -s conftest.err; then
3234 sed '10a\
3235 ... rest of stderr output deleted ...
3236 10q' conftest.err >conftest.er1
3237 cat conftest.er1 >&5
3238 rm -f conftest.er1 conftest.err
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3242 done
3244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245 /* end confdefs.h. */
3248 main ()
3252 return 0;
3254 _ACEOF
3255 ac_clean_files_save=$ac_clean_files
3256 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3257 # Try to create an executable without -o first, disregard a.out.
3258 # It will help us diagnose broken compilers, and finding out an intuition
3259 # of exeext.
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3261 $as_echo_n "checking for C compiler default output file name... " >&6; }
3262 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3264 # The possible output files:
3265 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3267 ac_rmfiles=
3268 for ac_file in $ac_files
3270 case $ac_file in
3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3272 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3273 esac
3274 done
3275 rm -f $ac_rmfiles
3277 if { { ac_try="$ac_link_default"
3278 case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281 esac
3282 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283 $as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link_default") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3289 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3290 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3291 # so that the user can short-circuit this test for compilers unknown to
3292 # Autoconf.
3293 for ac_file in $ac_files ''
3295 test -f "$ac_file" || continue
3296 case $ac_file in
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3299 [ab].out )
3300 # We found the default executable, but exeext='' is most
3301 # certainly right.
3302 break;;
3303 *.* )
3304 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3305 then :; else
3306 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3308 # We set ac_cv_exeext here because the later test for it is not
3309 # safe: cross compilers may not add the suffix if given an `-o'
3310 # argument, so we may need to know it at that point already.
3311 # Even if this section looks crufty: it has the advantage of
3312 # actually working.
3313 break;;
3315 break;;
3316 esac
3317 done
3318 test "$ac_cv_exeext" = no && ac_cv_exeext=
3320 else
3321 ac_file=''
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3324 $as_echo "$ac_file" >&6; }
3325 if test -z "$ac_file"; then :
3326 $as_echo "$as_me: failed program was:" >&5
3327 sed 's/^/| /' conftest.$ac_ext >&5
3329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 { as_fn_set_status 77
3332 as_fn_error "C compiler cannot create executables
3333 See \`config.log' for more details." "$LINENO" 5; }; }
3335 ac_exeext=$ac_cv_exeext
3337 # Check that the compiler produces executables we can run. If not, either
3338 # the compiler is broken, or we cross compile.
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3340 $as_echo_n "checking whether the C compiler works... " >&6; }
3341 # If not cross compiling, check that we can run a simple program.
3342 if test "$cross_compiling" != yes; then
3343 if { ac_try='./$ac_file'
3344 { { case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3349 $as_echo "$ac_try_echo"; } >&5
3350 (eval "$ac_try") 2>&5
3351 ac_status=$?
3352 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3353 test $ac_status = 0; }; }; then
3354 cross_compiling=no
3355 else
3356 if test "$cross_compiling" = maybe; then
3357 cross_compiling=yes
3358 else
3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361 as_fn_error "cannot run C compiled programs.
3362 If you meant to cross compile, use \`--host'.
3363 See \`config.log' for more details." "$LINENO" 5; }
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368 $as_echo "yes" >&6; }
3370 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3371 ac_clean_files=$ac_clean_files_save
3372 # Check that the compiler produces executables we can run. If not, either
3373 # the compiler is broken, or we cross compile.
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3375 $as_echo_n "checking whether we are cross compiling... " >&6; }
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3377 $as_echo "$cross_compiling" >&6; }
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3380 $as_echo_n "checking for suffix of executables... " >&6; }
3381 if { { ac_try="$ac_link"
3382 case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385 esac
3386 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387 $as_echo "$ac_try_echo"; } >&5
3388 (eval "$ac_link") 2>&5
3389 ac_status=$?
3390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391 test $ac_status = 0; }; then :
3392 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3393 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3394 # work properly (i.e., refer to `conftest.exe'), while it won't with
3395 # `rm'.
3396 for ac_file in conftest.exe conftest conftest.*; do
3397 test -f "$ac_file" || continue
3398 case $ac_file in
3399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3400 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3401 break;;
3402 * ) break;;
3403 esac
3404 done
3405 else
3406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3408 as_fn_error "cannot compute suffix of executables: cannot compile and link
3409 See \`config.log' for more details." "$LINENO" 5; }
3411 rm -f conftest$ac_cv_exeext
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3413 $as_echo "$ac_cv_exeext" >&6; }
3415 rm -f conftest.$ac_ext
3416 EXEEXT=$ac_cv_exeext
3417 ac_exeext=$EXEEXT
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3419 $as_echo_n "checking for suffix of object files... " >&6; }
3420 if test "${ac_cv_objext+set}" = set; then :
3421 $as_echo_n "(cached) " >&6
3422 else
3423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3424 /* end confdefs.h. */
3427 main ()
3431 return 0;
3433 _ACEOF
3434 rm -f conftest.o conftest.obj
3435 if { { ac_try="$ac_compile"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_compile") 2>&5
3443 ac_status=$?
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; then :
3446 for ac_file in conftest.o conftest.obj conftest.*; do
3447 test -f "$ac_file" || continue;
3448 case $ac_file in
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3450 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3451 break;;
3452 esac
3453 done
3454 else
3455 $as_echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3459 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3460 as_fn_error "cannot compute suffix of object files: cannot compile
3461 See \`config.log' for more details." "$LINENO" 5; }
3463 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3466 $as_echo "$ac_cv_objext" >&6; }
3467 OBJEXT=$ac_cv_objext
3468 ac_objext=$OBJEXT
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3470 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3471 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3472 $as_echo_n "(cached) " >&6
3473 else
3474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3475 /* end confdefs.h. */
3478 main ()
3480 #ifndef __GNUC__
3481 choke me
3482 #endif
3485 return 0;
3487 _ACEOF
3488 if ac_fn_c_try_compile "$LINENO"; then :
3489 ac_compiler_gnu=yes
3490 else
3491 ac_compiler_gnu=no
3493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3498 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3499 if test $ac_compiler_gnu = yes; then
3500 GCC=yes
3501 else
3502 GCC=
3504 ac_test_CFLAGS=${CFLAGS+set}
3505 ac_save_CFLAGS=$CFLAGS
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3507 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3508 if test "${ac_cv_prog_cc_g+set}" = set; then :
3509 $as_echo_n "(cached) " >&6
3510 else
3511 ac_save_c_werror_flag=$ac_c_werror_flag
3512 ac_c_werror_flag=yes
3513 ac_cv_prog_cc_g=no
3514 CFLAGS="-g"
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3519 main ()
3523 return 0;
3525 _ACEOF
3526 if ac_fn_c_try_compile "$LINENO"; then :
3527 ac_cv_prog_cc_g=yes
3528 else
3529 CFLAGS=""
3530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3531 /* end confdefs.h. */
3534 main ()
3538 return 0;
3540 _ACEOF
3541 if ac_fn_c_try_compile "$LINENO"; then :
3543 else
3544 ac_c_werror_flag=$ac_save_c_werror_flag
3545 CFLAGS="-g"
3546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3547 /* end confdefs.h. */
3550 main ()
3554 return 0;
3556 _ACEOF
3557 if ac_fn_c_try_compile "$LINENO"; then :
3558 ac_cv_prog_cc_g=yes
3560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3565 ac_c_werror_flag=$ac_save_c_werror_flag
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3568 $as_echo "$ac_cv_prog_cc_g" >&6; }
3569 if test "$ac_test_CFLAGS" = set; then
3570 CFLAGS=$ac_save_CFLAGS
3571 elif test $ac_cv_prog_cc_g = yes; then
3572 if test "$GCC" = yes; then
3573 CFLAGS="-g -O2"
3574 else
3575 CFLAGS="-g"
3577 else
3578 if test "$GCC" = yes; then
3579 CFLAGS="-O2"
3580 else
3581 CFLAGS=
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3585 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3586 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 ac_cv_prog_cc_c89=no
3590 ac_save_CC=$CC
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593 #include <stdarg.h>
3594 #include <stdio.h>
3595 #include <sys/types.h>
3596 #include <sys/stat.h>
3597 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3598 struct buf { int x; };
3599 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3600 static char *e (p, i)
3601 char **p;
3602 int i;
3604 return p[i];
3606 static char *f (char * (*g) (char **, int), char **p, ...)
3608 char *s;
3609 va_list v;
3610 va_start (v,p);
3611 s = g (p, va_arg (v,int));
3612 va_end (v);
3613 return s;
3616 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3617 function prototypes and stuff, but not '\xHH' hex character constants.
3618 These don't provoke an error unfortunately, instead are silently treated
3619 as 'x'. The following induces an error, until -std is added to get
3620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3621 array size at least. It's necessary to write '\x00'==0 to get something
3622 that's true only with -std. */
3623 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3625 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3626 inside strings and character constants. */
3627 #define FOO(x) 'x'
3628 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3630 int test (int i, double x);
3631 struct s1 {int (*f) (int a);};
3632 struct s2 {int (*f) (double a);};
3633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3634 int argc;
3635 char **argv;
3637 main ()
3639 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3641 return 0;
3643 _ACEOF
3644 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3645 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3647 CC="$ac_save_CC $ac_arg"
3648 if ac_fn_c_try_compile "$LINENO"; then :
3649 ac_cv_prog_cc_c89=$ac_arg
3651 rm -f core conftest.err conftest.$ac_objext
3652 test "x$ac_cv_prog_cc_c89" != "xno" && break
3653 done
3654 rm -f conftest.$ac_ext
3655 CC=$ac_save_CC
3658 # AC_CACHE_VAL
3659 case "x$ac_cv_prog_cc_c89" in
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3662 $as_echo "none needed" >&6; } ;;
3663 xno)
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3665 $as_echo "unsupported" >&6; } ;;
3667 CC="$CC $ac_cv_prog_cc_c89"
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3669 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3670 esac
3671 if test "x$ac_cv_prog_cc_c89" != xno; then :
3675 ac_ext=c
3676 ac_cpp='$CPP $CPPFLAGS'
3677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3680 DEPDIR="${am__leading_dot}deps"
3682 ac_config_commands="$ac_config_commands depfiles"
3685 am_make=${MAKE-make}
3686 cat > confinc << 'END'
3687 am__doit:
3688 @echo this is the am__doit target
3689 .PHONY: am__doit
3691 # If we don't find an include directive, just comment out the code.
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3693 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3694 am__include="#"
3695 am__quote=
3696 _am_result=none
3697 # First try GNU make style include.
3698 echo "include confinc" > confmf
3699 # Ignore all kinds of additional output from `make'.
3700 case `$am_make -s -f confmf 2> /dev/null` in #(
3701 *the\ am__doit\ target*)
3702 am__include=include
3703 am__quote=
3704 _am_result=GNU
3706 esac
3707 # Now try BSD make style include.
3708 if test "$am__include" = "#"; then
3709 echo '.include "confinc"' > confmf
3710 case `$am_make -s -f confmf 2> /dev/null` in #(
3711 *the\ am__doit\ target*)
3712 am__include=.include
3713 am__quote="\""
3714 _am_result=BSD
3716 esac
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3721 $as_echo "$_am_result" >&6; }
3722 rm -f confinc confmf
3724 # Check whether --enable-dependency-tracking was given.
3725 if test "${enable_dependency_tracking+set}" = set; then :
3726 enableval=$enable_dependency_tracking;
3729 if test "x$enable_dependency_tracking" != xno; then
3730 am_depcomp="$ac_aux_dir/depcomp"
3731 AMDEPBACKSLASH='\'
3733 if test "x$enable_dependency_tracking" != xno; then
3734 AMDEP_TRUE=
3735 AMDEP_FALSE='#'
3736 else
3737 AMDEP_TRUE='#'
3738 AMDEP_FALSE=
3743 depcc="$CC" am_compiler_list=
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3746 $as_echo_n "checking dependency style of $depcc... " >&6; }
3747 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3751 # We make a subdir and do the tests there. Otherwise we can end up
3752 # making bogus files that we don't know about and never remove. For
3753 # instance it was reported that on HP-UX the gcc test will end up
3754 # making a dummy file named `D' -- because `-MD' means `put the output
3755 # in D'.
3756 mkdir conftest.dir
3757 # Copy depcomp to subdir because otherwise we won't find it if we're
3758 # using a relative directory.
3759 cp "$am_depcomp" conftest.dir
3760 cd conftest.dir
3761 # We will build objects and dependencies in a subdirectory because
3762 # it helps to detect inapplicable dependency modes. For instance
3763 # both Tru64's cc and ICC support -MD to output dependencies as a
3764 # side effect of compilation, but ICC will put the dependencies in
3765 # the current directory while Tru64 will put them in the object
3766 # directory.
3767 mkdir sub
3769 am_cv_CC_dependencies_compiler_type=none
3770 if test "$am_compiler_list" = ""; then
3771 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3773 am__universal=false
3774 case " $depcc " in #(
3775 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3776 esac
3778 for depmode in $am_compiler_list; do
3779 # Setup a source with many dependencies, because some compilers
3780 # like to wrap large dependency lists on column 80 (with \), and
3781 # we should not choose a depcomp mode which is confused by this.
3783 # We need to recreate these files for each test, as the compiler may
3784 # overwrite some of them when testing with obscure command lines.
3785 # This happens at least with the AIX C compiler.
3786 : > sub/conftest.c
3787 for i in 1 2 3 4 5 6; do
3788 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3789 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3790 # Solaris 8's {/usr,}/bin/sh.
3791 touch sub/conftst$i.h
3792 done
3793 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3795 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3796 # mode. It turns out that the SunPro C++ compiler does not properly
3797 # handle `-M -o', and we need to detect this. Also, some Intel
3798 # versions had trouble with output in subdirs
3799 am__obj=sub/conftest.${OBJEXT-o}
3800 am__minus_obj="-o $am__obj"
3801 case $depmode in
3802 gcc)
3803 # This depmode causes a compiler race in universal mode.
3804 test "$am__universal" = false || continue
3806 nosideeffect)
3807 # after this tag, mechanisms are not by side-effect, so they'll
3808 # only be used when explicitly requested
3809 if test "x$enable_dependency_tracking" = xyes; then
3810 continue
3811 else
3812 break
3815 msvisualcpp | msvcmsys)
3816 # This compiler won't grok `-c -o', but also, the minuso test has
3817 # not run yet. These depmodes are late enough in the game, and
3818 # so weak that their functioning should not be impacted.
3819 am__obj=conftest.${OBJEXT-o}
3820 am__minus_obj=
3822 none) break ;;
3823 esac
3824 if depmode=$depmode \
3825 source=sub/conftest.c object=$am__obj \
3826 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3827 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3828 >/dev/null 2>conftest.err &&
3829 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3830 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3831 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3832 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3833 # icc doesn't choke on unknown options, it will just issue warnings
3834 # or remarks (even with -Werror). So we grep stderr for any message
3835 # that says an option was ignored or not supported.
3836 # When given -MP, icc 7.0 and 7.1 complain thusly:
3837 # icc: Command line warning: ignoring option '-M'; no argument required
3838 # The diagnosis changed in icc 8.0:
3839 # icc: Command line remark: option '-MP' not supported
3840 if (grep 'ignoring option' conftest.err ||
3841 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3842 am_cv_CC_dependencies_compiler_type=$depmode
3843 break
3846 done
3848 cd ..
3849 rm -rf conftest.dir
3850 else
3851 am_cv_CC_dependencies_compiler_type=none
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3856 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3857 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3860 test "x$enable_dependency_tracking" != xno \
3861 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3862 am__fastdepCC_TRUE=
3863 am__fastdepCC_FALSE='#'
3864 else
3865 am__fastdepCC_TRUE='#'
3866 am__fastdepCC_FALSE=
3870 ac_ext=cpp
3871 ac_cpp='$CXXCPP $CPPFLAGS'
3872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3875 if test -z "$CXX"; then
3876 if test -n "$CCC"; then
3877 CXX=$CCC
3878 else
3879 if test -n "$ac_tool_prefix"; then
3880 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3883 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3885 $as_echo_n "checking for $ac_word... " >&6; }
3886 if test "${ac_cv_prog_CXX+set}" = set; then :
3887 $as_echo_n "(cached) " >&6
3888 else
3889 if test -n "$CXX"; then
3890 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3891 else
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3895 IFS=$as_save_IFS
3896 test -z "$as_dir" && as_dir=.
3897 for ac_exec_ext in '' $ac_executable_extensions; do
3898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3899 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3901 break 2
3903 done
3904 done
3905 IFS=$as_save_IFS
3909 CXX=$ac_cv_prog_CXX
3910 if test -n "$CXX"; then
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3912 $as_echo "$CXX" >&6; }
3913 else
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3915 $as_echo "no" >&6; }
3919 test -n "$CXX" && break
3920 done
3922 if test -z "$CXX"; then
3923 ac_ct_CXX=$CXX
3924 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3926 # Extract the first word of "$ac_prog", so it can be a program name with args.
3927 set dummy $ac_prog; ac_word=$2
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929 $as_echo_n "checking for $ac_word... " >&6; }
3930 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3931 $as_echo_n "(cached) " >&6
3932 else
3933 if test -n "$ac_ct_CXX"; then
3934 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3935 else
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937 for as_dir in $PATH
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3943 ac_cv_prog_ac_ct_CXX="$ac_prog"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3947 done
3948 done
3949 IFS=$as_save_IFS
3953 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3954 if test -n "$ac_ct_CXX"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3956 $as_echo "$ac_ct_CXX" >&6; }
3957 else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959 $as_echo "no" >&6; }
3963 test -n "$ac_ct_CXX" && break
3964 done
3966 if test "x$ac_ct_CXX" = x; then
3967 CXX="g++"
3968 else
3969 case $cross_compiling:$ac_tool_warned in
3970 yes:)
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3972 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3973 ac_tool_warned=yes ;;
3974 esac
3975 CXX=$ac_ct_CXX
3981 # Provide some information about the compiler.
3982 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3983 set X $ac_compile
3984 ac_compiler=$2
3985 for ac_option in --version -v -V -qversion; do
3986 { { ac_try="$ac_compiler $ac_option >&5"
3987 case "(($ac_try" in
3988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3989 *) ac_try_echo=$ac_try;;
3990 esac
3991 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3992 $as_echo "$ac_try_echo"; } >&5
3993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3994 ac_status=$?
3995 if test -s conftest.err; then
3996 sed '10a\
3997 ... rest of stderr output deleted ...
3998 10q' conftest.err >conftest.er1
3999 cat conftest.er1 >&5
4000 rm -f conftest.er1 conftest.err
4002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4003 test $ac_status = 0; }
4004 done
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4007 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4008 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4009 $as_echo_n "(cached) " >&6
4010 else
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4015 main ()
4017 #ifndef __GNUC__
4018 choke me
4019 #endif
4022 return 0;
4024 _ACEOF
4025 if ac_fn_cxx_try_compile "$LINENO"; then :
4026 ac_compiler_gnu=yes
4027 else
4028 ac_compiler_gnu=no
4030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4031 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4035 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4036 if test $ac_compiler_gnu = yes; then
4037 GXX=yes
4038 else
4039 GXX=
4041 ac_test_CXXFLAGS=${CXXFLAGS+set}
4042 ac_save_CXXFLAGS=$CXXFLAGS
4043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4044 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4045 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4046 $as_echo_n "(cached) " >&6
4047 else
4048 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4049 ac_cxx_werror_flag=yes
4050 ac_cv_prog_cxx_g=no
4051 CXXFLAGS="-g"
4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053 /* end confdefs.h. */
4056 main ()
4060 return 0;
4062 _ACEOF
4063 if ac_fn_cxx_try_compile "$LINENO"; then :
4064 ac_cv_prog_cxx_g=yes
4065 else
4066 CXXFLAGS=""
4067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4068 /* end confdefs.h. */
4071 main ()
4075 return 0;
4077 _ACEOF
4078 if ac_fn_cxx_try_compile "$LINENO"; then :
4080 else
4081 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4082 CXXFLAGS="-g"
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084 /* end confdefs.h. */
4087 main ()
4091 return 0;
4093 _ACEOF
4094 if ac_fn_cxx_try_compile "$LINENO"; then :
4095 ac_cv_prog_cxx_g=yes
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4102 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4105 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4106 if test "$ac_test_CXXFLAGS" = set; then
4107 CXXFLAGS=$ac_save_CXXFLAGS
4108 elif test $ac_cv_prog_cxx_g = yes; then
4109 if test "$GXX" = yes; then
4110 CXXFLAGS="-g -O2"
4111 else
4112 CXXFLAGS="-g"
4114 else
4115 if test "$GXX" = yes; then
4116 CXXFLAGS="-O2"
4117 else
4118 CXXFLAGS=
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 depcc="$CXX" am_compiler_list=
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4130 $as_echo_n "checking dependency style of $depcc... " >&6; }
4131 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4135 # We make a subdir and do the tests there. Otherwise we can end up
4136 # making bogus files that we don't know about and never remove. For
4137 # instance it was reported that on HP-UX the gcc test will end up
4138 # making a dummy file named `D' -- because `-MD' means `put the output
4139 # in D'.
4140 mkdir conftest.dir
4141 # Copy depcomp to subdir because otherwise we won't find it if we're
4142 # using a relative directory.
4143 cp "$am_depcomp" conftest.dir
4144 cd conftest.dir
4145 # We will build objects and dependencies in a subdirectory because
4146 # it helps to detect inapplicable dependency modes. For instance
4147 # both Tru64's cc and ICC support -MD to output dependencies as a
4148 # side effect of compilation, but ICC will put the dependencies in
4149 # the current directory while Tru64 will put them in the object
4150 # directory.
4151 mkdir sub
4153 am_cv_CXX_dependencies_compiler_type=none
4154 if test "$am_compiler_list" = ""; then
4155 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4157 am__universal=false
4158 case " $depcc " in #(
4159 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4160 esac
4162 for depmode in $am_compiler_list; do
4163 # Setup a source with many dependencies, because some compilers
4164 # like to wrap large dependency lists on column 80 (with \), and
4165 # we should not choose a depcomp mode which is confused by this.
4167 # We need to recreate these files for each test, as the compiler may
4168 # overwrite some of them when testing with obscure command lines.
4169 # This happens at least with the AIX C compiler.
4170 : > sub/conftest.c
4171 for i in 1 2 3 4 5 6; do
4172 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4173 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4174 # Solaris 8's {/usr,}/bin/sh.
4175 touch sub/conftst$i.h
4176 done
4177 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4179 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4180 # mode. It turns out that the SunPro C++ compiler does not properly
4181 # handle `-M -o', and we need to detect this. Also, some Intel
4182 # versions had trouble with output in subdirs
4183 am__obj=sub/conftest.${OBJEXT-o}
4184 am__minus_obj="-o $am__obj"
4185 case $depmode in
4186 gcc)
4187 # This depmode causes a compiler race in universal mode.
4188 test "$am__universal" = false || continue
4190 nosideeffect)
4191 # after this tag, mechanisms are not by side-effect, so they'll
4192 # only be used when explicitly requested
4193 if test "x$enable_dependency_tracking" = xyes; then
4194 continue
4195 else
4196 break
4199 msvisualcpp | msvcmsys)
4200 # This compiler won't grok `-c -o', but also, the minuso test has
4201 # not run yet. These depmodes are late enough in the game, and
4202 # so weak that their functioning should not be impacted.
4203 am__obj=conftest.${OBJEXT-o}
4204 am__minus_obj=
4206 none) break ;;
4207 esac
4208 if depmode=$depmode \
4209 source=sub/conftest.c object=$am__obj \
4210 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4211 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4212 >/dev/null 2>conftest.err &&
4213 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4214 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4215 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4216 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4217 # icc doesn't choke on unknown options, it will just issue warnings
4218 # or remarks (even with -Werror). So we grep stderr for any message
4219 # that says an option was ignored or not supported.
4220 # When given -MP, icc 7.0 and 7.1 complain thusly:
4221 # icc: Command line warning: ignoring option '-M'; no argument required
4222 # The diagnosis changed in icc 8.0:
4223 # icc: Command line remark: option '-MP' not supported
4224 if (grep 'ignoring option' conftest.err ||
4225 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4226 am_cv_CXX_dependencies_compiler_type=$depmode
4227 break
4230 done
4232 cd ..
4233 rm -rf conftest.dir
4234 else
4235 am_cv_CXX_dependencies_compiler_type=none
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4240 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4241 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4244 test "x$enable_dependency_tracking" != xno \
4245 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4246 am__fastdepCXX_TRUE=
4247 am__fastdepCXX_FALSE='#'
4248 else
4249 am__fastdepCXX_TRUE='#'
4250 am__fastdepCXX_FALSE=
4254 # AC_PROG_LIBTOOL
4255 # AC_CONFIG_MACRO_DIR([..])
4256 ac_config_files="$ac_config_files Makefile libcilkrts.spec"
4259 ac_ext=c
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4265 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4266 # On Suns, sometimes $CPP names a directory.
4267 if test -n "$CPP" && test -d "$CPP"; then
4268 CPP=
4270 if test -z "$CPP"; then
4271 if test "${ac_cv_prog_CPP+set}" = set; then :
4272 $as_echo_n "(cached) " >&6
4273 else
4274 # Double quotes because CPP needs to be expanded
4275 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4277 ac_preproc_ok=false
4278 for ac_c_preproc_warn_flag in '' yes
4280 # Use a header file that comes with gcc, so configuring glibc
4281 # with a fresh cross-compiler works.
4282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4283 # <limits.h> exists even on freestanding compilers.
4284 # On the NeXT, cc -E runs the code through the compiler's parser,
4285 # not just through cpp. "Syntax error" is here to catch this case.
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4288 #ifdef __STDC__
4289 # include <limits.h>
4290 #else
4291 # include <assert.h>
4292 #endif
4293 Syntax error
4294 _ACEOF
4295 if ac_fn_c_try_cpp "$LINENO"; then :
4297 else
4298 # Broken: fails on valid input.
4299 continue
4301 rm -f conftest.err conftest.$ac_ext
4303 # OK, works on sane cases. Now check whether nonexistent headers
4304 # can be detected and how.
4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4306 /* end confdefs.h. */
4307 #include <ac_nonexistent.h>
4308 _ACEOF
4309 if ac_fn_c_try_cpp "$LINENO"; then :
4310 # Broken: success on invalid input.
4311 continue
4312 else
4313 # Passes both tests.
4314 ac_preproc_ok=:
4315 break
4317 rm -f conftest.err conftest.$ac_ext
4319 done
4320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4321 rm -f conftest.err conftest.$ac_ext
4322 if $ac_preproc_ok; then :
4323 break
4326 done
4327 ac_cv_prog_CPP=$CPP
4330 CPP=$ac_cv_prog_CPP
4331 else
4332 ac_cv_prog_CPP=$CPP
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4335 $as_echo "$CPP" >&6; }
4336 ac_preproc_ok=false
4337 for ac_c_preproc_warn_flag in '' yes
4339 # Use a header file that comes with gcc, so configuring glibc
4340 # with a fresh cross-compiler works.
4341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4342 # <limits.h> exists even on freestanding compilers.
4343 # On the NeXT, cc -E runs the code through the compiler's parser,
4344 # not just through cpp. "Syntax error" is here to catch this case.
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4347 #ifdef __STDC__
4348 # include <limits.h>
4349 #else
4350 # include <assert.h>
4351 #endif
4352 Syntax error
4353 _ACEOF
4354 if ac_fn_c_try_cpp "$LINENO"; then :
4356 else
4357 # Broken: fails on valid input.
4358 continue
4360 rm -f conftest.err conftest.$ac_ext
4362 # OK, works on sane cases. Now check whether nonexistent headers
4363 # can be detected and how.
4364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4365 /* end confdefs.h. */
4366 #include <ac_nonexistent.h>
4367 _ACEOF
4368 if ac_fn_c_try_cpp "$LINENO"; then :
4369 # Broken: success on invalid input.
4370 continue
4371 else
4372 # Passes both tests.
4373 ac_preproc_ok=:
4374 break
4376 rm -f conftest.err conftest.$ac_ext
4378 done
4379 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4380 rm -f conftest.err conftest.$ac_ext
4381 if $ac_preproc_ok; then :
4383 else
4384 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4385 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4386 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4387 See \`config.log' for more details." "$LINENO" 5; }
4390 ac_ext=c
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4398 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4399 if test "${ac_cv_path_GREP+set}" = set; then :
4400 $as_echo_n "(cached) " >&6
4401 else
4402 if test -z "$GREP"; then
4403 ac_path_GREP_found=false
4404 # Loop through the user's path and test for each of PROGNAME-LIST
4405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4406 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4408 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=.
4410 for ac_prog in grep ggrep; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do
4412 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4414 # Check for GNU ac_path_GREP and select it if it is found.
4415 # Check for GNU $ac_path_GREP
4416 case `"$ac_path_GREP" --version 2>&1` in
4417 *GNU*)
4418 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4420 ac_count=0
4421 $as_echo_n 0123456789 >"conftest.in"
4422 while :
4424 cat "conftest.in" "conftest.in" >"conftest.tmp"
4425 mv "conftest.tmp" "conftest.in"
4426 cp "conftest.in" "conftest.nl"
4427 $as_echo 'GREP' >> "conftest.nl"
4428 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4430 as_fn_arith $ac_count + 1 && ac_count=$as_val
4431 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_GREP="$ac_path_GREP"
4434 ac_path_GREP_max=$ac_count
4436 # 10*(2^10) chars as input seems more than enough
4437 test $ac_count -gt 10 && break
4438 done
4439 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4440 esac
4442 $ac_path_GREP_found && break 3
4443 done
4444 done
4445 done
4446 IFS=$as_save_IFS
4447 if test -z "$ac_cv_path_GREP"; then
4448 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4450 else
4451 ac_cv_path_GREP=$GREP
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4456 $as_echo "$ac_cv_path_GREP" >&6; }
4457 GREP="$ac_cv_path_GREP"
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4461 $as_echo_n "checking for egrep... " >&6; }
4462 if test "${ac_cv_path_EGREP+set}" = set; then :
4463 $as_echo_n "(cached) " >&6
4464 else
4465 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4466 then ac_cv_path_EGREP="$GREP -E"
4467 else
4468 if test -z "$EGREP"; then
4469 ac_path_EGREP_found=false
4470 # Loop through the user's path and test for each of PROGNAME-LIST
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_prog in egrep; do
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4479 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4480 # Check for GNU ac_path_EGREP and select it if it is found.
4481 # Check for GNU $ac_path_EGREP
4482 case `"$ac_path_EGREP" --version 2>&1` in
4483 *GNU*)
4484 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4486 ac_count=0
4487 $as_echo_n 0123456789 >"conftest.in"
4488 while :
4490 cat "conftest.in" "conftest.in" >"conftest.tmp"
4491 mv "conftest.tmp" "conftest.in"
4492 cp "conftest.in" "conftest.nl"
4493 $as_echo 'EGREP' >> "conftest.nl"
4494 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4495 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4496 as_fn_arith $ac_count + 1 && ac_count=$as_val
4497 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4498 # Best one so far, save it but keep looking for a better one
4499 ac_cv_path_EGREP="$ac_path_EGREP"
4500 ac_path_EGREP_max=$ac_count
4502 # 10*(2^10) chars as input seems more than enough
4503 test $ac_count -gt 10 && break
4504 done
4505 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4506 esac
4508 $ac_path_EGREP_found && break 3
4509 done
4510 done
4511 done
4512 IFS=$as_save_IFS
4513 if test -z "$ac_cv_path_EGREP"; then
4514 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4516 else
4517 ac_cv_path_EGREP=$EGREP
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4523 $as_echo "$ac_cv_path_EGREP" >&6; }
4524 EGREP="$ac_cv_path_EGREP"
4527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4528 $as_echo_n "checking for ANSI C header files... " >&6; }
4529 if test "${ac_cv_header_stdc+set}" = set; then :
4530 $as_echo_n "(cached) " >&6
4531 else
4532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4533 /* end confdefs.h. */
4534 #include <stdlib.h>
4535 #include <stdarg.h>
4536 #include <string.h>
4537 #include <float.h>
4540 main ()
4544 return 0;
4546 _ACEOF
4547 if ac_fn_c_try_compile "$LINENO"; then :
4548 ac_cv_header_stdc=yes
4549 else
4550 ac_cv_header_stdc=no
4552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4554 if test $ac_cv_header_stdc = yes; then
4555 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4558 #include <string.h>
4560 _ACEOF
4561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4562 $EGREP "memchr" >/dev/null 2>&1; then :
4564 else
4565 ac_cv_header_stdc=no
4567 rm -f conftest*
4571 if test $ac_cv_header_stdc = yes; then
4572 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <stdlib.h>
4577 _ACEOF
4578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4579 $EGREP "free" >/dev/null 2>&1; then :
4581 else
4582 ac_cv_header_stdc=no
4584 rm -f conftest*
4588 if test $ac_cv_header_stdc = yes; then
4589 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4590 if test "$cross_compiling" = yes; then :
4592 else
4593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4594 /* end confdefs.h. */
4595 #include <ctype.h>
4596 #include <stdlib.h>
4597 #if ((' ' & 0x0FF) == 0x020)
4598 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4599 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4600 #else
4601 # define ISLOWER(c) \
4602 (('a' <= (c) && (c) <= 'i') \
4603 || ('j' <= (c) && (c) <= 'r') \
4604 || ('s' <= (c) && (c) <= 'z'))
4605 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4606 #endif
4608 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4610 main ()
4612 int i;
4613 for (i = 0; i < 256; i++)
4614 if (XOR (islower (i), ISLOWER (i))
4615 || toupper (i) != TOUPPER (i))
4616 return 2;
4617 return 0;
4619 _ACEOF
4620 if ac_fn_c_try_run "$LINENO"; then :
4622 else
4623 ac_cv_header_stdc=no
4625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4626 conftest.$ac_objext conftest.beam conftest.$ac_ext
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4632 $as_echo "$ac_cv_header_stdc" >&6; }
4633 if test $ac_cv_header_stdc = yes; then
4635 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4639 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4640 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4641 inttypes.h stdint.h unistd.h
4642 do :
4643 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4644 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4646 eval as_val=\$$as_ac_Header
4647 if test "x$as_val" = x""yes; then :
4648 cat >>confdefs.h <<_ACEOF
4649 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4650 _ACEOF
4654 done
4657 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4658 # for constant arguments. Useless!
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4660 $as_echo_n "checking for working alloca.h... " >&6; }
4661 if test "${ac_cv_working_alloca_h+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #include <alloca.h>
4668 main ()
4670 char *p = (char *) alloca (2 * sizeof (int));
4671 if (p) return 0;
4673 return 0;
4675 _ACEOF
4676 if ac_fn_c_try_link "$LINENO"; then :
4677 ac_cv_working_alloca_h=yes
4678 else
4679 ac_cv_working_alloca_h=no
4681 rm -f core conftest.err conftest.$ac_objext \
4682 conftest$ac_exeext conftest.$ac_ext
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4685 $as_echo "$ac_cv_working_alloca_h" >&6; }
4686 if test $ac_cv_working_alloca_h = yes; then
4688 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4693 $as_echo_n "checking for alloca... " >&6; }
4694 if test "${ac_cv_func_alloca_works+set}" = set; then :
4695 $as_echo_n "(cached) " >&6
4696 else
4697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4698 /* end confdefs.h. */
4699 #ifdef __GNUC__
4700 # define alloca __builtin_alloca
4701 #else
4702 # ifdef _MSC_VER
4703 # include <malloc.h>
4704 # define alloca _alloca
4705 # else
4706 # ifdef HAVE_ALLOCA_H
4707 # include <alloca.h>
4708 # else
4709 # ifdef _AIX
4710 #pragma alloca
4711 # else
4712 # ifndef alloca /* predefined by HP cc +Olibcalls */
4713 char *alloca ();
4714 # endif
4715 # endif
4716 # endif
4717 # endif
4718 #endif
4721 main ()
4723 char *p = (char *) alloca (1);
4724 if (p) return 0;
4726 return 0;
4728 _ACEOF
4729 if ac_fn_c_try_link "$LINENO"; then :
4730 ac_cv_func_alloca_works=yes
4731 else
4732 ac_cv_func_alloca_works=no
4734 rm -f core conftest.err conftest.$ac_objext \
4735 conftest$ac_exeext conftest.$ac_ext
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4738 $as_echo "$ac_cv_func_alloca_works" >&6; }
4740 if test $ac_cv_func_alloca_works = yes; then
4742 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4744 else
4745 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4746 # that cause trouble. Some versions do not even contain alloca or
4747 # contain a buggy version. If you still want to use their alloca,
4748 # use ar to extract alloca.o from them instead of compiling alloca.c.
4750 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4752 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4756 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4757 if test "${ac_cv_os_cray+set}" = set; then :
4758 $as_echo_n "(cached) " >&6
4759 else
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 #if defined CRAY && ! defined CRAY2
4763 webecray
4764 #else
4765 wenotbecray
4766 #endif
4768 _ACEOF
4769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4770 $EGREP "webecray" >/dev/null 2>&1; then :
4771 ac_cv_os_cray=yes
4772 else
4773 ac_cv_os_cray=no
4775 rm -f conftest*
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4779 $as_echo "$ac_cv_os_cray" >&6; }
4780 if test $ac_cv_os_cray = yes; then
4781 for ac_func in _getb67 GETB67 getb67; do
4782 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4783 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4784 eval as_val=\$$as_ac_var
4785 if test "x$as_val" = x""yes; then :
4787 cat >>confdefs.h <<_ACEOF
4788 #define CRAY_STACKSEG_END $ac_func
4789 _ACEOF
4791 break
4794 done
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4798 $as_echo_n "checking stack direction for C alloca... " >&6; }
4799 if test "${ac_cv_c_stack_direction+set}" = set; then :
4800 $as_echo_n "(cached) " >&6
4801 else
4802 if test "$cross_compiling" = yes; then :
4803 ac_cv_c_stack_direction=0
4804 else
4805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806 /* end confdefs.h. */
4807 $ac_includes_default
4809 find_stack_direction ()
4811 static char *addr = 0;
4812 auto char dummy;
4813 if (addr == 0)
4815 addr = &dummy;
4816 return find_stack_direction ();
4818 else
4819 return (&dummy > addr) ? 1 : -1;
4823 main ()
4825 return find_stack_direction () < 0;
4827 _ACEOF
4828 if ac_fn_c_try_run "$LINENO"; then :
4829 ac_cv_c_stack_direction=1
4830 else
4831 ac_cv_c_stack_direction=-1
4833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4834 conftest.$ac_objext conftest.beam conftest.$ac_ext
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4839 $as_echo "$ac_cv_c_stack_direction" >&6; }
4840 cat >>confdefs.h <<_ACEOF
4841 #define STACK_DIRECTION $ac_cv_c_stack_direction
4842 _ACEOF
4848 # Check whether the target supports protected visibility.
4849 save_CFLAGS="$CFLAGS"
4850 CFLAGS="$CFLAGS -Werror"
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 void __attribute__((visibility("protected"))) foo(void) { }
4855 main ()
4859 return 0;
4861 _ACEOF
4862 if ac_fn_c_try_compile "$LINENO"; then :
4863 libcilkrts_cv_have_attribute_visibility=yes
4864 else
4865 libcilkrts_cv_have_attribute_visibility=no
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 CFLAGS="$save_CFLAGS"
4869 if test $libcilkrts_cv_have_attribute_visibility = yes; then
4871 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
4875 # Get target configury.
4876 . ${srcdir}/configure.tgt
4877 if test -n "$UNSUPPORTED"; then
4878 as_fn_error "Configuration ${target} is unsupported." "$LINENO" 5
4881 if test "${multilib}" = "yes"; then
4882 multilib_arg="--enable-multilib"
4883 else
4884 multilib_arg=
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4888 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4889 # Check whether --enable-version-specific-runtime-libs was given.
4890 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4891 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4892 yes) enable_version_specific_runtime_libs=yes ;;
4893 no) enable_version_specific_runtime_libs=no ;;
4894 *) as_fn_error "Unknown argument to enable/disable version-specific libs
4895 " "$LINENO" 5;;
4896 esac
4897 else
4898 enable_version_specific_runtime_libs=no
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4902 $as_echo "$enable_version_specific_runtime_libs" >&6; }
4905 # Calculate toolexeclibdir
4906 # Also toolexecdir, though it's only used in toolexeclibdir
4907 case ${enable_version_specific_runtime_libs} in
4908 yes)
4909 # Need the gcc compiler version to know where to install libraries
4910 # and header files if --enable-version-specific-runtime-libs option
4911 # is selected.
4912 toolexecdir='$(libdir)/gcc/$(target_alias)'
4913 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4916 if test -n "$with_cross_host" &&
4917 test x"$with_cross_host" != x"no"; then
4918 # Install a library built with a cross compiler in tooldir, not libdir.
4919 toolexecdir='$(exec_prefix)/$(target_alias)'
4920 toolexeclibdir='$(toolexecdir)/lib'
4921 else
4922 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4923 toolexeclibdir='$(libdir)'
4925 multi_os_directory=`$CC -print-multi-os-directory`
4926 case $multi_os_directory in
4927 .) ;; # Avoid trailing /.
4928 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4929 esac
4931 esac
4933 # Set config_dir based on the target. config_dir specifies where to get
4934 # target-specific files. The generic implementation is incomplete, but
4935 # contains information on what's needed
4936 case "${target}" in
4938 x86_64-*-*)
4939 config_dir="x86"
4942 i?86-*-*)
4943 config_dir="x86"
4947 config_dir="generic"
4950 esac
4953 # We have linker scripts for appropriate operating systems
4954 linux_linker_script=no
4955 case "${host}" in
4956 *-*-linux*)
4957 linux_linker_script=yes
4959 esac
4960 if test "$linux_linker_script" = "yes"; then
4961 LINUX_LINKER_SCRIPT_TRUE=
4962 LINUX_LINKER_SCRIPT_FALSE='#'
4963 else
4964 LINUX_LINKER_SCRIPT_TRUE='#'
4965 LINUX_LINKER_SCRIPT_FALSE=
4969 mac_linker_script=no
4970 case "${host}" in
4971 *-*-apple*)
4972 mac_linker_script=yes
4974 esac
4975 if test "$mac_linker_script" = "yes"; then
4976 MAC_LINKER_SCRIPT_TRUE=
4977 MAC_LINKER_SCRIPT_FALSE='#'
4978 else
4979 MAC_LINKER_SCRIPT_TRUE='#'
4980 MAC_LINKER_SCRIPT_FALSE=
4984 enable_dlopen=yes
4988 case `pwd` in
4989 *\ * | *\ *)
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4991 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4992 esac
4996 macro_version='2.2.7a'
4997 macro_revision='1.3134'
5011 ltmain="$ac_aux_dir/ltmain.sh"
5013 # Backslashify metacharacters that are still active within
5014 # double-quoted strings.
5015 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5017 # Same as above, but do not quote variable references.
5018 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5020 # Sed substitution to delay expansion of an escaped shell variable in a
5021 # double_quote_subst'ed string.
5022 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5024 # Sed substitution to delay expansion of an escaped single quote.
5025 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5027 # Sed substitution to avoid accidental globbing in evaled expressions
5028 no_glob_subst='s/\*/\\\*/g'
5030 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5031 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5032 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5035 $as_echo_n "checking how to print strings... " >&6; }
5036 # Test print first, because it will be a builtin if present.
5037 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5038 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5039 ECHO='print -r --'
5040 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5041 ECHO='printf %s\n'
5042 else
5043 # Use this function as a fallback that always works.
5044 func_fallback_echo ()
5046 eval 'cat <<_LTECHO_EOF
5048 _LTECHO_EOF'
5050 ECHO='func_fallback_echo'
5053 # func_echo_all arg...
5054 # Invoke $ECHO with all args, space-separated.
5055 func_echo_all ()
5057 $ECHO ""
5060 case "$ECHO" in
5061 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5062 $as_echo "printf" >&6; } ;;
5063 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5064 $as_echo "print -r" >&6; } ;;
5065 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5066 $as_echo "cat" >&6; } ;;
5067 esac
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5083 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5084 if test "${ac_cv_path_SED+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5088 for ac_i in 1 2 3 4 5 6 7; do
5089 ac_script="$ac_script$as_nl$ac_script"
5090 done
5091 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5092 { ac_script=; unset ac_script;}
5093 if test -z "$SED"; then
5094 ac_path_SED_found=false
5095 # Loop through the user's path and test for each of PROGNAME-LIST
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097 for as_dir in $PATH
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_prog in sed gsed; do
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5104 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5105 # Check for GNU ac_path_SED and select it if it is found.
5106 # Check for GNU $ac_path_SED
5107 case `"$ac_path_SED" --version 2>&1` in
5108 *GNU*)
5109 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5111 ac_count=0
5112 $as_echo_n 0123456789 >"conftest.in"
5113 while :
5115 cat "conftest.in" "conftest.in" >"conftest.tmp"
5116 mv "conftest.tmp" "conftest.in"
5117 cp "conftest.in" "conftest.nl"
5118 $as_echo '' >> "conftest.nl"
5119 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5120 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5121 as_fn_arith $ac_count + 1 && ac_count=$as_val
5122 if test $ac_count -gt ${ac_path_SED_max-0}; then
5123 # Best one so far, save it but keep looking for a better one
5124 ac_cv_path_SED="$ac_path_SED"
5125 ac_path_SED_max=$ac_count
5127 # 10*(2^10) chars as input seems more than enough
5128 test $ac_count -gt 10 && break
5129 done
5130 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5131 esac
5133 $ac_path_SED_found && break 3
5134 done
5135 done
5136 done
5137 IFS=$as_save_IFS
5138 if test -z "$ac_cv_path_SED"; then
5139 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5141 else
5142 ac_cv_path_SED=$SED
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5147 $as_echo "$ac_cv_path_SED" >&6; }
5148 SED="$ac_cv_path_SED"
5149 rm -f conftest.sed
5151 test -z "$SED" && SED=sed
5152 Xsed="$SED -e 1s/^X//"
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5165 $as_echo_n "checking for fgrep... " >&6; }
5166 if test "${ac_cv_path_FGREP+set}" = set; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5170 then ac_cv_path_FGREP="$GREP -F"
5171 else
5172 if test -z "$FGREP"; then
5173 ac_path_FGREP_found=false
5174 # Loop through the user's path and test for each of PROGNAME-LIST
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_prog in fgrep; do
5181 for ac_exec_ext in '' $ac_executable_extensions; do
5182 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5183 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5184 # Check for GNU ac_path_FGREP and select it if it is found.
5185 # Check for GNU $ac_path_FGREP
5186 case `"$ac_path_FGREP" --version 2>&1` in
5187 *GNU*)
5188 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5190 ac_count=0
5191 $as_echo_n 0123456789 >"conftest.in"
5192 while :
5194 cat "conftest.in" "conftest.in" >"conftest.tmp"
5195 mv "conftest.tmp" "conftest.in"
5196 cp "conftest.in" "conftest.nl"
5197 $as_echo 'FGREP' >> "conftest.nl"
5198 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5199 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5200 as_fn_arith $ac_count + 1 && ac_count=$as_val
5201 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5202 # Best one so far, save it but keep looking for a better one
5203 ac_cv_path_FGREP="$ac_path_FGREP"
5204 ac_path_FGREP_max=$ac_count
5206 # 10*(2^10) chars as input seems more than enough
5207 test $ac_count -gt 10 && break
5208 done
5209 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5210 esac
5212 $ac_path_FGREP_found && break 3
5213 done
5214 done
5215 done
5216 IFS=$as_save_IFS
5217 if test -z "$ac_cv_path_FGREP"; then
5218 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5220 else
5221 ac_cv_path_FGREP=$FGREP
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5227 $as_echo "$ac_cv_path_FGREP" >&6; }
5228 FGREP="$ac_cv_path_FGREP"
5231 test -z "$GREP" && GREP=grep
5251 # Check whether --with-gnu-ld was given.
5252 if test "${with_gnu_ld+set}" = set; then :
5253 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5254 else
5255 with_gnu_ld=no
5258 ac_prog=ld
5259 if test "$GCC" = yes; then
5260 # Check if gcc -print-prog-name=ld gives a path.
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5262 $as_echo_n "checking for ld used by $CC... " >&6; }
5263 case $host in
5264 *-*-mingw*)
5265 # gcc leaves a trailing carriage return which upsets mingw
5266 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5268 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5269 esac
5270 case $ac_prog in
5271 # Accept absolute paths.
5272 [\\/]* | ?:[\\/]*)
5273 re_direlt='/[^/][^/]*/\.\./'
5274 # Canonicalize the pathname of ld
5275 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5276 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5277 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5278 done
5279 test -z "$LD" && LD="$ac_prog"
5282 # If it fails, then pretend we aren't using GCC.
5283 ac_prog=ld
5286 # If it is relative, then search for the first ld in PATH.
5287 with_gnu_ld=unknown
5289 esac
5290 elif test "$with_gnu_ld" = yes; then
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5292 $as_echo_n "checking for GNU ld... " >&6; }
5293 else
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5295 $as_echo_n "checking for non-GNU ld... " >&6; }
5297 if test "${lt_cv_path_LD+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -z "$LD"; then
5301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5302 for ac_dir in $PATH; do
5303 IFS="$lt_save_ifs"
5304 test -z "$ac_dir" && ac_dir=.
5305 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5306 lt_cv_path_LD="$ac_dir/$ac_prog"
5307 # Check to see if the program is GNU ld. I'd rather use --version,
5308 # but apparently some variants of GNU ld only accept -v.
5309 # Break only if it was the GNU/non-GNU ld that we prefer.
5310 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5311 *GNU* | *'with BFD'*)
5312 test "$with_gnu_ld" != no && break
5315 test "$with_gnu_ld" != yes && break
5317 esac
5319 done
5320 IFS="$lt_save_ifs"
5321 else
5322 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5326 LD="$lt_cv_path_LD"
5327 if test -n "$LD"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5329 $as_echo "$LD" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5334 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5336 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5337 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5341 case `$LD -v 2>&1 </dev/null` in
5342 *GNU* | *'with BFD'*)
5343 lt_cv_prog_gnu_ld=yes
5346 lt_cv_prog_gnu_ld=no
5348 esac
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5351 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5352 with_gnu_ld=$lt_cv_prog_gnu_ld
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5363 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5364 if test "${lt_cv_path_NM+set}" = set; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test -n "$NM"; then
5368 # Let the user override the test.
5369 lt_cv_path_NM="$NM"
5370 else
5371 lt_nm_to_check="${ac_tool_prefix}nm"
5372 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5373 lt_nm_to_check="$lt_nm_to_check nm"
5375 for lt_tmp_nm in $lt_nm_to_check; do
5376 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5377 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5378 IFS="$lt_save_ifs"
5379 test -z "$ac_dir" && ac_dir=.
5380 tmp_nm="$ac_dir/$lt_tmp_nm"
5381 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5382 # Check to see if the nm accepts a BSD-compat flag.
5383 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5384 # nm: unknown option "B" ignored
5385 # Tru64's nm complains that /dev/null is an invalid object file
5386 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5387 */dev/null* | *'Invalid file or object type'*)
5388 lt_cv_path_NM="$tmp_nm -B"
5389 break
5392 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5393 */dev/null*)
5394 lt_cv_path_NM="$tmp_nm -p"
5395 break
5398 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5399 continue # so that we can try to find one that supports BSD flags
5401 esac
5403 esac
5405 done
5406 IFS="$lt_save_ifs"
5407 done
5408 : ${lt_cv_path_NM=no}
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5412 $as_echo "$lt_cv_path_NM" >&6; }
5413 if test "$lt_cv_path_NM" != "no"; then
5414 NM="$lt_cv_path_NM"
5415 else
5416 # Didn't find any BSD compatible name lister, look for dumpbin.
5417 if test -n "$DUMPBIN"; then :
5418 # Let the user override the test.
5419 else
5420 if test -n "$ac_tool_prefix"; then
5421 for ac_prog in dumpbin "link -dump"
5423 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5424 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5426 $as_echo_n "checking for $ac_word... " >&6; }
5427 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 if test -n "$DUMPBIN"; then
5431 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5432 else
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434 for as_dir in $PATH
5436 IFS=$as_save_IFS
5437 test -z "$as_dir" && as_dir=.
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5440 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5442 break 2
5444 done
5445 done
5446 IFS=$as_save_IFS
5450 DUMPBIN=$ac_cv_prog_DUMPBIN
5451 if test -n "$DUMPBIN"; then
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5453 $as_echo "$DUMPBIN" >&6; }
5454 else
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5456 $as_echo "no" >&6; }
5460 test -n "$DUMPBIN" && break
5461 done
5463 if test -z "$DUMPBIN"; then
5464 ac_ct_DUMPBIN=$DUMPBIN
5465 for ac_prog in dumpbin "link -dump"
5467 # Extract the first word of "$ac_prog", so it can be a program name with args.
5468 set dummy $ac_prog; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 if test -n "$ac_ct_DUMPBIN"; then
5475 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5476 else
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5480 IFS=$as_save_IFS
5481 test -z "$as_dir" && as_dir=.
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5484 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486 break 2
5488 done
5489 done
5490 IFS=$as_save_IFS
5494 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5495 if test -n "$ac_ct_DUMPBIN"; then
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5497 $as_echo "$ac_ct_DUMPBIN" >&6; }
5498 else
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5504 test -n "$ac_ct_DUMPBIN" && break
5505 done
5507 if test "x$ac_ct_DUMPBIN" = x; then
5508 DUMPBIN=":"
5509 else
5510 case $cross_compiling:$ac_tool_warned in
5511 yes:)
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5514 ac_tool_warned=yes ;;
5515 esac
5516 DUMPBIN=$ac_ct_DUMPBIN
5520 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5521 *COFF*)
5522 DUMPBIN="$DUMPBIN -symbols"
5525 DUMPBIN=:
5527 esac
5530 if test "$DUMPBIN" != ":"; then
5531 NM="$DUMPBIN"
5534 test -z "$NM" && NM=nm
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5542 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5543 if test "${lt_cv_nm_interface+set}" = set; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 lt_cv_nm_interface="BSD nm"
5547 echo "int some_variable = 0;" > conftest.$ac_ext
5548 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5549 (eval "$ac_compile" 2>conftest.err)
5550 cat conftest.err >&5
5551 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5552 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5553 cat conftest.err >&5
5554 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5555 cat conftest.out >&5
5556 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5557 lt_cv_nm_interface="MS dumpbin"
5559 rm -f conftest*
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5562 $as_echo "$lt_cv_nm_interface" >&6; }
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5565 $as_echo_n "checking whether ln -s works... " >&6; }
5566 LN_S=$as_ln_s
5567 if test "$LN_S" = "ln -s"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5569 $as_echo "yes" >&6; }
5570 else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5572 $as_echo "no, using $LN_S" >&6; }
5575 # find the maximum length of command line arguments
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5577 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5578 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5582 teststring="ABCD"
5584 case $build_os in
5585 msdosdjgpp*)
5586 # On DJGPP, this test can blow up pretty badly due to problems in libc
5587 # (any single argument exceeding 2000 bytes causes a buffer overrun
5588 # during glob expansion). Even if it were fixed, the result of this
5589 # check would be larger than it should be.
5590 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5593 gnu*)
5594 # Under GNU Hurd, this test is not required because there is
5595 # no limit to the length of command line arguments.
5596 # Libtool will interpret -1 as no limit whatsoever
5597 lt_cv_sys_max_cmd_len=-1;
5600 cygwin* | mingw* | cegcc*)
5601 # On Win9x/ME, this test blows up -- it succeeds, but takes
5602 # about 5 minutes as the teststring grows exponentially.
5603 # Worse, since 9x/ME are not pre-emptively multitasking,
5604 # you end up with a "frozen" computer, even though with patience
5605 # the test eventually succeeds (with a max line length of 256k).
5606 # Instead, let's just punt: use the minimum linelength reported by
5607 # all of the supported platforms: 8192 (on NT/2K/XP).
5608 lt_cv_sys_max_cmd_len=8192;
5611 mint*)
5612 # On MiNT this can take a long time and run out of memory.
5613 lt_cv_sys_max_cmd_len=8192;
5616 amigaos*)
5617 # On AmigaOS with pdksh, this test takes hours, literally.
5618 # So we just punt and use a minimum line length of 8192.
5619 lt_cv_sys_max_cmd_len=8192;
5622 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5623 # This has been around since 386BSD, at least. Likely further.
5624 if test -x /sbin/sysctl; then
5625 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5626 elif test -x /usr/sbin/sysctl; then
5627 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5628 else
5629 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5631 # And add a safety zone
5632 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5633 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5636 interix*)
5637 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5638 lt_cv_sys_max_cmd_len=196608
5641 osf*)
5642 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5643 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5644 # nice to cause kernel panics so lets avoid the loop below.
5645 # First set a reasonable default.
5646 lt_cv_sys_max_cmd_len=16384
5648 if test -x /sbin/sysconfig; then
5649 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5650 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5651 esac
5654 sco3.2v5*)
5655 lt_cv_sys_max_cmd_len=102400
5657 sysv5* | sco5v6* | sysv4.2uw2*)
5658 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5659 if test -n "$kargmax"; then
5660 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5661 else
5662 lt_cv_sys_max_cmd_len=32768
5666 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5667 if test -n "$lt_cv_sys_max_cmd_len"; then
5668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5670 else
5671 # Make teststring a little bigger before we do anything with it.
5672 # a 1K string should be a reasonable start.
5673 for i in 1 2 3 4 5 6 7 8 ; do
5674 teststring=$teststring$teststring
5675 done
5676 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5677 # If test is not a shell built-in, we'll probably end up computing a
5678 # maximum length that is only half of the actual maximum length, but
5679 # we can't tell.
5680 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5681 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5682 test $i != 17 # 1/2 MB should be enough
5684 i=`expr $i + 1`
5685 teststring=$teststring$teststring
5686 done
5687 # Only check the string length outside the loop.
5688 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5689 teststring=
5690 # Add a significant safety factor because C++ compilers can tack on
5691 # massive amounts of additional arguments before passing them to the
5692 # linker. It appears as though 1/2 is a usable value.
5693 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5696 esac
5700 if test -n $lt_cv_sys_max_cmd_len ; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5702 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5703 else
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5705 $as_echo "none" >&6; }
5707 max_cmd_len=$lt_cv_sys_max_cmd_len
5714 : ${CP="cp -f"}
5715 : ${MV="mv -f"}
5716 : ${RM="rm -f"}
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5719 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5720 # Try some XSI features
5721 xsi_shell=no
5722 ( _lt_dummy="a/b/c"
5723 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5724 = c,a/b,, \
5725 && eval 'test $(( 1 + 1 )) -eq 2 \
5726 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5727 && xsi_shell=yes
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5729 $as_echo "$xsi_shell" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5733 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5734 lt_shell_append=no
5735 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5736 >/dev/null 2>&1 \
5737 && lt_shell_append=yes
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5739 $as_echo "$lt_shell_append" >&6; }
5742 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5743 lt_unset=unset
5744 else
5745 lt_unset=false
5752 # test EBCDIC or ASCII
5753 case `echo X|tr X '\101'` in
5754 A) # ASCII based system
5755 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5756 lt_SP2NL='tr \040 \012'
5757 lt_NL2SP='tr \015\012 \040\040'
5759 *) # EBCDIC based system
5760 lt_SP2NL='tr \100 \n'
5761 lt_NL2SP='tr \r\n \100\100'
5763 esac
5773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5774 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5775 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5776 $as_echo_n "(cached) " >&6
5777 else
5778 lt_cv_ld_reload_flag='-r'
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5781 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5782 reload_flag=$lt_cv_ld_reload_flag
5783 case $reload_flag in
5784 "" | " "*) ;;
5785 *) reload_flag=" $reload_flag" ;;
5786 esac
5787 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5788 case $host_os in
5789 darwin*)
5790 if test "$GCC" = yes; then
5791 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5792 else
5793 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5796 esac
5806 if test -n "$ac_tool_prefix"; then
5807 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5808 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$OBJDUMP"; then
5815 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5824 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5828 done
5829 done
5830 IFS=$as_save_IFS
5834 OBJDUMP=$ac_cv_prog_OBJDUMP
5835 if test -n "$OBJDUMP"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5837 $as_echo "$OBJDUMP" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5845 if test -z "$ac_cv_prog_OBJDUMP"; then
5846 ac_ct_OBJDUMP=$OBJDUMP
5847 # Extract the first word of "objdump", so it can be a program name with args.
5848 set dummy objdump; ac_word=$2
5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5850 $as_echo_n "checking for $ac_word... " >&6; }
5851 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5852 $as_echo_n "(cached) " >&6
5853 else
5854 if test -n "$ac_ct_OBJDUMP"; then
5855 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5856 else
5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 for as_dir in $PATH
5860 IFS=$as_save_IFS
5861 test -z "$as_dir" && as_dir=.
5862 for ac_exec_ext in '' $ac_executable_extensions; do
5863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5864 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 break 2
5868 done
5869 done
5870 IFS=$as_save_IFS
5874 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5875 if test -n "$ac_ct_OBJDUMP"; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5877 $as_echo "$ac_ct_OBJDUMP" >&6; }
5878 else
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5880 $as_echo "no" >&6; }
5883 if test "x$ac_ct_OBJDUMP" = x; then
5884 OBJDUMP="false"
5885 else
5886 case $cross_compiling:$ac_tool_warned in
5887 yes:)
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5889 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5890 ac_tool_warned=yes ;;
5891 esac
5892 OBJDUMP=$ac_ct_OBJDUMP
5894 else
5895 OBJDUMP="$ac_cv_prog_OBJDUMP"
5898 test -z "$OBJDUMP" && OBJDUMP=objdump
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5909 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5910 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 lt_cv_file_magic_cmd='$MAGIC_CMD'
5914 lt_cv_file_magic_test_file=
5915 lt_cv_deplibs_check_method='unknown'
5916 # Need to set the preceding variable on all platforms that support
5917 # interlibrary dependencies.
5918 # 'none' -- dependencies not supported.
5919 # `unknown' -- same as none, but documents that we really don't know.
5920 # 'pass_all' -- all dependencies passed with no checks.
5921 # 'test_compile' -- check by making test program.
5922 # 'file_magic [[regex]]' -- check by looking for files in library path
5923 # which responds to the $file_magic_cmd with a given extended regex.
5924 # If you have `file' or equivalent on your system and you're not sure
5925 # whether `pass_all' will *always* work, you probably want this one.
5927 case $host_os in
5928 aix[4-9]*)
5929 lt_cv_deplibs_check_method=pass_all
5932 beos*)
5933 lt_cv_deplibs_check_method=pass_all
5936 bsdi[45]*)
5937 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5938 lt_cv_file_magic_cmd='/usr/bin/file -L'
5939 lt_cv_file_magic_test_file=/shlib/libc.so
5942 cygwin*)
5943 # func_win32_libid is a shell function defined in ltmain.sh
5944 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5945 lt_cv_file_magic_cmd='func_win32_libid'
5948 mingw* | pw32*)
5949 # Base MSYS/MinGW do not provide the 'file' command needed by
5950 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5951 # unless we find 'file', for example because we are cross-compiling.
5952 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5953 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5954 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5955 lt_cv_file_magic_cmd='func_win32_libid'
5956 else
5957 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5958 lt_cv_file_magic_cmd='$OBJDUMP -f'
5962 cegcc*)
5963 # use the weaker test based on 'objdump'. See mingw*.
5964 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5965 lt_cv_file_magic_cmd='$OBJDUMP -f'
5968 darwin* | rhapsody*)
5969 lt_cv_deplibs_check_method=pass_all
5972 freebsd* | dragonfly*)
5973 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5974 case $host_cpu in
5975 i*86 )
5976 # Not sure whether the presence of OpenBSD here was a mistake.
5977 # Let's accept both of them until this is cleared up.
5978 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5979 lt_cv_file_magic_cmd=/usr/bin/file
5980 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5982 esac
5983 else
5984 lt_cv_deplibs_check_method=pass_all
5988 gnu*)
5989 lt_cv_deplibs_check_method=pass_all
5992 haiku*)
5993 lt_cv_deplibs_check_method=pass_all
5996 hpux10.20* | hpux11*)
5997 lt_cv_file_magic_cmd=/usr/bin/file
5998 case $host_cpu in
5999 ia64*)
6000 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6001 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6003 hppa*64*)
6004 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]'
6005 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6008 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6009 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6011 esac
6014 interix[3-9]*)
6015 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6019 irix5* | irix6* | nonstopux*)
6020 case $LD in
6021 *-32|*"-32 ") libmagic=32-bit;;
6022 *-n32|*"-n32 ") libmagic=N32;;
6023 *-64|*"-64 ") libmagic=64-bit;;
6024 *) libmagic=never-match;;
6025 esac
6026 lt_cv_deplibs_check_method=pass_all
6029 # This must be Linux ELF.
6030 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6031 lt_cv_deplibs_check_method=pass_all
6034 netbsd*)
6035 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6036 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6037 else
6038 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6042 newos6*)
6043 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6044 lt_cv_file_magic_cmd=/usr/bin/file
6045 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6048 *nto* | *qnx*)
6049 lt_cv_deplibs_check_method=pass_all
6052 openbsd*)
6053 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6054 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6055 else
6056 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6060 osf3* | osf4* | osf5*)
6061 lt_cv_deplibs_check_method=pass_all
6064 rdos*)
6065 lt_cv_deplibs_check_method=pass_all
6068 solaris*)
6069 lt_cv_deplibs_check_method=pass_all
6072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6073 lt_cv_deplibs_check_method=pass_all
6076 sysv4 | sysv4.3*)
6077 case $host_vendor in
6078 motorola)
6079 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]'
6080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6082 ncr)
6083 lt_cv_deplibs_check_method=pass_all
6085 sequent)
6086 lt_cv_file_magic_cmd='/bin/file'
6087 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6089 sni)
6090 lt_cv_file_magic_cmd='/bin/file'
6091 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6092 lt_cv_file_magic_test_file=/lib/libc.so
6094 siemens)
6095 lt_cv_deplibs_check_method=pass_all
6098 lt_cv_deplibs_check_method=pass_all
6100 esac
6103 tpf*)
6104 lt_cv_deplibs_check_method=pass_all
6106 esac
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6110 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6111 file_magic_cmd=$lt_cv_file_magic_cmd
6112 deplibs_check_method=$lt_cv_deplibs_check_method
6113 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ar; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if test "${ac_cv_prog_AR+set}" = set; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if test -n "$AR"; then
6135 ac_cv_prog_AR="$AR" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6144 ac_cv_prog_AR="${ac_tool_prefix}ar"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6148 done
6149 done
6150 IFS=$as_save_IFS
6154 AR=$ac_cv_prog_AR
6155 if test -n "$AR"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6157 $as_echo "$AR" >&6; }
6158 else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6165 if test -z "$ac_cv_prog_AR"; then
6166 ac_ct_AR=$AR
6167 # Extract the first word of "ar", so it can be a program name with args.
6168 set dummy ar; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 if test -n "$ac_ct_AR"; then
6175 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6184 ac_cv_prog_ac_ct_AR="ar"
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6188 done
6189 done
6190 IFS=$as_save_IFS
6194 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6195 if test -n "$ac_ct_AR"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6197 $as_echo "$ac_ct_AR" >&6; }
6198 else
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6203 if test "x$ac_ct_AR" = x; then
6204 AR="false"
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212 AR=$ac_ct_AR
6214 else
6215 AR="$ac_cv_prog_AR"
6218 test -z "$AR" && AR=ar
6219 test -z "$AR_FLAGS" && AR_FLAGS=cru
6231 if test -n "$ac_tool_prefix"; then
6232 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6233 set dummy ${ac_tool_prefix}strip; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if test "${ac_cv_prog_STRIP+set}" = set; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 if test -n "$STRIP"; then
6240 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6249 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6253 done
6254 done
6255 IFS=$as_save_IFS
6259 STRIP=$ac_cv_prog_STRIP
6260 if test -n "$STRIP"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6262 $as_echo "$STRIP" >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6270 if test -z "$ac_cv_prog_STRIP"; then
6271 ac_ct_STRIP=$STRIP
6272 # Extract the first word of "strip", so it can be a program name with args.
6273 set dummy strip; ac_word=$2
6274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6275 $as_echo_n "checking for $ac_word... " >&6; }
6276 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6277 $as_echo_n "(cached) " >&6
6278 else
6279 if test -n "$ac_ct_STRIP"; then
6280 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6281 else
6282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6283 for as_dir in $PATH
6285 IFS=$as_save_IFS
6286 test -z "$as_dir" && as_dir=.
6287 for ac_exec_ext in '' $ac_executable_extensions; do
6288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6289 ac_cv_prog_ac_ct_STRIP="strip"
6290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 break 2
6293 done
6294 done
6295 IFS=$as_save_IFS
6299 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6300 if test -n "$ac_ct_STRIP"; then
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6302 $as_echo "$ac_ct_STRIP" >&6; }
6303 else
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6305 $as_echo "no" >&6; }
6308 if test "x$ac_ct_STRIP" = x; then
6309 STRIP=":"
6310 else
6311 case $cross_compiling:$ac_tool_warned in
6312 yes:)
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6314 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6315 ac_tool_warned=yes ;;
6316 esac
6317 STRIP=$ac_ct_STRIP
6319 else
6320 STRIP="$ac_cv_prog_STRIP"
6323 test -z "$STRIP" && STRIP=:
6330 if test -n "$ac_tool_prefix"; then
6331 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6332 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -n "$RANLIB"; then
6339 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6352 done
6353 done
6354 IFS=$as_save_IFS
6358 RANLIB=$ac_cv_prog_RANLIB
6359 if test -n "$RANLIB"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6361 $as_echo "$RANLIB" >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6369 if test -z "$ac_cv_prog_RANLIB"; then
6370 ac_ct_RANLIB=$RANLIB
6371 # Extract the first word of "ranlib", so it can be a program name with args.
6372 set dummy ranlib; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if test -n "$ac_ct_RANLIB"; then
6379 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_ac_ct_RANLIB="ranlib"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6392 done
6393 done
6394 IFS=$as_save_IFS
6398 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6399 if test -n "$ac_ct_RANLIB"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6401 $as_echo "$ac_ct_RANLIB" >&6; }
6402 else
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6407 if test "x$ac_ct_RANLIB" = x; then
6408 RANLIB=":"
6409 else
6410 case $cross_compiling:$ac_tool_warned in
6411 yes:)
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6414 ac_tool_warned=yes ;;
6415 esac
6416 RANLIB=$ac_ct_RANLIB
6418 else
6419 RANLIB="$ac_cv_prog_RANLIB"
6422 test -z "$RANLIB" && RANLIB=:
6429 # Determine commands to create old-style static archives.
6430 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6431 old_postinstall_cmds='chmod 644 $oldlib'
6432 old_postuninstall_cmds=
6434 if test -n "$RANLIB"; then
6435 case $host_os in
6436 openbsd*)
6437 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6440 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6442 esac
6443 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6446 case $host_os in
6447 darwin*)
6448 lock_old_archive_extraction=yes ;;
6450 lock_old_archive_extraction=no ;;
6451 esac
6491 # If no C compiler was specified, use CC.
6492 LTCC=${LTCC-"$CC"}
6494 # If no C compiler flags were specified, use CFLAGS.
6495 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6497 # Allow CC to be a program name with arguments.
6498 compiler=$CC
6501 # Check for command to grab the raw symbol name followed by C symbol from nm.
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6503 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6505 $as_echo_n "(cached) " >&6
6506 else
6508 # These are sane defaults that work on at least a few old systems.
6509 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6511 # Character class describing NM global symbol codes.
6512 symcode='[BCDEGRST]'
6514 # Regexp to match symbols that can be accessed directly from C.
6515 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6517 # Define system-specific variables.
6518 case $host_os in
6519 aix*)
6520 symcode='[BCDT]'
6522 cygwin* | mingw* | pw32* | cegcc*)
6523 symcode='[ABCDGISTW]'
6525 hpux*)
6526 if test "$host_cpu" = ia64; then
6527 symcode='[ABCDEGRST]'
6530 irix* | nonstopux*)
6531 symcode='[BCDEGRST]'
6533 osf*)
6534 symcode='[BCDEGQRST]'
6536 solaris*)
6537 symcode='[BDRT]'
6539 sco3.2v5*)
6540 symcode='[DT]'
6542 sysv4.2uw2*)
6543 symcode='[DT]'
6545 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6546 symcode='[ABDT]'
6548 sysv4)
6549 symcode='[DFNSTU]'
6551 esac
6553 # If we're using GNU nm, then use its standard symbol codes.
6554 case `$NM -V 2>&1` in
6555 *GNU* | *'with BFD'*)
6556 symcode='[ABCDGIRSTW]' ;;
6557 esac
6559 # Transform an extracted symbol line into a proper C declaration.
6560 # Some systems (esp. on ia64) link data and code symbols differently,
6561 # so use this general approach.
6562 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6564 # Transform an extracted symbol line into symbol name and symbol address
6565 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6566 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'"
6568 # Handle CRLF in mingw tool chain
6569 opt_cr=
6570 case $build_os in
6571 mingw*)
6572 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6574 esac
6576 # Try without a prefix underscore, then with it.
6577 for ac_symprfx in "" "_"; do
6579 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6580 symxfrm="\\1 $ac_symprfx\\2 \\2"
6582 # Write the raw and C identifiers.
6583 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6584 # Fake it for dumpbin and say T for any non-static function
6585 # and D for any global variable.
6586 # Also find C++ and __fastcall symbols from MSVC++,
6587 # which start with @ or ?.
6588 lt_cv_sys_global_symbol_pipe="$AWK '"\
6589 " {last_section=section; section=\$ 3};"\
6590 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6591 " \$ 0!~/External *\|/{next};"\
6592 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6593 " {if(hide[section]) next};"\
6594 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6595 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6596 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6597 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6598 " ' prfx=^$ac_symprfx"
6599 else
6600 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6603 # Check to see that the pipe works correctly.
6604 pipe_works=no
6606 rm -f conftest*
6607 cat > conftest.$ac_ext <<_LT_EOF
6608 #ifdef __cplusplus
6609 extern "C" {
6610 #endif
6611 char nm_test_var;
6612 void nm_test_func(void);
6613 void nm_test_func(void){}
6614 #ifdef __cplusplus
6616 #endif
6617 int main(){nm_test_var='a';nm_test_func();return(0);}
6618 _LT_EOF
6620 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6621 (eval $ac_compile) 2>&5
6622 ac_status=$?
6623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6624 test $ac_status = 0; }; then
6625 # Now try to grab the symbols.
6626 nlist=conftest.nm
6627 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6628 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6629 ac_status=$?
6630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6631 test $ac_status = 0; } && test -s "$nlist"; then
6632 # Try sorting and uniquifying the output.
6633 if sort "$nlist" | uniq > "$nlist"T; then
6634 mv -f "$nlist"T "$nlist"
6635 else
6636 rm -f "$nlist"T
6639 # Make sure that we snagged all the symbols we need.
6640 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6641 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6642 cat <<_LT_EOF > conftest.$ac_ext
6643 #ifdef __cplusplus
6644 extern "C" {
6645 #endif
6647 _LT_EOF
6648 # Now generate the symbol file.
6649 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6651 cat <<_LT_EOF >> conftest.$ac_ext
6653 /* The mapping between symbol names and symbols. */
6654 const struct {
6655 const char *name;
6656 void *address;
6658 lt__PROGRAM__LTX_preloaded_symbols[] =
6660 { "@PROGRAM@", (void *) 0 },
6661 _LT_EOF
6662 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6663 cat <<\_LT_EOF >> conftest.$ac_ext
6664 {0, (void *) 0}
6667 /* This works around a problem in FreeBSD linker */
6668 #ifdef FREEBSD_WORKAROUND
6669 static const void *lt_preloaded_setup() {
6670 return lt__PROGRAM__LTX_preloaded_symbols;
6672 #endif
6674 #ifdef __cplusplus
6676 #endif
6677 _LT_EOF
6678 # Now try linking the two files.
6679 mv conftest.$ac_objext conftstm.$ac_objext
6680 lt_save_LIBS="$LIBS"
6681 lt_save_CFLAGS="$CFLAGS"
6682 LIBS="conftstm.$ac_objext"
6683 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6685 (eval $ac_link) 2>&5
6686 ac_status=$?
6687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6688 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6689 pipe_works=yes
6691 LIBS="$lt_save_LIBS"
6692 CFLAGS="$lt_save_CFLAGS"
6693 else
6694 echo "cannot find nm_test_func in $nlist" >&5
6696 else
6697 echo "cannot find nm_test_var in $nlist" >&5
6699 else
6700 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6702 else
6703 echo "$progname: failed program was:" >&5
6704 cat conftest.$ac_ext >&5
6706 rm -rf conftest* conftst*
6708 # Do not use the global_symbol_pipe unless it works.
6709 if test "$pipe_works" = yes; then
6710 break
6711 else
6712 lt_cv_sys_global_symbol_pipe=
6714 done
6718 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6719 lt_cv_sys_global_symbol_to_cdecl=
6721 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6723 $as_echo "failed" >&6; }
6724 else
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6726 $as_echo "ok" >&6; }
6750 # Check whether --enable-libtool-lock was given.
6751 if test "${enable_libtool_lock+set}" = set; then :
6752 enableval=$enable_libtool_lock;
6755 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6757 # Some flags need to be propagated to the compiler or linker for good
6758 # libtool support.
6759 case $host in
6760 ia64-*-hpux*)
6761 # Find out which ABI we are using.
6762 echo 'int i;' > conftest.$ac_ext
6763 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6764 (eval $ac_compile) 2>&5
6765 ac_status=$?
6766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6767 test $ac_status = 0; }; then
6768 case `/usr/bin/file conftest.$ac_objext` in
6769 *ELF-32*)
6770 HPUX_IA64_MODE="32"
6772 *ELF-64*)
6773 HPUX_IA64_MODE="64"
6775 esac
6777 rm -rf conftest*
6779 *-*-irix6*)
6780 # Find out which ABI we are using.
6781 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6783 (eval $ac_compile) 2>&5
6784 ac_status=$?
6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6786 test $ac_status = 0; }; then
6787 if test "$lt_cv_prog_gnu_ld" = yes; then
6788 case `/usr/bin/file conftest.$ac_objext` in
6789 *32-bit*)
6790 LD="${LD-ld} -melf32bsmip"
6792 *N32*)
6793 LD="${LD-ld} -melf32bmipn32"
6795 *64-bit*)
6796 LD="${LD-ld} -melf64bmip"
6798 esac
6799 else
6800 case `/usr/bin/file conftest.$ac_objext` in
6801 *32-bit*)
6802 LD="${LD-ld} -32"
6804 *N32*)
6805 LD="${LD-ld} -n32"
6807 *64-bit*)
6808 LD="${LD-ld} -64"
6810 esac
6813 rm -rf conftest*
6816 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6817 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6818 # Find out which ABI we are using.
6819 echo 'int i;' > conftest.$ac_ext
6820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6821 (eval $ac_compile) 2>&5
6822 ac_status=$?
6823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6824 test $ac_status = 0; }; then
6825 case `/usr/bin/file conftest.o` in
6826 *32-bit*)
6827 case $host in
6828 x86_64-*kfreebsd*-gnu)
6829 LD="${LD-ld} -m elf_i386_fbsd"
6831 x86_64-*linux*)
6832 case `/usr/bin/file conftest.o` in
6833 *x86-64*)
6834 LD="${LD-ld} -m elf32_x86_64"
6837 LD="${LD-ld} -m elf_i386"
6839 esac
6841 powerpc64le-*linux*)
6842 LD="${LD-ld} -m elf32lppclinux"
6844 powerpc64-*linux*)
6845 LD="${LD-ld} -m elf32ppclinux"
6847 s390x-*linux*)
6848 LD="${LD-ld} -m elf_s390"
6850 sparc64-*linux*)
6851 LD="${LD-ld} -m elf32_sparc"
6853 esac
6855 *64-bit*)
6856 case $host in
6857 x86_64-*kfreebsd*-gnu)
6858 LD="${LD-ld} -m elf_x86_64_fbsd"
6860 x86_64-*linux*)
6861 LD="${LD-ld} -m elf_x86_64"
6863 powerpcle-*linux*)
6864 LD="${LD-ld} -m elf64lppc"
6866 powerpc-*linux*)
6867 LD="${LD-ld} -m elf64ppc"
6869 s390*-*linux*|s390*-*tpf*)
6870 LD="${LD-ld} -m elf64_s390"
6872 sparc*-*linux*)
6873 LD="${LD-ld} -m elf64_sparc"
6875 esac
6877 esac
6879 rm -rf conftest*
6882 *-*-sco3.2v5*)
6883 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6884 SAVE_CFLAGS="$CFLAGS"
6885 CFLAGS="$CFLAGS -belf"
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6887 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6888 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6890 else
6891 ac_ext=c
6892 ac_cpp='$CPP $CPPFLAGS'
6893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6898 /* end confdefs.h. */
6901 main ()
6905 return 0;
6907 _ACEOF
6908 if ac_fn_c_try_link "$LINENO"; then :
6909 lt_cv_cc_needs_belf=yes
6910 else
6911 lt_cv_cc_needs_belf=no
6913 rm -f core conftest.err conftest.$ac_objext \
6914 conftest$ac_exeext conftest.$ac_ext
6915 ac_ext=c
6916 ac_cpp='$CPP $CPPFLAGS'
6917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6923 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6924 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6925 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6926 CFLAGS="$SAVE_CFLAGS"
6929 sparc*-*solaris*)
6930 # Find out which ABI we are using.
6931 echo 'int i;' > conftest.$ac_ext
6932 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6933 (eval $ac_compile) 2>&5
6934 ac_status=$?
6935 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6936 test $ac_status = 0; }; then
6937 case `/usr/bin/file conftest.o` in
6938 *64-bit*)
6939 case $lt_cv_prog_gnu_ld in
6940 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6942 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6943 LD="${LD-ld} -64"
6946 esac
6948 esac
6950 rm -rf conftest*
6952 esac
6954 need_locks="$enable_libtool_lock"
6957 case $host_os in
6958 rhapsody* | darwin*)
6959 if test -n "$ac_tool_prefix"; then
6960 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6961 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6963 $as_echo_n "checking for $ac_word... " >&6; }
6964 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6965 $as_echo_n "(cached) " >&6
6966 else
6967 if test -n "$DSYMUTIL"; then
6968 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6969 else
6970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6971 for as_dir in $PATH
6973 IFS=$as_save_IFS
6974 test -z "$as_dir" && as_dir=.
6975 for ac_exec_ext in '' $ac_executable_extensions; do
6976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6977 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6979 break 2
6981 done
6982 done
6983 IFS=$as_save_IFS
6987 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6988 if test -n "$DSYMUTIL"; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6990 $as_echo "$DSYMUTIL" >&6; }
6991 else
6992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6993 $as_echo "no" >&6; }
6998 if test -z "$ac_cv_prog_DSYMUTIL"; then
6999 ac_ct_DSYMUTIL=$DSYMUTIL
7000 # Extract the first word of "dsymutil", so it can be a program name with args.
7001 set dummy dsymutil; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$ac_ct_DSYMUTIL"; then
7008 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7027 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7028 if test -n "$ac_ct_DSYMUTIL"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7030 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7036 if test "x$ac_ct_DSYMUTIL" = x; then
7037 DSYMUTIL=":"
7038 else
7039 case $cross_compiling:$ac_tool_warned in
7040 yes:)
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7042 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7043 ac_tool_warned=yes ;;
7044 esac
7045 DSYMUTIL=$ac_ct_DSYMUTIL
7047 else
7048 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7051 if test -n "$ac_tool_prefix"; then
7052 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7053 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7055 $as_echo_n "checking for $ac_word... " >&6; }
7056 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7057 $as_echo_n "(cached) " >&6
7058 else
7059 if test -n "$NMEDIT"; then
7060 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7061 else
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7063 for as_dir in $PATH
7065 IFS=$as_save_IFS
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 break 2
7073 done
7074 done
7075 IFS=$as_save_IFS
7079 NMEDIT=$ac_cv_prog_NMEDIT
7080 if test -n "$NMEDIT"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7082 $as_echo "$NMEDIT" >&6; }
7083 else
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7090 if test -z "$ac_cv_prog_NMEDIT"; then
7091 ac_ct_NMEDIT=$NMEDIT
7092 # Extract the first word of "nmedit", so it can be a program name with args.
7093 set dummy nmedit; ac_word=$2
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7095 $as_echo_n "checking for $ac_word... " >&6; }
7096 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7097 $as_echo_n "(cached) " >&6
7098 else
7099 if test -n "$ac_ct_NMEDIT"; then
7100 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7101 else
7102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7103 for as_dir in $PATH
7105 IFS=$as_save_IFS
7106 test -z "$as_dir" && as_dir=.
7107 for ac_exec_ext in '' $ac_executable_extensions; do
7108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7109 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 break 2
7113 done
7114 done
7115 IFS=$as_save_IFS
7119 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7120 if test -n "$ac_ct_NMEDIT"; then
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7122 $as_echo "$ac_ct_NMEDIT" >&6; }
7123 else
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7128 if test "x$ac_ct_NMEDIT" = x; then
7129 NMEDIT=":"
7130 else
7131 case $cross_compiling:$ac_tool_warned in
7132 yes:)
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7134 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7135 ac_tool_warned=yes ;;
7136 esac
7137 NMEDIT=$ac_ct_NMEDIT
7139 else
7140 NMEDIT="$ac_cv_prog_NMEDIT"
7143 if test -n "$ac_tool_prefix"; then
7144 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7145 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7147 $as_echo_n "checking for $ac_word... " >&6; }
7148 if test "${ac_cv_prog_LIPO+set}" = set; then :
7149 $as_echo_n "(cached) " >&6
7150 else
7151 if test -n "$LIPO"; then
7152 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7153 else
7154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7155 for as_dir in $PATH
7157 IFS=$as_save_IFS
7158 test -z "$as_dir" && as_dir=.
7159 for ac_exec_ext in '' $ac_executable_extensions; do
7160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7161 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7163 break 2
7165 done
7166 done
7167 IFS=$as_save_IFS
7171 LIPO=$ac_cv_prog_LIPO
7172 if test -n "$LIPO"; then
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7174 $as_echo "$LIPO" >&6; }
7175 else
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 $as_echo "no" >&6; }
7182 if test -z "$ac_cv_prog_LIPO"; then
7183 ac_ct_LIPO=$LIPO
7184 # Extract the first word of "lipo", so it can be a program name with args.
7185 set dummy lipo; ac_word=$2
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7187 $as_echo_n "checking for $ac_word... " >&6; }
7188 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7189 $as_echo_n "(cached) " >&6
7190 else
7191 if test -n "$ac_ct_LIPO"; then
7192 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7193 else
7194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7195 for as_dir in $PATH
7197 IFS=$as_save_IFS
7198 test -z "$as_dir" && as_dir=.
7199 for ac_exec_ext in '' $ac_executable_extensions; do
7200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7201 ac_cv_prog_ac_ct_LIPO="lipo"
7202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7203 break 2
7205 done
7206 done
7207 IFS=$as_save_IFS
7211 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7212 if test -n "$ac_ct_LIPO"; then
7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7214 $as_echo "$ac_ct_LIPO" >&6; }
7215 else
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7217 $as_echo "no" >&6; }
7220 if test "x$ac_ct_LIPO" = x; then
7221 LIPO=":"
7222 else
7223 case $cross_compiling:$ac_tool_warned in
7224 yes:)
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7227 ac_tool_warned=yes ;;
7228 esac
7229 LIPO=$ac_ct_LIPO
7231 else
7232 LIPO="$ac_cv_prog_LIPO"
7235 if test -n "$ac_tool_prefix"; then
7236 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7237 set dummy ${ac_tool_prefix}otool; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 if test -n "$OTOOL"; then
7244 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7257 done
7258 done
7259 IFS=$as_save_IFS
7263 OTOOL=$ac_cv_prog_OTOOL
7264 if test -n "$OTOOL"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7266 $as_echo "$OTOOL" >&6; }
7267 else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7274 if test -z "$ac_cv_prog_OTOOL"; then
7275 ac_ct_OTOOL=$OTOOL
7276 # Extract the first word of "otool", so it can be a program name with args.
7277 set dummy otool; ac_word=$2
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7279 $as_echo_n "checking for $ac_word... " >&6; }
7280 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7281 $as_echo_n "(cached) " >&6
7282 else
7283 if test -n "$ac_ct_OTOOL"; then
7284 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293 ac_cv_prog_ac_ct_OTOOL="otool"
7294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7297 done
7298 done
7299 IFS=$as_save_IFS
7303 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7304 if test -n "$ac_ct_OTOOL"; then
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7306 $as_echo "$ac_ct_OTOOL" >&6; }
7307 else
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7309 $as_echo "no" >&6; }
7312 if test "x$ac_ct_OTOOL" = x; then
7313 OTOOL=":"
7314 else
7315 case $cross_compiling:$ac_tool_warned in
7316 yes:)
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7318 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7319 ac_tool_warned=yes ;;
7320 esac
7321 OTOOL=$ac_ct_OTOOL
7323 else
7324 OTOOL="$ac_cv_prog_OTOOL"
7327 if test -n "$ac_tool_prefix"; then
7328 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7329 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7331 $as_echo_n "checking for $ac_word... " >&6; }
7332 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7333 $as_echo_n "(cached) " >&6
7334 else
7335 if test -n "$OTOOL64"; then
7336 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7337 else
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7349 done
7350 done
7351 IFS=$as_save_IFS
7355 OTOOL64=$ac_cv_prog_OTOOL64
7356 if test -n "$OTOOL64"; then
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7358 $as_echo "$OTOOL64" >&6; }
7359 else
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7361 $as_echo "no" >&6; }
7366 if test -z "$ac_cv_prog_OTOOL64"; then
7367 ac_ct_OTOOL64=$OTOOL64
7368 # Extract the first word of "otool64", so it can be a program name with args.
7369 set dummy otool64; ac_word=$2
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7371 $as_echo_n "checking for $ac_word... " >&6; }
7372 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7373 $as_echo_n "(cached) " >&6
7374 else
7375 if test -n "$ac_ct_OTOOL64"; then
7376 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7381 IFS=$as_save_IFS
7382 test -z "$as_dir" && as_dir=.
7383 for ac_exec_ext in '' $ac_executable_extensions; do
7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7385 ac_cv_prog_ac_ct_OTOOL64="otool64"
7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7387 break 2
7389 done
7390 done
7391 IFS=$as_save_IFS
7395 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7396 if test -n "$ac_ct_OTOOL64"; then
7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7398 $as_echo "$ac_ct_OTOOL64" >&6; }
7399 else
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7401 $as_echo "no" >&6; }
7404 if test "x$ac_ct_OTOOL64" = x; then
7405 OTOOL64=":"
7406 else
7407 case $cross_compiling:$ac_tool_warned in
7408 yes:)
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7411 ac_tool_warned=yes ;;
7412 esac
7413 OTOOL64=$ac_ct_OTOOL64
7415 else
7416 OTOOL64="$ac_cv_prog_OTOOL64"
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7446 $as_echo_n "checking for -single_module linker flag... " >&6; }
7447 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 lt_cv_apple_cc_single_mod=no
7451 if test -z "${LT_MULTI_MODULE}"; then
7452 # By default we will add the -single_module flag. You can override
7453 # by either setting the environment variable LT_MULTI_MODULE
7454 # non-empty at configure time, or by adding -multi_module to the
7455 # link flags.
7456 rm -rf libconftest.dylib*
7457 echo "int foo(void){return 1;}" > conftest.c
7458 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7459 -dynamiclib -Wl,-single_module conftest.c" >&5
7460 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7461 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7462 _lt_result=$?
7463 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7464 lt_cv_apple_cc_single_mod=yes
7465 else
7466 cat conftest.err >&5
7468 rm -rf libconftest.dylib*
7469 rm -f conftest.*
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7473 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7475 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7476 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7477 $as_echo_n "(cached) " >&6
7478 else
7479 lt_cv_ld_exported_symbols_list=no
7480 save_LDFLAGS=$LDFLAGS
7481 echo "_main" > conftest.sym
7482 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7484 /* end confdefs.h. */
7487 main ()
7491 return 0;
7493 _ACEOF
7494 if ac_fn_c_try_link "$LINENO"; then :
7495 lt_cv_ld_exported_symbols_list=yes
7496 else
7497 lt_cv_ld_exported_symbols_list=no
7499 rm -f core conftest.err conftest.$ac_objext \
7500 conftest$ac_exeext conftest.$ac_ext
7501 LDFLAGS="$save_LDFLAGS"
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7505 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7507 $as_echo_n "checking for -force_load linker flag... " >&6; }
7508 if test "${lt_cv_ld_force_load+set}" = set; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 lt_cv_ld_force_load=no
7512 cat > conftest.c << _LT_EOF
7513 int forced_loaded() { return 2;}
7514 _LT_EOF
7515 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7516 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7517 echo "$AR cru libconftest.a conftest.o" >&5
7518 $AR cru libconftest.a conftest.o 2>&5
7519 cat > conftest.c << _LT_EOF
7520 int main() { return 0;}
7521 _LT_EOF
7522 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7523 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7524 _lt_result=$?
7525 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7526 lt_cv_ld_force_load=yes
7527 else
7528 cat conftest.err >&5
7530 rm -f conftest.err libconftest.a conftest conftest.c
7531 rm -rf conftest.dSYM
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7535 $as_echo "$lt_cv_ld_force_load" >&6; }
7536 case $host_os in
7537 rhapsody* | darwin1.[012])
7538 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7539 darwin1.*)
7540 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7541 darwin*) # darwin 5.x on
7542 # if running on 10.5 or later, the deployment target defaults
7543 # to the OS version, if on x86, and 10.4, the deployment
7544 # target defaults to 10.4. Don't you love it?
7545 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7546 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7547 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7548 10.[012]*)
7549 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7550 10.*)
7551 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7552 esac
7554 esac
7555 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7556 _lt_dar_single_mod='$single_module'
7558 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7559 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7560 else
7561 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7563 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7564 _lt_dsymutil='~$DSYMUTIL $lib || :'
7565 else
7566 _lt_dsymutil=
7569 esac
7571 for ac_header in dlfcn.h
7572 do :
7573 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7575 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7576 cat >>confdefs.h <<_ACEOF
7577 #define HAVE_DLFCN_H 1
7578 _ACEOF
7582 done
7589 # Set options
7594 enable_win32_dll=no
7597 # Check whether --enable-shared was given.
7598 if test "${enable_shared+set}" = set; then :
7599 enableval=$enable_shared; p=${PACKAGE-default}
7600 case $enableval in
7601 yes) enable_shared=yes ;;
7602 no) enable_shared=no ;;
7604 enable_shared=no
7605 # Look at the argument we got. We use all the common list separators.
7606 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7607 for pkg in $enableval; do
7608 IFS="$lt_save_ifs"
7609 if test "X$pkg" = "X$p"; then
7610 enable_shared=yes
7612 done
7613 IFS="$lt_save_ifs"
7615 esac
7616 else
7617 enable_shared=yes
7628 # Check whether --enable-static was given.
7629 if test "${enable_static+set}" = set; then :
7630 enableval=$enable_static; p=${PACKAGE-default}
7631 case $enableval in
7632 yes) enable_static=yes ;;
7633 no) enable_static=no ;;
7635 enable_static=no
7636 # Look at the argument we got. We use all the common list separators.
7637 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7638 for pkg in $enableval; do
7639 IFS="$lt_save_ifs"
7640 if test "X$pkg" = "X$p"; then
7641 enable_static=yes
7643 done
7644 IFS="$lt_save_ifs"
7646 esac
7647 else
7648 enable_static=yes
7660 # Check whether --with-pic was given.
7661 if test "${with_pic+set}" = set; then :
7662 withval=$with_pic; pic_mode="$withval"
7663 else
7664 pic_mode=default
7668 test -z "$pic_mode" && pic_mode=default
7676 # Check whether --enable-fast-install was given.
7677 if test "${enable_fast_install+set}" = set; then :
7678 enableval=$enable_fast_install; p=${PACKAGE-default}
7679 case $enableval in
7680 yes) enable_fast_install=yes ;;
7681 no) enable_fast_install=no ;;
7683 enable_fast_install=no
7684 # Look at the argument we got. We use all the common list separators.
7685 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7686 for pkg in $enableval; do
7687 IFS="$lt_save_ifs"
7688 if test "X$pkg" = "X$p"; then
7689 enable_fast_install=yes
7691 done
7692 IFS="$lt_save_ifs"
7694 esac
7695 else
7696 enable_fast_install=yes
7709 # This can be used to rebuild libtool when needed
7710 LIBTOOL_DEPS="$ltmain"
7712 # Always use our own libtool.
7713 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7740 test -z "$LN_S" && LN_S="ln -s"
7755 if test -n "${ZSH_VERSION+set}" ; then
7756 setopt NO_GLOB_SUBST
7759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7760 $as_echo_n "checking for objdir... " >&6; }
7761 if test "${lt_cv_objdir+set}" = set; then :
7762 $as_echo_n "(cached) " >&6
7763 else
7764 rm -f .libs 2>/dev/null
7765 mkdir .libs 2>/dev/null
7766 if test -d .libs; then
7767 lt_cv_objdir=.libs
7768 else
7769 # MS-DOS does not allow filenames that begin with a dot.
7770 lt_cv_objdir=_libs
7772 rmdir .libs 2>/dev/null
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7775 $as_echo "$lt_cv_objdir" >&6; }
7776 objdir=$lt_cv_objdir
7782 cat >>confdefs.h <<_ACEOF
7783 #define LT_OBJDIR "$lt_cv_objdir/"
7784 _ACEOF
7789 case $host_os in
7790 aix3*)
7791 # AIX sometimes has problems with the GCC collect2 program. For some
7792 # reason, if we set the COLLECT_NAMES environment variable, the problems
7793 # vanish in a puff of smoke.
7794 if test "X${COLLECT_NAMES+set}" != Xset; then
7795 COLLECT_NAMES=
7796 export COLLECT_NAMES
7799 esac
7801 # Global variables:
7802 ofile=libtool
7803 can_build_shared=yes
7805 # All known linkers require a `.a' archive for static linking (except MSVC,
7806 # which needs '.lib').
7807 libext=a
7809 with_gnu_ld="$lt_cv_prog_gnu_ld"
7811 old_CC="$CC"
7812 old_CFLAGS="$CFLAGS"
7814 # Set sane defaults for various variables
7815 test -z "$CC" && CC=cc
7816 test -z "$LTCC" && LTCC=$CC
7817 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7818 test -z "$LD" && LD=ld
7819 test -z "$ac_objext" && ac_objext=o
7821 for cc_temp in $compiler""; do
7822 case $cc_temp in
7823 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7824 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7825 \-*) ;;
7826 *) break;;
7827 esac
7828 done
7829 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7832 # Only perform the check for file, if the check method requires it
7833 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7834 case $deplibs_check_method in
7835 file_magic*)
7836 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7838 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7839 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7840 $as_echo_n "(cached) " >&6
7841 else
7842 case $MAGIC_CMD in
7843 [\\/*] | ?:[\\/]*)
7844 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7847 lt_save_MAGIC_CMD="$MAGIC_CMD"
7848 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7849 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7850 for ac_dir in $ac_dummy; do
7851 IFS="$lt_save_ifs"
7852 test -z "$ac_dir" && ac_dir=.
7853 if test -f $ac_dir/${ac_tool_prefix}file; then
7854 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7855 if test -n "$file_magic_test_file"; then
7856 case $deplibs_check_method in
7857 "file_magic "*)
7858 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7859 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7860 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7861 $EGREP "$file_magic_regex" > /dev/null; then
7863 else
7864 cat <<_LT_EOF 1>&2
7866 *** Warning: the command libtool uses to detect shared libraries,
7867 *** $file_magic_cmd, produces output that libtool cannot recognize.
7868 *** The result is that libtool may fail to recognize shared libraries
7869 *** as such. This will affect the creation of libtool libraries that
7870 *** depend on shared libraries, but programs linked with such libtool
7871 *** libraries will work regardless of this problem. Nevertheless, you
7872 *** may want to report the problem to your system manager and/or to
7873 *** bug-libtool@gnu.org
7875 _LT_EOF
7876 fi ;;
7877 esac
7879 break
7881 done
7882 IFS="$lt_save_ifs"
7883 MAGIC_CMD="$lt_save_MAGIC_CMD"
7885 esac
7888 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7889 if test -n "$MAGIC_CMD"; then
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7891 $as_echo "$MAGIC_CMD" >&6; }
7892 else
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7894 $as_echo "no" >&6; }
7901 if test -z "$lt_cv_path_MAGIC_CMD"; then
7902 if test -n "$ac_tool_prefix"; then
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7904 $as_echo_n "checking for file... " >&6; }
7905 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7906 $as_echo_n "(cached) " >&6
7907 else
7908 case $MAGIC_CMD in
7909 [\\/*] | ?:[\\/]*)
7910 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7913 lt_save_MAGIC_CMD="$MAGIC_CMD"
7914 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7915 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7916 for ac_dir in $ac_dummy; do
7917 IFS="$lt_save_ifs"
7918 test -z "$ac_dir" && ac_dir=.
7919 if test -f $ac_dir/file; then
7920 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7921 if test -n "$file_magic_test_file"; then
7922 case $deplibs_check_method in
7923 "file_magic "*)
7924 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7925 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7926 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7927 $EGREP "$file_magic_regex" > /dev/null; then
7929 else
7930 cat <<_LT_EOF 1>&2
7932 *** Warning: the command libtool uses to detect shared libraries,
7933 *** $file_magic_cmd, produces output that libtool cannot recognize.
7934 *** The result is that libtool may fail to recognize shared libraries
7935 *** as such. This will affect the creation of libtool libraries that
7936 *** depend on shared libraries, but programs linked with such libtool
7937 *** libraries will work regardless of this problem. Nevertheless, you
7938 *** may want to report the problem to your system manager and/or to
7939 *** bug-libtool@gnu.org
7941 _LT_EOF
7942 fi ;;
7943 esac
7945 break
7947 done
7948 IFS="$lt_save_ifs"
7949 MAGIC_CMD="$lt_save_MAGIC_CMD"
7951 esac
7954 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7955 if test -n "$MAGIC_CMD"; then
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7957 $as_echo "$MAGIC_CMD" >&6; }
7958 else
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7960 $as_echo "no" >&6; }
7964 else
7965 MAGIC_CMD=:
7971 esac
7973 # Use C for the default configuration in the libtool script
7975 lt_save_CC="$CC"
7976 ac_ext=c
7977 ac_cpp='$CPP $CPPFLAGS'
7978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7983 # Source file extension for C test sources.
7984 ac_ext=c
7986 # Object file extension for compiled C test sources.
7987 objext=o
7988 objext=$objext
7990 # Code to be used in simple compile tests
7991 lt_simple_compile_test_code="int some_variable = 0;"
7993 # Code to be used in simple link tests
7994 lt_simple_link_test_code='int main(){return(0);}'
8002 # If no C compiler was specified, use CC.
8003 LTCC=${LTCC-"$CC"}
8005 # If no C compiler flags were specified, use CFLAGS.
8006 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8008 # Allow CC to be a program name with arguments.
8009 compiler=$CC
8011 # Save the default compiler, since it gets overwritten when the other
8012 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8013 compiler_DEFAULT=$CC
8015 # save warnings/boilerplate of simple test code
8016 ac_outfile=conftest.$ac_objext
8017 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8018 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8019 _lt_compiler_boilerplate=`cat conftest.err`
8020 $RM conftest*
8022 ac_outfile=conftest.$ac_objext
8023 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8024 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8025 _lt_linker_boilerplate=`cat conftest.err`
8026 $RM -r conftest*
8029 ## CAVEAT EMPTOR:
8030 ## There is no encapsulation within the following macros, do not change
8031 ## the running order or otherwise move them around unless you know exactly
8032 ## what you are doing...
8033 if test -n "$compiler"; then
8035 lt_prog_compiler_no_builtin_flag=
8037 if test "$GCC" = yes; then
8038 case $cc_basename in
8039 nvcc*)
8040 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8042 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8043 esac
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8046 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8047 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8048 $as_echo_n "(cached) " >&6
8049 else
8050 lt_cv_prog_compiler_rtti_exceptions=no
8051 ac_outfile=conftest.$ac_objext
8052 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8053 lt_compiler_flag="-fno-rtti -fno-exceptions"
8054 # Insert the option either (1) after the last *FLAGS variable, or
8055 # (2) before a word containing "conftest.", or (3) at the end.
8056 # Note that $ac_compile itself does not contain backslashes and begins
8057 # with a dollar sign (not a hyphen), so the echo should work correctly.
8058 # The option is referenced via a variable to avoid confusing sed.
8059 lt_compile=`echo "$ac_compile" | $SED \
8060 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8061 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8062 -e 's:$: $lt_compiler_flag:'`
8063 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8064 (eval "$lt_compile" 2>conftest.err)
8065 ac_status=$?
8066 cat conftest.err >&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 if (exit $ac_status) && test -s "$ac_outfile"; then
8069 # The compiler can only warn and ignore the option if not recognized
8070 # So say no if there are warnings other than the usual output.
8071 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8072 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8073 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8074 lt_cv_prog_compiler_rtti_exceptions=yes
8077 $RM conftest*
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8081 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8083 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8084 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8085 else
8096 lt_prog_compiler_wl=
8097 lt_prog_compiler_pic=
8098 lt_prog_compiler_static=
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8101 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8103 if test "$GCC" = yes; then
8104 lt_prog_compiler_wl='-Wl,'
8105 lt_prog_compiler_static='-static'
8107 case $host_os in
8108 aix*)
8109 # All AIX code is PIC.
8110 if test "$host_cpu" = ia64; then
8111 # AIX 5 now supports IA64 processor
8112 lt_prog_compiler_static='-Bstatic'
8114 lt_prog_compiler_pic='-fPIC'
8117 amigaos*)
8118 case $host_cpu in
8119 powerpc)
8120 # see comment about AmigaOS4 .so support
8121 lt_prog_compiler_pic='-fPIC'
8123 m68k)
8124 # FIXME: we need at least 68020 code to build shared libraries, but
8125 # adding the `-m68020' flag to GCC prevents building anything better,
8126 # like `-m68040'.
8127 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8129 esac
8132 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8133 # PIC is the default for these OSes.
8136 mingw* | cygwin* | pw32* | os2* | cegcc*)
8137 # This hack is so that the source file can tell whether it is being
8138 # built for inclusion in a dll (and should export symbols for example).
8139 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8140 # (--disable-auto-import) libraries
8141 lt_prog_compiler_pic='-DDLL_EXPORT'
8144 darwin* | rhapsody*)
8145 # PIC is the default on this platform
8146 # Common symbols not allowed in MH_DYLIB files
8147 lt_prog_compiler_pic='-fno-common'
8150 haiku*)
8151 # PIC is the default for Haiku.
8152 # The "-static" flag exists, but is broken.
8153 lt_prog_compiler_static=
8156 hpux*)
8157 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8158 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8159 # sets the default TLS model and affects inlining.
8160 case $host_cpu in
8161 hppa*64*)
8162 # +Z the default
8165 lt_prog_compiler_pic='-fPIC'
8167 esac
8170 interix[3-9]*)
8171 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8172 # Instead, we relocate shared libraries at runtime.
8175 msdosdjgpp*)
8176 # Just because we use GCC doesn't mean we suddenly get shared libraries
8177 # on systems that don't support them.
8178 lt_prog_compiler_can_build_shared=no
8179 enable_shared=no
8182 *nto* | *qnx*)
8183 # QNX uses GNU C++, but need to define -shared option too, otherwise
8184 # it will coredump.
8185 lt_prog_compiler_pic='-fPIC -shared'
8188 sysv4*MP*)
8189 if test -d /usr/nec; then
8190 lt_prog_compiler_pic=-Kconform_pic
8195 lt_prog_compiler_pic='-fPIC'
8197 esac
8199 case $cc_basename in
8200 nvcc*) # Cuda Compiler Driver 2.2
8201 lt_prog_compiler_wl='-Xlinker '
8202 lt_prog_compiler_pic='-Xcompiler -fPIC'
8204 esac
8205 else
8206 # PORTME Check for flag to pass linker flags through the system compiler.
8207 case $host_os in
8208 aix*)
8209 lt_prog_compiler_wl='-Wl,'
8210 if test "$host_cpu" = ia64; then
8211 # AIX 5 now supports IA64 processor
8212 lt_prog_compiler_static='-Bstatic'
8213 else
8214 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8218 mingw* | cygwin* | pw32* | os2* | cegcc*)
8219 # This hack is so that the source file can tell whether it is being
8220 # built for inclusion in a dll (and should export symbols for example).
8221 lt_prog_compiler_pic='-DDLL_EXPORT'
8224 hpux9* | hpux10* | hpux11*)
8225 lt_prog_compiler_wl='-Wl,'
8226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8227 # not for PA HP-UX.
8228 case $host_cpu in
8229 hppa*64*|ia64*)
8230 # +Z the default
8233 lt_prog_compiler_pic='+Z'
8235 esac
8236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8237 lt_prog_compiler_static='${wl}-a ${wl}archive'
8240 irix5* | irix6* | nonstopux*)
8241 lt_prog_compiler_wl='-Wl,'
8242 # PIC (with -KPIC) is the default.
8243 lt_prog_compiler_static='-non_shared'
8246 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8247 case $cc_basename in
8248 # old Intel for x86_64 which still supported -KPIC.
8249 ecc*)
8250 lt_prog_compiler_wl='-Wl,'
8251 lt_prog_compiler_pic='-KPIC'
8252 lt_prog_compiler_static='-static'
8254 # icc used to be incompatible with GCC.
8255 # ICC 10 doesn't accept -KPIC any more.
8256 icc* | ifort*)
8257 lt_prog_compiler_wl='-Wl,'
8258 lt_prog_compiler_pic='-fPIC'
8259 lt_prog_compiler_static='-static'
8261 # Lahey Fortran 8.1.
8262 lf95*)
8263 lt_prog_compiler_wl='-Wl,'
8264 lt_prog_compiler_pic='--shared'
8265 lt_prog_compiler_static='--static'
8267 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8268 # Portland Group compilers (*not* the Pentium gcc compiler,
8269 # which looks to be a dead project)
8270 lt_prog_compiler_wl='-Wl,'
8271 lt_prog_compiler_pic='-fpic'
8272 lt_prog_compiler_static='-Bstatic'
8274 ccc*)
8275 lt_prog_compiler_wl='-Wl,'
8276 # All Alpha code is PIC.
8277 lt_prog_compiler_static='-non_shared'
8279 xl* | bgxl* | bgf* | mpixl*)
8280 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8281 lt_prog_compiler_wl='-Wl,'
8282 lt_prog_compiler_pic='-qpic'
8283 lt_prog_compiler_static='-qstaticlink'
8286 case `$CC -V 2>&1 | sed 5q` in
8287 *Sun\ F* | *Sun*Fortran*)
8288 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8289 lt_prog_compiler_pic='-KPIC'
8290 lt_prog_compiler_static='-Bstatic'
8291 lt_prog_compiler_wl=''
8293 *Sun\ C*)
8294 # Sun C 5.9
8295 lt_prog_compiler_pic='-KPIC'
8296 lt_prog_compiler_static='-Bstatic'
8297 lt_prog_compiler_wl='-Wl,'
8299 esac
8301 esac
8304 newsos6)
8305 lt_prog_compiler_pic='-KPIC'
8306 lt_prog_compiler_static='-Bstatic'
8309 *nto* | *qnx*)
8310 # QNX uses GNU C++, but need to define -shared option too, otherwise
8311 # it will coredump.
8312 lt_prog_compiler_pic='-fPIC -shared'
8315 osf3* | osf4* | osf5*)
8316 lt_prog_compiler_wl='-Wl,'
8317 # All OSF/1 code is PIC.
8318 lt_prog_compiler_static='-non_shared'
8321 rdos*)
8322 lt_prog_compiler_static='-non_shared'
8325 solaris*)
8326 lt_prog_compiler_pic='-KPIC'
8327 lt_prog_compiler_static='-Bstatic'
8328 case $cc_basename in
8329 f77* | f90* | f95*)
8330 lt_prog_compiler_wl='-Qoption ld ';;
8332 lt_prog_compiler_wl='-Wl,';;
8333 esac
8336 sunos4*)
8337 lt_prog_compiler_wl='-Qoption ld '
8338 lt_prog_compiler_pic='-PIC'
8339 lt_prog_compiler_static='-Bstatic'
8342 sysv4 | sysv4.2uw2* | sysv4.3*)
8343 lt_prog_compiler_wl='-Wl,'
8344 lt_prog_compiler_pic='-KPIC'
8345 lt_prog_compiler_static='-Bstatic'
8348 sysv4*MP*)
8349 if test -d /usr/nec ;then
8350 lt_prog_compiler_pic='-Kconform_pic'
8351 lt_prog_compiler_static='-Bstatic'
8355 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8356 lt_prog_compiler_wl='-Wl,'
8357 lt_prog_compiler_pic='-KPIC'
8358 lt_prog_compiler_static='-Bstatic'
8361 unicos*)
8362 lt_prog_compiler_wl='-Wl,'
8363 lt_prog_compiler_can_build_shared=no
8366 uts4*)
8367 lt_prog_compiler_pic='-pic'
8368 lt_prog_compiler_static='-Bstatic'
8372 lt_prog_compiler_can_build_shared=no
8374 esac
8377 case $host_os in
8378 # For platforms which do not support PIC, -DPIC is meaningless:
8379 *djgpp*)
8380 lt_prog_compiler_pic=
8383 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8385 esac
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8387 $as_echo "$lt_prog_compiler_pic" >&6; }
8395 # Check to make sure the PIC flag actually works.
8397 if test -n "$lt_prog_compiler_pic"; then
8398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8399 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8400 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8401 $as_echo_n "(cached) " >&6
8402 else
8403 lt_cv_prog_compiler_pic_works=no
8404 ac_outfile=conftest.$ac_objext
8405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8406 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8407 # Insert the option either (1) after the last *FLAGS variable, or
8408 # (2) before a word containing "conftest.", or (3) at the end.
8409 # Note that $ac_compile itself does not contain backslashes and begins
8410 # with a dollar sign (not a hyphen), so the echo should work correctly.
8411 # The option is referenced via a variable to avoid confusing sed.
8412 lt_compile=`echo "$ac_compile" | $SED \
8413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8415 -e 's:$: $lt_compiler_flag:'`
8416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8417 (eval "$lt_compile" 2>conftest.err)
8418 ac_status=$?
8419 cat conftest.err >&5
8420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8421 if (exit $ac_status) && test -s "$ac_outfile"; then
8422 # The compiler can only warn and ignore the option if not recognized
8423 # So say no if there are warnings other than the usual output.
8424 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8425 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8426 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8427 lt_cv_prog_compiler_pic_works=yes
8430 $RM conftest*
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8434 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8436 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8437 case $lt_prog_compiler_pic in
8438 "" | " "*) ;;
8439 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8440 esac
8441 else
8442 lt_prog_compiler_pic=
8443 lt_prog_compiler_can_build_shared=no
8454 # Check to make sure the static flag actually works.
8456 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8458 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8459 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8460 $as_echo_n "(cached) " >&6
8461 else
8462 lt_cv_prog_compiler_static_works=no
8463 save_LDFLAGS="$LDFLAGS"
8464 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8465 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8466 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8467 # The linker can only warn and ignore the option if not recognized
8468 # So say no if there are warnings
8469 if test -s conftest.err; then
8470 # Append any errors to the config.log.
8471 cat conftest.err 1>&5
8472 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8473 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8474 if diff conftest.exp conftest.er2 >/dev/null; then
8475 lt_cv_prog_compiler_static_works=yes
8477 else
8478 lt_cv_prog_compiler_static_works=yes
8481 $RM -r conftest*
8482 LDFLAGS="$save_LDFLAGS"
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8486 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8488 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8490 else
8491 lt_prog_compiler_static=
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8501 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8502 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 lt_cv_prog_compiler_c_o=no
8506 $RM -r conftest 2>/dev/null
8507 mkdir conftest
8508 cd conftest
8509 mkdir out
8510 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8512 lt_compiler_flag="-o out/conftest2.$ac_objext"
8513 # Insert the option either (1) after the last *FLAGS variable, or
8514 # (2) before a word containing "conftest.", or (3) at the end.
8515 # Note that $ac_compile itself does not contain backslashes and begins
8516 # with a dollar sign (not a hyphen), so the echo should work correctly.
8517 lt_compile=`echo "$ac_compile" | $SED \
8518 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8519 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8520 -e 's:$: $lt_compiler_flag:'`
8521 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8522 (eval "$lt_compile" 2>out/conftest.err)
8523 ac_status=$?
8524 cat out/conftest.err >&5
8525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8527 then
8528 # The compiler can only warn and ignore the option if not recognized
8529 # So say no if there are warnings
8530 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8531 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8532 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8533 lt_cv_prog_compiler_c_o=yes
8536 chmod u+w . 2>&5
8537 $RM conftest*
8538 # SGI C++ compiler will create directory out/ii_files/ for
8539 # template instantiation
8540 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8541 $RM out/* && rmdir out
8542 cd ..
8543 $RM -r conftest
8544 $RM conftest*
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8548 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8556 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8557 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8558 $as_echo_n "(cached) " >&6
8559 else
8560 lt_cv_prog_compiler_c_o=no
8561 $RM -r conftest 2>/dev/null
8562 mkdir conftest
8563 cd conftest
8564 mkdir out
8565 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8567 lt_compiler_flag="-o out/conftest2.$ac_objext"
8568 # Insert the option either (1) after the last *FLAGS variable, or
8569 # (2) before a word containing "conftest.", or (3) at the end.
8570 # Note that $ac_compile itself does not contain backslashes and begins
8571 # with a dollar sign (not a hyphen), so the echo should work correctly.
8572 lt_compile=`echo "$ac_compile" | $SED \
8573 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8574 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8575 -e 's:$: $lt_compiler_flag:'`
8576 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8577 (eval "$lt_compile" 2>out/conftest.err)
8578 ac_status=$?
8579 cat out/conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8582 then
8583 # The compiler can only warn and ignore the option if not recognized
8584 # So say no if there are warnings
8585 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8586 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8587 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8588 lt_cv_prog_compiler_c_o=yes
8591 chmod u+w . 2>&5
8592 $RM conftest*
8593 # SGI C++ compiler will create directory out/ii_files/ for
8594 # template instantiation
8595 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8596 $RM out/* && rmdir out
8597 cd ..
8598 $RM -r conftest
8599 $RM conftest*
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8603 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8608 hard_links="nottested"
8609 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8610 # do not overwrite the value of need_locks provided by the user
8611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8612 $as_echo_n "checking if we can lock with hard links... " >&6; }
8613 hard_links=yes
8614 $RM conftest*
8615 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8616 touch conftest.a
8617 ln conftest.a conftest.b 2>&5 || hard_links=no
8618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8620 $as_echo "$hard_links" >&6; }
8621 if test "$hard_links" = no; then
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8623 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8624 need_locks=warn
8626 else
8627 need_locks=no
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8636 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8638 runpath_var=
8639 allow_undefined_flag=
8640 always_export_symbols=no
8641 archive_cmds=
8642 archive_expsym_cmds=
8643 compiler_needs_object=no
8644 enable_shared_with_static_runtimes=no
8645 export_dynamic_flag_spec=
8646 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8647 hardcode_automatic=no
8648 hardcode_direct=no
8649 hardcode_direct_absolute=no
8650 hardcode_libdir_flag_spec=
8651 hardcode_libdir_flag_spec_ld=
8652 hardcode_libdir_separator=
8653 hardcode_minus_L=no
8654 hardcode_shlibpath_var=unsupported
8655 inherit_rpath=no
8656 link_all_deplibs=unknown
8657 module_cmds=
8658 module_expsym_cmds=
8659 old_archive_from_new_cmds=
8660 old_archive_from_expsyms_cmds=
8661 thread_safe_flag_spec=
8662 whole_archive_flag_spec=
8663 # include_expsyms should be a list of space-separated symbols to be *always*
8664 # included in the symbol list
8665 include_expsyms=
8666 # exclude_expsyms can be an extended regexp of symbols to exclude
8667 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8668 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8669 # as well as any symbol that contains `d'.
8670 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8671 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8672 # platforms (ab)use it in PIC code, but their linkers get confused if
8673 # the symbol is explicitly referenced. Since portable code cannot
8674 # rely on this symbol name, it's probably fine to never include it in
8675 # preloaded symbol tables.
8676 # Exclude shared library initialization/finalization symbols.
8677 extract_expsyms_cmds=
8679 case $host_os in
8680 cygwin* | mingw* | pw32* | cegcc*)
8681 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8682 # When not using gcc, we currently assume that we are using
8683 # Microsoft Visual C++.
8684 if test "$GCC" != yes; then
8685 with_gnu_ld=no
8688 interix*)
8689 # we just hope/assume this is gcc and not c89 (= MSVC++)
8690 with_gnu_ld=yes
8692 openbsd*)
8693 with_gnu_ld=no
8695 esac
8697 ld_shlibs=yes
8699 # On some targets, GNU ld is compatible enough with the native linker
8700 # that we're better off using the native interface for both.
8701 lt_use_gnu_ld_interface=no
8702 if test "$with_gnu_ld" = yes; then
8703 case $host_os in
8704 aix*)
8705 # The AIX port of GNU ld has always aspired to compatibility
8706 # with the native linker. However, as the warning in the GNU ld
8707 # block says, versions before 2.19.5* couldn't really create working
8708 # shared libraries, regardless of the interface used.
8709 case `$LD -v 2>&1` in
8710 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8711 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8712 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8714 lt_use_gnu_ld_interface=yes
8716 esac
8719 lt_use_gnu_ld_interface=yes
8721 esac
8724 if test "$lt_use_gnu_ld_interface" = yes; then
8725 # If archive_cmds runs LD, not CC, wlarc should be empty
8726 wlarc='${wl}'
8728 # Set some defaults for GNU ld with shared library support. These
8729 # are reset later if shared libraries are not supported. Putting them
8730 # here allows them to be overridden if necessary.
8731 runpath_var=LD_RUN_PATH
8732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8733 export_dynamic_flag_spec='${wl}--export-dynamic'
8734 # ancient GNU ld didn't support --whole-archive et. al.
8735 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8736 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8737 else
8738 whole_archive_flag_spec=
8740 supports_anon_versioning=no
8741 case `$LD -v 2>&1` in
8742 *GNU\ gold*) supports_anon_versioning=yes ;;
8743 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8744 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8745 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8746 *\ 2.11.*) ;; # other 2.11 versions
8747 *) supports_anon_versioning=yes ;;
8748 esac
8750 # See if GNU ld supports shared libraries.
8751 case $host_os in
8752 aix[3-9]*)
8753 # On AIX/PPC, the GNU linker is very broken
8754 if test "$host_cpu" != ia64; then
8755 ld_shlibs=no
8756 cat <<_LT_EOF 1>&2
8758 *** Warning: the GNU linker, at least up to release 2.19, is reported
8759 *** to be unable to reliably create shared libraries on AIX.
8760 *** Therefore, libtool is disabling shared libraries support. If you
8761 *** really care for shared libraries, you may want to install binutils
8762 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8763 *** You will then need to restart the configuration process.
8765 _LT_EOF
8769 amigaos*)
8770 case $host_cpu in
8771 powerpc)
8772 # see comment about AmigaOS4 .so support
8773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8774 archive_expsym_cmds=''
8776 m68k)
8777 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)'
8778 hardcode_libdir_flag_spec='-L$libdir'
8779 hardcode_minus_L=yes
8781 esac
8784 beos*)
8785 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8786 allow_undefined_flag=unsupported
8787 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8788 # support --undefined. This deserves some investigation. FIXME
8789 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8790 else
8791 ld_shlibs=no
8795 cygwin* | mingw* | pw32* | cegcc*)
8796 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8797 # as there is no search path for DLLs.
8798 hardcode_libdir_flag_spec='-L$libdir'
8799 export_dynamic_flag_spec='${wl}--export-all-symbols'
8800 allow_undefined_flag=unsupported
8801 always_export_symbols=no
8802 enable_shared_with_static_runtimes=yes
8803 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8805 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8806 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8807 # If the export-symbols file already is a .def file (1st line
8808 # is EXPORTS), use it as is; otherwise, prepend...
8809 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8810 cp $export_symbols $output_objdir/$soname.def;
8811 else
8812 echo EXPORTS > $output_objdir/$soname.def;
8813 cat $export_symbols >> $output_objdir/$soname.def;
8815 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8816 else
8817 ld_shlibs=no
8821 haiku*)
8822 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8823 link_all_deplibs=yes
8826 interix[3-9]*)
8827 hardcode_direct=no
8828 hardcode_shlibpath_var=no
8829 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8830 export_dynamic_flag_spec='${wl}-E'
8831 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8832 # Instead, shared libraries are loaded at an image base (0x10000000 by
8833 # default) and relocated if they conflict, which is a slow very memory
8834 # consuming and fragmenting process. To avoid this, we pick a random,
8835 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8836 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8837 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8838 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'
8841 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8842 tmp_diet=no
8843 if test "$host_os" = linux-dietlibc; then
8844 case $cc_basename in
8845 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8846 esac
8848 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8849 && test "$tmp_diet" = no
8850 then
8851 tmp_addflag=
8852 tmp_sharedflag='-shared'
8853 case $cc_basename,$host_cpu in
8854 pgcc*) # Portland Group C compiler
8855 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'
8856 tmp_addflag=' $pic_flag'
8858 pgf77* | pgf90* | pgf95* | pgfortran*)
8859 # Portland Group f77 and f90 compilers
8860 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'
8861 tmp_addflag=' $pic_flag -Mnomain' ;;
8862 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8863 tmp_addflag=' -i_dynamic' ;;
8864 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8865 tmp_addflag=' -i_dynamic -nofor_main' ;;
8866 ifc* | ifort*) # Intel Fortran compiler
8867 tmp_addflag=' -nofor_main' ;;
8868 lf95*) # Lahey Fortran 8.1
8869 whole_archive_flag_spec=
8870 tmp_sharedflag='--shared' ;;
8871 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8872 tmp_sharedflag='-qmkshrobj'
8873 tmp_addflag= ;;
8874 nvcc*) # Cuda Compiler Driver 2.2
8875 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'
8876 compiler_needs_object=yes
8878 esac
8879 case `$CC -V 2>&1 | sed 5q` in
8880 *Sun\ C*) # Sun C 5.9
8881 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'
8882 compiler_needs_object=yes
8883 tmp_sharedflag='-G' ;;
8884 *Sun\ F*) # Sun Fortran 8.3
8885 tmp_sharedflag='-G' ;;
8886 esac
8887 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8889 if test "x$supports_anon_versioning" = xyes; then
8890 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8891 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8892 echo "local: *; };" >> $output_objdir/$libname.ver~
8893 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8896 case $cc_basename in
8897 xlf* | bgf* | bgxlf* | mpixlf*)
8898 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8899 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8900 hardcode_libdir_flag_spec=
8901 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8902 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8903 if test "x$supports_anon_versioning" = xyes; then
8904 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8906 echo "local: *; };" >> $output_objdir/$libname.ver~
8907 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8910 esac
8911 else
8912 ld_shlibs=no
8916 netbsd*)
8917 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8918 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8919 wlarc=
8920 else
8921 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8922 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8926 solaris*)
8927 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8928 ld_shlibs=no
8929 cat <<_LT_EOF 1>&2
8931 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8932 *** create shared libraries on Solaris systems. Therefore, libtool
8933 *** is disabling shared libraries support. We urge you to upgrade GNU
8934 *** binutils to release 2.9.1 or newer. Another option is to modify
8935 *** your PATH or compiler configuration so that the native linker is
8936 *** used, and then restart.
8938 _LT_EOF
8939 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8941 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8942 else
8943 ld_shlibs=no
8947 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8948 case `$LD -v 2>&1` in
8949 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8950 ld_shlibs=no
8951 cat <<_LT_EOF 1>&2
8953 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8954 *** reliably create shared libraries on SCO systems. Therefore, libtool
8955 *** is disabling shared libraries support. We urge you to upgrade GNU
8956 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8957 *** your PATH or compiler configuration so that the native linker is
8958 *** used, and then restart.
8960 _LT_EOF
8963 # For security reasons, it is highly recommended that you always
8964 # use absolute paths for naming shared libraries, and exclude the
8965 # DT_RUNPATH tag from executables and libraries. But doing so
8966 # requires that you compile everything twice, which is a pain.
8967 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8968 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8969 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8970 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8971 else
8972 ld_shlibs=no
8975 esac
8978 sunos4*)
8979 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8980 wlarc=
8981 hardcode_direct=yes
8982 hardcode_shlibpath_var=no
8986 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8987 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8988 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8989 else
8990 ld_shlibs=no
8993 esac
8995 if test "$ld_shlibs" = no; then
8996 runpath_var=
8997 hardcode_libdir_flag_spec=
8998 export_dynamic_flag_spec=
8999 whole_archive_flag_spec=
9001 else
9002 # PORTME fill in a description of your system's linker (not GNU ld)
9003 case $host_os in
9004 aix3*)
9005 allow_undefined_flag=unsupported
9006 always_export_symbols=yes
9007 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'
9008 # Note: this linker hardcodes the directories in LIBPATH if there
9009 # are no directories specified by -L.
9010 hardcode_minus_L=yes
9011 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9012 # Neither direct hardcoding nor static linking is supported with a
9013 # broken collect2.
9014 hardcode_direct=unsupported
9018 aix[4-9]*)
9019 if test "$host_cpu" = ia64; then
9020 # On IA64, the linker does run time linking by default, so we don't
9021 # have to do anything special.
9022 aix_use_runtimelinking=no
9023 exp_sym_flag='-Bexport'
9024 no_entry_flag=""
9025 else
9026 # If we're using GNU nm, then we don't want the "-C" option.
9027 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9028 # Also, AIX nm treats weak defined symbols like other global
9029 # defined symbols, whereas GNU nm marks them as "W".
9030 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9031 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'
9032 else
9033 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9035 aix_use_runtimelinking=no
9037 # Test if we are trying to use run time linking or normal
9038 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9039 # need to do runtime linking.
9040 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9041 for ld_flag in $LDFLAGS; do
9042 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9043 aix_use_runtimelinking=yes
9044 break
9046 done
9048 esac
9050 exp_sym_flag='-bexport'
9051 no_entry_flag='-bnoentry'
9054 # When large executables or shared objects are built, AIX ld can
9055 # have problems creating the table of contents. If linking a library
9056 # or program results in "error TOC overflow" add -mminimal-toc to
9057 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9058 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9060 archive_cmds=''
9061 hardcode_direct=yes
9062 hardcode_direct_absolute=yes
9063 hardcode_libdir_separator=':'
9064 link_all_deplibs=yes
9065 file_list_spec='${wl}-f,'
9067 if test "$GCC" = yes; then
9068 case $host_os in aix4.[012]|aix4.[012].*)
9069 # We only want to do this on AIX 4.2 and lower, the check
9070 # below for broken collect2 doesn't work under 4.3+
9071 collect2name=`${CC} -print-prog-name=collect2`
9072 if test -f "$collect2name" &&
9073 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9074 then
9075 # We have reworked collect2
9077 else
9078 # We have old collect2
9079 hardcode_direct=unsupported
9080 # It fails to find uninstalled libraries when the uninstalled
9081 # path is not listed in the libpath. Setting hardcode_minus_L
9082 # to unsupported forces relinking
9083 hardcode_minus_L=yes
9084 hardcode_libdir_flag_spec='-L$libdir'
9085 hardcode_libdir_separator=
9088 esac
9089 shared_flag='-shared'
9090 if test "$aix_use_runtimelinking" = yes; then
9091 shared_flag="$shared_flag "'${wl}-G'
9093 else
9094 # not using gcc
9095 if test "$host_cpu" = ia64; then
9096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9097 # chokes on -Wl,-G. The following line is correct:
9098 shared_flag='-G'
9099 else
9100 if test "$aix_use_runtimelinking" = yes; then
9101 shared_flag='${wl}-G'
9102 else
9103 shared_flag='${wl}-bM:SRE'
9108 export_dynamic_flag_spec='${wl}-bexpall'
9109 # It seems that -bexpall does not export symbols beginning with
9110 # underscore (_), so it is better to generate a list of symbols to export.
9111 always_export_symbols=yes
9112 if test "$aix_use_runtimelinking" = yes; then
9113 # Warning - without using the other runtime loading flags (-brtl),
9114 # -berok will link without error, but may produce a broken library.
9115 allow_undefined_flag='-berok'
9116 # Determine the default libpath from the value encoded in an
9117 # empty executable.
9118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9119 /* end confdefs.h. */
9122 main ()
9126 return 0;
9128 _ACEOF
9129 if ac_fn_c_try_link "$LINENO"; then :
9131 lt_aix_libpath_sed='
9132 /Import File Strings/,/^$/ {
9133 /^0/ {
9134 s/^0 *\(.*\)$/\1/
9138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9139 # Check for a 64-bit object if we didn't find anything.
9140 if test -z "$aix_libpath"; then
9141 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9144 rm -f core conftest.err conftest.$ac_objext \
9145 conftest$ac_exeext conftest.$ac_ext
9146 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9148 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9149 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"
9150 else
9151 if test "$host_cpu" = ia64; then
9152 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9153 allow_undefined_flag="-z nodefs"
9154 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"
9155 else
9156 # Determine the default libpath from the value encoded in an
9157 # empty executable.
9158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9159 /* end confdefs.h. */
9162 main ()
9166 return 0;
9168 _ACEOF
9169 if ac_fn_c_try_link "$LINENO"; then :
9171 lt_aix_libpath_sed='
9172 /Import File Strings/,/^$/ {
9173 /^0/ {
9174 s/^0 *\(.*\)$/\1/
9178 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9179 # Check for a 64-bit object if we didn't find anything.
9180 if test -z "$aix_libpath"; then
9181 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9184 rm -f core conftest.err conftest.$ac_objext \
9185 conftest$ac_exeext conftest.$ac_ext
9186 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9188 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9189 # Warning - without using the other run time loading flags,
9190 # -berok will link without error, but may produce a broken library.
9191 no_undefined_flag=' ${wl}-bernotok'
9192 allow_undefined_flag=' ${wl}-berok'
9193 if test "$with_gnu_ld" = yes; then
9194 # We only use this code for GNU lds that support --whole-archive.
9195 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9196 else
9197 # Exported symbols can be pulled into shared objects from archives
9198 whole_archive_flag_spec='$convenience'
9200 archive_cmds_need_lc=yes
9201 # This is similar to how AIX traditionally builds its shared libraries.
9202 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'
9207 amigaos*)
9208 case $host_cpu in
9209 powerpc)
9210 # see comment about AmigaOS4 .so support
9211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9212 archive_expsym_cmds=''
9214 m68k)
9215 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)'
9216 hardcode_libdir_flag_spec='-L$libdir'
9217 hardcode_minus_L=yes
9219 esac
9222 bsdi[45]*)
9223 export_dynamic_flag_spec=-rdynamic
9226 cygwin* | mingw* | pw32* | cegcc*)
9227 # When not using gcc, we currently assume that we are using
9228 # Microsoft Visual C++.
9229 # hardcode_libdir_flag_spec is actually meaningless, as there is
9230 # no search path for DLLs.
9231 hardcode_libdir_flag_spec=' '
9232 allow_undefined_flag=unsupported
9233 # Tell ltmain to make .lib files, not .a files.
9234 libext=lib
9235 # Tell ltmain to make .dll files, not .so files.
9236 shrext_cmds=".dll"
9237 # FIXME: Setting linknames here is a bad hack.
9238 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9239 # The linker will automatically build a .lib file if we build a DLL.
9240 old_archive_from_new_cmds='true'
9241 # FIXME: Should let the user specify the lib program.
9242 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9243 fix_srcfile_path='`cygpath -w "$srcfile"`'
9244 enable_shared_with_static_runtimes=yes
9247 darwin* | rhapsody*)
9250 archive_cmds_need_lc=no
9251 hardcode_direct=no
9252 hardcode_automatic=yes
9253 hardcode_shlibpath_var=unsupported
9254 if test "$lt_cv_ld_force_load" = "yes"; then
9255 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\"`'
9256 else
9257 whole_archive_flag_spec=''
9259 link_all_deplibs=yes
9260 allow_undefined_flag="$_lt_dar_allow_undefined"
9261 case $cc_basename in
9262 ifort*) _lt_dar_can_shared=yes ;;
9263 *) _lt_dar_can_shared=$GCC ;;
9264 esac
9265 if test "$_lt_dar_can_shared" = "yes"; then
9266 output_verbose_link_cmd=func_echo_all
9267 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9268 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9269 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}"
9270 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}"
9272 else
9273 ld_shlibs=no
9278 dgux*)
9279 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9280 hardcode_libdir_flag_spec='-L$libdir'
9281 hardcode_shlibpath_var=no
9284 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9285 # support. Future versions do this automatically, but an explicit c++rt0.o
9286 # does not break anything, and helps significantly (at the cost of a little
9287 # extra space).
9288 freebsd2.2*)
9289 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9290 hardcode_libdir_flag_spec='-R$libdir'
9291 hardcode_direct=yes
9292 hardcode_shlibpath_var=no
9295 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9296 freebsd2.*)
9297 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9298 hardcode_direct=yes
9299 hardcode_minus_L=yes
9300 hardcode_shlibpath_var=no
9303 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9304 freebsd* | dragonfly*)
9305 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9306 hardcode_libdir_flag_spec='-R$libdir'
9307 hardcode_direct=yes
9308 hardcode_shlibpath_var=no
9311 hpux9*)
9312 if test "$GCC" = yes; then
9313 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'
9314 else
9315 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'
9317 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9318 hardcode_libdir_separator=:
9319 hardcode_direct=yes
9321 # hardcode_minus_L: Not really in the search PATH,
9322 # but as the default location of the library.
9323 hardcode_minus_L=yes
9324 export_dynamic_flag_spec='${wl}-E'
9327 hpux10*)
9328 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9329 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9330 else
9331 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9333 if test "$with_gnu_ld" = no; then
9334 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9335 hardcode_libdir_flag_spec_ld='+b $libdir'
9336 hardcode_libdir_separator=:
9337 hardcode_direct=yes
9338 hardcode_direct_absolute=yes
9339 export_dynamic_flag_spec='${wl}-E'
9340 # hardcode_minus_L: Not really in the search PATH,
9341 # but as the default location of the library.
9342 hardcode_minus_L=yes
9346 hpux11*)
9347 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9348 case $host_cpu in
9349 hppa*64*)
9350 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9352 ia64*)
9353 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9356 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9358 esac
9359 else
9360 case $host_cpu in
9361 hppa*64*)
9362 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9364 ia64*)
9365 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9369 # Older versions of the 11.00 compiler do not understand -b yet
9370 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9372 $as_echo_n "checking if $CC understands -b... " >&6; }
9373 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9374 $as_echo_n "(cached) " >&6
9375 else
9376 lt_cv_prog_compiler__b=no
9377 save_LDFLAGS="$LDFLAGS"
9378 LDFLAGS="$LDFLAGS -b"
9379 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9380 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9381 # The linker can only warn and ignore the option if not recognized
9382 # So say no if there are warnings
9383 if test -s conftest.err; then
9384 # Append any errors to the config.log.
9385 cat conftest.err 1>&5
9386 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9387 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9388 if diff conftest.exp conftest.er2 >/dev/null; then
9389 lt_cv_prog_compiler__b=yes
9391 else
9392 lt_cv_prog_compiler__b=yes
9395 $RM -r conftest*
9396 LDFLAGS="$save_LDFLAGS"
9399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9400 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9402 if test x"$lt_cv_prog_compiler__b" = xyes; then
9403 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9404 else
9405 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9409 esac
9411 if test "$with_gnu_ld" = no; then
9412 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9413 hardcode_libdir_separator=:
9415 case $host_cpu in
9416 hppa*64*|ia64*)
9417 hardcode_direct=no
9418 hardcode_shlibpath_var=no
9421 hardcode_direct=yes
9422 hardcode_direct_absolute=yes
9423 export_dynamic_flag_spec='${wl}-E'
9425 # hardcode_minus_L: Not really in the search PATH,
9426 # but as the default location of the library.
9427 hardcode_minus_L=yes
9429 esac
9433 irix5* | irix6* | nonstopux*)
9434 if test "$GCC" = yes; then
9435 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'
9436 # Try to use the -exported_symbol ld option, if it does not
9437 # work, assume that -exports_file does not work either and
9438 # implicitly export all symbols.
9439 save_LDFLAGS="$LDFLAGS"
9440 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9442 /* end confdefs.h. */
9443 int foo(void) {}
9444 _ACEOF
9445 if ac_fn_c_try_link "$LINENO"; then :
9446 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'
9449 rm -f core conftest.err conftest.$ac_objext \
9450 conftest$ac_exeext conftest.$ac_ext
9451 LDFLAGS="$save_LDFLAGS"
9452 else
9453 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'
9454 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'
9456 archive_cmds_need_lc='no'
9457 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9458 hardcode_libdir_separator=:
9459 inherit_rpath=yes
9460 link_all_deplibs=yes
9463 netbsd*)
9464 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9465 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9466 else
9467 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9469 hardcode_libdir_flag_spec='-R$libdir'
9470 hardcode_direct=yes
9471 hardcode_shlibpath_var=no
9474 newsos6)
9475 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9476 hardcode_direct=yes
9477 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9478 hardcode_libdir_separator=:
9479 hardcode_shlibpath_var=no
9482 *nto* | *qnx*)
9485 openbsd*)
9486 if test -f /usr/libexec/ld.so; then
9487 hardcode_direct=yes
9488 hardcode_shlibpath_var=no
9489 hardcode_direct_absolute=yes
9490 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9491 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9492 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9493 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9494 export_dynamic_flag_spec='${wl}-E'
9495 else
9496 case $host_os in
9497 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9499 hardcode_libdir_flag_spec='-R$libdir'
9502 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9503 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9505 esac
9507 else
9508 ld_shlibs=no
9512 os2*)
9513 hardcode_libdir_flag_spec='-L$libdir'
9514 hardcode_minus_L=yes
9515 allow_undefined_flag=unsupported
9516 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'
9517 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9520 osf3*)
9521 if test "$GCC" = yes; then
9522 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9523 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'
9524 else
9525 allow_undefined_flag=' -expect_unresolved \*'
9526 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'
9528 archive_cmds_need_lc='no'
9529 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9530 hardcode_libdir_separator=:
9533 osf4* | osf5*) # as osf3* with the addition of -msym flag
9534 if test "$GCC" = yes; then
9535 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9536 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'
9537 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9538 else
9539 allow_undefined_flag=' -expect_unresolved \*'
9540 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'
9541 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~
9542 $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'
9544 # Both c and cxx compiler support -rpath directly
9545 hardcode_libdir_flag_spec='-rpath $libdir'
9547 archive_cmds_need_lc='no'
9548 hardcode_libdir_separator=:
9551 solaris*)
9552 no_undefined_flag=' -z defs'
9553 if test "$GCC" = yes; then
9554 wlarc='${wl}'
9555 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9556 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9557 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9558 else
9559 case `$CC -V 2>&1` in
9560 *"Compilers 5.0"*)
9561 wlarc=''
9562 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9563 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9564 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9567 wlarc='${wl}'
9568 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9569 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9570 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9572 esac
9574 hardcode_libdir_flag_spec='-R$libdir'
9575 hardcode_shlibpath_var=no
9576 case $host_os in
9577 solaris2.[0-5] | solaris2.[0-5].*) ;;
9579 # The compiler driver will combine and reorder linker options,
9580 # but understands `-z linker_flag'. GCC discards it without `$wl',
9581 # but is careful enough not to reorder.
9582 # Supported since Solaris 2.6 (maybe 2.5.1?)
9583 if test "$GCC" = yes; then
9584 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9585 else
9586 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9589 esac
9590 link_all_deplibs=yes
9593 sunos4*)
9594 if test "x$host_vendor" = xsequent; then
9595 # Use $CC to link under sequent, because it throws in some extra .o
9596 # files that make .init and .fini sections work.
9597 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9598 else
9599 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9601 hardcode_libdir_flag_spec='-L$libdir'
9602 hardcode_direct=yes
9603 hardcode_minus_L=yes
9604 hardcode_shlibpath_var=no
9607 sysv4)
9608 case $host_vendor in
9609 sni)
9610 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9611 hardcode_direct=yes # is this really true???
9613 siemens)
9614 ## LD is ld it makes a PLAMLIB
9615 ## CC just makes a GrossModule.
9616 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9617 reload_cmds='$CC -r -o $output$reload_objs'
9618 hardcode_direct=no
9620 motorola)
9621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9622 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9624 esac
9625 runpath_var='LD_RUN_PATH'
9626 hardcode_shlibpath_var=no
9629 sysv4.3*)
9630 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9631 hardcode_shlibpath_var=no
9632 export_dynamic_flag_spec='-Bexport'
9635 sysv4*MP*)
9636 if test -d /usr/nec; then
9637 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_shlibpath_var=no
9639 runpath_var=LD_RUN_PATH
9640 hardcode_runpath_var=yes
9641 ld_shlibs=yes
9645 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9646 no_undefined_flag='${wl}-z,text'
9647 archive_cmds_need_lc=no
9648 hardcode_shlibpath_var=no
9649 runpath_var='LD_RUN_PATH'
9651 if test "$GCC" = yes; then
9652 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9653 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9654 else
9655 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9656 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9660 sysv5* | sco3.2v5* | sco5v6*)
9661 # Note: We can NOT use -z defs as we might desire, because we do not
9662 # link with -lc, and that would cause any symbols used from libc to
9663 # always be unresolved, which means just about no library would
9664 # ever link correctly. If we're not using GNU ld we use -z text
9665 # though, which does catch some bad symbols but isn't as heavy-handed
9666 # as -z defs.
9667 no_undefined_flag='${wl}-z,text'
9668 allow_undefined_flag='${wl}-z,nodefs'
9669 archive_cmds_need_lc=no
9670 hardcode_shlibpath_var=no
9671 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9672 hardcode_libdir_separator=':'
9673 link_all_deplibs=yes
9674 export_dynamic_flag_spec='${wl}-Bexport'
9675 runpath_var='LD_RUN_PATH'
9677 if test "$GCC" = yes; then
9678 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9679 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9680 else
9681 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9682 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9686 uts4*)
9687 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9688 hardcode_libdir_flag_spec='-L$libdir'
9689 hardcode_shlibpath_var=no
9693 ld_shlibs=no
9695 esac
9697 if test x$host_vendor = xsni; then
9698 case $host in
9699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9700 export_dynamic_flag_spec='${wl}-Blargedynsym'
9702 esac
9706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9707 $as_echo "$ld_shlibs" >&6; }
9708 test "$ld_shlibs" = no && can_build_shared=no
9710 with_gnu_ld=$with_gnu_ld
9727 # Do we need to explicitly link libc?
9729 case "x$archive_cmds_need_lc" in
9730 x|xyes)
9731 # Assume -lc should be added
9732 archive_cmds_need_lc=yes
9734 if test "$enable_shared" = yes && test "$GCC" = yes; then
9735 case $archive_cmds in
9736 *'~'*)
9737 # FIXME: we may have to deal with multi-command sequences.
9739 '$CC '*)
9740 # Test whether the compiler implicitly links with -lc since on some
9741 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9742 # to ld, don't add -lc before -lgcc.
9743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9744 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9745 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9746 $as_echo_n "(cached) " >&6
9747 else
9748 $RM conftest*
9749 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9751 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9752 (eval $ac_compile) 2>&5
9753 ac_status=$?
9754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9755 test $ac_status = 0; } 2>conftest.err; then
9756 soname=conftest
9757 lib=conftest
9758 libobjs=conftest.$ac_objext
9759 deplibs=
9760 wl=$lt_prog_compiler_wl
9761 pic_flag=$lt_prog_compiler_pic
9762 compiler_flags=-v
9763 linker_flags=-v
9764 verstring=
9765 output_objdir=.
9766 libname=conftest
9767 lt_save_allow_undefined_flag=$allow_undefined_flag
9768 allow_undefined_flag=
9769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9770 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9771 ac_status=$?
9772 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9773 test $ac_status = 0; }
9774 then
9775 lt_cv_archive_cmds_need_lc=no
9776 else
9777 lt_cv_archive_cmds_need_lc=yes
9779 allow_undefined_flag=$lt_save_allow_undefined_flag
9780 else
9781 cat conftest.err 1>&5
9783 $RM conftest*
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9787 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9788 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9790 esac
9793 esac
9951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9952 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9954 if test "$GCC" = yes; then
9955 case $host_os in
9956 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9957 *) lt_awk_arg="/^libraries:/" ;;
9958 esac
9959 case $host_os in
9960 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9961 *) lt_sed_strip_eq="s,=/,/,g" ;;
9962 esac
9963 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9964 case $lt_search_path_spec in
9965 *\;*)
9966 # if the path contains ";" then we assume it to be the separator
9967 # otherwise default to the standard path separator (i.e. ":") - it is
9968 # assumed that no part of a normal pathname contains ";" but that should
9969 # okay in the real world where ";" in dirpaths is itself problematic.
9970 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9973 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9975 esac
9976 # Ok, now we have the path, separated by spaces, we can step through it
9977 # and add multilib dir if necessary.
9978 lt_tmp_lt_search_path_spec=
9979 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9980 for lt_sys_path in $lt_search_path_spec; do
9981 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9982 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9983 else
9984 test -d "$lt_sys_path" && \
9985 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9987 done
9988 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9989 BEGIN {RS=" "; FS="/|\n";} {
9990 lt_foo="";
9991 lt_count=0;
9992 for (lt_i = NF; lt_i > 0; lt_i--) {
9993 if ($lt_i != "" && $lt_i != ".") {
9994 if ($lt_i == "..") {
9995 lt_count++;
9996 } else {
9997 if (lt_count == 0) {
9998 lt_foo="/" $lt_i lt_foo;
9999 } else {
10000 lt_count--;
10005 if (lt_foo != "") { lt_freq[lt_foo]++; }
10006 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10008 # AWK program above erroneously prepends '/' to C:/dos/paths
10009 # for these hosts.
10010 case $host_os in
10011 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10012 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10013 esac
10014 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10015 else
10016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10018 library_names_spec=
10019 libname_spec='lib$name'
10020 soname_spec=
10021 shrext_cmds=".so"
10022 postinstall_cmds=
10023 postuninstall_cmds=
10024 finish_cmds=
10025 finish_eval=
10026 shlibpath_var=
10027 shlibpath_overrides_runpath=unknown
10028 version_type=none
10029 dynamic_linker="$host_os ld.so"
10030 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10031 need_lib_prefix=unknown
10032 hardcode_into_libs=no
10034 # when you set need_version to no, make sure it does not cause -set_version
10035 # flags to be left without arguments
10036 need_version=unknown
10038 case $host_os in
10039 aix3*)
10040 version_type=linux
10041 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10042 shlibpath_var=LIBPATH
10044 # AIX 3 has no versioning support, so we append a major version to the name.
10045 soname_spec='${libname}${release}${shared_ext}$major'
10048 aix[4-9]*)
10049 version_type=linux
10050 need_lib_prefix=no
10051 need_version=no
10052 hardcode_into_libs=yes
10053 if test "$host_cpu" = ia64; then
10054 # AIX 5 supports IA64
10055 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10056 shlibpath_var=LD_LIBRARY_PATH
10057 else
10058 # With GCC up to 2.95.x, collect2 would create an import file
10059 # for dependence libraries. The import file would start with
10060 # the line `#! .'. This would cause the generated library to
10061 # depend on `.', always an invalid library. This was fixed in
10062 # development snapshots of GCC prior to 3.0.
10063 case $host_os in
10064 aix4 | aix4.[01] | aix4.[01].*)
10065 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10066 echo ' yes '
10067 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10069 else
10070 can_build_shared=no
10073 esac
10074 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10075 # soname into executable. Probably we can add versioning support to
10076 # collect2, so additional links can be useful in future.
10077 if test "$aix_use_runtimelinking" = yes; then
10078 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10079 # instead of lib<name>.a to let people know that these are not
10080 # typical AIX shared libraries.
10081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10082 else
10083 # We preserve .a as extension for shared libraries through AIX4.2
10084 # and later when we are not doing run time linking.
10085 library_names_spec='${libname}${release}.a $libname.a'
10086 soname_spec='${libname}${release}${shared_ext}$major'
10088 shlibpath_var=LIBPATH
10092 amigaos*)
10093 case $host_cpu in
10094 powerpc)
10095 # Since July 2007 AmigaOS4 officially supports .so libraries.
10096 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10099 m68k)
10100 library_names_spec='$libname.ixlibrary $libname.a'
10101 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10102 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'
10104 esac
10107 beos*)
10108 library_names_spec='${libname}${shared_ext}'
10109 dynamic_linker="$host_os ld.so"
10110 shlibpath_var=LIBRARY_PATH
10113 bsdi[45]*)
10114 version_type=linux
10115 need_version=no
10116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10117 soname_spec='${libname}${release}${shared_ext}$major'
10118 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10119 shlibpath_var=LD_LIBRARY_PATH
10120 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10121 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10122 # the default ld.so.conf also contains /usr/contrib/lib and
10123 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10124 # libtool to hard-code these into programs
10127 cygwin* | mingw* | pw32* | cegcc*)
10128 version_type=windows
10129 shrext_cmds=".dll"
10130 need_version=no
10131 need_lib_prefix=no
10133 case $GCC,$host_os in
10134 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10135 library_names_spec='$libname.dll.a'
10136 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10137 postinstall_cmds='base_file=`basename \${file}`~
10138 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10139 dldir=$destdir/`dirname \$dlpath`~
10140 test -d \$dldir || mkdir -p \$dldir~
10141 $install_prog $dir/$dlname \$dldir/$dlname~
10142 chmod a+x \$dldir/$dlname~
10143 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10144 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10146 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10147 dlpath=$dir/\$dldll~
10148 $RM \$dlpath'
10149 shlibpath_overrides_runpath=yes
10151 case $host_os in
10152 cygwin*)
10153 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10154 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10156 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10158 mingw* | cegcc*)
10159 # MinGW DLLs use traditional 'lib' prefix
10160 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10162 pw32*)
10163 # pw32 DLLs use 'pw' prefix rather than 'lib'
10164 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10166 esac
10170 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10172 esac
10173 dynamic_linker='Win32 ld.exe'
10174 # FIXME: first we should search . and the directory the executable is in
10175 shlibpath_var=PATH
10178 darwin* | rhapsody*)
10179 dynamic_linker="$host_os dyld"
10180 version_type=darwin
10181 need_lib_prefix=no
10182 need_version=no
10183 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10184 soname_spec='${libname}${release}${major}$shared_ext'
10185 shlibpath_overrides_runpath=yes
10186 shlibpath_var=DYLD_LIBRARY_PATH
10187 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10189 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10193 dgux*)
10194 version_type=linux
10195 need_lib_prefix=no
10196 need_version=no
10197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10198 soname_spec='${libname}${release}${shared_ext}$major'
10199 shlibpath_var=LD_LIBRARY_PATH
10202 freebsd* | dragonfly*)
10203 # DragonFly does not have aout. When/if they implement a new
10204 # versioning mechanism, adjust this.
10205 if test -x /usr/bin/objformat; then
10206 objformat=`/usr/bin/objformat`
10207 else
10208 case $host_os in
10209 freebsd[23].*) objformat=aout ;;
10210 *) objformat=elf ;;
10211 esac
10213 version_type=freebsd-$objformat
10214 case $version_type in
10215 freebsd-elf*)
10216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10217 need_version=no
10218 need_lib_prefix=no
10220 freebsd-*)
10221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10222 need_version=yes
10224 esac
10225 shlibpath_var=LD_LIBRARY_PATH
10226 case $host_os in
10227 freebsd2.*)
10228 shlibpath_overrides_runpath=yes
10230 freebsd3.[01]* | freebsdelf3.[01]*)
10231 shlibpath_overrides_runpath=yes
10232 hardcode_into_libs=yes
10234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10236 shlibpath_overrides_runpath=no
10237 hardcode_into_libs=yes
10239 *) # from 4.6 on, and DragonFly
10240 shlibpath_overrides_runpath=yes
10241 hardcode_into_libs=yes
10243 esac
10246 gnu*)
10247 version_type=linux
10248 need_lib_prefix=no
10249 need_version=no
10250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10251 soname_spec='${libname}${release}${shared_ext}$major'
10252 shlibpath_var=LD_LIBRARY_PATH
10253 hardcode_into_libs=yes
10256 haiku*)
10257 version_type=linux
10258 need_lib_prefix=no
10259 need_version=no
10260 dynamic_linker="$host_os runtime_loader"
10261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10262 soname_spec='${libname}${release}${shared_ext}$major'
10263 shlibpath_var=LIBRARY_PATH
10264 shlibpath_overrides_runpath=yes
10265 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10266 hardcode_into_libs=yes
10269 hpux9* | hpux10* | hpux11*)
10270 # Give a soname corresponding to the major version so that dld.sl refuses to
10271 # link against other versions.
10272 version_type=sunos
10273 need_lib_prefix=no
10274 need_version=no
10275 case $host_cpu in
10276 ia64*)
10277 shrext_cmds='.so'
10278 hardcode_into_libs=yes
10279 dynamic_linker="$host_os dld.so"
10280 shlibpath_var=LD_LIBRARY_PATH
10281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10283 soname_spec='${libname}${release}${shared_ext}$major'
10284 if test "X$HPUX_IA64_MODE" = X32; then
10285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10286 else
10287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10291 hppa*64*)
10292 shrext_cmds='.sl'
10293 hardcode_into_libs=yes
10294 dynamic_linker="$host_os dld.sl"
10295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10298 soname_spec='${libname}${release}${shared_ext}$major'
10299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10303 shrext_cmds='.sl'
10304 dynamic_linker="$host_os dld.sl"
10305 shlibpath_var=SHLIB_PATH
10306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10308 soname_spec='${libname}${release}${shared_ext}$major'
10310 esac
10311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10312 postinstall_cmds='chmod 555 $lib'
10313 # or fails outright, so override atomically:
10314 install_override_mode=555
10317 interix[3-9]*)
10318 version_type=linux
10319 need_lib_prefix=no
10320 need_version=no
10321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10322 soname_spec='${libname}${release}${shared_ext}$major'
10323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10324 shlibpath_var=LD_LIBRARY_PATH
10325 shlibpath_overrides_runpath=no
10326 hardcode_into_libs=yes
10329 irix5* | irix6* | nonstopux*)
10330 case $host_os in
10331 nonstopux*) version_type=nonstopux ;;
10333 if test "$lt_cv_prog_gnu_ld" = yes; then
10334 version_type=linux
10335 else
10336 version_type=irix
10337 fi ;;
10338 esac
10339 need_lib_prefix=no
10340 need_version=no
10341 soname_spec='${libname}${release}${shared_ext}$major'
10342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10343 case $host_os in
10344 irix5* | nonstopux*)
10345 libsuff= shlibsuff=
10348 case $LD in # libtool.m4 will add one of these switches to LD
10349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10350 libsuff= shlibsuff= libmagic=32-bit;;
10351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10352 libsuff=32 shlibsuff=N32 libmagic=N32;;
10353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10355 *) libsuff= shlibsuff= libmagic=never-match;;
10356 esac
10358 esac
10359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10360 shlibpath_overrides_runpath=no
10361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10363 hardcode_into_libs=yes
10366 # No shared lib support for Linux oldld, aout, or coff.
10367 linux*oldld* | linux*aout* | linux*coff*)
10368 dynamic_linker=no
10371 # This must be Linux ELF.
10372 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10373 version_type=linux
10374 need_lib_prefix=no
10375 need_version=no
10376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10377 soname_spec='${libname}${release}${shared_ext}$major'
10378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10379 shlibpath_var=LD_LIBRARY_PATH
10380 shlibpath_overrides_runpath=no
10382 # Some binutils ld are patched to set DT_RUNPATH
10383 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10384 $as_echo_n "(cached) " >&6
10385 else
10386 lt_cv_shlibpath_overrides_runpath=no
10387 save_LDFLAGS=$LDFLAGS
10388 save_libdir=$libdir
10389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10395 main ()
10399 return 0;
10401 _ACEOF
10402 if ac_fn_c_try_link "$LINENO"; then :
10403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10404 lt_cv_shlibpath_overrides_runpath=yes
10407 rm -f core conftest.err conftest.$ac_objext \
10408 conftest$ac_exeext conftest.$ac_ext
10409 LDFLAGS=$save_LDFLAGS
10410 libdir=$save_libdir
10414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10416 # This implies no fast_install, which is unacceptable.
10417 # Some rework will be needed to allow for fast_install
10418 # before this can be enabled.
10419 hardcode_into_libs=yes
10421 # Append ld.so.conf contents to the search path
10422 if test -f /etc/ld.so.conf; then
10423 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' ' '`
10424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10427 # We used to test for /lib/ld.so.1 and disable shared libraries on
10428 # powerpc, because MkLinux only supported shared libraries with the
10429 # GNU dynamic linker. Since this was broken with cross compilers,
10430 # most powerpc-linux boxes support dynamic linking these days and
10431 # people can always --disable-shared, the test was removed, and we
10432 # assume the GNU/Linux dynamic linker is in use.
10433 dynamic_linker='GNU/Linux ld.so'
10436 netbsd*)
10437 version_type=sunos
10438 need_lib_prefix=no
10439 need_version=no
10440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10443 dynamic_linker='NetBSD (a.out) ld.so'
10444 else
10445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10446 soname_spec='${libname}${release}${shared_ext}$major'
10447 dynamic_linker='NetBSD ld.elf_so'
10449 shlibpath_var=LD_LIBRARY_PATH
10450 shlibpath_overrides_runpath=yes
10451 hardcode_into_libs=yes
10454 newsos6)
10455 version_type=linux
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 shlibpath_var=LD_LIBRARY_PATH
10458 shlibpath_overrides_runpath=yes
10461 *nto* | *qnx*)
10462 version_type=qnx
10463 need_lib_prefix=no
10464 need_version=no
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 soname_spec='${libname}${release}${shared_ext}$major'
10467 shlibpath_var=LD_LIBRARY_PATH
10468 shlibpath_overrides_runpath=no
10469 hardcode_into_libs=yes
10470 dynamic_linker='ldqnx.so'
10473 openbsd*)
10474 version_type=sunos
10475 sys_lib_dlsearch_path_spec="/usr/lib"
10476 need_lib_prefix=no
10477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10478 case $host_os in
10479 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10480 *) need_version=no ;;
10481 esac
10482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10484 shlibpath_var=LD_LIBRARY_PATH
10485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10486 case $host_os in
10487 openbsd2.[89] | openbsd2.[89].*)
10488 shlibpath_overrides_runpath=no
10491 shlibpath_overrides_runpath=yes
10493 esac
10494 else
10495 shlibpath_overrides_runpath=yes
10499 os2*)
10500 libname_spec='$name'
10501 shrext_cmds=".dll"
10502 need_lib_prefix=no
10503 library_names_spec='$libname${shared_ext} $libname.a'
10504 dynamic_linker='OS/2 ld.exe'
10505 shlibpath_var=LIBPATH
10508 osf3* | osf4* | osf5*)
10509 version_type=osf
10510 need_lib_prefix=no
10511 need_version=no
10512 soname_spec='${libname}${release}${shared_ext}$major'
10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10514 shlibpath_var=LD_LIBRARY_PATH
10515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10519 rdos*)
10520 dynamic_linker=no
10523 solaris*)
10524 version_type=linux
10525 need_lib_prefix=no
10526 need_version=no
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528 soname_spec='${libname}${release}${shared_ext}$major'
10529 shlibpath_var=LD_LIBRARY_PATH
10530 shlibpath_overrides_runpath=yes
10531 hardcode_into_libs=yes
10532 # ldd complains unless libraries are executable
10533 postinstall_cmds='chmod +x $lib'
10536 sunos4*)
10537 version_type=sunos
10538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10540 shlibpath_var=LD_LIBRARY_PATH
10541 shlibpath_overrides_runpath=yes
10542 if test "$with_gnu_ld" = yes; then
10543 need_lib_prefix=no
10545 need_version=yes
10548 sysv4 | sysv4.3*)
10549 version_type=linux
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10551 soname_spec='${libname}${release}${shared_ext}$major'
10552 shlibpath_var=LD_LIBRARY_PATH
10553 case $host_vendor in
10554 sni)
10555 shlibpath_overrides_runpath=no
10556 need_lib_prefix=no
10557 runpath_var=LD_RUN_PATH
10559 siemens)
10560 need_lib_prefix=no
10562 motorola)
10563 need_lib_prefix=no
10564 need_version=no
10565 shlibpath_overrides_runpath=no
10566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10568 esac
10571 sysv4*MP*)
10572 if test -d /usr/nec ;then
10573 version_type=linux
10574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10575 soname_spec='$libname${shared_ext}.$major'
10576 shlibpath_var=LD_LIBRARY_PATH
10580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10581 version_type=freebsd-elf
10582 need_lib_prefix=no
10583 need_version=no
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10585 soname_spec='${libname}${release}${shared_ext}$major'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 shlibpath_overrides_runpath=yes
10588 hardcode_into_libs=yes
10589 if test "$with_gnu_ld" = yes; then
10590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10591 else
10592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10593 case $host_os in
10594 sco3.2v5*)
10595 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10597 esac
10599 sys_lib_dlsearch_path_spec='/usr/lib'
10602 tpf*)
10603 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10604 version_type=linux
10605 need_lib_prefix=no
10606 need_version=no
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10608 shlibpath_var=LD_LIBRARY_PATH
10609 shlibpath_overrides_runpath=no
10610 hardcode_into_libs=yes
10613 uts4*)
10614 version_type=linux
10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10616 soname_spec='${libname}${release}${shared_ext}$major'
10617 shlibpath_var=LD_LIBRARY_PATH
10621 dynamic_linker=no
10623 esac
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10625 $as_echo "$dynamic_linker" >&6; }
10626 test "$dynamic_linker" = no && can_build_shared=no
10628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10629 if test "$GCC" = yes; then
10630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10633 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10634 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10637 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10732 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10733 hardcode_action=
10734 if test -n "$hardcode_libdir_flag_spec" ||
10735 test -n "$runpath_var" ||
10736 test "X$hardcode_automatic" = "Xyes" ; then
10738 # We can hardcode non-existent directories.
10739 if test "$hardcode_direct" != no &&
10740 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10741 # have to relink, otherwise we might link with an installed library
10742 # when we should be linking with a yet-to-be-installed one
10743 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10744 test "$hardcode_minus_L" != no; then
10745 # Linking always hardcodes the temporary library directory.
10746 hardcode_action=relink
10747 else
10748 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10749 hardcode_action=immediate
10751 else
10752 # We cannot hardcode anything, or else we can only hardcode existing
10753 # directories.
10754 hardcode_action=unsupported
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10757 $as_echo "$hardcode_action" >&6; }
10759 if test "$hardcode_action" = relink ||
10760 test "$inherit_rpath" = yes; then
10761 # Fast installation is not supported
10762 enable_fast_install=no
10763 elif test "$shlibpath_overrides_runpath" = yes ||
10764 test "$enable_shared" = no; then
10765 # Fast installation is not necessary
10766 enable_fast_install=needless
10774 if test "x$enable_dlopen" != xyes; then
10775 enable_dlopen=unknown
10776 enable_dlopen_self=unknown
10777 enable_dlopen_self_static=unknown
10778 else
10779 lt_cv_dlopen=no
10780 lt_cv_dlopen_libs=
10782 case $host_os in
10783 beos*)
10784 lt_cv_dlopen="load_add_on"
10785 lt_cv_dlopen_libs=
10786 lt_cv_dlopen_self=yes
10789 mingw* | pw32* | cegcc*)
10790 lt_cv_dlopen="LoadLibrary"
10791 lt_cv_dlopen_libs=
10794 cygwin*)
10795 lt_cv_dlopen="dlopen"
10796 lt_cv_dlopen_libs=
10799 darwin*)
10800 # if libdl is installed we need to link against it
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10802 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10804 $as_echo_n "(cached) " >&6
10805 else
10806 ac_check_lib_save_LIBS=$LIBS
10807 LIBS="-ldl $LIBS"
10808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10809 /* end confdefs.h. */
10811 /* Override any GCC internal prototype to avoid an error.
10812 Use char because int might match the return type of a GCC
10813 builtin and then its argument prototype would still apply. */
10814 #ifdef __cplusplus
10815 extern "C"
10816 #endif
10817 char dlopen ();
10819 main ()
10821 return dlopen ();
10823 return 0;
10825 _ACEOF
10826 if ac_fn_c_try_link "$LINENO"; then :
10827 ac_cv_lib_dl_dlopen=yes
10828 else
10829 ac_cv_lib_dl_dlopen=no
10831 rm -f core conftest.err conftest.$ac_objext \
10832 conftest$ac_exeext conftest.$ac_ext
10833 LIBS=$ac_check_lib_save_LIBS
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10836 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10837 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10838 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10839 else
10841 lt_cv_dlopen="dyld"
10842 lt_cv_dlopen_libs=
10843 lt_cv_dlopen_self=yes
10850 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10851 if test "x$ac_cv_func_shl_load" = x""yes; then :
10852 lt_cv_dlopen="shl_load"
10853 else
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10855 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10856 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10857 $as_echo_n "(cached) " >&6
10858 else
10859 ac_check_lib_save_LIBS=$LIBS
10860 LIBS="-ldld $LIBS"
10861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10862 /* end confdefs.h. */
10864 /* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10867 #ifdef __cplusplus
10868 extern "C"
10869 #endif
10870 char shl_load ();
10872 main ()
10874 return shl_load ();
10876 return 0;
10878 _ACEOF
10879 if ac_fn_c_try_link "$LINENO"; then :
10880 ac_cv_lib_dld_shl_load=yes
10881 else
10882 ac_cv_lib_dld_shl_load=no
10884 rm -f core conftest.err conftest.$ac_objext \
10885 conftest$ac_exeext conftest.$ac_ext
10886 LIBS=$ac_check_lib_save_LIBS
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10889 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10890 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10891 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10892 else
10893 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10894 if test "x$ac_cv_func_dlopen" = x""yes; then :
10895 lt_cv_dlopen="dlopen"
10896 else
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10898 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10899 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10900 $as_echo_n "(cached) " >&6
10901 else
10902 ac_check_lib_save_LIBS=$LIBS
10903 LIBS="-ldl $LIBS"
10904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10905 /* end confdefs.h. */
10907 /* Override any GCC internal prototype to avoid an error.
10908 Use char because int might match the return type of a GCC
10909 builtin and then its argument prototype would still apply. */
10910 #ifdef __cplusplus
10911 extern "C"
10912 #endif
10913 char dlopen ();
10915 main ()
10917 return dlopen ();
10919 return 0;
10921 _ACEOF
10922 if ac_fn_c_try_link "$LINENO"; then :
10923 ac_cv_lib_dl_dlopen=yes
10924 else
10925 ac_cv_lib_dl_dlopen=no
10927 rm -f core conftest.err conftest.$ac_objext \
10928 conftest$ac_exeext conftest.$ac_ext
10929 LIBS=$ac_check_lib_save_LIBS
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10932 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10933 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10934 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10935 else
10936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10937 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10938 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10939 $as_echo_n "(cached) " >&6
10940 else
10941 ac_check_lib_save_LIBS=$LIBS
10942 LIBS="-lsvld $LIBS"
10943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10944 /* end confdefs.h. */
10946 /* Override any GCC internal prototype to avoid an error.
10947 Use char because int might match the return type of a GCC
10948 builtin and then its argument prototype would still apply. */
10949 #ifdef __cplusplus
10950 extern "C"
10951 #endif
10952 char dlopen ();
10954 main ()
10956 return dlopen ();
10958 return 0;
10960 _ACEOF
10961 if ac_fn_c_try_link "$LINENO"; then :
10962 ac_cv_lib_svld_dlopen=yes
10963 else
10964 ac_cv_lib_svld_dlopen=no
10966 rm -f core conftest.err conftest.$ac_objext \
10967 conftest$ac_exeext conftest.$ac_ext
10968 LIBS=$ac_check_lib_save_LIBS
10970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10971 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10972 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10973 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10974 else
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10976 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10977 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10978 $as_echo_n "(cached) " >&6
10979 else
10980 ac_check_lib_save_LIBS=$LIBS
10981 LIBS="-ldld $LIBS"
10982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10983 /* end confdefs.h. */
10985 /* Override any GCC internal prototype to avoid an error.
10986 Use char because int might match the return type of a GCC
10987 builtin and then its argument prototype would still apply. */
10988 #ifdef __cplusplus
10989 extern "C"
10990 #endif
10991 char dld_link ();
10993 main ()
10995 return dld_link ();
10997 return 0;
10999 _ACEOF
11000 if ac_fn_c_try_link "$LINENO"; then :
11001 ac_cv_lib_dld_dld_link=yes
11002 else
11003 ac_cv_lib_dld_dld_link=no
11005 rm -f core conftest.err conftest.$ac_objext \
11006 conftest$ac_exeext conftest.$ac_ext
11007 LIBS=$ac_check_lib_save_LIBS
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11010 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11011 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11012 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11031 esac
11033 if test "x$lt_cv_dlopen" != xno; then
11034 enable_dlopen=yes
11035 else
11036 enable_dlopen=no
11039 case $lt_cv_dlopen in
11040 dlopen)
11041 save_CPPFLAGS="$CPPFLAGS"
11042 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11044 save_LDFLAGS="$LDFLAGS"
11045 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11047 save_LIBS="$LIBS"
11048 LIBS="$lt_cv_dlopen_libs $LIBS"
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11051 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11052 if test "${lt_cv_dlopen_self+set}" = set; then :
11053 $as_echo_n "(cached) " >&6
11054 else
11055 if test "$cross_compiling" = yes; then :
11056 lt_cv_dlopen_self=cross
11057 else
11058 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11059 lt_status=$lt_dlunknown
11060 cat > conftest.$ac_ext <<_LT_EOF
11061 #line 11061 "configure"
11062 #include "confdefs.h"
11064 #if HAVE_DLFCN_H
11065 #include <dlfcn.h>
11066 #endif
11068 #include <stdio.h>
11070 #ifdef RTLD_GLOBAL
11071 # define LT_DLGLOBAL RTLD_GLOBAL
11072 #else
11073 # ifdef DL_GLOBAL
11074 # define LT_DLGLOBAL DL_GLOBAL
11075 # else
11076 # define LT_DLGLOBAL 0
11077 # endif
11078 #endif
11080 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11081 find out it does not work in some platform. */
11082 #ifndef LT_DLLAZY_OR_NOW
11083 # ifdef RTLD_LAZY
11084 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11085 # else
11086 # ifdef DL_LAZY
11087 # define LT_DLLAZY_OR_NOW DL_LAZY
11088 # else
11089 # ifdef RTLD_NOW
11090 # define LT_DLLAZY_OR_NOW RTLD_NOW
11091 # else
11092 # ifdef DL_NOW
11093 # define LT_DLLAZY_OR_NOW DL_NOW
11094 # else
11095 # define LT_DLLAZY_OR_NOW 0
11096 # endif
11097 # endif
11098 # endif
11099 # endif
11100 #endif
11102 /* When -fvisbility=hidden is used, assume the code has been annotated
11103 correspondingly for the symbols needed. */
11104 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11105 void fnord () __attribute__((visibility("default")));
11106 #endif
11108 void fnord () { int i=42; }
11109 int main ()
11111 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11112 int status = $lt_dlunknown;
11114 if (self)
11116 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11117 else
11119 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11120 else puts (dlerror ());
11122 /* dlclose (self); */
11124 else
11125 puts (dlerror ());
11127 return status;
11129 _LT_EOF
11130 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11131 (eval $ac_link) 2>&5
11132 ac_status=$?
11133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11134 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11135 (./conftest; exit; ) >&5 2>/dev/null
11136 lt_status=$?
11137 case x$lt_status in
11138 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11139 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11140 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11141 esac
11142 else :
11143 # compilation failed
11144 lt_cv_dlopen_self=no
11147 rm -fr conftest*
11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11152 $as_echo "$lt_cv_dlopen_self" >&6; }
11154 if test "x$lt_cv_dlopen_self" = xyes; then
11155 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11157 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11158 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11159 $as_echo_n "(cached) " >&6
11160 else
11161 if test "$cross_compiling" = yes; then :
11162 lt_cv_dlopen_self_static=cross
11163 else
11164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11165 lt_status=$lt_dlunknown
11166 cat > conftest.$ac_ext <<_LT_EOF
11167 #line 11167 "configure"
11168 #include "confdefs.h"
11170 #if HAVE_DLFCN_H
11171 #include <dlfcn.h>
11172 #endif
11174 #include <stdio.h>
11176 #ifdef RTLD_GLOBAL
11177 # define LT_DLGLOBAL RTLD_GLOBAL
11178 #else
11179 # ifdef DL_GLOBAL
11180 # define LT_DLGLOBAL DL_GLOBAL
11181 # else
11182 # define LT_DLGLOBAL 0
11183 # endif
11184 #endif
11186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11187 find out it does not work in some platform. */
11188 #ifndef LT_DLLAZY_OR_NOW
11189 # ifdef RTLD_LAZY
11190 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11191 # else
11192 # ifdef DL_LAZY
11193 # define LT_DLLAZY_OR_NOW DL_LAZY
11194 # else
11195 # ifdef RTLD_NOW
11196 # define LT_DLLAZY_OR_NOW RTLD_NOW
11197 # else
11198 # ifdef DL_NOW
11199 # define LT_DLLAZY_OR_NOW DL_NOW
11200 # else
11201 # define LT_DLLAZY_OR_NOW 0
11202 # endif
11203 # endif
11204 # endif
11205 # endif
11206 #endif
11208 /* When -fvisbility=hidden is used, assume the code has been annotated
11209 correspondingly for the symbols needed. */
11210 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11211 void fnord () __attribute__((visibility("default")));
11212 #endif
11214 void fnord () { int i=42; }
11215 int main ()
11217 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11218 int status = $lt_dlunknown;
11220 if (self)
11222 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11223 else
11225 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11226 else puts (dlerror ());
11228 /* dlclose (self); */
11230 else
11231 puts (dlerror ());
11233 return status;
11235 _LT_EOF
11236 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11237 (eval $ac_link) 2>&5
11238 ac_status=$?
11239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11240 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11241 (./conftest; exit; ) >&5 2>/dev/null
11242 lt_status=$?
11243 case x$lt_status in
11244 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11245 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11246 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11247 esac
11248 else :
11249 # compilation failed
11250 lt_cv_dlopen_self_static=no
11253 rm -fr conftest*
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11258 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11261 CPPFLAGS="$save_CPPFLAGS"
11262 LDFLAGS="$save_LDFLAGS"
11263 LIBS="$save_LIBS"
11265 esac
11267 case $lt_cv_dlopen_self in
11268 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11269 *) enable_dlopen_self=unknown ;;
11270 esac
11272 case $lt_cv_dlopen_self_static in
11273 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11274 *) enable_dlopen_self_static=unknown ;;
11275 esac
11294 striplib=
11295 old_striplib=
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11297 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11298 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11299 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11300 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11302 $as_echo "yes" >&6; }
11303 else
11304 # FIXME - insert some real tests, host_os isn't really good enough
11305 case $host_os in
11306 darwin*)
11307 if test -n "$STRIP" ; then
11308 striplib="$STRIP -x"
11309 old_striplib="$STRIP -S"
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11311 $as_echo "yes" >&6; }
11312 else
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11314 $as_echo "no" >&6; }
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11319 $as_echo "no" >&6; }
11321 esac
11335 # Report which library types will actually be built
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11337 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11339 $as_echo "$can_build_shared" >&6; }
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11342 $as_echo_n "checking whether to build shared libraries... " >&6; }
11343 test "$can_build_shared" = "no" && enable_shared=no
11345 # On AIX, shared libraries and static libraries use the same namespace, and
11346 # are all built from PIC.
11347 case $host_os in
11348 aix3*)
11349 test "$enable_shared" = yes && enable_static=no
11350 if test -n "$RANLIB"; then
11351 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11352 postinstall_cmds='$RANLIB $lib'
11356 aix[4-9]*)
11357 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11358 test "$enable_shared" = yes && enable_static=no
11361 esac
11362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11363 $as_echo "$enable_shared" >&6; }
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11366 $as_echo_n "checking whether to build static libraries... " >&6; }
11367 # Make sure either enable_shared or enable_static is yes.
11368 test "$enable_shared" = yes || enable_static=yes
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11370 $as_echo "$enable_static" >&6; }
11376 ac_ext=c
11377 ac_cpp='$CPP $CPPFLAGS'
11378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11382 CC="$lt_save_CC"
11384 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11385 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11386 (test "X$CXX" != "Xg++"))) ; then
11387 ac_ext=cpp
11388 ac_cpp='$CXXCPP $CPPFLAGS'
11389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11393 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11394 if test -z "$CXXCPP"; then
11395 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11396 $as_echo_n "(cached) " >&6
11397 else
11398 # Double quotes because CXXCPP needs to be expanded
11399 for CXXCPP in "$CXX -E" "/lib/cpp"
11401 ac_preproc_ok=false
11402 for ac_cxx_preproc_warn_flag in '' yes
11404 # Use a header file that comes with gcc, so configuring glibc
11405 # with a fresh cross-compiler works.
11406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11407 # <limits.h> exists even on freestanding compilers.
11408 # On the NeXT, cc -E runs the code through the compiler's parser,
11409 # not just through cpp. "Syntax error" is here to catch this case.
11410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h. */
11412 #ifdef __STDC__
11413 # include <limits.h>
11414 #else
11415 # include <assert.h>
11416 #endif
11417 Syntax error
11418 _ACEOF
11419 if ac_fn_cxx_try_cpp "$LINENO"; then :
11421 else
11422 # Broken: fails on valid input.
11423 continue
11425 rm -f conftest.err conftest.$ac_ext
11427 # OK, works on sane cases. Now check whether nonexistent headers
11428 # can be detected and how.
11429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11430 /* end confdefs.h. */
11431 #include <ac_nonexistent.h>
11432 _ACEOF
11433 if ac_fn_cxx_try_cpp "$LINENO"; then :
11434 # Broken: success on invalid input.
11435 continue
11436 else
11437 # Passes both tests.
11438 ac_preproc_ok=:
11439 break
11441 rm -f conftest.err conftest.$ac_ext
11443 done
11444 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11445 rm -f conftest.err conftest.$ac_ext
11446 if $ac_preproc_ok; then :
11447 break
11450 done
11451 ac_cv_prog_CXXCPP=$CXXCPP
11454 CXXCPP=$ac_cv_prog_CXXCPP
11455 else
11456 ac_cv_prog_CXXCPP=$CXXCPP
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11459 $as_echo "$CXXCPP" >&6; }
11460 ac_preproc_ok=false
11461 for ac_cxx_preproc_warn_flag in '' yes
11463 # Use a header file that comes with gcc, so configuring glibc
11464 # with a fresh cross-compiler works.
11465 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11466 # <limits.h> exists even on freestanding compilers.
11467 # On the NeXT, cc -E runs the code through the compiler's parser,
11468 # not just through cpp. "Syntax error" is here to catch this case.
11469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11470 /* end confdefs.h. */
11471 #ifdef __STDC__
11472 # include <limits.h>
11473 #else
11474 # include <assert.h>
11475 #endif
11476 Syntax error
11477 _ACEOF
11478 if ac_fn_cxx_try_cpp "$LINENO"; then :
11480 else
11481 # Broken: fails on valid input.
11482 continue
11484 rm -f conftest.err conftest.$ac_ext
11486 # OK, works on sane cases. Now check whether nonexistent headers
11487 # can be detected and how.
11488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11489 /* end confdefs.h. */
11490 #include <ac_nonexistent.h>
11491 _ACEOF
11492 if ac_fn_cxx_try_cpp "$LINENO"; then :
11493 # Broken: success on invalid input.
11494 continue
11495 else
11496 # Passes both tests.
11497 ac_preproc_ok=:
11498 break
11500 rm -f conftest.err conftest.$ac_ext
11502 done
11503 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11504 rm -f conftest.err conftest.$ac_ext
11505 if $ac_preproc_ok; then :
11507 else
11508 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11510 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11511 See \`config.log' for more details." "$LINENO" 5; }
11514 ac_ext=c
11515 ac_cpp='$CPP $CPPFLAGS'
11516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11520 else
11521 _lt_caught_CXX_error=yes
11524 ac_ext=cpp
11525 ac_cpp='$CXXCPP $CPPFLAGS'
11526 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11527 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11528 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11530 archive_cmds_need_lc_CXX=no
11531 allow_undefined_flag_CXX=
11532 always_export_symbols_CXX=no
11533 archive_expsym_cmds_CXX=
11534 compiler_needs_object_CXX=no
11535 export_dynamic_flag_spec_CXX=
11536 hardcode_direct_CXX=no
11537 hardcode_direct_absolute_CXX=no
11538 hardcode_libdir_flag_spec_CXX=
11539 hardcode_libdir_flag_spec_ld_CXX=
11540 hardcode_libdir_separator_CXX=
11541 hardcode_minus_L_CXX=no
11542 hardcode_shlibpath_var_CXX=unsupported
11543 hardcode_automatic_CXX=no
11544 inherit_rpath_CXX=no
11545 module_cmds_CXX=
11546 module_expsym_cmds_CXX=
11547 link_all_deplibs_CXX=unknown
11548 old_archive_cmds_CXX=$old_archive_cmds
11549 reload_flag_CXX=$reload_flag
11550 reload_cmds_CXX=$reload_cmds
11551 no_undefined_flag_CXX=
11552 whole_archive_flag_spec_CXX=
11553 enable_shared_with_static_runtimes_CXX=no
11555 # Source file extension for C++ test sources.
11556 ac_ext=cpp
11558 # Object file extension for compiled C++ test sources.
11559 objext=o
11560 objext_CXX=$objext
11562 # No sense in running all these tests if we already determined that
11563 # the CXX compiler isn't working. Some variables (like enable_shared)
11564 # are currently assumed to apply to all compilers on this platform,
11565 # and will be corrupted by setting them based on a non-working compiler.
11566 if test "$_lt_caught_CXX_error" != yes; then
11567 # Code to be used in simple compile tests
11568 lt_simple_compile_test_code="int some_variable = 0;"
11570 # Code to be used in simple link tests
11571 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11573 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11580 # If no C compiler was specified, use CC.
11581 LTCC=${LTCC-"$CC"}
11583 # If no C compiler flags were specified, use CFLAGS.
11584 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11586 # Allow CC to be a program name with arguments.
11587 compiler=$CC
11590 # save warnings/boilerplate of simple test code
11591 ac_outfile=conftest.$ac_objext
11592 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11593 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11594 _lt_compiler_boilerplate=`cat conftest.err`
11595 $RM conftest*
11597 ac_outfile=conftest.$ac_objext
11598 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11599 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11600 _lt_linker_boilerplate=`cat conftest.err`
11601 $RM -r conftest*
11604 # Allow CC to be a program name with arguments.
11605 lt_save_CC=$CC
11606 lt_save_LD=$LD
11607 lt_save_GCC=$GCC
11608 GCC=$GXX
11609 lt_save_with_gnu_ld=$with_gnu_ld
11610 lt_save_path_LD=$lt_cv_path_LD
11611 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11612 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11613 else
11614 $as_unset lt_cv_prog_gnu_ld
11616 if test -n "${lt_cv_path_LDCXX+set}"; then
11617 lt_cv_path_LD=$lt_cv_path_LDCXX
11618 else
11619 $as_unset lt_cv_path_LD
11621 test -z "${LDCXX+set}" || LD=$LDCXX
11622 CC=${CXX-"c++"}
11623 compiler=$CC
11624 compiler_CXX=$CC
11625 for cc_temp in $compiler""; do
11626 case $cc_temp in
11627 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11628 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11629 \-*) ;;
11630 *) break;;
11631 esac
11632 done
11633 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11636 if test -n "$compiler"; then
11637 # We don't want -fno-exception when compiling C++ code, so set the
11638 # no_builtin_flag separately
11639 if test "$GXX" = yes; then
11640 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11641 else
11642 lt_prog_compiler_no_builtin_flag_CXX=
11645 if test "$GXX" = yes; then
11646 # Set up default GNU C++ configuration
11650 # Check whether --with-gnu-ld was given.
11651 if test "${with_gnu_ld+set}" = set; then :
11652 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11653 else
11654 with_gnu_ld=no
11657 ac_prog=ld
11658 if test "$GCC" = yes; then
11659 # Check if gcc -print-prog-name=ld gives a path.
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11661 $as_echo_n "checking for ld used by $CC... " >&6; }
11662 case $host in
11663 *-*-mingw*)
11664 # gcc leaves a trailing carriage return which upsets mingw
11665 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11667 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11668 esac
11669 case $ac_prog in
11670 # Accept absolute paths.
11671 [\\/]* | ?:[\\/]*)
11672 re_direlt='/[^/][^/]*/\.\./'
11673 # Canonicalize the pathname of ld
11674 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11675 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11676 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11677 done
11678 test -z "$LD" && LD="$ac_prog"
11681 # If it fails, then pretend we aren't using GCC.
11682 ac_prog=ld
11685 # If it is relative, then search for the first ld in PATH.
11686 with_gnu_ld=unknown
11688 esac
11689 elif test "$with_gnu_ld" = yes; then
11690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11691 $as_echo_n "checking for GNU ld... " >&6; }
11692 else
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11694 $as_echo_n "checking for non-GNU ld... " >&6; }
11696 if test "${lt_cv_path_LD+set}" = set; then :
11697 $as_echo_n "(cached) " >&6
11698 else
11699 if test -z "$LD"; then
11700 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11701 for ac_dir in $PATH; do
11702 IFS="$lt_save_ifs"
11703 test -z "$ac_dir" && ac_dir=.
11704 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11705 lt_cv_path_LD="$ac_dir/$ac_prog"
11706 # Check to see if the program is GNU ld. I'd rather use --version,
11707 # but apparently some variants of GNU ld only accept -v.
11708 # Break only if it was the GNU/non-GNU ld that we prefer.
11709 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11710 *GNU* | *'with BFD'*)
11711 test "$with_gnu_ld" != no && break
11714 test "$with_gnu_ld" != yes && break
11716 esac
11718 done
11719 IFS="$lt_save_ifs"
11720 else
11721 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11725 LD="$lt_cv_path_LD"
11726 if test -n "$LD"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11728 $as_echo "$LD" >&6; }
11729 else
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11731 $as_echo "no" >&6; }
11733 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11735 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11736 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11737 $as_echo_n "(cached) " >&6
11738 else
11739 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11740 case `$LD -v 2>&1 </dev/null` in
11741 *GNU* | *'with BFD'*)
11742 lt_cv_prog_gnu_ld=yes
11745 lt_cv_prog_gnu_ld=no
11747 esac
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11750 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11751 with_gnu_ld=$lt_cv_prog_gnu_ld
11759 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11760 # archiving commands below assume that GNU ld is being used.
11761 if test "$with_gnu_ld" = yes; then
11762 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11763 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11766 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11768 # If archive_cmds runs LD, not CC, wlarc should be empty
11769 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11770 # investigate it a little bit more. (MM)
11771 wlarc='${wl}'
11773 # ancient GNU ld didn't support --whole-archive et. al.
11774 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11775 $GREP 'no-whole-archive' > /dev/null; then
11776 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11777 else
11778 whole_archive_flag_spec_CXX=
11780 else
11781 with_gnu_ld=no
11782 wlarc=
11784 # A generic and very simple default shared library creation
11785 # command for GNU C++ for the case where it uses the native
11786 # linker, instead of GNU ld. If possible, this setting should
11787 # overridden to take advantage of the native linker features on
11788 # the platform it is being used on.
11789 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11792 # Commands to make compiler produce verbose output that lists
11793 # what "hidden" libraries, object files and flags are used when
11794 # linking a shared library.
11795 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11797 else
11798 GXX=no
11799 with_gnu_ld=no
11800 wlarc=
11803 # PORTME: fill in a description of your system's C++ link characteristics
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11805 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11806 ld_shlibs_CXX=yes
11807 case $host_os in
11808 aix3*)
11809 # FIXME: insert proper C++ library support
11810 ld_shlibs_CXX=no
11812 aix[4-9]*)
11813 if test "$host_cpu" = ia64; then
11814 # On IA64, the linker does run time linking by default, so we don't
11815 # have to do anything special.
11816 aix_use_runtimelinking=no
11817 exp_sym_flag='-Bexport'
11818 no_entry_flag=""
11819 else
11820 aix_use_runtimelinking=no
11822 # Test if we are trying to use run time linking or normal
11823 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11824 # need to do runtime linking.
11825 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11826 for ld_flag in $LDFLAGS; do
11827 case $ld_flag in
11828 *-brtl*)
11829 aix_use_runtimelinking=yes
11830 break
11832 esac
11833 done
11835 esac
11837 exp_sym_flag='-bexport'
11838 no_entry_flag='-bnoentry'
11841 # When large executables or shared objects are built, AIX ld can
11842 # have problems creating the table of contents. If linking a library
11843 # or program results in "error TOC overflow" add -mminimal-toc to
11844 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11845 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11847 archive_cmds_CXX=''
11848 hardcode_direct_CXX=yes
11849 hardcode_direct_absolute_CXX=yes
11850 hardcode_libdir_separator_CXX=':'
11851 link_all_deplibs_CXX=yes
11852 file_list_spec_CXX='${wl}-f,'
11854 if test "$GXX" = yes; then
11855 case $host_os in aix4.[012]|aix4.[012].*)
11856 # We only want to do this on AIX 4.2 and lower, the check
11857 # below for broken collect2 doesn't work under 4.3+
11858 collect2name=`${CC} -print-prog-name=collect2`
11859 if test -f "$collect2name" &&
11860 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11861 then
11862 # We have reworked collect2
11864 else
11865 # We have old collect2
11866 hardcode_direct_CXX=unsupported
11867 # It fails to find uninstalled libraries when the uninstalled
11868 # path is not listed in the libpath. Setting hardcode_minus_L
11869 # to unsupported forces relinking
11870 hardcode_minus_L_CXX=yes
11871 hardcode_libdir_flag_spec_CXX='-L$libdir'
11872 hardcode_libdir_separator_CXX=
11874 esac
11875 shared_flag='-shared'
11876 if test "$aix_use_runtimelinking" = yes; then
11877 shared_flag="$shared_flag "'${wl}-G'
11879 else
11880 # not using gcc
11881 if test "$host_cpu" = ia64; then
11882 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11883 # chokes on -Wl,-G. The following line is correct:
11884 shared_flag='-G'
11885 else
11886 if test "$aix_use_runtimelinking" = yes; then
11887 shared_flag='${wl}-G'
11888 else
11889 shared_flag='${wl}-bM:SRE'
11894 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11895 # It seems that -bexpall does not export symbols beginning with
11896 # underscore (_), so it is better to generate a list of symbols to
11897 # export.
11898 always_export_symbols_CXX=yes
11899 if test "$aix_use_runtimelinking" = yes; then
11900 # Warning - without using the other runtime loading flags (-brtl),
11901 # -berok will link without error, but may produce a broken library.
11902 allow_undefined_flag_CXX='-berok'
11903 # Determine the default libpath from the value encoded in an empty
11904 # executable.
11905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11906 /* end confdefs.h. */
11909 main ()
11913 return 0;
11915 _ACEOF
11916 if ac_fn_cxx_try_link "$LINENO"; then :
11918 lt_aix_libpath_sed='
11919 /Import File Strings/,/^$/ {
11920 /^0/ {
11921 s/^0 *\(.*\)$/\1/
11925 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11926 # Check for a 64-bit object if we didn't find anything.
11927 if test -z "$aix_libpath"; then
11928 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11931 rm -f core conftest.err conftest.$ac_objext \
11932 conftest$ac_exeext conftest.$ac_ext
11933 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11935 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11937 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11938 else
11939 if test "$host_cpu" = ia64; then
11940 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11941 allow_undefined_flag_CXX="-z nodefs"
11942 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
11943 else
11944 # Determine the default libpath from the value encoded in an
11945 # empty executable.
11946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11947 /* end confdefs.h. */
11950 main ()
11954 return 0;
11956 _ACEOF
11957 if ac_fn_cxx_try_link "$LINENO"; then :
11959 lt_aix_libpath_sed='
11960 /Import File Strings/,/^$/ {
11961 /^0/ {
11962 s/^0 *\(.*\)$/\1/
11966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11967 # Check for a 64-bit object if we didn't find anything.
11968 if test -z "$aix_libpath"; then
11969 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11972 rm -f core conftest.err conftest.$ac_objext \
11973 conftest$ac_exeext conftest.$ac_ext
11974 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11976 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11977 # Warning - without using the other run time loading flags,
11978 # -berok will link without error, but may produce a broken library.
11979 no_undefined_flag_CXX=' ${wl}-bernotok'
11980 allow_undefined_flag_CXX=' ${wl}-berok'
11981 if test "$with_gnu_ld" = yes; then
11982 # We only use this code for GNU lds that support --whole-archive.
11983 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11984 else
11985 # Exported symbols can be pulled into shared objects from archives
11986 whole_archive_flag_spec_CXX='$convenience'
11988 archive_cmds_need_lc_CXX=yes
11989 # This is similar to how AIX traditionally builds its shared
11990 # libraries.
11991 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11996 beos*)
11997 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11998 allow_undefined_flag_CXX=unsupported
11999 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12000 # support --undefined. This deserves some investigation. FIXME
12001 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12002 else
12003 ld_shlibs_CXX=no
12007 chorus*)
12008 case $cc_basename in
12010 # FIXME: insert proper C++ library support
12011 ld_shlibs_CXX=no
12013 esac
12016 cygwin* | mingw* | pw32* | cegcc*)
12017 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12018 # as there is no search path for DLLs.
12019 hardcode_libdir_flag_spec_CXX='-L$libdir'
12020 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12021 allow_undefined_flag_CXX=unsupported
12022 always_export_symbols_CXX=no
12023 enable_shared_with_static_runtimes_CXX=yes
12025 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12026 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12027 # If the export-symbols file already is a .def file (1st line
12028 # is EXPORTS), use it as is; otherwise, prepend...
12029 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12030 cp $export_symbols $output_objdir/$soname.def;
12031 else
12032 echo EXPORTS > $output_objdir/$soname.def;
12033 cat $export_symbols >> $output_objdir/$soname.def;
12035 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12036 else
12037 ld_shlibs_CXX=no
12040 darwin* | rhapsody*)
12043 archive_cmds_need_lc_CXX=no
12044 hardcode_direct_CXX=no
12045 hardcode_automatic_CXX=yes
12046 hardcode_shlibpath_var_CXX=unsupported
12047 if test "$lt_cv_ld_force_load" = "yes"; then
12048 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12049 else
12050 whole_archive_flag_spec_CXX=''
12052 link_all_deplibs_CXX=yes
12053 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12054 case $cc_basename in
12055 ifort*) _lt_dar_can_shared=yes ;;
12056 *) _lt_dar_can_shared=$GCC ;;
12057 esac
12058 if test "$_lt_dar_can_shared" = "yes"; then
12059 output_verbose_link_cmd=func_echo_all
12060 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12061 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12062 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
12063 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12064 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12065 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
12066 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
12069 else
12070 ld_shlibs_CXX=no
12075 dgux*)
12076 case $cc_basename in
12077 ec++*)
12078 # FIXME: insert proper C++ library support
12079 ld_shlibs_CXX=no
12081 ghcx*)
12082 # Green Hills C++ Compiler
12083 # FIXME: insert proper C++ library support
12084 ld_shlibs_CXX=no
12087 # FIXME: insert proper C++ library support
12088 ld_shlibs_CXX=no
12090 esac
12093 freebsd2.*)
12094 # C++ shared libraries reported to be fairly broken before
12095 # switch to ELF
12096 ld_shlibs_CXX=no
12099 freebsd-elf*)
12100 archive_cmds_need_lc_CXX=no
12103 freebsd* | dragonfly*)
12104 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12105 # conventions
12106 ld_shlibs_CXX=yes
12109 gnu*)
12112 haiku*)
12113 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12114 link_all_deplibs_CXX=yes
12117 hpux9*)
12118 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12119 hardcode_libdir_separator_CXX=:
12120 export_dynamic_flag_spec_CXX='${wl}-E'
12121 hardcode_direct_CXX=yes
12122 hardcode_minus_L_CXX=yes # Not in the search PATH,
12123 # but as the default
12124 # location of the library.
12126 case $cc_basename in
12127 CC*)
12128 # FIXME: insert proper C++ library support
12129 ld_shlibs_CXX=no
12131 aCC*)
12132 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12133 # Commands to make compiler produce verbose output that lists
12134 # what "hidden" libraries, object files and flags are used when
12135 # linking a shared library.
12137 # There doesn't appear to be a way to prevent this compiler from
12138 # explicitly linking system object files so we need to strip them
12139 # from the output so that they don't get included in the library
12140 # dependencies.
12141 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12144 if test "$GXX" = yes; then
12145 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12146 else
12147 # FIXME: insert proper C++ library support
12148 ld_shlibs_CXX=no
12151 esac
12154 hpux10*|hpux11*)
12155 if test $with_gnu_ld = no; then
12156 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12157 hardcode_libdir_separator_CXX=:
12159 case $host_cpu in
12160 hppa*64*|ia64*)
12163 export_dynamic_flag_spec_CXX='${wl}-E'
12165 esac
12167 case $host_cpu in
12168 hppa*64*|ia64*)
12169 hardcode_direct_CXX=no
12170 hardcode_shlibpath_var_CXX=no
12173 hardcode_direct_CXX=yes
12174 hardcode_direct_absolute_CXX=yes
12175 hardcode_minus_L_CXX=yes # Not in the search PATH,
12176 # but as the default
12177 # location of the library.
12179 esac
12181 case $cc_basename in
12182 CC*)
12183 # FIXME: insert proper C++ library support
12184 ld_shlibs_CXX=no
12186 aCC*)
12187 case $host_cpu in
12188 hppa*64*)
12189 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12191 ia64*)
12192 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12195 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12197 esac
12198 # Commands to make compiler produce verbose output that lists
12199 # what "hidden" libraries, object files and flags are used when
12200 # linking a shared library.
12202 # There doesn't appear to be a way to prevent this compiler from
12203 # explicitly linking system object files so we need to strip them
12204 # from the output so that they don't get included in the library
12205 # dependencies.
12206 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12209 if test "$GXX" = yes; then
12210 if test $with_gnu_ld = no; then
12211 case $host_cpu in
12212 hppa*64*)
12213 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12215 ia64*)
12216 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12219 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12221 esac
12223 else
12224 # FIXME: insert proper C++ library support
12225 ld_shlibs_CXX=no
12228 esac
12231 interix[3-9]*)
12232 hardcode_direct_CXX=no
12233 hardcode_shlibpath_var_CXX=no
12234 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12235 export_dynamic_flag_spec_CXX='${wl}-E'
12236 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12237 # Instead, shared libraries are loaded at an image base (0x10000000 by
12238 # default) and relocated if they conflict, which is a slow very memory
12239 # consuming and fragmenting process. To avoid this, we pick a random,
12240 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12241 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12242 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12243 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12245 irix5* | irix6*)
12246 case $cc_basename in
12247 CC*)
12248 # SGI C++
12249 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12251 # Archives containing C++ object files must be created using
12252 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12253 # necessary to make sure instantiated templates are included
12254 # in the archive.
12255 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12258 if test "$GXX" = yes; then
12259 if test "$with_gnu_ld" = no; then
12260 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12261 else
12262 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12265 link_all_deplibs_CXX=yes
12267 esac
12268 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12269 hardcode_libdir_separator_CXX=:
12270 inherit_rpath_CXX=yes
12273 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12274 case $cc_basename in
12275 KCC*)
12276 # Kuck and Associates, Inc. (KAI) C++ Compiler
12278 # KCC will only create a shared library if the output file
12279 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12280 # to its proper name (with version) after linking.
12281 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12282 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
12283 # Commands to make compiler produce verbose output that lists
12284 # what "hidden" libraries, object files and flags are used when
12285 # linking a shared library.
12287 # There doesn't appear to be a way to prevent this compiler from
12288 # explicitly linking system object files so we need to strip them
12289 # from the output so that they don't get included in the library
12290 # dependencies.
12291 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12296 # Archives containing C++ object files must be created using
12297 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12298 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12300 icpc* | ecpc* )
12301 # Intel C++
12302 with_gnu_ld=yes
12303 # version 8.0 and above of icpc choke on multiply defined symbols
12304 # if we add $predep_objects and $postdep_objects, however 7.1 and
12305 # earlier do not add the objects themselves.
12306 case `$CC -V 2>&1` in
12307 *"Version 7."*)
12308 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12309 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12311 *) # Version 8.0 or newer
12312 tmp_idyn=
12313 case $host_cpu in
12314 ia64*) tmp_idyn=' -i_dynamic';;
12315 esac
12316 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12317 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12319 esac
12320 archive_cmds_need_lc_CXX=no
12321 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12322 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12323 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12325 pgCC* | pgcpp*)
12326 # Portland Group C++ compiler
12327 case `$CC -V` in
12328 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12329 prelink_cmds_CXX='tpldir=Template.dir~
12330 rm -rf $tpldir~
12331 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12332 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12333 old_archive_cmds_CXX='tpldir=Template.dir~
12334 rm -rf $tpldir~
12335 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12336 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12337 $RANLIB $oldlib'
12338 archive_cmds_CXX='tpldir=Template.dir~
12339 rm -rf $tpldir~
12340 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12341 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12342 archive_expsym_cmds_CXX='tpldir=Template.dir~
12343 rm -rf $tpldir~
12344 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12345 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12347 *) # Version 6 and above use weak symbols
12348 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12349 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12351 esac
12353 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12355 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12357 cxx*)
12358 # Compaq C++
12359 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12360 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
12362 runpath_var=LD_RUN_PATH
12363 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12364 hardcode_libdir_separator_CXX=:
12366 # Commands to make compiler produce verbose output that lists
12367 # what "hidden" libraries, object files and flags are used when
12368 # linking a shared library.
12370 # There doesn't appear to be a way to prevent this compiler from
12371 # explicitly linking system object files so we need to strip them
12372 # from the output so that they don't get included in the library
12373 # dependencies.
12374 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
12376 xl* | mpixl* | bgxl*)
12377 # IBM XL 8.0 on PPC, with GNU ld
12378 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12379 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12380 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12381 if test "x$supports_anon_versioning" = xyes; then
12382 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12383 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12384 echo "local: *; };" >> $output_objdir/$libname.ver~
12385 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12389 case `$CC -V 2>&1 | sed 5q` in
12390 *Sun\ C*)
12391 # Sun C++ 5.9
12392 no_undefined_flag_CXX=' -zdefs'
12393 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12394 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
12395 hardcode_libdir_flag_spec_CXX='-R$libdir'
12396 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12397 compiler_needs_object_CXX=yes
12399 # Not sure whether something based on
12400 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12401 # would be better.
12402 output_verbose_link_cmd='func_echo_all'
12404 # Archives containing C++ object files must be created using
12405 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12406 # necessary to make sure instantiated templates are included
12407 # in the archive.
12408 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12410 esac
12412 esac
12415 lynxos*)
12416 # FIXME: insert proper C++ library support
12417 ld_shlibs_CXX=no
12420 m88k*)
12421 # FIXME: insert proper C++ library support
12422 ld_shlibs_CXX=no
12425 mvs*)
12426 case $cc_basename in
12427 cxx*)
12428 # FIXME: insert proper C++ library support
12429 ld_shlibs_CXX=no
12432 # FIXME: insert proper C++ library support
12433 ld_shlibs_CXX=no
12435 esac
12438 netbsd*)
12439 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12440 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12441 wlarc=
12442 hardcode_libdir_flag_spec_CXX='-R$libdir'
12443 hardcode_direct_CXX=yes
12444 hardcode_shlibpath_var_CXX=no
12446 # Workaround some broken pre-1.5 toolchains
12447 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12450 *nto* | *qnx*)
12451 ld_shlibs_CXX=yes
12454 openbsd2*)
12455 # C++ shared libraries are fairly broken
12456 ld_shlibs_CXX=no
12459 openbsd*)
12460 if test -f /usr/libexec/ld.so; then
12461 hardcode_direct_CXX=yes
12462 hardcode_shlibpath_var_CXX=no
12463 hardcode_direct_absolute_CXX=yes
12464 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12465 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12466 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12467 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12468 export_dynamic_flag_spec_CXX='${wl}-E'
12469 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12471 output_verbose_link_cmd=func_echo_all
12472 else
12473 ld_shlibs_CXX=no
12477 osf3* | osf4* | osf5*)
12478 case $cc_basename in
12479 KCC*)
12480 # Kuck and Associates, Inc. (KAI) C++ Compiler
12482 # KCC will only create a shared library if the output file
12483 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12484 # to its proper name (with version) after linking.
12485 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
12487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12488 hardcode_libdir_separator_CXX=:
12490 # Archives containing C++ object files must be created using
12491 # the KAI C++ compiler.
12492 case $host in
12493 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12494 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12495 esac
12497 RCC*)
12498 # Rational C++ 2.4.1
12499 # FIXME: insert proper C++ library support
12500 ld_shlibs_CXX=no
12502 cxx*)
12503 case $host in
12504 osf3*)
12505 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12506 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12507 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12510 allow_undefined_flag_CXX=' -expect_unresolved \*'
12511 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12512 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12513 echo "-hidden">> $lib.exp~
12514 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
12515 $RM $lib.exp'
12516 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12518 esac
12520 hardcode_libdir_separator_CXX=:
12522 # Commands to make compiler produce verbose output that lists
12523 # what "hidden" libraries, object files and flags are used when
12524 # linking a shared library.
12526 # There doesn't appear to be a way to prevent this compiler from
12527 # explicitly linking system object files so we need to strip them
12528 # from the output so that they don't get included in the library
12529 # dependencies.
12530 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
12533 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12534 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12535 case $host in
12536 osf3*)
12537 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12540 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12542 esac
12544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12545 hardcode_libdir_separator_CXX=:
12547 # Commands to make compiler produce verbose output that lists
12548 # what "hidden" libraries, object files and flags are used when
12549 # linking a shared library.
12550 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12552 else
12553 # FIXME: insert proper C++ library support
12554 ld_shlibs_CXX=no
12557 esac
12560 psos*)
12561 # FIXME: insert proper C++ library support
12562 ld_shlibs_CXX=no
12565 sunos4*)
12566 case $cc_basename in
12567 CC*)
12568 # Sun C++ 4.x
12569 # FIXME: insert proper C++ library support
12570 ld_shlibs_CXX=no
12572 lcc*)
12573 # Lucid
12574 # FIXME: insert proper C++ library support
12575 ld_shlibs_CXX=no
12578 # FIXME: insert proper C++ library support
12579 ld_shlibs_CXX=no
12581 esac
12584 solaris*)
12585 case $cc_basename in
12586 CC*)
12587 # Sun C++ 4.2, 5.x and Centerline C++
12588 archive_cmds_need_lc_CXX=yes
12589 no_undefined_flag_CXX=' -zdefs'
12590 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12591 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12592 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12594 hardcode_libdir_flag_spec_CXX='-R$libdir'
12595 hardcode_shlibpath_var_CXX=no
12596 case $host_os in
12597 solaris2.[0-5] | solaris2.[0-5].*) ;;
12599 # The compiler driver will combine and reorder linker options,
12600 # but understands `-z linker_flag'.
12601 # Supported since Solaris 2.6 (maybe 2.5.1?)
12602 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12604 esac
12605 link_all_deplibs_CXX=yes
12607 output_verbose_link_cmd='func_echo_all'
12609 # Archives containing C++ object files must be created using
12610 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12611 # necessary to make sure instantiated templates are included
12612 # in the archive.
12613 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12615 gcx*)
12616 # Green Hills C++ Compiler
12617 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12619 # The C++ compiler must be used to create the archive.
12620 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12623 # GNU C++ compiler with Solaris linker
12624 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12625 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12626 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12627 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12628 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12629 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12631 # Commands to make compiler produce verbose output that lists
12632 # what "hidden" libraries, object files and flags are used when
12633 # linking a shared library.
12634 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12635 else
12636 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12637 # platform.
12638 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12639 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12640 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12642 # Commands to make compiler produce verbose output that lists
12643 # what "hidden" libraries, object files and flags are used when
12644 # linking a shared library.
12645 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12648 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12649 case $host_os in
12650 solaris2.[0-5] | solaris2.[0-5].*) ;;
12652 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12654 esac
12657 esac
12660 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12661 no_undefined_flag_CXX='${wl}-z,text'
12662 archive_cmds_need_lc_CXX=no
12663 hardcode_shlibpath_var_CXX=no
12664 runpath_var='LD_RUN_PATH'
12666 case $cc_basename in
12667 CC*)
12668 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12669 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12672 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12673 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12675 esac
12678 sysv5* | sco3.2v5* | sco5v6*)
12679 # Note: We can NOT use -z defs as we might desire, because we do not
12680 # link with -lc, and that would cause any symbols used from libc to
12681 # always be unresolved, which means just about no library would
12682 # ever link correctly. If we're not using GNU ld we use -z text
12683 # though, which does catch some bad symbols but isn't as heavy-handed
12684 # as -z defs.
12685 no_undefined_flag_CXX='${wl}-z,text'
12686 allow_undefined_flag_CXX='${wl}-z,nodefs'
12687 archive_cmds_need_lc_CXX=no
12688 hardcode_shlibpath_var_CXX=no
12689 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12690 hardcode_libdir_separator_CXX=':'
12691 link_all_deplibs_CXX=yes
12692 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12693 runpath_var='LD_RUN_PATH'
12695 case $cc_basename in
12696 CC*)
12697 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12698 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12699 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12700 '"$old_archive_cmds_CXX"
12701 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12702 '"$reload_cmds_CXX"
12705 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12706 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12708 esac
12711 tandem*)
12712 case $cc_basename in
12713 NCC*)
12714 # NonStop-UX NCC 3.20
12715 # FIXME: insert proper C++ library support
12716 ld_shlibs_CXX=no
12719 # FIXME: insert proper C++ library support
12720 ld_shlibs_CXX=no
12722 esac
12725 vxworks*)
12726 # FIXME: insert proper C++ library support
12727 ld_shlibs_CXX=no
12731 # FIXME: insert proper C++ library support
12732 ld_shlibs_CXX=no
12734 esac
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12737 $as_echo "$ld_shlibs_CXX" >&6; }
12738 test "$ld_shlibs_CXX" = no && can_build_shared=no
12740 GCC_CXX="$GXX"
12741 LD_CXX="$LD"
12743 ## CAVEAT EMPTOR:
12744 ## There is no encapsulation within the following macros, do not change
12745 ## the running order or otherwise move them around unless you know exactly
12746 ## what you are doing...
12747 # Dependencies to place before and after the object being linked:
12748 predep_objects_CXX=
12749 postdep_objects_CXX=
12750 predeps_CXX=
12751 postdeps_CXX=
12752 compiler_lib_search_path_CXX=
12754 cat > conftest.$ac_ext <<_LT_EOF
12755 class Foo
12757 public:
12758 Foo (void) { a = 0; }
12759 private:
12760 int a;
12762 _LT_EOF
12764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12765 (eval $ac_compile) 2>&5
12766 ac_status=$?
12767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12768 test $ac_status = 0; }; then
12769 # Parse the compiler output and extract the necessary
12770 # objects, libraries and library flags.
12772 # Sentinel used to keep track of whether or not we are before
12773 # the conftest object file.
12774 pre_test_object_deps_done=no
12776 for p in `eval "$output_verbose_link_cmd"`; do
12777 case $p in
12779 -L* | -R* | -l*)
12780 # Some compilers place space between "-{L,R}" and the path.
12781 # Remove the space.
12782 if test $p = "-L" ||
12783 test $p = "-R"; then
12784 prev=$p
12785 continue
12786 else
12787 prev=
12790 if test "$pre_test_object_deps_done" = no; then
12791 case $p in
12792 -L* | -R*)
12793 # Internal compiler library paths should come after those
12794 # provided the user. The postdeps already come after the
12795 # user supplied libs so there is no need to process them.
12796 if test -z "$compiler_lib_search_path_CXX"; then
12797 compiler_lib_search_path_CXX="${prev}${p}"
12798 else
12799 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12802 # The "-l" case would never come before the object being
12803 # linked, so don't bother handling this case.
12804 esac
12805 else
12806 if test -z "$postdeps_CXX"; then
12807 postdeps_CXX="${prev}${p}"
12808 else
12809 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12814 *.$objext)
12815 # This assumes that the test object file only shows up
12816 # once in the compiler output.
12817 if test "$p" = "conftest.$objext"; then
12818 pre_test_object_deps_done=yes
12819 continue
12822 if test "$pre_test_object_deps_done" = no; then
12823 if test -z "$predep_objects_CXX"; then
12824 predep_objects_CXX="$p"
12825 else
12826 predep_objects_CXX="$predep_objects_CXX $p"
12828 else
12829 if test -z "$postdep_objects_CXX"; then
12830 postdep_objects_CXX="$p"
12831 else
12832 postdep_objects_CXX="$postdep_objects_CXX $p"
12837 *) ;; # Ignore the rest.
12839 esac
12840 done
12842 # Clean up.
12843 rm -f a.out a.exe
12844 else
12845 echo "libtool.m4: error: problem compiling CXX test program"
12848 $RM -f confest.$objext
12850 # PORTME: override above test on systems where it is broken
12851 case $host_os in
12852 interix[3-9]*)
12853 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12854 # hack all around it, let's just trust "g++" to DTRT.
12855 predep_objects_CXX=
12856 postdep_objects_CXX=
12857 postdeps_CXX=
12860 linux*)
12861 case `$CC -V 2>&1 | sed 5q` in
12862 *Sun\ C*)
12863 # Sun C++ 5.9
12865 # The more standards-conforming stlport4 library is
12866 # incompatible with the Cstd library. Avoid specifying
12867 # it if it's in CXXFLAGS. Ignore libCrun as
12868 # -library=stlport4 depends on it.
12869 case " $CXX $CXXFLAGS " in
12870 *" -library=stlport4 "*)
12871 solaris_use_stlport4=yes
12873 esac
12875 if test "$solaris_use_stlport4" != yes; then
12876 postdeps_CXX='-library=Cstd -library=Crun'
12879 esac
12882 solaris*)
12883 case $cc_basename in
12884 CC*)
12885 # The more standards-conforming stlport4 library is
12886 # incompatible with the Cstd library. Avoid specifying
12887 # it if it's in CXXFLAGS. Ignore libCrun as
12888 # -library=stlport4 depends on it.
12889 case " $CXX $CXXFLAGS " in
12890 *" -library=stlport4 "*)
12891 solaris_use_stlport4=yes
12893 esac
12895 # Adding this requires a known-good setup of shared libraries for
12896 # Sun compiler versions before 5.6, else PIC objects from an old
12897 # archive will be linked into the output, leading to subtle bugs.
12898 if test "$solaris_use_stlport4" != yes; then
12899 postdeps_CXX='-library=Cstd -library=Crun'
12902 esac
12904 esac
12907 case " $postdeps_CXX " in
12908 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12909 esac
12910 compiler_lib_search_dirs_CXX=
12911 if test -n "${compiler_lib_search_path_CXX}"; then
12912 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12945 lt_prog_compiler_wl_CXX=
12946 lt_prog_compiler_pic_CXX=
12947 lt_prog_compiler_static_CXX=
12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12950 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12952 # C++ specific cases for pic, static, wl, etc.
12953 if test "$GXX" = yes; then
12954 lt_prog_compiler_wl_CXX='-Wl,'
12955 lt_prog_compiler_static_CXX='-static'
12957 case $host_os in
12958 aix*)
12959 # All AIX code is PIC.
12960 if test "$host_cpu" = ia64; then
12961 # AIX 5 now supports IA64 processor
12962 lt_prog_compiler_static_CXX='-Bstatic'
12964 lt_prog_compiler_pic_CXX='-fPIC'
12967 amigaos*)
12968 case $host_cpu in
12969 powerpc)
12970 # see comment about AmigaOS4 .so support
12971 lt_prog_compiler_pic_CXX='-fPIC'
12973 m68k)
12974 # FIXME: we need at least 68020 code to build shared libraries, but
12975 # adding the `-m68020' flag to GCC prevents building anything better,
12976 # like `-m68040'.
12977 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12979 esac
12982 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12983 # PIC is the default for these OSes.
12985 mingw* | cygwin* | os2* | pw32* | cegcc*)
12986 # This hack is so that the source file can tell whether it is being
12987 # built for inclusion in a dll (and should export symbols for example).
12988 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12989 # (--disable-auto-import) libraries
12990 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12992 darwin* | rhapsody*)
12993 # PIC is the default on this platform
12994 # Common symbols not allowed in MH_DYLIB files
12995 lt_prog_compiler_pic_CXX='-fno-common'
12997 *djgpp*)
12998 # DJGPP does not support shared libraries at all
12999 lt_prog_compiler_pic_CXX=
13001 haiku*)
13002 # PIC is the default for Haiku.
13003 # The "-static" flag exists, but is broken.
13004 lt_prog_compiler_static_CXX=
13006 interix[3-9]*)
13007 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13008 # Instead, we relocate shared libraries at runtime.
13010 sysv4*MP*)
13011 if test -d /usr/nec; then
13012 lt_prog_compiler_pic_CXX=-Kconform_pic
13015 hpux*)
13016 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13017 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13018 # sets the default TLS model and affects inlining.
13019 case $host_cpu in
13020 hppa*64*)
13023 lt_prog_compiler_pic_CXX='-fPIC'
13025 esac
13027 *qnx* | *nto*)
13028 # QNX uses GNU C++, but need to define -shared option too, otherwise
13029 # it will coredump.
13030 lt_prog_compiler_pic_CXX='-fPIC -shared'
13033 lt_prog_compiler_pic_CXX='-fPIC'
13035 esac
13036 else
13037 case $host_os in
13038 aix[4-9]*)
13039 # All AIX code is PIC.
13040 if test "$host_cpu" = ia64; then
13041 # AIX 5 now supports IA64 processor
13042 lt_prog_compiler_static_CXX='-Bstatic'
13043 else
13044 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13047 chorus*)
13048 case $cc_basename in
13049 cxch68*)
13050 # Green Hills C++ Compiler
13051 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
13053 esac
13055 dgux*)
13056 case $cc_basename in
13057 ec++*)
13058 lt_prog_compiler_pic_CXX='-KPIC'
13060 ghcx*)
13061 # Green Hills C++ Compiler
13062 lt_prog_compiler_pic_CXX='-pic'
13066 esac
13068 freebsd* | dragonfly*)
13069 # FreeBSD uses GNU C++
13071 hpux9* | hpux10* | hpux11*)
13072 case $cc_basename in
13073 CC*)
13074 lt_prog_compiler_wl_CXX='-Wl,'
13075 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13076 if test "$host_cpu" != ia64; then
13077 lt_prog_compiler_pic_CXX='+Z'
13080 aCC*)
13081 lt_prog_compiler_wl_CXX='-Wl,'
13082 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13083 case $host_cpu in
13084 hppa*64*|ia64*)
13085 # +Z the default
13088 lt_prog_compiler_pic_CXX='+Z'
13090 esac
13094 esac
13096 interix*)
13097 # This is c89, which is MS Visual C++ (no shared libs)
13098 # Anyone wants to do a port?
13100 irix5* | irix6* | nonstopux*)
13101 case $cc_basename in
13102 CC*)
13103 lt_prog_compiler_wl_CXX='-Wl,'
13104 lt_prog_compiler_static_CXX='-non_shared'
13105 # CC pic flag -KPIC is the default.
13109 esac
13111 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13112 case $cc_basename in
13113 KCC*)
13114 # KAI C++ Compiler
13115 lt_prog_compiler_wl_CXX='--backend -Wl,'
13116 lt_prog_compiler_pic_CXX='-fPIC'
13118 ecpc* )
13119 # old Intel C++ for x86_64 which still supported -KPIC.
13120 lt_prog_compiler_wl_CXX='-Wl,'
13121 lt_prog_compiler_pic_CXX='-KPIC'
13122 lt_prog_compiler_static_CXX='-static'
13124 icpc* )
13125 # Intel C++, used to be incompatible with GCC.
13126 # ICC 10 doesn't accept -KPIC any more.
13127 lt_prog_compiler_wl_CXX='-Wl,'
13128 lt_prog_compiler_pic_CXX='-fPIC'
13129 lt_prog_compiler_static_CXX='-static'
13131 pgCC* | pgcpp*)
13132 # Portland Group C++ compiler
13133 lt_prog_compiler_wl_CXX='-Wl,'
13134 lt_prog_compiler_pic_CXX='-fpic'
13135 lt_prog_compiler_static_CXX='-Bstatic'
13137 cxx*)
13138 # Compaq C++
13139 # Make sure the PIC flag is empty. It appears that all Alpha
13140 # Linux and Compaq Tru64 Unix objects are PIC.
13141 lt_prog_compiler_pic_CXX=
13142 lt_prog_compiler_static_CXX='-non_shared'
13144 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13145 # IBM XL 8.0, 9.0 on PPC and BlueGene
13146 lt_prog_compiler_wl_CXX='-Wl,'
13147 lt_prog_compiler_pic_CXX='-qpic'
13148 lt_prog_compiler_static_CXX='-qstaticlink'
13151 case `$CC -V 2>&1 | sed 5q` in
13152 *Sun\ C*)
13153 # Sun C++ 5.9
13154 lt_prog_compiler_pic_CXX='-KPIC'
13155 lt_prog_compiler_static_CXX='-Bstatic'
13156 lt_prog_compiler_wl_CXX='-Qoption ld '
13158 esac
13160 esac
13162 lynxos*)
13164 m88k*)
13166 mvs*)
13167 case $cc_basename in
13168 cxx*)
13169 lt_prog_compiler_pic_CXX='-W c,exportall'
13173 esac
13175 netbsd*)
13177 *qnx* | *nto*)
13178 # QNX uses GNU C++, but need to define -shared option too, otherwise
13179 # it will coredump.
13180 lt_prog_compiler_pic_CXX='-fPIC -shared'
13182 osf3* | osf4* | osf5*)
13183 case $cc_basename in
13184 KCC*)
13185 lt_prog_compiler_wl_CXX='--backend -Wl,'
13187 RCC*)
13188 # Rational C++ 2.4.1
13189 lt_prog_compiler_pic_CXX='-pic'
13191 cxx*)
13192 # Digital/Compaq C++
13193 lt_prog_compiler_wl_CXX='-Wl,'
13194 # Make sure the PIC flag is empty. It appears that all Alpha
13195 # Linux and Compaq Tru64 Unix objects are PIC.
13196 lt_prog_compiler_pic_CXX=
13197 lt_prog_compiler_static_CXX='-non_shared'
13201 esac
13203 psos*)
13205 solaris*)
13206 case $cc_basename in
13207 CC*)
13208 # Sun C++ 4.2, 5.x and Centerline C++
13209 lt_prog_compiler_pic_CXX='-KPIC'
13210 lt_prog_compiler_static_CXX='-Bstatic'
13211 lt_prog_compiler_wl_CXX='-Qoption ld '
13213 gcx*)
13214 # Green Hills C++ Compiler
13215 lt_prog_compiler_pic_CXX='-PIC'
13219 esac
13221 sunos4*)
13222 case $cc_basename in
13223 CC*)
13224 # Sun C++ 4.x
13225 lt_prog_compiler_pic_CXX='-pic'
13226 lt_prog_compiler_static_CXX='-Bstatic'
13228 lcc*)
13229 # Lucid
13230 lt_prog_compiler_pic_CXX='-pic'
13234 esac
13236 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13237 case $cc_basename in
13238 CC*)
13239 lt_prog_compiler_wl_CXX='-Wl,'
13240 lt_prog_compiler_pic_CXX='-KPIC'
13241 lt_prog_compiler_static_CXX='-Bstatic'
13243 esac
13245 tandem*)
13246 case $cc_basename in
13247 NCC*)
13248 # NonStop-UX NCC 3.20
13249 lt_prog_compiler_pic_CXX='-KPIC'
13253 esac
13255 vxworks*)
13258 lt_prog_compiler_can_build_shared_CXX=no
13260 esac
13263 case $host_os in
13264 # For platforms which do not support PIC, -DPIC is meaningless:
13265 *djgpp*)
13266 lt_prog_compiler_pic_CXX=
13269 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13271 esac
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13273 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13278 # Check to make sure the PIC flag actually works.
13280 if test -n "$lt_prog_compiler_pic_CXX"; then
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13282 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13283 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13284 $as_echo_n "(cached) " >&6
13285 else
13286 lt_cv_prog_compiler_pic_works_CXX=no
13287 ac_outfile=conftest.$ac_objext
13288 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13289 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13290 # Insert the option either (1) after the last *FLAGS variable, or
13291 # (2) before a word containing "conftest.", or (3) at the end.
13292 # Note that $ac_compile itself does not contain backslashes and begins
13293 # with a dollar sign (not a hyphen), so the echo should work correctly.
13294 # The option is referenced via a variable to avoid confusing sed.
13295 lt_compile=`echo "$ac_compile" | $SED \
13296 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13297 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13298 -e 's:$: $lt_compiler_flag:'`
13299 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13300 (eval "$lt_compile" 2>conftest.err)
13301 ac_status=$?
13302 cat conftest.err >&5
13303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13304 if (exit $ac_status) && test -s "$ac_outfile"; then
13305 # The compiler can only warn and ignore the option if not recognized
13306 # So say no if there are warnings other than the usual output.
13307 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13308 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13309 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13310 lt_cv_prog_compiler_pic_works_CXX=yes
13313 $RM conftest*
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13317 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13319 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13320 case $lt_prog_compiler_pic_CXX in
13321 "" | " "*) ;;
13322 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13323 esac
13324 else
13325 lt_prog_compiler_pic_CXX=
13326 lt_prog_compiler_can_build_shared_CXX=no
13334 # Check to make sure the static flag actually works.
13336 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13338 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13339 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13340 $as_echo_n "(cached) " >&6
13341 else
13342 lt_cv_prog_compiler_static_works_CXX=no
13343 save_LDFLAGS="$LDFLAGS"
13344 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13345 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13346 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13347 # The linker can only warn and ignore the option if not recognized
13348 # So say no if there are warnings
13349 if test -s conftest.err; then
13350 # Append any errors to the config.log.
13351 cat conftest.err 1>&5
13352 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13353 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13354 if diff conftest.exp conftest.er2 >/dev/null; then
13355 lt_cv_prog_compiler_static_works_CXX=yes
13357 else
13358 lt_cv_prog_compiler_static_works_CXX=yes
13361 $RM -r conftest*
13362 LDFLAGS="$save_LDFLAGS"
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13366 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13368 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13370 else
13371 lt_prog_compiler_static_CXX=
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13378 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13379 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13380 $as_echo_n "(cached) " >&6
13381 else
13382 lt_cv_prog_compiler_c_o_CXX=no
13383 $RM -r conftest 2>/dev/null
13384 mkdir conftest
13385 cd conftest
13386 mkdir out
13387 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13389 lt_compiler_flag="-o out/conftest2.$ac_objext"
13390 # Insert the option either (1) after the last *FLAGS variable, or
13391 # (2) before a word containing "conftest.", or (3) at the end.
13392 # Note that $ac_compile itself does not contain backslashes and begins
13393 # with a dollar sign (not a hyphen), so the echo should work correctly.
13394 lt_compile=`echo "$ac_compile" | $SED \
13395 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13396 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13397 -e 's:$: $lt_compiler_flag:'`
13398 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13399 (eval "$lt_compile" 2>out/conftest.err)
13400 ac_status=$?
13401 cat out/conftest.err >&5
13402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13403 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13404 then
13405 # The compiler can only warn and ignore the option if not recognized
13406 # So say no if there are warnings
13407 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13408 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13409 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13410 lt_cv_prog_compiler_c_o_CXX=yes
13413 chmod u+w . 2>&5
13414 $RM conftest*
13415 # SGI C++ compiler will create directory out/ii_files/ for
13416 # template instantiation
13417 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13418 $RM out/* && rmdir out
13419 cd ..
13420 $RM -r conftest
13421 $RM conftest*
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13425 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13430 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13431 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13432 $as_echo_n "(cached) " >&6
13433 else
13434 lt_cv_prog_compiler_c_o_CXX=no
13435 $RM -r conftest 2>/dev/null
13436 mkdir conftest
13437 cd conftest
13438 mkdir out
13439 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13441 lt_compiler_flag="-o out/conftest2.$ac_objext"
13442 # Insert the option either (1) after the last *FLAGS variable, or
13443 # (2) before a word containing "conftest.", or (3) at the end.
13444 # Note that $ac_compile itself does not contain backslashes and begins
13445 # with a dollar sign (not a hyphen), so the echo should work correctly.
13446 lt_compile=`echo "$ac_compile" | $SED \
13447 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13448 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13449 -e 's:$: $lt_compiler_flag:'`
13450 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13451 (eval "$lt_compile" 2>out/conftest.err)
13452 ac_status=$?
13453 cat out/conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13456 then
13457 # The compiler can only warn and ignore the option if not recognized
13458 # So say no if there are warnings
13459 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13460 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13461 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13462 lt_cv_prog_compiler_c_o_CXX=yes
13465 chmod u+w . 2>&5
13466 $RM conftest*
13467 # SGI C++ compiler will create directory out/ii_files/ for
13468 # template instantiation
13469 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13470 $RM out/* && rmdir out
13471 cd ..
13472 $RM -r conftest
13473 $RM conftest*
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13477 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13482 hard_links="nottested"
13483 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13484 # do not overwrite the value of need_locks provided by the user
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13486 $as_echo_n "checking if we can lock with hard links... " >&6; }
13487 hard_links=yes
13488 $RM conftest*
13489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13490 touch conftest.a
13491 ln conftest.a conftest.b 2>&5 || hard_links=no
13492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13494 $as_echo "$hard_links" >&6; }
13495 if test "$hard_links" = no; then
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13497 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13498 need_locks=warn
13500 else
13501 need_locks=no
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13507 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13509 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13510 case $host_os in
13511 aix[4-9]*)
13512 # If we're using GNU nm, then we don't want the "-C" option.
13513 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13514 # Also, AIX nm treats weak defined symbols like other global defined
13515 # symbols, whereas GNU nm marks them as "W".
13516 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13517 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13518 else
13519 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13522 pw32*)
13523 export_symbols_cmds_CXX="$ltdll_cmds"
13525 cygwin* | mingw* | cegcc*)
13526 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13529 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13531 esac
13532 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13535 $as_echo "$ld_shlibs_CXX" >&6; }
13536 test "$ld_shlibs_CXX" = no && can_build_shared=no
13538 with_gnu_ld_CXX=$with_gnu_ld
13546 # Do we need to explicitly link libc?
13548 case "x$archive_cmds_need_lc_CXX" in
13549 x|xyes)
13550 # Assume -lc should be added
13551 archive_cmds_need_lc_CXX=yes
13553 if test "$enable_shared" = yes && test "$GCC" = yes; then
13554 case $archive_cmds_CXX in
13555 *'~'*)
13556 # FIXME: we may have to deal with multi-command sequences.
13558 '$CC '*)
13559 # Test whether the compiler implicitly links with -lc since on some
13560 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13561 # to ld, don't add -lc before -lgcc.
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13563 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13564 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
13566 else
13567 $RM conftest*
13568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13571 (eval $ac_compile) 2>&5
13572 ac_status=$?
13573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13574 test $ac_status = 0; } 2>conftest.err; then
13575 soname=conftest
13576 lib=conftest
13577 libobjs=conftest.$ac_objext
13578 deplibs=
13579 wl=$lt_prog_compiler_wl_CXX
13580 pic_flag=$lt_prog_compiler_pic_CXX
13581 compiler_flags=-v
13582 linker_flags=-v
13583 verstring=
13584 output_objdir=.
13585 libname=conftest
13586 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13587 allow_undefined_flag_CXX=
13588 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13589 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13590 ac_status=$?
13591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13592 test $ac_status = 0; }
13593 then
13594 lt_cv_archive_cmds_need_lc_CXX=no
13595 else
13596 lt_cv_archive_cmds_need_lc_CXX=yes
13598 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13599 else
13600 cat conftest.err 1>&5
13602 $RM conftest*
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13606 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13607 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13609 esac
13612 esac
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13678 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13680 library_names_spec=
13681 libname_spec='lib$name'
13682 soname_spec=
13683 shrext_cmds=".so"
13684 postinstall_cmds=
13685 postuninstall_cmds=
13686 finish_cmds=
13687 finish_eval=
13688 shlibpath_var=
13689 shlibpath_overrides_runpath=unknown
13690 version_type=none
13691 dynamic_linker="$host_os ld.so"
13692 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13693 need_lib_prefix=unknown
13694 hardcode_into_libs=no
13696 # when you set need_version to no, make sure it does not cause -set_version
13697 # flags to be left without arguments
13698 need_version=unknown
13700 case $host_os in
13701 aix3*)
13702 version_type=linux
13703 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13704 shlibpath_var=LIBPATH
13706 # AIX 3 has no versioning support, so we append a major version to the name.
13707 soname_spec='${libname}${release}${shared_ext}$major'
13710 aix[4-9]*)
13711 version_type=linux
13712 need_lib_prefix=no
13713 need_version=no
13714 hardcode_into_libs=yes
13715 if test "$host_cpu" = ia64; then
13716 # AIX 5 supports IA64
13717 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13718 shlibpath_var=LD_LIBRARY_PATH
13719 else
13720 # With GCC up to 2.95.x, collect2 would create an import file
13721 # for dependence libraries. The import file would start with
13722 # the line `#! .'. This would cause the generated library to
13723 # depend on `.', always an invalid library. This was fixed in
13724 # development snapshots of GCC prior to 3.0.
13725 case $host_os in
13726 aix4 | aix4.[01] | aix4.[01].*)
13727 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13728 echo ' yes '
13729 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13731 else
13732 can_build_shared=no
13735 esac
13736 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13737 # soname into executable. Probably we can add versioning support to
13738 # collect2, so additional links can be useful in future.
13739 if test "$aix_use_runtimelinking" = yes; then
13740 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13741 # instead of lib<name>.a to let people know that these are not
13742 # typical AIX shared libraries.
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13744 else
13745 # We preserve .a as extension for shared libraries through AIX4.2
13746 # and later when we are not doing run time linking.
13747 library_names_spec='${libname}${release}.a $libname.a'
13748 soname_spec='${libname}${release}${shared_ext}$major'
13750 shlibpath_var=LIBPATH
13754 amigaos*)
13755 case $host_cpu in
13756 powerpc)
13757 # Since July 2007 AmigaOS4 officially supports .so libraries.
13758 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13761 m68k)
13762 library_names_spec='$libname.ixlibrary $libname.a'
13763 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13764 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'
13766 esac
13769 beos*)
13770 library_names_spec='${libname}${shared_ext}'
13771 dynamic_linker="$host_os ld.so"
13772 shlibpath_var=LIBRARY_PATH
13775 bsdi[45]*)
13776 version_type=linux
13777 need_version=no
13778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13779 soname_spec='${libname}${release}${shared_ext}$major'
13780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13781 shlibpath_var=LD_LIBRARY_PATH
13782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13784 # the default ld.so.conf also contains /usr/contrib/lib and
13785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13786 # libtool to hard-code these into programs
13789 cygwin* | mingw* | pw32* | cegcc*)
13790 version_type=windows
13791 shrext_cmds=".dll"
13792 need_version=no
13793 need_lib_prefix=no
13795 case $GCC,$host_os in
13796 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13797 library_names_spec='$libname.dll.a'
13798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13799 postinstall_cmds='base_file=`basename \${file}`~
13800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13801 dldir=$destdir/`dirname \$dlpath`~
13802 test -d \$dldir || mkdir -p \$dldir~
13803 $install_prog $dir/$dlname \$dldir/$dlname~
13804 chmod a+x \$dldir/$dlname~
13805 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13806 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13808 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13809 dlpath=$dir/\$dldll~
13810 $RM \$dlpath'
13811 shlibpath_overrides_runpath=yes
13813 case $host_os in
13814 cygwin*)
13815 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13816 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13819 mingw* | cegcc*)
13820 # MinGW DLLs use traditional 'lib' prefix
13821 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13823 pw32*)
13824 # pw32 DLLs use 'pw' prefix rather than 'lib'
13825 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13827 esac
13831 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13833 esac
13834 dynamic_linker='Win32 ld.exe'
13835 # FIXME: first we should search . and the directory the executable is in
13836 shlibpath_var=PATH
13839 darwin* | rhapsody*)
13840 dynamic_linker="$host_os dyld"
13841 version_type=darwin
13842 need_lib_prefix=no
13843 need_version=no
13844 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13845 soname_spec='${libname}${release}${major}$shared_ext'
13846 shlibpath_overrides_runpath=yes
13847 shlibpath_var=DYLD_LIBRARY_PATH
13848 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13850 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13853 dgux*)
13854 version_type=linux
13855 need_lib_prefix=no
13856 need_version=no
13857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13858 soname_spec='${libname}${release}${shared_ext}$major'
13859 shlibpath_var=LD_LIBRARY_PATH
13862 freebsd* | dragonfly*)
13863 # DragonFly does not have aout. When/if they implement a new
13864 # versioning mechanism, adjust this.
13865 if test -x /usr/bin/objformat; then
13866 objformat=`/usr/bin/objformat`
13867 else
13868 case $host_os in
13869 freebsd[23].*) objformat=aout ;;
13870 *) objformat=elf ;;
13871 esac
13873 version_type=freebsd-$objformat
13874 case $version_type in
13875 freebsd-elf*)
13876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13877 need_version=no
13878 need_lib_prefix=no
13880 freebsd-*)
13881 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13882 need_version=yes
13884 esac
13885 shlibpath_var=LD_LIBRARY_PATH
13886 case $host_os in
13887 freebsd2.*)
13888 shlibpath_overrides_runpath=yes
13890 freebsd3.[01]* | freebsdelf3.[01]*)
13891 shlibpath_overrides_runpath=yes
13892 hardcode_into_libs=yes
13894 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13895 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13896 shlibpath_overrides_runpath=no
13897 hardcode_into_libs=yes
13899 *) # from 4.6 on, and DragonFly
13900 shlibpath_overrides_runpath=yes
13901 hardcode_into_libs=yes
13903 esac
13906 gnu*)
13907 version_type=linux
13908 need_lib_prefix=no
13909 need_version=no
13910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13911 soname_spec='${libname}${release}${shared_ext}$major'
13912 shlibpath_var=LD_LIBRARY_PATH
13913 hardcode_into_libs=yes
13916 haiku*)
13917 version_type=linux
13918 need_lib_prefix=no
13919 need_version=no
13920 dynamic_linker="$host_os runtime_loader"
13921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13922 soname_spec='${libname}${release}${shared_ext}$major'
13923 shlibpath_var=LIBRARY_PATH
13924 shlibpath_overrides_runpath=yes
13925 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13926 hardcode_into_libs=yes
13929 hpux9* | hpux10* | hpux11*)
13930 # Give a soname corresponding to the major version so that dld.sl refuses to
13931 # link against other versions.
13932 version_type=sunos
13933 need_lib_prefix=no
13934 need_version=no
13935 case $host_cpu in
13936 ia64*)
13937 shrext_cmds='.so'
13938 hardcode_into_libs=yes
13939 dynamic_linker="$host_os dld.so"
13940 shlibpath_var=LD_LIBRARY_PATH
13941 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13943 soname_spec='${libname}${release}${shared_ext}$major'
13944 if test "X$HPUX_IA64_MODE" = X32; then
13945 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13946 else
13947 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13949 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13951 hppa*64*)
13952 shrext_cmds='.sl'
13953 hardcode_into_libs=yes
13954 dynamic_linker="$host_os dld.sl"
13955 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13956 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13958 soname_spec='${libname}${release}${shared_ext}$major'
13959 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13960 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13963 shrext_cmds='.sl'
13964 dynamic_linker="$host_os dld.sl"
13965 shlibpath_var=SHLIB_PATH
13966 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13968 soname_spec='${libname}${release}${shared_ext}$major'
13970 esac
13971 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13972 postinstall_cmds='chmod 555 $lib'
13973 # or fails outright, so override atomically:
13974 install_override_mode=555
13977 interix[3-9]*)
13978 version_type=linux
13979 need_lib_prefix=no
13980 need_version=no
13981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13982 soname_spec='${libname}${release}${shared_ext}$major'
13983 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13984 shlibpath_var=LD_LIBRARY_PATH
13985 shlibpath_overrides_runpath=no
13986 hardcode_into_libs=yes
13989 irix5* | irix6* | nonstopux*)
13990 case $host_os in
13991 nonstopux*) version_type=nonstopux ;;
13993 if test "$lt_cv_prog_gnu_ld" = yes; then
13994 version_type=linux
13995 else
13996 version_type=irix
13997 fi ;;
13998 esac
13999 need_lib_prefix=no
14000 need_version=no
14001 soname_spec='${libname}${release}${shared_ext}$major'
14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14003 case $host_os in
14004 irix5* | nonstopux*)
14005 libsuff= shlibsuff=
14008 case $LD in # libtool.m4 will add one of these switches to LD
14009 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14010 libsuff= shlibsuff= libmagic=32-bit;;
14011 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14012 libsuff=32 shlibsuff=N32 libmagic=N32;;
14013 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14014 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14015 *) libsuff= shlibsuff= libmagic=never-match;;
14016 esac
14018 esac
14019 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14020 shlibpath_overrides_runpath=no
14021 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14022 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14023 hardcode_into_libs=yes
14026 # No shared lib support for Linux oldld, aout, or coff.
14027 linux*oldld* | linux*aout* | linux*coff*)
14028 dynamic_linker=no
14031 # This must be Linux ELF.
14032 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14033 version_type=linux
14034 need_lib_prefix=no
14035 need_version=no
14036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14037 soname_spec='${libname}${release}${shared_ext}$major'
14038 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14039 shlibpath_var=LD_LIBRARY_PATH
14040 shlibpath_overrides_runpath=no
14042 # Some binutils ld are patched to set DT_RUNPATH
14043 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14044 $as_echo_n "(cached) " >&6
14045 else
14046 lt_cv_shlibpath_overrides_runpath=no
14047 save_LDFLAGS=$LDFLAGS
14048 save_libdir=$libdir
14049 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14050 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14055 main ()
14059 return 0;
14061 _ACEOF
14062 if ac_fn_cxx_try_link "$LINENO"; then :
14063 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14064 lt_cv_shlibpath_overrides_runpath=yes
14067 rm -f core conftest.err conftest.$ac_objext \
14068 conftest$ac_exeext conftest.$ac_ext
14069 LDFLAGS=$save_LDFLAGS
14070 libdir=$save_libdir
14074 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14076 # This implies no fast_install, which is unacceptable.
14077 # Some rework will be needed to allow for fast_install
14078 # before this can be enabled.
14079 hardcode_into_libs=yes
14081 # Append ld.so.conf contents to the search path
14082 if test -f /etc/ld.so.conf; then
14083 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' ' '`
14084 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14087 # We used to test for /lib/ld.so.1 and disable shared libraries on
14088 # powerpc, because MkLinux only supported shared libraries with the
14089 # GNU dynamic linker. Since this was broken with cross compilers,
14090 # most powerpc-linux boxes support dynamic linking these days and
14091 # people can always --disable-shared, the test was removed, and we
14092 # assume the GNU/Linux dynamic linker is in use.
14093 dynamic_linker='GNU/Linux ld.so'
14096 netbsd*)
14097 version_type=sunos
14098 need_lib_prefix=no
14099 need_version=no
14100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14102 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14103 dynamic_linker='NetBSD (a.out) ld.so'
14104 else
14105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14106 soname_spec='${libname}${release}${shared_ext}$major'
14107 dynamic_linker='NetBSD ld.elf_so'
14109 shlibpath_var=LD_LIBRARY_PATH
14110 shlibpath_overrides_runpath=yes
14111 hardcode_into_libs=yes
14114 newsos6)
14115 version_type=linux
14116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14117 shlibpath_var=LD_LIBRARY_PATH
14118 shlibpath_overrides_runpath=yes
14121 *nto* | *qnx*)
14122 version_type=qnx
14123 need_lib_prefix=no
14124 need_version=no
14125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14126 soname_spec='${libname}${release}${shared_ext}$major'
14127 shlibpath_var=LD_LIBRARY_PATH
14128 shlibpath_overrides_runpath=no
14129 hardcode_into_libs=yes
14130 dynamic_linker='ldqnx.so'
14133 openbsd*)
14134 version_type=sunos
14135 sys_lib_dlsearch_path_spec="/usr/lib"
14136 need_lib_prefix=no
14137 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14138 case $host_os in
14139 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14140 *) need_version=no ;;
14141 esac
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14143 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14144 shlibpath_var=LD_LIBRARY_PATH
14145 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14146 case $host_os in
14147 openbsd2.[89] | openbsd2.[89].*)
14148 shlibpath_overrides_runpath=no
14151 shlibpath_overrides_runpath=yes
14153 esac
14154 else
14155 shlibpath_overrides_runpath=yes
14159 os2*)
14160 libname_spec='$name'
14161 shrext_cmds=".dll"
14162 need_lib_prefix=no
14163 library_names_spec='$libname${shared_ext} $libname.a'
14164 dynamic_linker='OS/2 ld.exe'
14165 shlibpath_var=LIBPATH
14168 osf3* | osf4* | osf5*)
14169 version_type=osf
14170 need_lib_prefix=no
14171 need_version=no
14172 soname_spec='${libname}${release}${shared_ext}$major'
14173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14174 shlibpath_var=LD_LIBRARY_PATH
14175 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14176 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14179 rdos*)
14180 dynamic_linker=no
14183 solaris*)
14184 version_type=linux
14185 need_lib_prefix=no
14186 need_version=no
14187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14188 soname_spec='${libname}${release}${shared_ext}$major'
14189 shlibpath_var=LD_LIBRARY_PATH
14190 shlibpath_overrides_runpath=yes
14191 hardcode_into_libs=yes
14192 # ldd complains unless libraries are executable
14193 postinstall_cmds='chmod +x $lib'
14196 sunos4*)
14197 version_type=sunos
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14200 shlibpath_var=LD_LIBRARY_PATH
14201 shlibpath_overrides_runpath=yes
14202 if test "$with_gnu_ld" = yes; then
14203 need_lib_prefix=no
14205 need_version=yes
14208 sysv4 | sysv4.3*)
14209 version_type=linux
14210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14211 soname_spec='${libname}${release}${shared_ext}$major'
14212 shlibpath_var=LD_LIBRARY_PATH
14213 case $host_vendor in
14214 sni)
14215 shlibpath_overrides_runpath=no
14216 need_lib_prefix=no
14217 runpath_var=LD_RUN_PATH
14219 siemens)
14220 need_lib_prefix=no
14222 motorola)
14223 need_lib_prefix=no
14224 need_version=no
14225 shlibpath_overrides_runpath=no
14226 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14228 esac
14231 sysv4*MP*)
14232 if test -d /usr/nec ;then
14233 version_type=linux
14234 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14235 soname_spec='$libname${shared_ext}.$major'
14236 shlibpath_var=LD_LIBRARY_PATH
14240 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14241 version_type=freebsd-elf
14242 need_lib_prefix=no
14243 need_version=no
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14245 soname_spec='${libname}${release}${shared_ext}$major'
14246 shlibpath_var=LD_LIBRARY_PATH
14247 shlibpath_overrides_runpath=yes
14248 hardcode_into_libs=yes
14249 if test "$with_gnu_ld" = yes; then
14250 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14251 else
14252 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14253 case $host_os in
14254 sco3.2v5*)
14255 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14257 esac
14259 sys_lib_dlsearch_path_spec='/usr/lib'
14262 tpf*)
14263 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14264 version_type=linux
14265 need_lib_prefix=no
14266 need_version=no
14267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14268 shlibpath_var=LD_LIBRARY_PATH
14269 shlibpath_overrides_runpath=no
14270 hardcode_into_libs=yes
14273 uts4*)
14274 version_type=linux
14275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14276 soname_spec='${libname}${release}${shared_ext}$major'
14277 shlibpath_var=LD_LIBRARY_PATH
14281 dynamic_linker=no
14283 esac
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14285 $as_echo "$dynamic_linker" >&6; }
14286 test "$dynamic_linker" = no && can_build_shared=no
14288 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14289 if test "$GCC" = yes; then
14290 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14293 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14294 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14296 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14297 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14338 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14339 hardcode_action_CXX=
14340 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14341 test -n "$runpath_var_CXX" ||
14342 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14344 # We can hardcode non-existent directories.
14345 if test "$hardcode_direct_CXX" != no &&
14346 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14347 # have to relink, otherwise we might link with an installed library
14348 # when we should be linking with a yet-to-be-installed one
14349 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14350 test "$hardcode_minus_L_CXX" != no; then
14351 # Linking always hardcodes the temporary library directory.
14352 hardcode_action_CXX=relink
14353 else
14354 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14355 hardcode_action_CXX=immediate
14357 else
14358 # We cannot hardcode anything, or else we can only hardcode existing
14359 # directories.
14360 hardcode_action_CXX=unsupported
14362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14363 $as_echo "$hardcode_action_CXX" >&6; }
14365 if test "$hardcode_action_CXX" = relink ||
14366 test "$inherit_rpath_CXX" = yes; then
14367 # Fast installation is not supported
14368 enable_fast_install=no
14369 elif test "$shlibpath_overrides_runpath" = yes ||
14370 test "$enable_shared" = no; then
14371 # Fast installation is not necessary
14372 enable_fast_install=needless
14381 fi # test -n "$compiler"
14383 CC=$lt_save_CC
14384 LDCXX=$LD
14385 LD=$lt_save_LD
14386 GCC=$lt_save_GCC
14387 with_gnu_ld=$lt_save_with_gnu_ld
14388 lt_cv_path_LDCXX=$lt_cv_path_LD
14389 lt_cv_path_LD=$lt_save_path_LD
14390 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14391 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14392 fi # test "$_lt_caught_CXX_error" != yes
14394 ac_ext=c
14395 ac_cpp='$CPP $CPPFLAGS'
14396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14412 ac_config_commands="$ac_config_commands libtool"
14417 # Only expand once:
14425 # Check for pthread_{,attr_}[sg]etaffinity_np.
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14428 #define _GNU_SOURCE
14429 #include <pthread.h>
14431 main ()
14433 cpu_set_t cpuset;
14434 pthread_attr_t attr;
14435 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
14436 if (CPU_ISSET (0, &cpuset))
14437 CPU_SET (1, &cpuset);
14438 else
14439 CPU_ZERO (&cpuset);
14440 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
14441 pthread_attr_init (&attr);
14442 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
14443 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
14445 return 0;
14447 _ACEOF
14448 if ac_fn_c_try_link "$LINENO"; then :
14450 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
14453 rm -f core conftest.err conftest.$ac_objext \
14454 conftest$ac_exeext conftest.$ac_ext
14456 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14457 # Note that the CILK_SELF_SPEC in gcc.c may force -pthread.
14458 # In case the pthread.h system header is not found, this test will fail.
14459 CFLAGS="$CFLAGS -pthread"
14460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14461 /* end confdefs.h. */
14462 #include <pthread.h>
14463 void *g(void *d) { return NULL; }
14465 main ()
14467 pthread_t t; pthread_create(&t,NULL,g,NULL);
14469 return 0;
14471 _ACEOF
14472 if ac_fn_c_try_link "$LINENO"; then :
14474 else
14475 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14477 /* end confdefs.h. */
14478 #include <pthread.h>
14479 void *g(void *d) { return NULL; }
14481 main ()
14483 pthread_t t; pthread_create(&t,NULL,g,NULL);
14485 return 0;
14487 _ACEOF
14488 if ac_fn_c_try_link "$LINENO"; then :
14490 else
14491 as_fn_error "Pthreads are required to build libcilkrts" "$LINENO" 5
14493 rm -f core conftest.err conftest.$ac_objext \
14494 conftest$ac_exeext conftest.$ac_ext
14496 rm -f core conftest.err conftest.$ac_objext \
14497 conftest$ac_exeext conftest.$ac_ext
14499 if test $enable_shared = yes; then
14500 link_cilkrts="-lcilkrts %{static: $LIBS}"
14501 else
14502 link_cilkrts="-lcilkrts $LIBS"
14507 # Must be last
14508 cat >confcache <<\_ACEOF
14509 # This file is a shell script that caches the results of configure
14510 # tests run on this system so they can be shared between configure
14511 # scripts and configure runs, see configure's option --config-cache.
14512 # It is not useful on other systems. If it contains results you don't
14513 # want to keep, you may remove or edit it.
14515 # config.status only pays attention to the cache file if you give it
14516 # the --recheck option to rerun configure.
14518 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14519 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14520 # following values.
14522 _ACEOF
14524 # The following way of writing the cache mishandles newlines in values,
14525 # but we know of no workaround that is simple, portable, and efficient.
14526 # So, we kill variables containing newlines.
14527 # Ultrix sh set writes to stderr and can't be redirected directly,
14528 # and sets the high bit in the cache file unless we assign to the vars.
14530 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14531 eval ac_val=\$$ac_var
14532 case $ac_val in #(
14533 *${as_nl}*)
14534 case $ac_var in #(
14535 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14536 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14537 esac
14538 case $ac_var in #(
14539 _ | IFS | as_nl) ;; #(
14540 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14541 *) { eval $ac_var=; unset $ac_var;} ;;
14542 esac ;;
14543 esac
14544 done
14546 (set) 2>&1 |
14547 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14548 *${as_nl}ac_space=\ *)
14549 # `set' does not quote correctly, so add quotes: double-quote
14550 # substitution turns \\\\ into \\, and sed turns \\ into \.
14551 sed -n \
14552 "s/'/'\\\\''/g;
14553 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14554 ;; #(
14556 # `set' quotes correctly as required by POSIX, so do not add quotes.
14557 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14559 esac |
14560 sort
14562 sed '
14563 /^ac_cv_env_/b end
14564 t clear
14565 :clear
14566 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14567 t end
14568 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14569 :end' >>confcache
14570 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14571 if test -w "$cache_file"; then
14572 test "x$cache_file" != "x/dev/null" &&
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14574 $as_echo "$as_me: updating cache $cache_file" >&6;}
14575 cat confcache >$cache_file
14576 else
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14578 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14581 rm -f confcache
14583 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14584 # Let make expand exec_prefix.
14585 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14587 # Transform confdefs.h into DEFS.
14588 # Protect against shell expansion while executing Makefile rules.
14589 # Protect against Makefile macro expansion.
14591 # If the first sed substitution is executed (which looks for macros that
14592 # take arguments), then branch to the quote section. Otherwise,
14593 # look for a macro that doesn't take arguments.
14594 ac_script='
14595 :mline
14596 /\\$/{
14598 s,\\\n,,
14599 b mline
14601 t clear
14602 :clear
14603 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14604 t quote
14605 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14606 t quote
14607 b any
14608 :quote
14609 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14610 s/\[/\\&/g
14611 s/\]/\\&/g
14612 s/\$/$$/g
14614 :any
14617 s/^\n//
14618 s/\n/ /g
14622 DEFS=`sed -n "$ac_script" confdefs.h`
14625 ac_libobjs=
14626 ac_ltlibobjs=
14627 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14628 # 1. Remove the extension, and $U if already installed.
14629 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14630 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14631 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14632 # will be set to the directory where LIBOBJS objects are built.
14633 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14634 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14635 done
14636 LIBOBJS=$ac_libobjs
14638 LTLIBOBJS=$ac_ltlibobjs
14641 if test -n "$EXEEXT"; then
14642 am__EXEEXT_TRUE=
14643 am__EXEEXT_FALSE='#'
14644 else
14645 am__EXEEXT_TRUE='#'
14646 am__EXEEXT_FALSE=
14649 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14650 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14653 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14654 as_fn_error "conditional \"AMDEP\" was never defined.
14655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14657 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14658 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14661 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14662 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14665 if test -z "${LINUX_LINKER_SCRIPT_TRUE}" && test -z "${LINUX_LINKER_SCRIPT_FALSE}"; then
14666 as_fn_error "conditional \"LINUX_LINKER_SCRIPT\" was never defined.
14667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14669 if test -z "${MAC_LINKER_SCRIPT_TRUE}" && test -z "${MAC_LINKER_SCRIPT_FALSE}"; then
14670 as_fn_error "conditional \"MAC_LINKER_SCRIPT\" was never defined.
14671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14674 : ${CONFIG_STATUS=./config.status}
14675 ac_write_fail=0
14676 ac_clean_files_save=$ac_clean_files
14677 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14679 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14680 as_write_fail=0
14681 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14682 #! $SHELL
14683 # Generated by $as_me.
14684 # Run this file to recreate the current configuration.
14685 # Compiler output produced by configure, useful for debugging
14686 # configure, is in config.log if it exists.
14688 debug=false
14689 ac_cs_recheck=false
14690 ac_cs_silent=false
14692 SHELL=\${CONFIG_SHELL-$SHELL}
14693 export SHELL
14694 _ASEOF
14695 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14696 ## -------------------- ##
14697 ## M4sh Initialization. ##
14698 ## -------------------- ##
14700 # Be more Bourne compatible
14701 DUALCASE=1; export DUALCASE # for MKS sh
14702 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14703 emulate sh
14704 NULLCMD=:
14705 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14706 # is contrary to our usage. Disable this feature.
14707 alias -g '${1+"$@"}'='"$@"'
14708 setopt NO_GLOB_SUBST
14709 else
14710 case `(set -o) 2>/dev/null` in #(
14711 *posix*) :
14712 set -o posix ;; #(
14713 *) :
14715 esac
14719 as_nl='
14721 export as_nl
14722 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14723 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14724 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14725 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14726 # Prefer a ksh shell builtin over an external printf program on Solaris,
14727 # but without wasting forks for bash or zsh.
14728 if test -z "$BASH_VERSION$ZSH_VERSION" \
14729 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14730 as_echo='print -r --'
14731 as_echo_n='print -rn --'
14732 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14733 as_echo='printf %s\n'
14734 as_echo_n='printf %s'
14735 else
14736 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14737 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14738 as_echo_n='/usr/ucb/echo -n'
14739 else
14740 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14741 as_echo_n_body='eval
14742 arg=$1;
14743 case $arg in #(
14744 *"$as_nl"*)
14745 expr "X$arg" : "X\\(.*\\)$as_nl";
14746 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14747 esac;
14748 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14750 export as_echo_n_body
14751 as_echo_n='sh -c $as_echo_n_body as_echo'
14753 export as_echo_body
14754 as_echo='sh -c $as_echo_body as_echo'
14757 # The user is always right.
14758 if test "${PATH_SEPARATOR+set}" != set; then
14759 PATH_SEPARATOR=:
14760 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14761 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14762 PATH_SEPARATOR=';'
14767 # IFS
14768 # We need space, tab and new line, in precisely that order. Quoting is
14769 # there to prevent editors from complaining about space-tab.
14770 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14771 # splitting by setting IFS to empty value.)
14772 IFS=" "" $as_nl"
14774 # Find who we are. Look in the path if we contain no directory separator.
14775 case $0 in #((
14776 *[\\/]* ) as_myself=$0 ;;
14777 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14778 for as_dir in $PATH
14780 IFS=$as_save_IFS
14781 test -z "$as_dir" && as_dir=.
14782 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14783 done
14784 IFS=$as_save_IFS
14787 esac
14788 # We did not find ourselves, most probably we were run as `sh COMMAND'
14789 # in which case we are not to be found in the path.
14790 if test "x$as_myself" = x; then
14791 as_myself=$0
14793 if test ! -f "$as_myself"; then
14794 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14795 exit 1
14798 # Unset variables that we do not need and which cause bugs (e.g. in
14799 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14800 # suppresses any "Segmentation fault" message there. '((' could
14801 # trigger a bug in pdksh 5.2.14.
14802 for as_var in BASH_ENV ENV MAIL MAILPATH
14803 do eval test x\${$as_var+set} = xset \
14804 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14805 done
14806 PS1='$ '
14807 PS2='> '
14808 PS4='+ '
14810 # NLS nuisances.
14811 LC_ALL=C
14812 export LC_ALL
14813 LANGUAGE=C
14814 export LANGUAGE
14816 # CDPATH.
14817 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14820 # as_fn_error ERROR [LINENO LOG_FD]
14821 # ---------------------------------
14822 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14823 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14824 # script with status $?, using 1 if that was 0.
14825 as_fn_error ()
14827 as_status=$?; test $as_status -eq 0 && as_status=1
14828 if test "$3"; then
14829 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14830 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14832 $as_echo "$as_me: error: $1" >&2
14833 as_fn_exit $as_status
14834 } # as_fn_error
14837 # as_fn_set_status STATUS
14838 # -----------------------
14839 # Set $? to STATUS, without forking.
14840 as_fn_set_status ()
14842 return $1
14843 } # as_fn_set_status
14845 # as_fn_exit STATUS
14846 # -----------------
14847 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14848 as_fn_exit ()
14850 set +e
14851 as_fn_set_status $1
14852 exit $1
14853 } # as_fn_exit
14855 # as_fn_unset VAR
14856 # ---------------
14857 # Portably unset VAR.
14858 as_fn_unset ()
14860 { eval $1=; unset $1;}
14862 as_unset=as_fn_unset
14863 # as_fn_append VAR VALUE
14864 # ----------------------
14865 # Append the text in VALUE to the end of the definition contained in VAR. Take
14866 # advantage of any shell optimizations that allow amortized linear growth over
14867 # repeated appends, instead of the typical quadratic growth present in naive
14868 # implementations.
14869 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14870 eval 'as_fn_append ()
14872 eval $1+=\$2
14874 else
14875 as_fn_append ()
14877 eval $1=\$$1\$2
14879 fi # as_fn_append
14881 # as_fn_arith ARG...
14882 # ------------------
14883 # Perform arithmetic evaluation on the ARGs, and store the result in the
14884 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14885 # must be portable across $(()) and expr.
14886 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14887 eval 'as_fn_arith ()
14889 as_val=$(( $* ))
14891 else
14892 as_fn_arith ()
14894 as_val=`expr "$@" || test $? -eq 1`
14896 fi # as_fn_arith
14899 if expr a : '\(a\)' >/dev/null 2>&1 &&
14900 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14901 as_expr=expr
14902 else
14903 as_expr=false
14906 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14907 as_basename=basename
14908 else
14909 as_basename=false
14912 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14913 as_dirname=dirname
14914 else
14915 as_dirname=false
14918 as_me=`$as_basename -- "$0" ||
14919 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14920 X"$0" : 'X\(//\)$' \| \
14921 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14922 $as_echo X/"$0" |
14923 sed '/^.*\/\([^/][^/]*\)\/*$/{
14924 s//\1/
14927 /^X\/\(\/\/\)$/{
14928 s//\1/
14931 /^X\/\(\/\).*/{
14932 s//\1/
14935 s/.*/./; q'`
14937 # Avoid depending upon Character Ranges.
14938 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14939 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14940 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14941 as_cr_digits='0123456789'
14942 as_cr_alnum=$as_cr_Letters$as_cr_digits
14944 ECHO_C= ECHO_N= ECHO_T=
14945 case `echo -n x` in #(((((
14946 -n*)
14947 case `echo 'xy\c'` in
14948 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14949 xy) ECHO_C='\c';;
14950 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14951 ECHO_T=' ';;
14952 esac;;
14954 ECHO_N='-n';;
14955 esac
14957 rm -f conf$$ conf$$.exe conf$$.file
14958 if test -d conf$$.dir; then
14959 rm -f conf$$.dir/conf$$.file
14960 else
14961 rm -f conf$$.dir
14962 mkdir conf$$.dir 2>/dev/null
14964 if (echo >conf$$.file) 2>/dev/null; then
14965 if ln -s conf$$.file conf$$ 2>/dev/null; then
14966 as_ln_s='ln -s'
14967 # ... but there are two gotchas:
14968 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14969 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14970 # In both cases, we have to default to `cp -p'.
14971 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14972 as_ln_s='cp -p'
14973 elif ln conf$$.file conf$$ 2>/dev/null; then
14974 as_ln_s=ln
14975 else
14976 as_ln_s='cp -p'
14978 else
14979 as_ln_s='cp -p'
14981 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14982 rmdir conf$$.dir 2>/dev/null
14985 # as_fn_mkdir_p
14986 # -------------
14987 # Create "$as_dir" as a directory, including parents if necessary.
14988 as_fn_mkdir_p ()
14991 case $as_dir in #(
14992 -*) as_dir=./$as_dir;;
14993 esac
14994 test -d "$as_dir" || eval $as_mkdir_p || {
14995 as_dirs=
14996 while :; do
14997 case $as_dir in #(
14998 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14999 *) as_qdir=$as_dir;;
15000 esac
15001 as_dirs="'$as_qdir' $as_dirs"
15002 as_dir=`$as_dirname -- "$as_dir" ||
15003 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15004 X"$as_dir" : 'X\(//\)[^/]' \| \
15005 X"$as_dir" : 'X\(//\)$' \| \
15006 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15007 $as_echo X"$as_dir" |
15008 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15009 s//\1/
15012 /^X\(\/\/\)[^/].*/{
15013 s//\1/
15016 /^X\(\/\/\)$/{
15017 s//\1/
15020 /^X\(\/\).*/{
15021 s//\1/
15024 s/.*/./; q'`
15025 test -d "$as_dir" && break
15026 done
15027 test -z "$as_dirs" || eval "mkdir $as_dirs"
15028 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15031 } # as_fn_mkdir_p
15032 if mkdir -p . 2>/dev/null; then
15033 as_mkdir_p='mkdir -p "$as_dir"'
15034 else
15035 test -d ./-p && rmdir ./-p
15036 as_mkdir_p=false
15039 if test -x / >/dev/null 2>&1; then
15040 as_test_x='test -x'
15041 else
15042 if ls -dL / >/dev/null 2>&1; then
15043 as_ls_L_option=L
15044 else
15045 as_ls_L_option=
15047 as_test_x='
15048 eval sh -c '\''
15049 if test -d "$1"; then
15050 test -d "$1/.";
15051 else
15052 case $1 in #(
15053 -*)set "./$1";;
15054 esac;
15055 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15056 ???[sx]*):;;*)false;;esac;fi
15057 '\'' sh
15060 as_executable_p=$as_test_x
15062 # Sed expression to map a string onto a valid CPP name.
15063 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15065 # Sed expression to map a string onto a valid variable name.
15066 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15069 exec 6>&1
15070 ## ----------------------------------- ##
15071 ## Main body of $CONFIG_STATUS script. ##
15072 ## ----------------------------------- ##
15073 _ASEOF
15074 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15077 # Save the log message, to keep $0 and so on meaningful, and to
15078 # report actual input values of CONFIG_FILES etc. instead of their
15079 # values after options handling.
15080 ac_log="
15081 This file was extended by Cilk Runtime Library $as_me 2.0, which was
15082 generated by GNU Autoconf 2.64. Invocation command line was
15084 CONFIG_FILES = $CONFIG_FILES
15085 CONFIG_HEADERS = $CONFIG_HEADERS
15086 CONFIG_LINKS = $CONFIG_LINKS
15087 CONFIG_COMMANDS = $CONFIG_COMMANDS
15088 $ $0 $@
15090 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15093 _ACEOF
15095 case $ac_config_files in *"
15096 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15097 esac
15101 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15102 # Files that config.status was made for.
15103 config_files="$ac_config_files"
15104 config_commands="$ac_config_commands"
15106 _ACEOF
15108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15109 ac_cs_usage="\
15110 \`$as_me' instantiates files and other configuration actions
15111 from templates according to the current configuration. Unless the files
15112 and actions are specified as TAGs, all are instantiated by default.
15114 Usage: $0 [OPTION]... [TAG]...
15116 -h, --help print this help, then exit
15117 -V, --version print version number and configuration settings, then exit
15118 -q, --quiet, --silent
15119 do not print progress messages
15120 -d, --debug don't remove temporary files
15121 --recheck update $as_me by reconfiguring in the same conditions
15122 --file=FILE[:TEMPLATE]
15123 instantiate the configuration file FILE
15125 Configuration files:
15126 $config_files
15128 Configuration commands:
15129 $config_commands
15131 Report bugs to <cilk@intel.com>."
15133 _ACEOF
15134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15135 ac_cs_version="\\
15136 Cilk Runtime Library config.status 2.0
15137 configured by $0, generated by GNU Autoconf 2.64,
15138 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15140 Copyright (C) 2009 Free Software Foundation, Inc.
15141 This config.status script is free software; the Free Software Foundation
15142 gives unlimited permission to copy, distribute and modify it."
15144 ac_pwd='$ac_pwd'
15145 srcdir='$srcdir'
15146 INSTALL='$INSTALL'
15147 MKDIR_P='$MKDIR_P'
15148 AWK='$AWK'
15149 test -n "\$AWK" || AWK=awk
15150 _ACEOF
15152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15153 # The default lists apply if the user does not specify any file.
15154 ac_need_defaults=:
15155 while test $# != 0
15157 case $1 in
15158 --*=*)
15159 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15160 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15161 ac_shift=:
15164 ac_option=$1
15165 ac_optarg=$2
15166 ac_shift=shift
15168 esac
15170 case $ac_option in
15171 # Handling of the options.
15172 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15173 ac_cs_recheck=: ;;
15174 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15175 $as_echo "$ac_cs_version"; exit ;;
15176 --debug | --debu | --deb | --de | --d | -d )
15177 debug=: ;;
15178 --file | --fil | --fi | --f )
15179 $ac_shift
15180 case $ac_optarg in
15181 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15182 esac
15183 as_fn_append CONFIG_FILES " '$ac_optarg'"
15184 ac_need_defaults=false;;
15185 --he | --h | --help | --hel | -h )
15186 $as_echo "$ac_cs_usage"; exit ;;
15187 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15188 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15189 ac_cs_silent=: ;;
15191 # This is an error.
15192 -*) as_fn_error "unrecognized option: \`$1'
15193 Try \`$0 --help' for more information." ;;
15195 *) as_fn_append ac_config_targets " $1"
15196 ac_need_defaults=false ;;
15198 esac
15199 shift
15200 done
15202 ac_configure_extra_args=
15204 if $ac_cs_silent; then
15205 exec 6>/dev/null
15206 ac_configure_extra_args="$ac_configure_extra_args --silent"
15209 _ACEOF
15210 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15211 if \$ac_cs_recheck; then
15212 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15213 shift
15214 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15215 CONFIG_SHELL='$SHELL'
15216 export CONFIG_SHELL
15217 exec "\$@"
15220 _ACEOF
15221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15222 exec 5>>config.log
15224 echo
15225 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15226 ## Running $as_me. ##
15227 _ASBOX
15228 $as_echo "$ac_log"
15229 } >&5
15231 _ACEOF
15232 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15234 # INIT-COMMANDS
15237 srcdir="$srcdir"
15238 host="$host"
15239 target="$target"
15240 with_multisubdir="$with_multisubdir"
15241 with_multisrctop="$with_multisrctop"
15242 with_target_subdir="$with_target_subdir"
15243 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15244 multi_basedir="$multi_basedir"
15245 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15246 CC="$CC"
15247 CXX="$CXX"
15248 GFORTRAN="$GFORTRAN"
15249 GCJ="$GCJ"
15250 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15253 # The HP-UX ksh and POSIX shell print the target directory to stdout
15254 # if CDPATH is set.
15255 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15257 sed_quote_subst='$sed_quote_subst'
15258 double_quote_subst='$double_quote_subst'
15259 delay_variable_subst='$delay_variable_subst'
15260 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15261 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15262 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15263 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15264 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15265 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15266 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15267 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15268 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15269 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15270 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15271 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15272 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15273 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15274 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15275 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15276 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15277 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15278 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15279 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15280 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15281 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15282 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15283 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15284 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15285 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15286 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15287 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15288 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15289 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15290 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15291 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15292 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15293 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15294 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15295 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15296 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15297 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15298 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15299 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15300 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15301 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15302 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15303 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15304 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15305 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15306 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15307 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15308 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"`'
15309 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15310 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15311 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15312 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15313 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15314 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15315 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15316 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15317 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15318 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15319 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15320 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15321 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15322 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15323 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15324 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15325 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15326 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15327 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15328 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15329 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15330 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15331 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15332 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15333 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15334 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15335 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15336 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15337 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15338 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15339 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15340 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15341 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15342 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15343 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15344 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15345 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15346 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15347 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15348 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15349 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15350 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15351 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15352 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15353 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15354 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15355 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15356 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15357 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15358 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15359 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15360 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15361 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15362 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15363 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15364 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15365 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15366 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15367 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15368 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15369 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15370 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15371 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15372 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15373 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15374 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15375 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15376 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15377 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15378 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15379 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15380 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15381 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15382 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15383 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15384 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15385 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15386 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15387 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15388 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15389 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15390 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15391 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15392 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15393 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15394 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15395 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15396 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15397 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15398 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15399 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15400 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15401 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15402 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15403 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15404 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15405 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15406 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15407 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15408 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15409 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15410 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15411 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15412 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15413 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15414 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15415 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15416 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15417 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15418 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15419 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15420 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15421 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15422 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15423 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15424 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15425 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15426 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15427 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15428 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15429 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15430 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15431 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15432 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15433 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15434 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15436 LTCC='$LTCC'
15437 LTCFLAGS='$LTCFLAGS'
15438 compiler='$compiler_DEFAULT'
15440 # A function that is used when there is no print builtin or printf.
15441 func_fallback_echo ()
15443 eval 'cat <<_LTECHO_EOF
15445 _LTECHO_EOF'
15448 # Quote evaled strings.
15449 for var in SHELL \
15450 ECHO \
15451 SED \
15452 GREP \
15453 EGREP \
15454 FGREP \
15455 LD \
15456 NM \
15457 LN_S \
15458 lt_SP2NL \
15459 lt_NL2SP \
15460 reload_flag \
15461 OBJDUMP \
15462 deplibs_check_method \
15463 file_magic_cmd \
15464 AR \
15465 AR_FLAGS \
15466 STRIP \
15467 RANLIB \
15468 CC \
15469 CFLAGS \
15470 compiler \
15471 lt_cv_sys_global_symbol_pipe \
15472 lt_cv_sys_global_symbol_to_cdecl \
15473 lt_cv_sys_global_symbol_to_c_name_address \
15474 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15475 lt_prog_compiler_no_builtin_flag \
15476 lt_prog_compiler_wl \
15477 lt_prog_compiler_pic \
15478 lt_prog_compiler_static \
15479 lt_cv_prog_compiler_c_o \
15480 need_locks \
15481 DSYMUTIL \
15482 NMEDIT \
15483 LIPO \
15484 OTOOL \
15485 OTOOL64 \
15486 shrext_cmds \
15487 export_dynamic_flag_spec \
15488 whole_archive_flag_spec \
15489 compiler_needs_object \
15490 with_gnu_ld \
15491 allow_undefined_flag \
15492 no_undefined_flag \
15493 hardcode_libdir_flag_spec \
15494 hardcode_libdir_flag_spec_ld \
15495 hardcode_libdir_separator \
15496 fix_srcfile_path \
15497 exclude_expsyms \
15498 include_expsyms \
15499 file_list_spec \
15500 variables_saved_for_relink \
15501 libname_spec \
15502 library_names_spec \
15503 soname_spec \
15504 install_override_mode \
15505 finish_eval \
15506 old_striplib \
15507 striplib \
15508 compiler_lib_search_dirs \
15509 predep_objects \
15510 postdep_objects \
15511 predeps \
15512 postdeps \
15513 compiler_lib_search_path \
15514 LD_CXX \
15515 reload_flag_CXX \
15516 compiler_CXX \
15517 lt_prog_compiler_no_builtin_flag_CXX \
15518 lt_prog_compiler_wl_CXX \
15519 lt_prog_compiler_pic_CXX \
15520 lt_prog_compiler_static_CXX \
15521 lt_cv_prog_compiler_c_o_CXX \
15522 export_dynamic_flag_spec_CXX \
15523 whole_archive_flag_spec_CXX \
15524 compiler_needs_object_CXX \
15525 with_gnu_ld_CXX \
15526 allow_undefined_flag_CXX \
15527 no_undefined_flag_CXX \
15528 hardcode_libdir_flag_spec_CXX \
15529 hardcode_libdir_flag_spec_ld_CXX \
15530 hardcode_libdir_separator_CXX \
15531 fix_srcfile_path_CXX \
15532 exclude_expsyms_CXX \
15533 include_expsyms_CXX \
15534 file_list_spec_CXX \
15535 compiler_lib_search_dirs_CXX \
15536 predep_objects_CXX \
15537 postdep_objects_CXX \
15538 predeps_CXX \
15539 postdeps_CXX \
15540 compiler_lib_search_path_CXX; do
15541 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15542 *[\\\\\\\`\\"\\\$]*)
15543 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15546 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15548 esac
15549 done
15551 # Double-quote double-evaled strings.
15552 for var in reload_cmds \
15553 old_postinstall_cmds \
15554 old_postuninstall_cmds \
15555 old_archive_cmds \
15556 extract_expsyms_cmds \
15557 old_archive_from_new_cmds \
15558 old_archive_from_expsyms_cmds \
15559 archive_cmds \
15560 archive_expsym_cmds \
15561 module_cmds \
15562 module_expsym_cmds \
15563 export_symbols_cmds \
15564 prelink_cmds \
15565 postinstall_cmds \
15566 postuninstall_cmds \
15567 finish_cmds \
15568 sys_lib_search_path_spec \
15569 sys_lib_dlsearch_path_spec \
15570 reload_cmds_CXX \
15571 old_archive_cmds_CXX \
15572 old_archive_from_new_cmds_CXX \
15573 old_archive_from_expsyms_cmds_CXX \
15574 archive_cmds_CXX \
15575 archive_expsym_cmds_CXX \
15576 module_cmds_CXX \
15577 module_expsym_cmds_CXX \
15578 export_symbols_cmds_CXX \
15579 prelink_cmds_CXX; do
15580 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15581 *[\\\\\\\`\\"\\\$]*)
15582 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15585 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15587 esac
15588 done
15590 ac_aux_dir='$ac_aux_dir'
15591 xsi_shell='$xsi_shell'
15592 lt_shell_append='$lt_shell_append'
15594 # See if we are running on zsh, and set the options which allow our
15595 # commands through without removal of \ escapes INIT.
15596 if test -n "\${ZSH_VERSION+set}" ; then
15597 setopt NO_GLOB_SUBST
15601 PACKAGE='$PACKAGE'
15602 VERSION='$VERSION'
15603 TIMESTAMP='$TIMESTAMP'
15604 RM='$RM'
15605 ofile='$ofile'
15612 _ACEOF
15614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15616 # Handling of arguments.
15617 for ac_config_target in $ac_config_targets
15619 case $ac_config_target in
15620 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15621 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15622 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15623 "libcilkrts.spec") CONFIG_FILES="$CONFIG_FILES libcilkrts.spec" ;;
15624 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15626 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15627 esac
15628 done
15631 # If the user did not use the arguments to specify the items to instantiate,
15632 # then the envvar interface is used. Set only those that are not.
15633 # We use the long form for the default assignment because of an extremely
15634 # bizarre bug on SunOS 4.1.3.
15635 if $ac_need_defaults; then
15636 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15637 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15640 # Have a temporary directory for convenience. Make it in the build tree
15641 # simply because there is no reason against having it here, and in addition,
15642 # creating and moving files from /tmp can sometimes cause problems.
15643 # Hook for its removal unless debugging.
15644 # Note that there is a small window in which the directory will not be cleaned:
15645 # after its creation but before its name has been assigned to `$tmp'.
15646 $debug ||
15648 tmp=
15649 trap 'exit_status=$?
15650 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15652 trap 'as_fn_exit 1' 1 2 13 15
15654 # Create a (secure) tmp directory for tmp files.
15657 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15658 test -n "$tmp" && test -d "$tmp"
15659 } ||
15661 tmp=./conf$$-$RANDOM
15662 (umask 077 && mkdir "$tmp")
15663 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15665 # Set up the scripts for CONFIG_FILES section.
15666 # No need to generate them if there are no CONFIG_FILES.
15667 # This happens for instance with `./config.status config.h'.
15668 if test -n "$CONFIG_FILES"; then
15671 ac_cr=`echo X | tr X '\015'`
15672 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15673 # But we know of no other shell where ac_cr would be empty at this
15674 # point, so we can use a bashism as a fallback.
15675 if test "x$ac_cr" = x; then
15676 eval ac_cr=\$\'\\r\'
15678 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15679 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15680 ac_cs_awk_cr='\r'
15681 else
15682 ac_cs_awk_cr=$ac_cr
15685 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15686 _ACEOF
15690 echo "cat >conf$$subs.awk <<_ACEOF" &&
15691 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15692 echo "_ACEOF"
15693 } >conf$$subs.sh ||
15694 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15695 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15696 ac_delim='%!_!# '
15697 for ac_last_try in false false false false false :; do
15698 . ./conf$$subs.sh ||
15699 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15701 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15702 if test $ac_delim_n = $ac_delim_num; then
15703 break
15704 elif $ac_last_try; then
15705 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15706 else
15707 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15709 done
15710 rm -f conf$$subs.sh
15712 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15713 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15714 _ACEOF
15715 sed -n '
15717 s/^/S["/; s/!.*/"]=/
15720 s/^[^!]*!//
15721 :repl
15722 t repl
15723 s/'"$ac_delim"'$//
15724 t delim
15727 s/\(.\{148\}\).*/\1/
15728 t more1
15729 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15732 b repl
15733 :more1
15734 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15737 s/.\{148\}//
15738 t nl
15739 :delim
15741 s/\(.\{148\}\).*/\1/
15742 t more2
15743 s/["\\]/\\&/g; s/^/"/; s/$/"/
15746 :more2
15747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15750 s/.\{148\}//
15751 t delim
15752 ' <conf$$subs.awk | sed '
15753 /^[^""]/{
15755 s/\n//
15757 ' >>$CONFIG_STATUS || ac_write_fail=1
15758 rm -f conf$$subs.awk
15759 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15760 _ACAWK
15761 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15762 for (key in S) S_is_set[key] = 1
15763 FS = "\a"
15767 line = $ 0
15768 nfields = split(line, field, "@")
15769 substed = 0
15770 len = length(field[1])
15771 for (i = 2; i < nfields; i++) {
15772 key = field[i]
15773 keylen = length(key)
15774 if (S_is_set[key]) {
15775 value = S[key]
15776 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15777 len += length(value) + length(field[++i])
15778 substed = 1
15779 } else
15780 len += 1 + keylen
15783 print line
15786 _ACAWK
15787 _ACEOF
15788 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15789 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15790 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15791 else
15793 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15794 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15795 _ACEOF
15797 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15798 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15799 # trailing colons and then remove the whole line if VPATH becomes empty
15800 # (actually we leave an empty line to preserve line numbers).
15801 if test "x$srcdir" = x.; then
15802 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15803 s/:*\$(srcdir):*/:/
15804 s/:*\${srcdir}:*/:/
15805 s/:*@srcdir@:*/:/
15806 s/^\([^=]*=[ ]*\):*/\1/
15807 s/:*$//
15808 s/^[^=]*=[ ]*$//
15812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15813 fi # test -n "$CONFIG_FILES"
15816 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15817 shift
15818 for ac_tag
15820 case $ac_tag in
15821 :[FHLC]) ac_mode=$ac_tag; continue;;
15822 esac
15823 case $ac_mode$ac_tag in
15824 :[FHL]*:*);;
15825 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15826 :[FH]-) ac_tag=-:-;;
15827 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15828 esac
15829 ac_save_IFS=$IFS
15830 IFS=:
15831 set x $ac_tag
15832 IFS=$ac_save_IFS
15833 shift
15834 ac_file=$1
15835 shift
15837 case $ac_mode in
15838 :L) ac_source=$1;;
15839 :[FH])
15840 ac_file_inputs=
15841 for ac_f
15843 case $ac_f in
15844 -) ac_f="$tmp/stdin";;
15845 *) # Look for the file first in the build tree, then in the source tree
15846 # (if the path is not absolute). The absolute path cannot be DOS-style,
15847 # because $ac_f cannot contain `:'.
15848 test -f "$ac_f" ||
15849 case $ac_f in
15850 [\\/$]*) false;;
15851 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15852 esac ||
15853 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15854 esac
15855 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15856 as_fn_append ac_file_inputs " '$ac_f'"
15857 done
15859 # Let's still pretend it is `configure' which instantiates (i.e., don't
15860 # use $as_me), people would be surprised to read:
15861 # /* config.h. Generated by config.status. */
15862 configure_input='Generated from '`
15863 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15864 `' by configure.'
15865 if test x"$ac_file" != x-; then
15866 configure_input="$ac_file. $configure_input"
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15868 $as_echo "$as_me: creating $ac_file" >&6;}
15870 # Neutralize special characters interpreted by sed in replacement strings.
15871 case $configure_input in #(
15872 *\&* | *\|* | *\\* )
15873 ac_sed_conf_input=`$as_echo "$configure_input" |
15874 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15875 *) ac_sed_conf_input=$configure_input;;
15876 esac
15878 case $ac_tag in
15879 *:-:* | *:-) cat >"$tmp/stdin" \
15880 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15881 esac
15883 esac
15885 ac_dir=`$as_dirname -- "$ac_file" ||
15886 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15887 X"$ac_file" : 'X\(//\)[^/]' \| \
15888 X"$ac_file" : 'X\(//\)$' \| \
15889 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15890 $as_echo X"$ac_file" |
15891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15892 s//\1/
15895 /^X\(\/\/\)[^/].*/{
15896 s//\1/
15899 /^X\(\/\/\)$/{
15900 s//\1/
15903 /^X\(\/\).*/{
15904 s//\1/
15907 s/.*/./; q'`
15908 as_dir="$ac_dir"; as_fn_mkdir_p
15909 ac_builddir=.
15911 case "$ac_dir" in
15912 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15914 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15915 # A ".." for each directory in $ac_dir_suffix.
15916 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15917 case $ac_top_builddir_sub in
15918 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15919 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15920 esac ;;
15921 esac
15922 ac_abs_top_builddir=$ac_pwd
15923 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15924 # for backward compatibility:
15925 ac_top_builddir=$ac_top_build_prefix
15927 case $srcdir in
15928 .) # We are building in place.
15929 ac_srcdir=.
15930 ac_top_srcdir=$ac_top_builddir_sub
15931 ac_abs_top_srcdir=$ac_pwd ;;
15932 [\\/]* | ?:[\\/]* ) # Absolute name.
15933 ac_srcdir=$srcdir$ac_dir_suffix;
15934 ac_top_srcdir=$srcdir
15935 ac_abs_top_srcdir=$srcdir ;;
15936 *) # Relative name.
15937 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15938 ac_top_srcdir=$ac_top_build_prefix$srcdir
15939 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15940 esac
15941 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15944 case $ac_mode in
15947 # CONFIG_FILE
15950 case $INSTALL in
15951 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15952 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15953 esac
15954 ac_MKDIR_P=$MKDIR_P
15955 case $MKDIR_P in
15956 [\\/$]* | ?:[\\/]* ) ;;
15957 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15958 esac
15959 _ACEOF
15961 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15962 # If the template does not know about datarootdir, expand it.
15963 # FIXME: This hack should be removed a few years after 2.60.
15964 ac_datarootdir_hack=; ac_datarootdir_seen=
15965 ac_sed_dataroot='
15966 /datarootdir/ {
15970 /@datadir@/p
15971 /@docdir@/p
15972 /@infodir@/p
15973 /@localedir@/p
15974 /@mandir@/p'
15975 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15976 *datarootdir*) ac_datarootdir_seen=yes;;
15977 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15979 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15980 _ACEOF
15981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15982 ac_datarootdir_hack='
15983 s&@datadir@&$datadir&g
15984 s&@docdir@&$docdir&g
15985 s&@infodir@&$infodir&g
15986 s&@localedir@&$localedir&g
15987 s&@mandir@&$mandir&g
15988 s&\\\${datarootdir}&$datarootdir&g' ;;
15989 esac
15990 _ACEOF
15992 # Neutralize VPATH when `$srcdir' = `.'.
15993 # Shell code in configure.ac might set extrasub.
15994 # FIXME: do we really want to maintain this feature?
15995 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15996 ac_sed_extra="$ac_vpsub
15997 $extrasub
15998 _ACEOF
15999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16002 s|@configure_input@|$ac_sed_conf_input|;t t
16003 s&@top_builddir@&$ac_top_builddir_sub&;t t
16004 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16005 s&@srcdir@&$ac_srcdir&;t t
16006 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16007 s&@top_srcdir@&$ac_top_srcdir&;t t
16008 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16009 s&@builddir@&$ac_builddir&;t t
16010 s&@abs_builddir@&$ac_abs_builddir&;t t
16011 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16012 s&@INSTALL@&$ac_INSTALL&;t t
16013 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16014 $ac_datarootdir_hack
16016 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16017 || as_fn_error "could not create $ac_file" "$LINENO" 5
16019 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16020 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16021 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16023 which seems to be undefined. Please make sure it is defined." >&5
16024 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16025 which seems to be undefined. Please make sure it is defined." >&2;}
16027 rm -f "$tmp/stdin"
16028 case $ac_file in
16029 -) cat "$tmp/out" && rm -f "$tmp/out";;
16030 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16031 esac \
16032 || as_fn_error "could not create $ac_file" "$LINENO" 5
16036 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16037 $as_echo "$as_me: executing $ac_file commands" >&6;}
16039 esac
16042 case $ac_file$ac_mode in
16043 "default-1":C)
16044 # Only add multilib support code if we just rebuilt the top-level
16045 # Makefile.
16046 case " $CONFIG_FILES " in
16047 *" Makefile "*)
16048 ac_file=Makefile . ${multi_basedir}/config-ml.in
16050 esac ;;
16051 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16052 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16053 # are listed without --file. Let's play safe and only enable the eval
16054 # if we detect the quoting.
16055 case $CONFIG_FILES in
16056 *\'*) eval set x "$CONFIG_FILES" ;;
16057 *) set x $CONFIG_FILES ;;
16058 esac
16059 shift
16060 for mf
16062 # Strip MF so we end up with the name of the file.
16063 mf=`echo "$mf" | sed -e 's/:.*$//'`
16064 # Check whether this is an Automake generated Makefile or not.
16065 # We used to match only the files named `Makefile.in', but
16066 # some people rename them; so instead we look at the file content.
16067 # Grep'ing the first line is not enough: some people post-process
16068 # each Makefile.in and add a new line on top of each file to say so.
16069 # Grep'ing the whole file is not good either: AIX grep has a line
16070 # limit of 2048, but all sed's we know have understand at least 4000.
16071 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16072 dirpart=`$as_dirname -- "$mf" ||
16073 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16074 X"$mf" : 'X\(//\)[^/]' \| \
16075 X"$mf" : 'X\(//\)$' \| \
16076 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16077 $as_echo X"$mf" |
16078 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16079 s//\1/
16082 /^X\(\/\/\)[^/].*/{
16083 s//\1/
16086 /^X\(\/\/\)$/{
16087 s//\1/
16090 /^X\(\/\).*/{
16091 s//\1/
16094 s/.*/./; q'`
16095 else
16096 continue
16098 # Extract the definition of DEPDIR, am__include, and am__quote
16099 # from the Makefile without running `make'.
16100 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16101 test -z "$DEPDIR" && continue
16102 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16103 test -z "am__include" && continue
16104 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16105 # When using ansi2knr, U may be empty or an underscore; expand it
16106 U=`sed -n 's/^U = //p' < "$mf"`
16107 # Find all dependency output files, they are included files with
16108 # $(DEPDIR) in their names. We invoke sed twice because it is the
16109 # simplest approach to changing $(DEPDIR) to its actual value in the
16110 # expansion.
16111 for file in `sed -n "
16112 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16113 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16114 # Make sure the directory exists.
16115 test -f "$dirpart/$file" && continue
16116 fdir=`$as_dirname -- "$file" ||
16117 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16118 X"$file" : 'X\(//\)[^/]' \| \
16119 X"$file" : 'X\(//\)$' \| \
16120 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16121 $as_echo X"$file" |
16122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16123 s//\1/
16126 /^X\(\/\/\)[^/].*/{
16127 s//\1/
16130 /^X\(\/\/\)$/{
16131 s//\1/
16134 /^X\(\/\).*/{
16135 s//\1/
16138 s/.*/./; q'`
16139 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16140 # echo "creating $dirpart/$file"
16141 echo '# dummy' > "$dirpart/$file"
16142 done
16143 done
16146 "libtool":C)
16148 # See if we are running on zsh, and set the options which allow our
16149 # commands through without removal of \ escapes.
16150 if test -n "${ZSH_VERSION+set}" ; then
16151 setopt NO_GLOB_SUBST
16154 cfgfile="${ofile}T"
16155 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16156 $RM "$cfgfile"
16158 cat <<_LT_EOF >> "$cfgfile"
16159 #! $SHELL
16161 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16162 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16163 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16164 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16166 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16167 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16168 # Written by Gordon Matzigkeit, 1996
16170 # This file is part of GNU Libtool.
16172 # GNU Libtool is free software; you can redistribute it and/or
16173 # modify it under the terms of the GNU General Public License as
16174 # published by the Free Software Foundation; either version 2 of
16175 # the License, or (at your option) any later version.
16177 # As a special exception to the GNU General Public License,
16178 # if you distribute this file as part of a program or library that
16179 # is built using GNU Libtool, you may include this file under the
16180 # same distribution terms that you use for the rest of that program.
16182 # GNU Libtool is distributed in the hope that it will be useful,
16183 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16184 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16185 # GNU General Public License for more details.
16187 # You should have received a copy of the GNU General Public License
16188 # along with GNU Libtool; see the file COPYING. If not, a copy
16189 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16190 # obtained by writing to the Free Software Foundation, Inc.,
16191 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16194 # The names of the tagged configurations supported by this script.
16195 available_tags="CXX "
16197 # ### BEGIN LIBTOOL CONFIG
16199 # Which release of libtool.m4 was used?
16200 macro_version=$macro_version
16201 macro_revision=$macro_revision
16203 # Whether or not to build shared libraries.
16204 build_libtool_libs=$enable_shared
16206 # Whether or not to build static libraries.
16207 build_old_libs=$enable_static
16209 # What type of objects to build.
16210 pic_mode=$pic_mode
16212 # Whether or not to optimize for fast installation.
16213 fast_install=$enable_fast_install
16215 # Shell to use when invoking shell scripts.
16216 SHELL=$lt_SHELL
16218 # An echo program that protects backslashes.
16219 ECHO=$lt_ECHO
16221 # The host system.
16222 host_alias=$host_alias
16223 host=$host
16224 host_os=$host_os
16226 # The build system.
16227 build_alias=$build_alias
16228 build=$build
16229 build_os=$build_os
16231 # A sed program that does not truncate output.
16232 SED=$lt_SED
16234 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16235 Xsed="\$SED -e 1s/^X//"
16237 # A grep program that handles long lines.
16238 GREP=$lt_GREP
16240 # An ERE matcher.
16241 EGREP=$lt_EGREP
16243 # A literal string matcher.
16244 FGREP=$lt_FGREP
16246 # A BSD- or MS-compatible name lister.
16247 NM=$lt_NM
16249 # Whether we need soft or hard links.
16250 LN_S=$lt_LN_S
16252 # What is the maximum length of a command?
16253 max_cmd_len=$max_cmd_len
16255 # Object file suffix (normally "o").
16256 objext=$ac_objext
16258 # Executable file suffix (normally "").
16259 exeext=$exeext
16261 # whether the shell understands "unset".
16262 lt_unset=$lt_unset
16264 # turn spaces into newlines.
16265 SP2NL=$lt_lt_SP2NL
16267 # turn newlines into spaces.
16268 NL2SP=$lt_lt_NL2SP
16270 # An object symbol dumper.
16271 OBJDUMP=$lt_OBJDUMP
16273 # Method to check whether dependent libraries are shared objects.
16274 deplibs_check_method=$lt_deplibs_check_method
16276 # Command to use when deplibs_check_method == "file_magic".
16277 file_magic_cmd=$lt_file_magic_cmd
16279 # The archiver.
16280 AR=$lt_AR
16281 AR_FLAGS=$lt_AR_FLAGS
16283 # A symbol stripping program.
16284 STRIP=$lt_STRIP
16286 # Commands used to install an old-style archive.
16287 RANLIB=$lt_RANLIB
16288 old_postinstall_cmds=$lt_old_postinstall_cmds
16289 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16291 # Whether to use a lock for old archive extraction.
16292 lock_old_archive_extraction=$lock_old_archive_extraction
16294 # A C compiler.
16295 LTCC=$lt_CC
16297 # LTCC compiler flags.
16298 LTCFLAGS=$lt_CFLAGS
16300 # Take the output of nm and produce a listing of raw symbols and C names.
16301 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16303 # Transform the output of nm in a proper C declaration.
16304 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16306 # Transform the output of nm in a C name address pair.
16307 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16309 # Transform the output of nm in a C name address pair when lib prefix is needed.
16310 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16312 # The name of the directory that contains temporary libtool files.
16313 objdir=$objdir
16315 # Used to examine libraries when file_magic_cmd begins with "file".
16316 MAGIC_CMD=$MAGIC_CMD
16318 # Must we lock files when doing compilation?
16319 need_locks=$lt_need_locks
16321 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16322 DSYMUTIL=$lt_DSYMUTIL
16324 # Tool to change global to local symbols on Mac OS X.
16325 NMEDIT=$lt_NMEDIT
16327 # Tool to manipulate fat objects and archives on Mac OS X.
16328 LIPO=$lt_LIPO
16330 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16331 OTOOL=$lt_OTOOL
16333 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16334 OTOOL64=$lt_OTOOL64
16336 # Old archive suffix (normally "a").
16337 libext=$libext
16339 # Shared library suffix (normally ".so").
16340 shrext_cmds=$lt_shrext_cmds
16342 # The commands to extract the exported symbol list from a shared archive.
16343 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16345 # Variables whose values should be saved in libtool wrapper scripts and
16346 # restored at link time.
16347 variables_saved_for_relink=$lt_variables_saved_for_relink
16349 # Do we need the "lib" prefix for modules?
16350 need_lib_prefix=$need_lib_prefix
16352 # Do we need a version for libraries?
16353 need_version=$need_version
16355 # Library versioning type.
16356 version_type=$version_type
16358 # Shared library runtime path variable.
16359 runpath_var=$runpath_var
16361 # Shared library path variable.
16362 shlibpath_var=$shlibpath_var
16364 # Is shlibpath searched before the hard-coded library search path?
16365 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16367 # Format of library name prefix.
16368 libname_spec=$lt_libname_spec
16370 # List of archive names. First name is the real one, the rest are links.
16371 # The last name is the one that the linker finds with -lNAME
16372 library_names_spec=$lt_library_names_spec
16374 # The coded name of the library, if different from the real name.
16375 soname_spec=$lt_soname_spec
16377 # Permission mode override for installation of shared libraries.
16378 install_override_mode=$lt_install_override_mode
16380 # Command to use after installation of a shared archive.
16381 postinstall_cmds=$lt_postinstall_cmds
16383 # Command to use after uninstallation of a shared archive.
16384 postuninstall_cmds=$lt_postuninstall_cmds
16386 # Commands used to finish a libtool library installation in a directory.
16387 finish_cmds=$lt_finish_cmds
16389 # As "finish_cmds", except a single script fragment to be evaled but
16390 # not shown.
16391 finish_eval=$lt_finish_eval
16393 # Whether we should hardcode library paths into libraries.
16394 hardcode_into_libs=$hardcode_into_libs
16396 # Compile-time system search path for libraries.
16397 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16399 # Run-time system search path for libraries.
16400 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16402 # Whether dlopen is supported.
16403 dlopen_support=$enable_dlopen
16405 # Whether dlopen of programs is supported.
16406 dlopen_self=$enable_dlopen_self
16408 # Whether dlopen of statically linked programs is supported.
16409 dlopen_self_static=$enable_dlopen_self_static
16411 # Commands to strip libraries.
16412 old_striplib=$lt_old_striplib
16413 striplib=$lt_striplib
16416 # The linker used to build libraries.
16417 LD=$lt_LD
16419 # How to create reloadable object files.
16420 reload_flag=$lt_reload_flag
16421 reload_cmds=$lt_reload_cmds
16423 # Commands used to build an old-style archive.
16424 old_archive_cmds=$lt_old_archive_cmds
16426 # A language specific compiler.
16427 CC=$lt_compiler
16429 # Is the compiler the GNU compiler?
16430 with_gcc=$GCC
16432 # Compiler flag to turn off builtin functions.
16433 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16435 # How to pass a linker flag through the compiler.
16436 wl=$lt_lt_prog_compiler_wl
16438 # Additional compiler flags for building library objects.
16439 pic_flag=$lt_lt_prog_compiler_pic
16441 # Compiler flag to prevent dynamic linking.
16442 link_static_flag=$lt_lt_prog_compiler_static
16444 # Does compiler simultaneously support -c and -o options?
16445 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16447 # Whether or not to add -lc for building shared libraries.
16448 build_libtool_need_lc=$archive_cmds_need_lc
16450 # Whether or not to disallow shared libs when runtime libs are static.
16451 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16453 # Compiler flag to allow reflexive dlopens.
16454 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16456 # Compiler flag to generate shared objects directly from archives.
16457 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16459 # Whether the compiler copes with passing no objects directly.
16460 compiler_needs_object=$lt_compiler_needs_object
16462 # Create an old-style archive from a shared archive.
16463 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16465 # Create a temporary old-style archive to link instead of a shared archive.
16466 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16468 # Commands used to build a shared archive.
16469 archive_cmds=$lt_archive_cmds
16470 archive_expsym_cmds=$lt_archive_expsym_cmds
16472 # Commands used to build a loadable module if different from building
16473 # a shared archive.
16474 module_cmds=$lt_module_cmds
16475 module_expsym_cmds=$lt_module_expsym_cmds
16477 # Whether we are building with GNU ld or not.
16478 with_gnu_ld=$lt_with_gnu_ld
16480 # Flag that allows shared libraries with undefined symbols to be built.
16481 allow_undefined_flag=$lt_allow_undefined_flag
16483 # Flag that enforces no undefined symbols.
16484 no_undefined_flag=$lt_no_undefined_flag
16486 # Flag to hardcode \$libdir into a binary during linking.
16487 # This must work even if \$libdir does not exist
16488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16490 # If ld is used when linking, flag to hardcode \$libdir into a binary
16491 # during linking. This must work even if \$libdir does not exist.
16492 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16494 # Whether we need a single "-rpath" flag with a separated argument.
16495 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16497 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16498 # DIR into the resulting binary.
16499 hardcode_direct=$hardcode_direct
16501 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16502 # DIR into the resulting binary and the resulting library dependency is
16503 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16504 # library is relocated.
16505 hardcode_direct_absolute=$hardcode_direct_absolute
16507 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16508 # into the resulting binary.
16509 hardcode_minus_L=$hardcode_minus_L
16511 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16512 # into the resulting binary.
16513 hardcode_shlibpath_var=$hardcode_shlibpath_var
16515 # Set to "yes" if building a shared library automatically hardcodes DIR
16516 # into the library and all subsequent libraries and executables linked
16517 # against it.
16518 hardcode_automatic=$hardcode_automatic
16520 # Set to yes if linker adds runtime paths of dependent libraries
16521 # to runtime path list.
16522 inherit_rpath=$inherit_rpath
16524 # Whether libtool must link a program against all its dependency libraries.
16525 link_all_deplibs=$link_all_deplibs
16527 # Fix the shell variable \$srcfile for the compiler.
16528 fix_srcfile_path=$lt_fix_srcfile_path
16530 # Set to "yes" if exported symbols are required.
16531 always_export_symbols=$always_export_symbols
16533 # The commands to list exported symbols.
16534 export_symbols_cmds=$lt_export_symbols_cmds
16536 # Symbols that should not be listed in the preloaded symbols.
16537 exclude_expsyms=$lt_exclude_expsyms
16539 # Symbols that must always be exported.
16540 include_expsyms=$lt_include_expsyms
16542 # Commands necessary for linking programs (against libraries) with templates.
16543 prelink_cmds=$lt_prelink_cmds
16545 # Specify filename containing input files.
16546 file_list_spec=$lt_file_list_spec
16548 # How to hardcode a shared library path into an executable.
16549 hardcode_action=$hardcode_action
16551 # The directories searched by this compiler when creating a shared library.
16552 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16554 # Dependencies to place before and after the objects being linked to
16555 # create a shared library.
16556 predep_objects=$lt_predep_objects
16557 postdep_objects=$lt_postdep_objects
16558 predeps=$lt_predeps
16559 postdeps=$lt_postdeps
16561 # The library search path used internally by the compiler when linking
16562 # a shared library.
16563 compiler_lib_search_path=$lt_compiler_lib_search_path
16565 # ### END LIBTOOL CONFIG
16567 _LT_EOF
16569 case $host_os in
16570 aix3*)
16571 cat <<\_LT_EOF >> "$cfgfile"
16572 # AIX sometimes has problems with the GCC collect2 program. For some
16573 # reason, if we set the COLLECT_NAMES environment variable, the problems
16574 # vanish in a puff of smoke.
16575 if test "X${COLLECT_NAMES+set}" != Xset; then
16576 COLLECT_NAMES=
16577 export COLLECT_NAMES
16579 _LT_EOF
16581 esac
16584 ltmain="$ac_aux_dir/ltmain.sh"
16587 # We use sed instead of cat because bash on DJGPP gets confused if
16588 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16589 # text mode, it properly converts lines to CR/LF. This bash problem
16590 # is reportedly fixed, but why not run on old versions too?
16591 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16592 || (rm -f "$cfgfile"; exit 1)
16594 case $xsi_shell in
16595 yes)
16596 cat << \_LT_EOF >> "$cfgfile"
16598 # func_dirname file append nondir_replacement
16599 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16600 # otherwise set result to NONDIR_REPLACEMENT.
16601 func_dirname ()
16603 case ${1} in
16604 */*) func_dirname_result="${1%/*}${2}" ;;
16605 * ) func_dirname_result="${3}" ;;
16606 esac
16609 # func_basename file
16610 func_basename ()
16612 func_basename_result="${1##*/}"
16615 # func_dirname_and_basename file append nondir_replacement
16616 # perform func_basename and func_dirname in a single function
16617 # call:
16618 # dirname: Compute the dirname of FILE. If nonempty,
16619 # add APPEND to the result, otherwise set result
16620 # to NONDIR_REPLACEMENT.
16621 # value returned in "$func_dirname_result"
16622 # basename: Compute filename of FILE.
16623 # value retuned in "$func_basename_result"
16624 # Implementation must be kept synchronized with func_dirname
16625 # and func_basename. For efficiency, we do not delegate to
16626 # those functions but instead duplicate the functionality here.
16627 func_dirname_and_basename ()
16629 case ${1} in
16630 */*) func_dirname_result="${1%/*}${2}" ;;
16631 * ) func_dirname_result="${3}" ;;
16632 esac
16633 func_basename_result="${1##*/}"
16636 # func_stripname prefix suffix name
16637 # strip PREFIX and SUFFIX off of NAME.
16638 # PREFIX and SUFFIX must not contain globbing or regex special
16639 # characters, hashes, percent signs, but SUFFIX may contain a leading
16640 # dot (in which case that matches only a dot).
16641 func_stripname ()
16643 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16644 # positional parameters, so assign one to ordinary parameter first.
16645 func_stripname_result=${3}
16646 func_stripname_result=${func_stripname_result#"${1}"}
16647 func_stripname_result=${func_stripname_result%"${2}"}
16650 # func_opt_split
16651 func_opt_split ()
16653 func_opt_split_opt=${1%%=*}
16654 func_opt_split_arg=${1#*=}
16657 # func_lo2o object
16658 func_lo2o ()
16660 case ${1} in
16661 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16662 *) func_lo2o_result=${1} ;;
16663 esac
16666 # func_xform libobj-or-source
16667 func_xform ()
16669 func_xform_result=${1%.*}.lo
16672 # func_arith arithmetic-term...
16673 func_arith ()
16675 func_arith_result=$(( $* ))
16678 # func_len string
16679 # STRING may not start with a hyphen.
16680 func_len ()
16682 func_len_result=${#1}
16685 _LT_EOF
16687 *) # Bourne compatible functions.
16688 cat << \_LT_EOF >> "$cfgfile"
16690 # func_dirname file append nondir_replacement
16691 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16692 # otherwise set result to NONDIR_REPLACEMENT.
16693 func_dirname ()
16695 # Extract subdirectory from the argument.
16696 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16697 if test "X$func_dirname_result" = "X${1}"; then
16698 func_dirname_result="${3}"
16699 else
16700 func_dirname_result="$func_dirname_result${2}"
16704 # func_basename file
16705 func_basename ()
16707 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16711 # func_stripname prefix suffix name
16712 # strip PREFIX and SUFFIX off of NAME.
16713 # PREFIX and SUFFIX must not contain globbing or regex special
16714 # characters, hashes, percent signs, but SUFFIX may contain a leading
16715 # dot (in which case that matches only a dot).
16716 # func_strip_suffix prefix name
16717 func_stripname ()
16719 case ${2} in
16720 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16721 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16722 esac
16725 # sed scripts:
16726 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16727 my_sed_long_arg='1s/^-[^=]*=//'
16729 # func_opt_split
16730 func_opt_split ()
16732 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16733 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16736 # func_lo2o object
16737 func_lo2o ()
16739 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16742 # func_xform libobj-or-source
16743 func_xform ()
16745 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16748 # func_arith arithmetic-term...
16749 func_arith ()
16751 func_arith_result=`expr "$@"`
16754 # func_len string
16755 # STRING may not start with a hyphen.
16756 func_len ()
16758 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16761 _LT_EOF
16762 esac
16764 case $lt_shell_append in
16765 yes)
16766 cat << \_LT_EOF >> "$cfgfile"
16768 # func_append var value
16769 # Append VALUE to the end of shell variable VAR.
16770 func_append ()
16772 eval "$1+=\$2"
16774 _LT_EOF
16777 cat << \_LT_EOF >> "$cfgfile"
16779 # func_append var value
16780 # Append VALUE to the end of shell variable VAR.
16781 func_append ()
16783 eval "$1=\$$1\$2"
16786 _LT_EOF
16788 esac
16791 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16792 || (rm -f "$cfgfile"; exit 1)
16794 mv -f "$cfgfile" "$ofile" ||
16795 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16796 chmod +x "$ofile"
16799 cat <<_LT_EOF >> "$ofile"
16801 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16803 # The linker used to build libraries.
16804 LD=$lt_LD_CXX
16806 # How to create reloadable object files.
16807 reload_flag=$lt_reload_flag_CXX
16808 reload_cmds=$lt_reload_cmds_CXX
16810 # Commands used to build an old-style archive.
16811 old_archive_cmds=$lt_old_archive_cmds_CXX
16813 # A language specific compiler.
16814 CC=$lt_compiler_CXX
16816 # Is the compiler the GNU compiler?
16817 with_gcc=$GCC_CXX
16819 # Compiler flag to turn off builtin functions.
16820 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16822 # How to pass a linker flag through the compiler.
16823 wl=$lt_lt_prog_compiler_wl_CXX
16825 # Additional compiler flags for building library objects.
16826 pic_flag=$lt_lt_prog_compiler_pic_CXX
16828 # Compiler flag to prevent dynamic linking.
16829 link_static_flag=$lt_lt_prog_compiler_static_CXX
16831 # Does compiler simultaneously support -c and -o options?
16832 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16834 # Whether or not to add -lc for building shared libraries.
16835 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16837 # Whether or not to disallow shared libs when runtime libs are static.
16838 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16840 # Compiler flag to allow reflexive dlopens.
16841 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16843 # Compiler flag to generate shared objects directly from archives.
16844 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16846 # Whether the compiler copes with passing no objects directly.
16847 compiler_needs_object=$lt_compiler_needs_object_CXX
16849 # Create an old-style archive from a shared archive.
16850 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16852 # Create a temporary old-style archive to link instead of a shared archive.
16853 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16855 # Commands used to build a shared archive.
16856 archive_cmds=$lt_archive_cmds_CXX
16857 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16859 # Commands used to build a loadable module if different from building
16860 # a shared archive.
16861 module_cmds=$lt_module_cmds_CXX
16862 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16864 # Whether we are building with GNU ld or not.
16865 with_gnu_ld=$lt_with_gnu_ld_CXX
16867 # Flag that allows shared libraries with undefined symbols to be built.
16868 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16870 # Flag that enforces no undefined symbols.
16871 no_undefined_flag=$lt_no_undefined_flag_CXX
16873 # Flag to hardcode \$libdir into a binary during linking.
16874 # This must work even if \$libdir does not exist
16875 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16877 # If ld is used when linking, flag to hardcode \$libdir into a binary
16878 # during linking. This must work even if \$libdir does not exist.
16879 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16881 # Whether we need a single "-rpath" flag with a separated argument.
16882 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16884 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16885 # DIR into the resulting binary.
16886 hardcode_direct=$hardcode_direct_CXX
16888 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16889 # DIR into the resulting binary and the resulting library dependency is
16890 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16891 # library is relocated.
16892 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16894 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16895 # into the resulting binary.
16896 hardcode_minus_L=$hardcode_minus_L_CXX
16898 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16899 # into the resulting binary.
16900 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16902 # Set to "yes" if building a shared library automatically hardcodes DIR
16903 # into the library and all subsequent libraries and executables linked
16904 # against it.
16905 hardcode_automatic=$hardcode_automatic_CXX
16907 # Set to yes if linker adds runtime paths of dependent libraries
16908 # to runtime path list.
16909 inherit_rpath=$inherit_rpath_CXX
16911 # Whether libtool must link a program against all its dependency libraries.
16912 link_all_deplibs=$link_all_deplibs_CXX
16914 # Fix the shell variable \$srcfile for the compiler.
16915 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16917 # Set to "yes" if exported symbols are required.
16918 always_export_symbols=$always_export_symbols_CXX
16920 # The commands to list exported symbols.
16921 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16923 # Symbols that should not be listed in the preloaded symbols.
16924 exclude_expsyms=$lt_exclude_expsyms_CXX
16926 # Symbols that must always be exported.
16927 include_expsyms=$lt_include_expsyms_CXX
16929 # Commands necessary for linking programs (against libraries) with templates.
16930 prelink_cmds=$lt_prelink_cmds_CXX
16932 # Specify filename containing input files.
16933 file_list_spec=$lt_file_list_spec_CXX
16935 # How to hardcode a shared library path into an executable.
16936 hardcode_action=$hardcode_action_CXX
16938 # The directories searched by this compiler when creating a shared library.
16939 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16941 # Dependencies to place before and after the objects being linked to
16942 # create a shared library.
16943 predep_objects=$lt_predep_objects_CXX
16944 postdep_objects=$lt_postdep_objects_CXX
16945 predeps=$lt_predeps_CXX
16946 postdeps=$lt_postdeps_CXX
16948 # The library search path used internally by the compiler when linking
16949 # a shared library.
16950 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16952 # ### END LIBTOOL TAG CONFIG: CXX
16953 _LT_EOF
16957 esac
16958 done # for ac_tag
16961 as_fn_exit 0
16962 _ACEOF
16963 ac_clean_files=$ac_clean_files_save
16965 test $ac_write_fail = 0 ||
16966 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16969 # configure is writing to config.log, and then calls config.status.
16970 # config.status does its own redirection, appending to config.log.
16971 # Unfortunately, on DOS this fails, as config.log is still kept open
16972 # by configure, so config.status won't be able to write to it; its
16973 # output is simply discarded. So we exec the FD to /dev/null,
16974 # effectively closing config.log, so it can be properly (re)opened and
16975 # appended to by config.status. When coming back to configure, we
16976 # need to make the FD available again.
16977 if test "$no_create" != yes; then
16978 ac_cs_success=:
16979 ac_config_status_args=
16980 test "$silent" = yes &&
16981 ac_config_status_args="$ac_config_status_args --quiet"
16982 exec 5>/dev/null
16983 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16984 exec 5>>config.log
16985 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16986 # would make configure fail if this is the last instruction.
16987 $ac_cs_success || as_fn_exit $?
16989 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16991 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}