PR c++/64359
[official-gcc.git] / liboffloadmic / plugin / configure
blob60189c4d22857c16d3a18226a549806e5d3b920b
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for Intel MIC Offload Plugin 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
174 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
175 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 PATH=/empty FPATH=/empty; export PATH FPATH
178 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
179 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
180 test \$(( 1 + 1 )) = 2 || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='Intel MIC Offload Plugin'
558 PACKAGE_TARNAME='libgomp-plugin-intelmic'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='Intel MIC Offload Plugin 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_subst_vars='am__EXEEXT_FALSE
601 am__EXEEXT_TRUE
602 LTLIBOBJS
603 LIBOBJS
604 toolexeclibdir
605 toolexecdir
606 CXXCPP
608 OTOOL64
609 OTOOL
610 LIPO
611 NMEDIT
612 DSYMUTIL
613 RANLIB
615 OBJDUMP
616 LN_S
618 ac_ct_DUMPBIN
619 DUMPBIN
621 FGREP
622 EGREP
623 GREP
625 LIBTOOL
626 accel_target
627 accel_search_dir
628 PLUGIN_HOST_FALSE
629 PLUGIN_HOST_TRUE
630 multi_basedir
631 am__fastdepCXX_FALSE
632 am__fastdepCXX_TRUE
633 CXXDEPMODE
634 ac_ct_CXX
635 CXXFLAGS
637 am__fastdepCC_FALSE
638 am__fastdepCC_TRUE
639 CCDEPMODE
640 AMDEPBACKSLASH
641 AMDEP_FALSE
642 AMDEP_TRUE
643 am__quote
644 am__include
645 DEPDIR
646 OBJEXT
647 EXEEXT
648 ac_ct_CC
649 CPPFLAGS
650 LDFLAGS
651 CFLAGS
653 MAINT
654 MAINTAINER_MODE_FALSE
655 MAINTAINER_MODE_TRUE
656 am__untar
657 am__tar
658 AMTAR
659 am__leading_dot
660 SET_MAKE
662 mkdir_p
663 MKDIR_P
664 INSTALL_STRIP_PROGRAM
665 STRIP
666 install_sh
667 MAKEINFO
668 AUTOHEADER
669 AUTOMAKE
670 AUTOCONF
671 ACLOCAL
672 VERSION
673 PACKAGE
674 CYGPATH_W
675 am__isrc
676 INSTALL_DATA
677 INSTALL_SCRIPT
678 INSTALL_PROGRAM
679 target_os
680 target_vendor
681 target_cpu
682 target
683 host_os
684 host_vendor
685 host_cpu
686 host
687 build_os
688 build_vendor
689 build_cpu
690 build
691 target_alias
692 host_alias
693 build_alias
694 LIBS
695 ECHO_T
696 ECHO_N
697 ECHO_C
698 DEFS
699 mandir
700 localedir
701 libdir
702 psdir
703 pdfdir
704 dvidir
705 htmldir
706 infodir
707 docdir
708 oldincludedir
709 includedir
710 localstatedir
711 sharedstatedir
712 sysconfdir
713 datadir
714 datarootdir
715 libexecdir
716 sbindir
717 bindir
718 program_transform_name
719 prefix
720 exec_prefix
721 PACKAGE_URL
722 PACKAGE_BUGREPORT
723 PACKAGE_STRING
724 PACKAGE_VERSION
725 PACKAGE_TARNAME
726 PACKAGE_NAME
727 PATH_SEPARATOR
728 SHELL'
729 ac_subst_files=''
730 ac_user_opts='
731 enable_option_checking
732 enable_maintainer_mode
733 enable_dependency_tracking
734 enable_multilib
735 enable_version_specific_runtime_libs
736 enable_shared
737 enable_static
738 with_pic
739 enable_fast_install
740 with_gnu_ld
741 enable_libtool_lock
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
752 CXXFLAGS
755 CXXCPP'
758 # Initialize some variables set by options.
759 ac_init_help=
760 ac_init_version=false
761 ac_unrecognized_opts=
762 ac_unrecognized_sep=
763 # The variables have the same names as the options, with
764 # dashes changed to underlines.
765 cache_file=/dev/null
766 exec_prefix=NONE
767 no_create=
768 no_recursion=
769 prefix=NONE
770 program_prefix=NONE
771 program_suffix=NONE
772 program_transform_name=s,x,x,
773 silent=
774 site=
775 srcdir=
776 verbose=
777 x_includes=NONE
778 x_libraries=NONE
780 # Installation directory options.
781 # These are left unexpanded so users can "make install exec_prefix=/foo"
782 # and all the variables that are supposed to be based on exec_prefix
783 # by default will actually change.
784 # Use braces instead of parens because sh, perl, etc. also accept them.
785 # (The list follows the same order as the GNU Coding Standards.)
786 bindir='${exec_prefix}/bin'
787 sbindir='${exec_prefix}/sbin'
788 libexecdir='${exec_prefix}/libexec'
789 datarootdir='${prefix}/share'
790 datadir='${datarootdir}'
791 sysconfdir='${prefix}/etc'
792 sharedstatedir='${prefix}/com'
793 localstatedir='${prefix}/var'
794 includedir='${prefix}/include'
795 oldincludedir='/usr/include'
796 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
797 infodir='${datarootdir}/info'
798 htmldir='${docdir}'
799 dvidir='${docdir}'
800 pdfdir='${docdir}'
801 psdir='${docdir}'
802 libdir='${exec_prefix}/lib'
803 localedir='${datarootdir}/locale'
804 mandir='${datarootdir}/man'
806 ac_prev=
807 ac_dashdash=
808 for ac_option
810 # If the previous option needs an argument, assign it.
811 if test -n "$ac_prev"; then
812 eval $ac_prev=\$ac_option
813 ac_prev=
814 continue
817 case $ac_option in
818 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 *) ac_optarg=yes ;;
820 esac
822 # Accept the important Cygnus configure options, so we can diagnose typos.
824 case $ac_dashdash$ac_option in
826 ac_dashdash=yes ;;
828 -bindir | --bindir | --bindi | --bind | --bin | --bi)
829 ac_prev=bindir ;;
830 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
831 bindir=$ac_optarg ;;
833 -build | --build | --buil | --bui | --bu)
834 ac_prev=build_alias ;;
835 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
836 build_alias=$ac_optarg ;;
838 -cache-file | --cache-file | --cache-fil | --cache-fi \
839 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
840 ac_prev=cache_file ;;
841 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
842 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
843 cache_file=$ac_optarg ;;
845 --config-cache | -C)
846 cache_file=config.cache ;;
848 -datadir | --datadir | --datadi | --datad)
849 ac_prev=datadir ;;
850 -datadir=* | --datadir=* | --datadi=* | --datad=*)
851 datadir=$ac_optarg ;;
853 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
854 | --dataroo | --dataro | --datar)
855 ac_prev=datarootdir ;;
856 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
857 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
858 datarootdir=$ac_optarg ;;
860 -disable-* | --disable-*)
861 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
862 # Reject names that are not valid shell variable names.
863 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
864 as_fn_error "invalid feature name: $ac_useropt"
865 ac_useropt_orig=$ac_useropt
866 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
867 case $ac_user_opts in
869 "enable_$ac_useropt"
870 "*) ;;
871 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
872 ac_unrecognized_sep=', ';;
873 esac
874 eval enable_$ac_useropt=no ;;
876 -docdir | --docdir | --docdi | --doc | --do)
877 ac_prev=docdir ;;
878 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
879 docdir=$ac_optarg ;;
881 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
882 ac_prev=dvidir ;;
883 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
884 dvidir=$ac_optarg ;;
886 -enable-* | --enable-*)
887 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
888 # Reject names that are not valid shell variable names.
889 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
890 as_fn_error "invalid feature name: $ac_useropt"
891 ac_useropt_orig=$ac_useropt
892 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
893 case $ac_user_opts in
895 "enable_$ac_useropt"
896 "*) ;;
897 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
898 ac_unrecognized_sep=', ';;
899 esac
900 eval enable_$ac_useropt=\$ac_optarg ;;
902 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
903 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
904 | --exec | --exe | --ex)
905 ac_prev=exec_prefix ;;
906 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
907 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
908 | --exec=* | --exe=* | --ex=*)
909 exec_prefix=$ac_optarg ;;
911 -gas | --gas | --ga | --g)
912 # Obsolete; use --with-gas.
913 with_gas=yes ;;
915 -help | --help | --hel | --he | -h)
916 ac_init_help=long ;;
917 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
918 ac_init_help=recursive ;;
919 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
920 ac_init_help=short ;;
922 -host | --host | --hos | --ho)
923 ac_prev=host_alias ;;
924 -host=* | --host=* | --hos=* | --ho=*)
925 host_alias=$ac_optarg ;;
927 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
928 ac_prev=htmldir ;;
929 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
930 | --ht=*)
931 htmldir=$ac_optarg ;;
933 -includedir | --includedir | --includedi | --included | --include \
934 | --includ | --inclu | --incl | --inc)
935 ac_prev=includedir ;;
936 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
937 | --includ=* | --inclu=* | --incl=* | --inc=*)
938 includedir=$ac_optarg ;;
940 -infodir | --infodir | --infodi | --infod | --info | --inf)
941 ac_prev=infodir ;;
942 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
943 infodir=$ac_optarg ;;
945 -libdir | --libdir | --libdi | --libd)
946 ac_prev=libdir ;;
947 -libdir=* | --libdir=* | --libdi=* | --libd=*)
948 libdir=$ac_optarg ;;
950 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
951 | --libexe | --libex | --libe)
952 ac_prev=libexecdir ;;
953 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
954 | --libexe=* | --libex=* | --libe=*)
955 libexecdir=$ac_optarg ;;
957 -localedir | --localedir | --localedi | --localed | --locale)
958 ac_prev=localedir ;;
959 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
960 localedir=$ac_optarg ;;
962 -localstatedir | --localstatedir | --localstatedi | --localstated \
963 | --localstate | --localstat | --localsta | --localst | --locals)
964 ac_prev=localstatedir ;;
965 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
966 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
967 localstatedir=$ac_optarg ;;
969 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
970 ac_prev=mandir ;;
971 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
972 mandir=$ac_optarg ;;
974 -nfp | --nfp | --nf)
975 # Obsolete; use --without-fp.
976 with_fp=no ;;
978 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
979 | --no-cr | --no-c | -n)
980 no_create=yes ;;
982 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
983 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
984 no_recursion=yes ;;
986 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
987 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
988 | --oldin | --oldi | --old | --ol | --o)
989 ac_prev=oldincludedir ;;
990 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
991 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
992 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
993 oldincludedir=$ac_optarg ;;
995 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
996 ac_prev=prefix ;;
997 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
998 prefix=$ac_optarg ;;
1000 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1001 | --program-pre | --program-pr | --program-p)
1002 ac_prev=program_prefix ;;
1003 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1004 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1005 program_prefix=$ac_optarg ;;
1007 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1008 | --program-suf | --program-su | --program-s)
1009 ac_prev=program_suffix ;;
1010 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1011 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1012 program_suffix=$ac_optarg ;;
1014 -program-transform-name | --program-transform-name \
1015 | --program-transform-nam | --program-transform-na \
1016 | --program-transform-n | --program-transform- \
1017 | --program-transform | --program-transfor \
1018 | --program-transfo | --program-transf \
1019 | --program-trans | --program-tran \
1020 | --progr-tra | --program-tr | --program-t)
1021 ac_prev=program_transform_name ;;
1022 -program-transform-name=* | --program-transform-name=* \
1023 | --program-transform-nam=* | --program-transform-na=* \
1024 | --program-transform-n=* | --program-transform-=* \
1025 | --program-transform=* | --program-transfor=* \
1026 | --program-transfo=* | --program-transf=* \
1027 | --program-trans=* | --program-tran=* \
1028 | --progr-tra=* | --program-tr=* | --program-t=*)
1029 program_transform_name=$ac_optarg ;;
1031 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1032 ac_prev=pdfdir ;;
1033 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1034 pdfdir=$ac_optarg ;;
1036 -psdir | --psdir | --psdi | --psd | --ps)
1037 ac_prev=psdir ;;
1038 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1039 psdir=$ac_optarg ;;
1041 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1042 | -silent | --silent | --silen | --sile | --sil)
1043 silent=yes ;;
1045 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1046 ac_prev=sbindir ;;
1047 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1048 | --sbi=* | --sb=*)
1049 sbindir=$ac_optarg ;;
1051 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1052 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1053 | --sharedst | --shareds | --shared | --share | --shar \
1054 | --sha | --sh)
1055 ac_prev=sharedstatedir ;;
1056 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1057 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1058 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1059 | --sha=* | --sh=*)
1060 sharedstatedir=$ac_optarg ;;
1062 -site | --site | --sit)
1063 ac_prev=site ;;
1064 -site=* | --site=* | --sit=*)
1065 site=$ac_optarg ;;
1067 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1068 ac_prev=srcdir ;;
1069 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1070 srcdir=$ac_optarg ;;
1072 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1073 | --syscon | --sysco | --sysc | --sys | --sy)
1074 ac_prev=sysconfdir ;;
1075 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1076 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1077 sysconfdir=$ac_optarg ;;
1079 -target | --target | --targe | --targ | --tar | --ta | --t)
1080 ac_prev=target_alias ;;
1081 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1082 target_alias=$ac_optarg ;;
1084 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1085 verbose=yes ;;
1087 -version | --version | --versio | --versi | --vers | -V)
1088 ac_init_version=: ;;
1090 -with-* | --with-*)
1091 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1092 # Reject names that are not valid shell variable names.
1093 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1094 as_fn_error "invalid package name: $ac_useropt"
1095 ac_useropt_orig=$ac_useropt
1096 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1097 case $ac_user_opts in
1099 "with_$ac_useropt"
1100 "*) ;;
1101 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1102 ac_unrecognized_sep=', ';;
1103 esac
1104 eval with_$ac_useropt=\$ac_optarg ;;
1106 -without-* | --without-*)
1107 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1108 # Reject names that are not valid shell variable names.
1109 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1110 as_fn_error "invalid package name: $ac_useropt"
1111 ac_useropt_orig=$ac_useropt
1112 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1113 case $ac_user_opts in
1115 "with_$ac_useropt"
1116 "*) ;;
1117 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1118 ac_unrecognized_sep=', ';;
1119 esac
1120 eval with_$ac_useropt=no ;;
1122 --x)
1123 # Obsolete; use --with-x.
1124 with_x=yes ;;
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1131 x_includes=$ac_optarg ;;
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1138 x_libraries=$ac_optarg ;;
1140 -*) as_fn_error "unrecognized option: \`$ac_option'
1141 Try \`$0 --help' for more information."
1144 *=*)
1145 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1146 # Reject names that are not valid shell variable names.
1147 case $ac_envvar in #(
1148 '' | [0-9]* | *[!_$as_cr_alnum]* )
1149 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1150 esac
1151 eval $ac_envvar=\$ac_optarg
1152 export $ac_envvar ;;
1155 # FIXME: should be removed in autoconf 3.0.
1156 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1162 esac
1163 done
1165 if test -n "$ac_prev"; then
1166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 as_fn_error "missing argument to $ac_option"
1170 if test -n "$ac_unrecognized_opts"; then
1171 case $enable_option_checking in
1172 no) ;;
1173 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1174 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1175 esac
1178 # Check all directory arguments for consistency.
1179 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1180 datadir sysconfdir sharedstatedir localstatedir includedir \
1181 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1182 libdir localedir mandir
1184 eval ac_val=\$$ac_var
1185 # Remove trailing slashes.
1186 case $ac_val in
1187 */ )
1188 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1189 eval $ac_var=\$ac_val;;
1190 esac
1191 # Be sure to have absolute directory names.
1192 case $ac_val in
1193 [\\/$]* | ?:[\\/]* ) continue;;
1194 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1195 esac
1196 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1197 done
1199 # There might be people who depend on the old broken behavior: `$host'
1200 # used to hold the argument of --host etc.
1201 # FIXME: To remove some day.
1202 build=$build_alias
1203 host=$host_alias
1204 target=$target_alias
1206 # FIXME: To remove some day.
1207 if test "x$host_alias" != x; then
1208 if test "x$build_alias" = x; then
1209 cross_compiling=maybe
1210 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1211 If a cross compiler is detected then cross compile mode will be used." >&2
1212 elif test "x$build_alias" != "x$host_alias"; then
1213 cross_compiling=yes
1217 ac_tool_prefix=
1218 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1220 test "$silent" = yes && exec 6>/dev/null
1223 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1224 ac_ls_di=`ls -di .` &&
1225 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1226 as_fn_error "working directory cannot be determined"
1227 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1228 as_fn_error "pwd does not report name of working directory"
1231 # Find the source files, if location was not specified.
1232 if test -z "$srcdir"; then
1233 ac_srcdir_defaulted=yes
1234 # Try the directory containing this script, then the parent directory.
1235 ac_confdir=`$as_dirname -- "$as_myself" ||
1236 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1237 X"$as_myself" : 'X\(//\)[^/]' \| \
1238 X"$as_myself" : 'X\(//\)$' \| \
1239 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1240 $as_echo X"$as_myself" |
1241 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1242 s//\1/
1245 /^X\(\/\/\)[^/].*/{
1246 s//\1/
1249 /^X\(\/\/\)$/{
1250 s//\1/
1253 /^X\(\/\).*/{
1254 s//\1/
1257 s/.*/./; q'`
1258 srcdir=$ac_confdir
1259 if test ! -r "$srcdir/$ac_unique_file"; then
1260 srcdir=..
1262 else
1263 ac_srcdir_defaulted=no
1265 if test ! -r "$srcdir/$ac_unique_file"; then
1266 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1267 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1269 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1270 ac_abs_confdir=`(
1271 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1272 pwd)`
1273 # When building in place, set srcdir=.
1274 if test "$ac_abs_confdir" = "$ac_pwd"; then
1275 srcdir=.
1277 # Remove unnecessary trailing slashes from srcdir.
1278 # Double slashes in file names in object file debugging info
1279 # mess up M-x gdb in Emacs.
1280 case $srcdir in
1281 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1282 esac
1283 for ac_var in $ac_precious_vars; do
1284 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1285 eval ac_env_${ac_var}_value=\$${ac_var}
1286 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1287 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1288 done
1291 # Report the --help message.
1293 if test "$ac_init_help" = "long"; then
1294 # Omit some internal or obsolete options to make the list less imposing.
1295 # This message is too long to be a string in the A/UX 3.1 sh.
1296 cat <<_ACEOF
1297 \`configure' configures Intel MIC Offload Plugin 1.0 to adapt to many kinds of systems.
1299 Usage: $0 [OPTION]... [VAR=VALUE]...
1301 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1302 VAR=VALUE. See below for descriptions of some of the useful variables.
1304 Defaults for the options are specified in brackets.
1306 Configuration:
1307 -h, --help display this help and exit
1308 --help=short display options specific to this package
1309 --help=recursive display the short help of all the included packages
1310 -V, --version display version information and exit
1311 -q, --quiet, --silent do not print \`checking...' messages
1312 --cache-file=FILE cache test results in FILE [disabled]
1313 -C, --config-cache alias for \`--cache-file=config.cache'
1314 -n, --no-create do not create output files
1315 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1317 Installation directories:
1318 --prefix=PREFIX install architecture-independent files in PREFIX
1319 [$ac_default_prefix]
1320 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1321 [PREFIX]
1323 By default, \`make install' will install all the files in
1324 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1325 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1326 for instance \`--prefix=\$HOME'.
1328 For better control, use the options below.
1330 Fine tuning of the installation directories:
1331 --bindir=DIR user executables [EPREFIX/bin]
1332 --sbindir=DIR system admin executables [EPREFIX/sbin]
1333 --libexecdir=DIR program executables [EPREFIX/libexec]
1334 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1335 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1336 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1337 --libdir=DIR object code libraries [EPREFIX/lib]
1338 --includedir=DIR C header files [PREFIX/include]
1339 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1340 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1341 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1342 --infodir=DIR info documentation [DATAROOTDIR/info]
1343 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1344 --mandir=DIR man documentation [DATAROOTDIR/man]
1345 --docdir=DIR documentation root
1346 [DATAROOTDIR/doc/libgomp-plugin-intelmic]
1347 --htmldir=DIR html documentation [DOCDIR]
1348 --dvidir=DIR dvi documentation [DOCDIR]
1349 --pdfdir=DIR pdf documentation [DOCDIR]
1350 --psdir=DIR ps documentation [DOCDIR]
1351 _ACEOF
1353 cat <<\_ACEOF
1355 Program names:
1356 --program-prefix=PREFIX prepend PREFIX to installed program names
1357 --program-suffix=SUFFIX append SUFFIX to installed program names
1358 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1360 System types:
1361 --build=BUILD configure for building on BUILD [guessed]
1362 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1363 --target=TARGET configure for building compilers for TARGET [HOST]
1364 _ACEOF
1367 if test -n "$ac_init_help"; then
1368 case $ac_init_help in
1369 short | recursive ) echo "Configuration of Intel MIC Offload Plugin 1.0:";;
1370 esac
1371 cat <<\_ACEOF
1373 Optional Features:
1374 --disable-option-checking ignore unrecognized --enable/--with options
1375 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1376 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1377 --enable-maintainer-mode enable make rules and dependencies not useful
1378 (and sometimes confusing) to the casual installer
1379 --disable-dependency-tracking speeds up one-time build
1380 --enable-dependency-tracking do not reject slow dependency extractors
1381 --enable-multilib build many library versions (default)
1382 --enable-version-specific-runtime-libs
1383 Specify that runtime libraries should be installed
1384 in a compiler-specific directory
1385 --enable-shared[=PKGS] build shared libraries [default=yes]
1386 --enable-static[=PKGS] build static libraries [default=yes]
1387 --enable-fast-install[=PKGS]
1388 optimize for fast installation [default=yes]
1389 --disable-libtool-lock avoid locking (might break parallel builds)
1391 Optional Packages:
1392 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1393 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1394 --with-pic try to use only PIC/non-PIC objects [default=use
1395 both]
1396 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1398 Some influential environment variables:
1399 CC C compiler command
1400 CFLAGS C compiler flags
1401 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1402 nonstandard directory <lib dir>
1403 LIBS libraries to pass to the linker, e.g. -l<library>
1404 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1405 you have headers in a nonstandard directory <include dir>
1406 CXX C++ compiler command
1407 CXXFLAGS C++ compiler flags
1408 CPP C preprocessor
1409 CXXCPP C++ preprocessor
1411 Use these variables to override the choices made by `configure' or to help
1412 it to find libraries and programs with nonstandard names/locations.
1414 Report bugs to the package provider.
1415 _ACEOF
1416 ac_status=$?
1419 if test "$ac_init_help" = "recursive"; then
1420 # If there are subdirs, report their specific --help.
1421 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1422 test -d "$ac_dir" ||
1423 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1424 continue
1425 ac_builddir=.
1427 case "$ac_dir" in
1428 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1430 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1431 # A ".." for each directory in $ac_dir_suffix.
1432 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1433 case $ac_top_builddir_sub in
1434 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1435 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1436 esac ;;
1437 esac
1438 ac_abs_top_builddir=$ac_pwd
1439 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1440 # for backward compatibility:
1441 ac_top_builddir=$ac_top_build_prefix
1443 case $srcdir in
1444 .) # We are building in place.
1445 ac_srcdir=.
1446 ac_top_srcdir=$ac_top_builddir_sub
1447 ac_abs_top_srcdir=$ac_pwd ;;
1448 [\\/]* | ?:[\\/]* ) # Absolute name.
1449 ac_srcdir=$srcdir$ac_dir_suffix;
1450 ac_top_srcdir=$srcdir
1451 ac_abs_top_srcdir=$srcdir ;;
1452 *) # Relative name.
1453 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1454 ac_top_srcdir=$ac_top_build_prefix$srcdir
1455 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1456 esac
1457 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1459 cd "$ac_dir" || { ac_status=$?; continue; }
1460 # Check for guested configure.
1461 if test -f "$ac_srcdir/configure.gnu"; then
1462 echo &&
1463 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1464 elif test -f "$ac_srcdir/configure"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure" --help=recursive
1467 else
1468 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1469 fi || ac_status=$?
1470 cd "$ac_pwd" || { ac_status=$?; break; }
1471 done
1474 test -n "$ac_init_help" && exit $ac_status
1475 if $ac_init_version; then
1476 cat <<\_ACEOF
1477 Intel MIC Offload Plugin configure 1.0
1478 generated by GNU Autoconf 2.64
1480 Copyright (C) 2009 Free Software Foundation, Inc.
1481 This configure script is free software; the Free Software Foundation
1482 gives unlimited permission to copy, distribute and modify it.
1483 _ACEOF
1484 exit
1487 ## ------------------------ ##
1488 ## Autoconf initialization. ##
1489 ## ------------------------ ##
1491 # ac_fn_c_try_compile LINENO
1492 # --------------------------
1493 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1494 ac_fn_c_try_compile ()
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 rm -f conftest.$ac_objext
1498 if { { ac_try="$ac_compile"
1499 case "(($ac_try" in
1500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1501 *) ac_try_echo=$ac_try;;
1502 esac
1503 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1504 $as_echo "$ac_try_echo"; } >&5
1505 (eval "$ac_compile") 2>conftest.err
1506 ac_status=$?
1507 if test -s conftest.err; then
1508 grep -v '^ *+' conftest.err >conftest.er1
1509 cat conftest.er1 >&5
1510 mv -f conftest.er1 conftest.err
1512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1513 test $ac_status = 0; } && {
1514 test -z "$ac_c_werror_flag" ||
1515 test ! -s conftest.err
1516 } && test -s conftest.$ac_objext; then :
1517 ac_retval=0
1518 else
1519 $as_echo "$as_me: failed program was:" >&5
1520 sed 's/^/| /' conftest.$ac_ext >&5
1522 ac_retval=1
1524 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1525 return $ac_retval
1527 } # ac_fn_c_try_compile
1529 # ac_fn_cxx_try_compile LINENO
1530 # ----------------------------
1531 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1532 ac_fn_cxx_try_compile ()
1534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1535 rm -f conftest.$ac_objext
1536 if { { ac_try="$ac_compile"
1537 case "(($ac_try" in
1538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1539 *) ac_try_echo=$ac_try;;
1540 esac
1541 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1542 $as_echo "$ac_try_echo"; } >&5
1543 (eval "$ac_compile") 2>conftest.err
1544 ac_status=$?
1545 if test -s conftest.err; then
1546 grep -v '^ *+' conftest.err >conftest.er1
1547 cat conftest.er1 >&5
1548 mv -f conftest.er1 conftest.err
1550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1551 test $ac_status = 0; } && {
1552 test -z "$ac_cxx_werror_flag" ||
1553 test ! -s conftest.err
1554 } && test -s conftest.$ac_objext; then :
1555 ac_retval=0
1556 else
1557 $as_echo "$as_me: failed program was:" >&5
1558 sed 's/^/| /' conftest.$ac_ext >&5
1560 ac_retval=1
1562 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1563 return $ac_retval
1565 } # ac_fn_cxx_try_compile
1567 # ac_fn_c_try_link LINENO
1568 # -----------------------
1569 # Try to link conftest.$ac_ext, and return whether this succeeded.
1570 ac_fn_c_try_link ()
1572 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1573 rm -f conftest.$ac_objext conftest$ac_exeext
1574 if { { ac_try="$ac_link"
1575 case "(($ac_try" in
1576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1577 *) ac_try_echo=$ac_try;;
1578 esac
1579 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1580 $as_echo "$ac_try_echo"; } >&5
1581 (eval "$ac_link") 2>conftest.err
1582 ac_status=$?
1583 if test -s conftest.err; then
1584 grep -v '^ *+' conftest.err >conftest.er1
1585 cat conftest.er1 >&5
1586 mv -f conftest.er1 conftest.err
1588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1589 test $ac_status = 0; } && {
1590 test -z "$ac_c_werror_flag" ||
1591 test ! -s conftest.err
1592 } && test -s conftest$ac_exeext && {
1593 test "$cross_compiling" = yes ||
1594 $as_test_x conftest$ac_exeext
1595 }; then :
1596 ac_retval=0
1597 else
1598 $as_echo "$as_me: failed program was:" >&5
1599 sed 's/^/| /' conftest.$ac_ext >&5
1601 ac_retval=1
1603 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1604 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1605 # interfere with the next link command; also delete a directory that is
1606 # left behind by Apple's compiler. We do this before executing the actions.
1607 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1608 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1609 return $ac_retval
1611 } # ac_fn_c_try_link
1613 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1614 # -------------------------------------------------------
1615 # Tests whether HEADER exists and can be compiled using the include files in
1616 # INCLUDES, setting the cache variable VAR accordingly.
1617 ac_fn_c_check_header_compile ()
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1621 $as_echo_n "checking for $2... " >&6; }
1622 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1623 $as_echo_n "(cached) " >&6
1624 else
1625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1626 /* end confdefs.h. */
1628 #include <$2>
1629 _ACEOF
1630 if ac_fn_c_try_compile "$LINENO"; then :
1631 eval "$3=yes"
1632 else
1633 eval "$3=no"
1635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1637 eval ac_res=\$$3
1638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1639 $as_echo "$ac_res" >&6; }
1640 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642 } # ac_fn_c_check_header_compile
1644 # ac_fn_c_try_cpp LINENO
1645 # ----------------------
1646 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1647 ac_fn_c_try_cpp ()
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 if { { ac_try="$ac_cpp conftest.$ac_ext"
1651 case "(($ac_try" in
1652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1653 *) ac_try_echo=$ac_try;;
1654 esac
1655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1656 $as_echo "$ac_try_echo"; } >&5
1657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1658 ac_status=$?
1659 if test -s conftest.err; then
1660 grep -v '^ *+' conftest.err >conftest.er1
1661 cat conftest.er1 >&5
1662 mv -f conftest.er1 conftest.err
1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1665 test $ac_status = 0; } >/dev/null && {
1666 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1667 test ! -s conftest.err
1668 }; then :
1669 ac_retval=0
1670 else
1671 $as_echo "$as_me: failed program was:" >&5
1672 sed 's/^/| /' conftest.$ac_ext >&5
1674 ac_retval=1
1676 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1677 return $ac_retval
1679 } # ac_fn_c_try_cpp
1681 # ac_fn_c_try_run LINENO
1682 # ----------------------
1683 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1684 # that executables *can* be run.
1685 ac_fn_c_try_run ()
1687 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688 if { { ac_try="$ac_link"
1689 case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692 esac
1693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694 $as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_link") 2>&5
1696 ac_status=$?
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1698 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1699 { { case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_try") 2>&5
1706 ac_status=$?
1707 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1708 test $ac_status = 0; }; }; then :
1709 ac_retval=0
1710 else
1711 $as_echo "$as_me: program exited with status $ac_status" >&5
1712 $as_echo "$as_me: failed program was:" >&5
1713 sed 's/^/| /' conftest.$ac_ext >&5
1715 ac_retval=$ac_status
1717 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1718 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1719 return $ac_retval
1721 } # ac_fn_c_try_run
1723 # ac_fn_c_check_func LINENO FUNC VAR
1724 # ----------------------------------
1725 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1726 ac_fn_c_check_func ()
1728 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730 $as_echo_n "checking for $2... " >&6; }
1731 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1732 $as_echo_n "(cached) " >&6
1733 else
1734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1735 /* end confdefs.h. */
1736 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1738 #define $2 innocuous_$2
1740 /* System header to define __stub macros and hopefully few prototypes,
1741 which can conflict with char $2 (); below.
1742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1743 <limits.h> exists even on freestanding compilers. */
1745 #ifdef __STDC__
1746 # include <limits.h>
1747 #else
1748 # include <assert.h>
1749 #endif
1751 #undef $2
1753 /* Override any GCC internal prototype to avoid an error.
1754 Use char because int might match the return type of a GCC
1755 builtin and then its argument prototype would still apply. */
1756 #ifdef __cplusplus
1757 extern "C"
1758 #endif
1759 char $2 ();
1760 /* The GNU C library defines this for functions which it implements
1761 to always fail with ENOSYS. Some functions are actually named
1762 something starting with __ and the normal name is an alias. */
1763 #if defined __stub_$2 || defined __stub___$2
1764 choke me
1765 #endif
1768 main ()
1770 return $2 ();
1772 return 0;
1774 _ACEOF
1775 if ac_fn_c_try_link "$LINENO"; then :
1776 eval "$3=yes"
1777 else
1778 eval "$3=no"
1780 rm -f core conftest.err conftest.$ac_objext \
1781 conftest$ac_exeext conftest.$ac_ext
1783 eval ac_res=\$$3
1784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1785 $as_echo "$ac_res" >&6; }
1786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1788 } # ac_fn_c_check_func
1790 # ac_fn_cxx_try_cpp LINENO
1791 # ------------------------
1792 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1793 ac_fn_cxx_try_cpp ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_cpp conftest.$ac_ext"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1804 ac_status=$?
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } >/dev/null && {
1812 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1813 test ! -s conftest.err
1814 }; then :
1815 ac_retval=0
1816 else
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1820 ac_retval=1
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 return $ac_retval
1825 } # ac_fn_cxx_try_cpp
1827 # ac_fn_cxx_try_link LINENO
1828 # -------------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1830 ac_fn_cxx_try_link ()
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1835 case "(($ac_try" in
1836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1837 *) ac_try_echo=$ac_try;;
1838 esac
1839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1842 ac_status=$?
1843 if test -s conftest.err; then
1844 grep -v '^ *+' conftest.err >conftest.er1
1845 cat conftest.er1 >&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_cxx_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 $as_test_x conftest$ac_exeext
1855 }; then :
1856 ac_retval=0
1857 else
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.$ac_ext >&5
1861 ac_retval=1
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1869 return $ac_retval
1871 } # ac_fn_cxx_try_link
1872 cat >config.log <<_ACEOF
1873 This file contains any messages produced by compilers while
1874 running configure, to aid debugging if configure makes a mistake.
1876 It was created by Intel MIC Offload Plugin $as_me 1.0, which was
1877 generated by GNU Autoconf 2.64. Invocation command line was
1879 $ $0 $@
1881 _ACEOF
1882 exec 5>>config.log
1884 cat <<_ASUNAME
1885 ## --------- ##
1886 ## Platform. ##
1887 ## --------- ##
1889 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1890 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1891 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1892 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1893 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1895 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1896 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1898 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1899 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1900 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1901 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1902 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1903 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1904 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1906 _ASUNAME
1908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1909 for as_dir in $PATH
1911 IFS=$as_save_IFS
1912 test -z "$as_dir" && as_dir=.
1913 $as_echo "PATH: $as_dir"
1914 done
1915 IFS=$as_save_IFS
1917 } >&5
1919 cat >&5 <<_ACEOF
1922 ## ----------- ##
1923 ## Core tests. ##
1924 ## ----------- ##
1926 _ACEOF
1929 # Keep a trace of the command line.
1930 # Strip out --no-create and --no-recursion so they do not pile up.
1931 # Strip out --silent because we don't want to record it for future runs.
1932 # Also quote any args containing shell meta-characters.
1933 # Make two passes to allow for proper duplicate-argument suppression.
1934 ac_configure_args=
1935 ac_configure_args0=
1936 ac_configure_args1=
1937 ac_must_keep_next=false
1938 for ac_pass in 1 2
1940 for ac_arg
1942 case $ac_arg in
1943 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1944 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1945 | -silent | --silent | --silen | --sile | --sil)
1946 continue ;;
1947 *\'*)
1948 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1949 esac
1950 case $ac_pass in
1951 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1953 as_fn_append ac_configure_args1 " '$ac_arg'"
1954 if test $ac_must_keep_next = true; then
1955 ac_must_keep_next=false # Got value, back to normal.
1956 else
1957 case $ac_arg in
1958 *=* | --config-cache | -C | -disable-* | --disable-* \
1959 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1960 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1961 | -with-* | --with-* | -without-* | --without-* | --x)
1962 case "$ac_configure_args0 " in
1963 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1964 esac
1966 -* ) ac_must_keep_next=true ;;
1967 esac
1969 as_fn_append ac_configure_args " '$ac_arg'"
1971 esac
1972 done
1973 done
1974 { ac_configure_args0=; unset ac_configure_args0;}
1975 { ac_configure_args1=; unset ac_configure_args1;}
1977 # When interrupted or exit'd, cleanup temporary files, and complete
1978 # config.log. We remove comments because anyway the quotes in there
1979 # would cause problems or look ugly.
1980 # WARNING: Use '\'' to represent an apostrophe within the trap.
1981 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1982 trap 'exit_status=$?
1983 # Save into config.log some information that might help in debugging.
1985 echo
1987 cat <<\_ASBOX
1988 ## ---------------- ##
1989 ## Cache variables. ##
1990 ## ---------------- ##
1991 _ASBOX
1992 echo
1993 # The following way of writing the cache mishandles newlines in values,
1995 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1996 eval ac_val=\$$ac_var
1997 case $ac_val in #(
1998 *${as_nl}*)
1999 case $ac_var in #(
2000 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2001 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2002 esac
2003 case $ac_var in #(
2004 _ | IFS | as_nl) ;; #(
2005 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2006 *) { eval $ac_var=; unset $ac_var;} ;;
2007 esac ;;
2008 esac
2009 done
2010 (set) 2>&1 |
2011 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2012 *${as_nl}ac_space=\ *)
2013 sed -n \
2014 "s/'\''/'\''\\\\'\'''\''/g;
2015 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2016 ;; #(
2018 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2020 esac |
2021 sort
2023 echo
2025 cat <<\_ASBOX
2026 ## ----------------- ##
2027 ## Output variables. ##
2028 ## ----------------- ##
2029 _ASBOX
2030 echo
2031 for ac_var in $ac_subst_vars
2033 eval ac_val=\$$ac_var
2034 case $ac_val in
2035 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2036 esac
2037 $as_echo "$ac_var='\''$ac_val'\''"
2038 done | sort
2039 echo
2041 if test -n "$ac_subst_files"; then
2042 cat <<\_ASBOX
2043 ## ------------------- ##
2044 ## File substitutions. ##
2045 ## ------------------- ##
2046 _ASBOX
2047 echo
2048 for ac_var in $ac_subst_files
2050 eval ac_val=\$$ac_var
2051 case $ac_val in
2052 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2053 esac
2054 $as_echo "$ac_var='\''$ac_val'\''"
2055 done | sort
2056 echo
2059 if test -s confdefs.h; then
2060 cat <<\_ASBOX
2061 ## ----------- ##
2062 ## confdefs.h. ##
2063 ## ----------- ##
2064 _ASBOX
2065 echo
2066 cat confdefs.h
2067 echo
2069 test "$ac_signal" != 0 &&
2070 $as_echo "$as_me: caught signal $ac_signal"
2071 $as_echo "$as_me: exit $exit_status"
2072 } >&5
2073 rm -f core *.core core.conftest.* &&
2074 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2075 exit $exit_status
2077 for ac_signal in 1 2 13 15; do
2078 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2079 done
2080 ac_signal=0
2082 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2083 rm -f -r conftest* confdefs.h
2085 $as_echo "/* confdefs.h */" > confdefs.h
2087 # Predefined preprocessor variables.
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_NAME "$PACKAGE_NAME"
2091 _ACEOF
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2095 _ACEOF
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2099 _ACEOF
2101 cat >>confdefs.h <<_ACEOF
2102 #define PACKAGE_STRING "$PACKAGE_STRING"
2103 _ACEOF
2105 cat >>confdefs.h <<_ACEOF
2106 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2107 _ACEOF
2109 cat >>confdefs.h <<_ACEOF
2110 #define PACKAGE_URL "$PACKAGE_URL"
2111 _ACEOF
2114 # Let the site file select an alternate cache file if it wants to.
2115 # Prefer an explicitly selected file to automatically selected ones.
2116 ac_site_file1=NONE
2117 ac_site_file2=NONE
2118 if test -n "$CONFIG_SITE"; then
2119 ac_site_file1=$CONFIG_SITE
2120 elif test "x$prefix" != xNONE; then
2121 ac_site_file1=$prefix/share/config.site
2122 ac_site_file2=$prefix/etc/config.site
2123 else
2124 ac_site_file1=$ac_default_prefix/share/config.site
2125 ac_site_file2=$ac_default_prefix/etc/config.site
2127 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2129 test "x$ac_site_file" = xNONE && continue
2130 if test -r "$ac_site_file"; then
2131 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2132 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2133 sed 's/^/| /' "$ac_site_file" >&5
2134 . "$ac_site_file"
2136 done
2138 if test -r "$cache_file"; then
2139 # Some versions of bash will fail to source /dev/null (special
2140 # files actually), so we avoid doing that.
2141 if test -f "$cache_file"; then
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2143 $as_echo "$as_me: loading cache $cache_file" >&6;}
2144 case $cache_file in
2145 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2146 *) . "./$cache_file";;
2147 esac
2149 else
2150 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2151 $as_echo "$as_me: creating cache $cache_file" >&6;}
2152 >$cache_file
2155 # Check that the precious variables saved in the cache have kept the same
2156 # value.
2157 ac_cache_corrupted=false
2158 for ac_var in $ac_precious_vars; do
2159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2160 eval ac_new_set=\$ac_env_${ac_var}_set
2161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2162 eval ac_new_val=\$ac_env_${ac_var}_value
2163 case $ac_old_set,$ac_new_set in
2164 set,)
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2166 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2167 ac_cache_corrupted=: ;;
2168 ,set)
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2170 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2171 ac_cache_corrupted=: ;;
2172 ,);;
2174 if test "x$ac_old_val" != "x$ac_new_val"; then
2175 # differences in whitespace do not lead to failure.
2176 ac_old_val_w=`echo x $ac_old_val`
2177 ac_new_val_w=`echo x $ac_new_val`
2178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2180 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2181 ac_cache_corrupted=:
2182 else
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2184 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2185 eval $ac_var=\$ac_old_val
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2188 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2190 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2191 fi;;
2192 esac
2193 # Pass precious variables to config.status.
2194 if test "$ac_new_set" = set; then
2195 case $ac_new_val in
2196 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2197 *) ac_arg=$ac_var=$ac_new_val ;;
2198 esac
2199 case " $ac_configure_args " in
2200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202 esac
2204 done
2205 if $ac_cache_corrupted; then
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2209 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2210 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2212 ## -------------------- ##
2213 ## Main body of script. ##
2214 ## -------------------- ##
2216 ac_ext=c
2217 ac_cpp='$CPP $CPPFLAGS'
2218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2227 ac_aux_dir=
2228 for ac_dir in ../.. "$srcdir"/../..; do
2229 for ac_t in install-sh install.sh shtool; do
2230 if test -f "$ac_dir/$ac_t"; then
2231 ac_aux_dir=$ac_dir
2232 ac_install_sh="$ac_aux_dir/$ac_t -c"
2233 break 2
2235 done
2236 done
2237 if test -z "$ac_aux_dir"; then
2238 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2241 # These three variables are undocumented and unsupported,
2242 # and are intended to be withdrawn in a future Autoconf release.
2243 # They can cause serious problems if a builder's source tree is in a directory
2244 # whose full name contains unusual characters.
2245 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2246 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2247 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2251 # Make sure we can run config.sub.
2252 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2253 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2256 $as_echo_n "checking build system type... " >&6; }
2257 if test "${ac_cv_build+set}" = set; then :
2258 $as_echo_n "(cached) " >&6
2259 else
2260 ac_build_alias=$build_alias
2261 test "x$ac_build_alias" = x &&
2262 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2263 test "x$ac_build_alias" = x &&
2264 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2265 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2266 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2270 $as_echo "$ac_cv_build" >&6; }
2271 case $ac_cv_build in
2272 *-*-*) ;;
2273 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2274 esac
2275 build=$ac_cv_build
2276 ac_save_IFS=$IFS; IFS='-'
2277 set x $ac_cv_build
2278 shift
2279 build_cpu=$1
2280 build_vendor=$2
2281 shift; shift
2282 # Remember, the first character of IFS is used to create $*,
2283 # except with old shells:
2284 build_os=$*
2285 IFS=$ac_save_IFS
2286 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2290 $as_echo_n "checking host system type... " >&6; }
2291 if test "${ac_cv_host+set}" = set; then :
2292 $as_echo_n "(cached) " >&6
2293 else
2294 if test "x$host_alias" = x; then
2295 ac_cv_host=$ac_cv_build
2296 else
2297 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2298 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2303 $as_echo "$ac_cv_host" >&6; }
2304 case $ac_cv_host in
2305 *-*-*) ;;
2306 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2307 esac
2308 host=$ac_cv_host
2309 ac_save_IFS=$IFS; IFS='-'
2310 set x $ac_cv_host
2311 shift
2312 host_cpu=$1
2313 host_vendor=$2
2314 shift; shift
2315 # Remember, the first character of IFS is used to create $*,
2316 # except with old shells:
2317 host_os=$*
2318 IFS=$ac_save_IFS
2319 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2323 $as_echo_n "checking target system type... " >&6; }
2324 if test "${ac_cv_target+set}" = set; then :
2325 $as_echo_n "(cached) " >&6
2326 else
2327 if test "x$target_alias" = x; then
2328 ac_cv_target=$ac_cv_host
2329 else
2330 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2331 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2336 $as_echo "$ac_cv_target" >&6; }
2337 case $ac_cv_target in
2338 *-*-*) ;;
2339 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2340 esac
2341 target=$ac_cv_target
2342 ac_save_IFS=$IFS; IFS='-'
2343 set x $ac_cv_target
2344 shift
2345 target_cpu=$1
2346 target_vendor=$2
2347 shift; shift
2348 # Remember, the first character of IFS is used to create $*,
2349 # except with old shells:
2350 target_os=$*
2351 IFS=$ac_save_IFS
2352 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2355 # The aliases save the names the user supplied, while $host etc.
2356 # will get canonicalized.
2357 test -n "$target_alias" &&
2358 test "$program_prefix$program_suffix$program_transform_name" = \
2359 NONENONEs,x,x, &&
2360 program_prefix=${target_alias}-
2362 target_alias=${target_alias-$host_alias}
2365 am__api_version='1.11'
2367 # Find a good install program. We prefer a C program (faster),
2368 # so one script is as good as another. But avoid the broken or
2369 # incompatible versions:
2370 # SysV /etc/install, /usr/sbin/install
2371 # SunOS /usr/etc/install
2372 # IRIX /sbin/install
2373 # AIX /bin/install
2374 # AmigaOS /C/install, which installs bootblocks on floppy discs
2375 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2376 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2377 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2378 # OS/2's system install, which has a completely different semantic
2379 # ./install, which can be erroneously created by make from ./install.sh.
2380 # Reject install programs that cannot install multiple files.
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2382 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2383 if test -z "$INSTALL"; then
2384 if test "${ac_cv_path_install+set}" = set; then :
2385 $as_echo_n "(cached) " >&6
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2390 IFS=$as_save_IFS
2391 test -z "$as_dir" && as_dir=.
2392 # Account for people who put trailing slashes in PATH elements.
2393 case $as_dir/ in #((
2394 ./ | .// | /[cC]/* | \
2395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2396 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2397 /usr/ucb/* ) ;;
2399 # OSF1 and SCO ODT 3.0 have their own names for install.
2400 # Don't use installbsd from OSF since it installs stuff as root
2401 # by default.
2402 for ac_prog in ginstall scoinst install; do
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2405 if test $ac_prog = install &&
2406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2407 # AIX install. It has an incompatible calling convention.
2409 elif test $ac_prog = install &&
2410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2411 # program-specific install script used by HP pwplus--don't use.
2413 else
2414 rm -rf conftest.one conftest.two conftest.dir
2415 echo one > conftest.one
2416 echo two > conftest.two
2417 mkdir conftest.dir
2418 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2419 test -s conftest.one && test -s conftest.two &&
2420 test -s conftest.dir/conftest.one &&
2421 test -s conftest.dir/conftest.two
2422 then
2423 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2424 break 3
2428 done
2429 done
2431 esac
2433 done
2434 IFS=$as_save_IFS
2436 rm -rf conftest.one conftest.two conftest.dir
2439 if test "${ac_cv_path_install+set}" = set; then
2440 INSTALL=$ac_cv_path_install
2441 else
2442 # As a last resort, use the slow shell script. Don't cache a
2443 # value for INSTALL within a source directory, because that will
2444 # break other packages using the cache if that directory is
2445 # removed, or if the value is a relative name.
2446 INSTALL=$ac_install_sh
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2450 $as_echo "$INSTALL" >&6; }
2452 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2453 # It thinks the first close brace ends the variable substitution.
2454 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2456 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2458 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2461 $as_echo_n "checking whether build environment is sane... " >&6; }
2462 # Just in case
2463 sleep 1
2464 echo timestamp > conftest.file
2465 # Reject unsafe characters in $srcdir or the absolute working directory
2466 # name. Accept space and tab only in the latter.
2467 am_lf='
2469 case `pwd` in
2470 *[\\\"\#\$\&\'\`$am_lf]*)
2471 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2472 esac
2473 case $srcdir in
2474 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2475 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2476 esac
2478 # Do `set' in a subshell so we don't clobber the current shell's
2479 # arguments. Must try -L first in case configure is actually a
2480 # symlink; some systems play weird games with the mod time of symlinks
2481 # (eg FreeBSD returns the mod time of the symlink's containing
2482 # directory).
2483 if (
2484 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2485 if test "$*" = "X"; then
2486 # -L didn't work.
2487 set X `ls -t "$srcdir/configure" conftest.file`
2489 rm -f conftest.file
2490 if test "$*" != "X $srcdir/configure conftest.file" \
2491 && test "$*" != "X conftest.file $srcdir/configure"; then
2493 # If neither matched, then we have a broken ls. This can happen
2494 # if, for instance, CONFIG_SHELL is bash and it inherits a
2495 # broken ls alias from the environment. This has actually
2496 # happened. Such a system could not be considered "sane".
2497 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2498 alias in your environment" "$LINENO" 5
2501 test "$2" = conftest.file
2503 then
2504 # Ok.
2506 else
2507 as_fn_error "newly created file is older than distributed files!
2508 Check your system clock" "$LINENO" 5
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2511 $as_echo "yes" >&6; }
2512 test "$program_prefix" != NONE &&
2513 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE &&
2516 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2522 # expand $ac_aux_dir to an absolute path
2523 am_aux_dir=`cd $ac_aux_dir && pwd`
2525 if test x"${MISSING+set}" != xset; then
2526 case $am_aux_dir in
2527 *\ * | *\ *)
2528 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2530 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2531 esac
2533 # Use eval to expand $SHELL
2534 if eval "$MISSING --run true"; then
2535 am_missing_run="$MISSING --run "
2536 else
2537 am_missing_run=
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2539 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2542 if test x"${install_sh}" != xset; then
2543 case $am_aux_dir in
2544 *\ * | *\ *)
2545 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2547 install_sh="\${SHELL} $am_aux_dir/install-sh"
2548 esac
2551 # Installed binaries are usually stripped using `strip' when the user
2552 # run `make install-strip'. However `strip' might not be the right
2553 # tool to use in cross-compilation environments, therefore Automake
2554 # will honor the `STRIP' environment variable to overrule this program.
2555 if test "$cross_compiling" != no; then
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2558 set dummy ${ac_tool_prefix}strip; ac_word=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if test "${ac_cv_prog_STRIP+set}" = set; then :
2562 $as_echo_n "(cached) " >&6
2563 else
2564 if test -n "$STRIP"; then
2565 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2566 else
2567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2568 for as_dir in $PATH
2570 IFS=$as_save_IFS
2571 test -z "$as_dir" && as_dir=.
2572 for ac_exec_ext in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2576 break 2
2578 done
2579 done
2580 IFS=$as_save_IFS
2584 STRIP=$ac_cv_prog_STRIP
2585 if test -n "$STRIP"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2587 $as_echo "$STRIP" >&6; }
2588 else
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2595 if test -z "$ac_cv_prog_STRIP"; then
2596 ac_ct_STRIP=$STRIP
2597 # Extract the first word of "strip", so it can be a program name with args.
2598 set dummy strip; ac_word=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2602 $as_echo_n "(cached) " >&6
2603 else
2604 if test -n "$ac_ct_STRIP"; then
2605 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2606 else
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2608 for as_dir in $PATH
2610 IFS=$as_save_IFS
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_ac_ct_STRIP="strip"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 break 2
2618 done
2619 done
2620 IFS=$as_save_IFS
2624 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2625 if test -n "$ac_ct_STRIP"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2627 $as_echo "$ac_ct_STRIP" >&6; }
2628 else
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2633 if test "x$ac_ct_STRIP" = x; then
2634 STRIP=":"
2635 else
2636 case $cross_compiling:$ac_tool_warned in
2637 yes:)
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2640 ac_tool_warned=yes ;;
2641 esac
2642 STRIP=$ac_ct_STRIP
2644 else
2645 STRIP="$ac_cv_prog_STRIP"
2649 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2652 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2653 if test -z "$MKDIR_P"; then
2654 if test "${ac_cv_path_mkdir+set}" = set; then :
2655 $as_echo_n "(cached) " >&6
2656 else
2657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2658 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2660 IFS=$as_save_IFS
2661 test -z "$as_dir" && as_dir=.
2662 for ac_prog in mkdir gmkdir; do
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2665 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2666 'mkdir (GNU coreutils) '* | \
2667 'mkdir (coreutils) '* | \
2668 'mkdir (fileutils) '4.1*)
2669 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2670 break 3;;
2671 esac
2672 done
2673 done
2674 done
2675 IFS=$as_save_IFS
2679 if test "${ac_cv_path_mkdir+set}" = set; then
2680 MKDIR_P="$ac_cv_path_mkdir -p"
2681 else
2682 # As a last resort, use the slow shell script. Don't cache a
2683 # value for MKDIR_P within a source directory, because that will
2684 # break other packages using the cache if that directory is
2685 # removed, or if the value is a relative name.
2686 test -d ./--version && rmdir ./--version
2687 MKDIR_P="$ac_install_sh -d"
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2691 $as_echo "$MKDIR_P" >&6; }
2693 mkdir_p="$MKDIR_P"
2694 case $mkdir_p in
2695 [\\/$]* | ?:[\\/]*) ;;
2696 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2697 esac
2699 for ac_prog in gawk mawk nawk awk
2701 # Extract the first word of "$ac_prog", so it can be a program name with args.
2702 set dummy $ac_prog; ac_word=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if test "${ac_cv_prog_AWK+set}" = set; then :
2706 $as_echo_n "(cached) " >&6
2707 else
2708 if test -n "$AWK"; then
2709 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2710 else
2711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712 for as_dir in $PATH
2714 IFS=$as_save_IFS
2715 test -z "$as_dir" && as_dir=.
2716 for ac_exec_ext in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_AWK="$ac_prog"
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2720 break 2
2722 done
2723 done
2724 IFS=$as_save_IFS
2728 AWK=$ac_cv_prog_AWK
2729 if test -n "$AWK"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2731 $as_echo "$AWK" >&6; }
2732 else
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2738 test -n "$AWK" && break
2739 done
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2742 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2743 set x ${MAKE-make}
2744 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2745 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2746 $as_echo_n "(cached) " >&6
2747 else
2748 cat >conftest.make <<\_ACEOF
2749 SHELL = /bin/sh
2750 all:
2751 @echo '@@@%%%=$(MAKE)=@@@%%%'
2752 _ACEOF
2753 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2754 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2755 *@@@%%%=?*=@@@%%%*)
2756 eval ac_cv_prog_make_${ac_make}_set=yes;;
2758 eval ac_cv_prog_make_${ac_make}_set=no;;
2759 esac
2760 rm -f conftest.make
2762 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764 $as_echo "yes" >&6; }
2765 SET_MAKE=
2766 else
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2769 SET_MAKE="MAKE=${MAKE-make}"
2772 rm -rf .tst 2>/dev/null
2773 mkdir .tst 2>/dev/null
2774 if test -d .tst; then
2775 am__leading_dot=.
2776 else
2777 am__leading_dot=_
2779 rmdir .tst 2>/dev/null
2781 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2782 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2783 # is not polluted with repeated "-I."
2784 am__isrc=' -I$(srcdir)'
2785 # test to see if srcdir already configured
2786 if test -f $srcdir/config.status; then
2787 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2791 # test whether we have cygpath
2792 if test -z "$CYGPATH_W"; then
2793 if (cygpath --version) >/dev/null 2>/dev/null; then
2794 CYGPATH_W='cygpath -w'
2795 else
2796 CYGPATH_W=echo
2801 # Define the identity of the package.
2802 PACKAGE='libgomp-plugin-intelmic'
2803 VERSION='1.0'
2806 cat >>confdefs.h <<_ACEOF
2807 #define PACKAGE "$PACKAGE"
2808 _ACEOF
2811 cat >>confdefs.h <<_ACEOF
2812 #define VERSION "$VERSION"
2813 _ACEOF
2815 # Some tools Automake needs.
2817 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2820 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2823 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2826 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2829 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2831 # We need awk for the "check" target. The system "awk" is bad on
2832 # some platforms.
2833 # Always define AMTAR for backward compatibility.
2835 AMTAR=${AMTAR-"${am_missing_run}tar"}
2837 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2846 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2847 # Check whether --enable-maintainer-mode was given.
2848 if test "${enable_maintainer_mode+set}" = set; then :
2849 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2850 else
2851 USE_MAINTAINER_MODE=no
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2855 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2856 if test $USE_MAINTAINER_MODE = yes; then
2857 MAINTAINER_MODE_TRUE=
2858 MAINTAINER_MODE_FALSE='#'
2859 else
2860 MAINTAINER_MODE_TRUE='#'
2861 MAINTAINER_MODE_FALSE=
2864 MAINT=$MAINTAINER_MODE_TRUE
2868 ac_ext=c
2869 ac_cpp='$CPP $CPPFLAGS'
2870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2873 if test -n "$ac_tool_prefix"; then
2874 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2875 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877 $as_echo_n "checking for $ac_word... " >&6; }
2878 if test "${ac_cv_prog_CC+set}" = set; then :
2879 $as_echo_n "(cached) " >&6
2880 else
2881 if test -n "$CC"; then
2882 ac_cv_prog_CC="$CC" # Let the user override the test.
2883 else
2884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885 for as_dir in $PATH
2887 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2
2895 done
2896 done
2897 IFS=$as_save_IFS
2901 CC=$ac_cv_prog_CC
2902 if test -n "$CC"; then
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2904 $as_echo "$CC" >&6; }
2905 else
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907 $as_echo "no" >&6; }
2912 if test -z "$ac_cv_prog_CC"; then
2913 ac_ct_CC=$CC
2914 # Extract the first word of "gcc", so it can be a program name with args.
2915 set dummy gcc; ac_word=$2
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917 $as_echo_n "checking for $ac_word... " >&6; }
2918 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test -n "$ac_ct_CC"; then
2922 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2923 else
2924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925 for as_dir in $PATH
2927 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_ac_ct_CC="gcc"
2932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2
2935 done
2936 done
2937 IFS=$as_save_IFS
2941 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2942 if test -n "$ac_ct_CC"; then
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2944 $as_echo "$ac_ct_CC" >&6; }
2945 else
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947 $as_echo "no" >&6; }
2950 if test "x$ac_ct_CC" = x; then
2951 CC=""
2952 else
2953 case $cross_compiling:$ac_tool_warned in
2954 yes:)
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2956 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2957 ac_tool_warned=yes ;;
2958 esac
2959 CC=$ac_ct_CC
2961 else
2962 CC="$ac_cv_prog_CC"
2965 if test -z "$CC"; then
2966 if test -n "$ac_tool_prefix"; then
2967 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2968 set dummy ${ac_tool_prefix}cc; ac_word=$2
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2970 $as_echo_n "checking for $ac_word... " >&6; }
2971 if test "${ac_cv_prog_CC+set}" = set; then :
2972 $as_echo_n "(cached) " >&6
2973 else
2974 if test -n "$CC"; then
2975 ac_cv_prog_CC="$CC" # Let the user override the test.
2976 else
2977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2978 for as_dir in $PATH
2980 IFS=$as_save_IFS
2981 test -z "$as_dir" && as_dir=.
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2984 ac_cv_prog_CC="${ac_tool_prefix}cc"
2985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 break 2
2988 done
2989 done
2990 IFS=$as_save_IFS
2994 CC=$ac_cv_prog_CC
2995 if test -n "$CC"; then
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2997 $as_echo "$CC" >&6; }
2998 else
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3000 $as_echo "no" >&6; }
3006 if test -z "$CC"; then
3007 # Extract the first word of "cc", so it can be a program name with args.
3008 set dummy cc; ac_word=$2
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3010 $as_echo_n "checking for $ac_word... " >&6; }
3011 if test "${ac_cv_prog_CC+set}" = set; then :
3012 $as_echo_n "(cached) " >&6
3013 else
3014 if test -n "$CC"; then
3015 ac_cv_prog_CC="$CC" # Let the user override the test.
3016 else
3017 ac_prog_rejected=no
3018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3019 for as_dir in $PATH
3021 IFS=$as_save_IFS
3022 test -z "$as_dir" && as_dir=.
3023 for ac_exec_ext in '' $ac_executable_extensions; do
3024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3025 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3026 ac_prog_rejected=yes
3027 continue
3029 ac_cv_prog_CC="cc"
3030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 break 2
3033 done
3034 done
3035 IFS=$as_save_IFS
3037 if test $ac_prog_rejected = yes; then
3038 # We found a bogon in the path, so make sure we never use it.
3039 set dummy $ac_cv_prog_CC
3040 shift
3041 if test $# != 0; then
3042 # We chose a different compiler from the bogus one.
3043 # However, it has the same basename, so the bogon will be chosen
3044 # first if we set CC to just the basename; use the full file name.
3045 shift
3046 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3051 CC=$ac_cv_prog_CC
3052 if test -n "$CC"; then
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3054 $as_echo "$CC" >&6; }
3055 else
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3057 $as_echo "no" >&6; }
3062 if test -z "$CC"; then
3063 if test -n "$ac_tool_prefix"; then
3064 for ac_prog in cl.exe
3066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3069 $as_echo_n "checking for $ac_word... " >&6; }
3070 if test "${ac_cv_prog_CC+set}" = set; then :
3071 $as_echo_n "(cached) " >&6
3072 else
3073 if test -n "$CC"; then
3074 ac_cv_prog_CC="$CC" # Let the user override the test.
3075 else
3076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3077 for as_dir in $PATH
3079 IFS=$as_save_IFS
3080 test -z "$as_dir" && as_dir=.
3081 for ac_exec_ext in '' $ac_executable_extensions; do
3082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3083 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 break 2
3087 done
3088 done
3089 IFS=$as_save_IFS
3093 CC=$ac_cv_prog_CC
3094 if test -n "$CC"; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3096 $as_echo "$CC" >&6; }
3097 else
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3099 $as_echo "no" >&6; }
3103 test -n "$CC" && break
3104 done
3106 if test -z "$CC"; then
3107 ac_ct_CC=$CC
3108 for ac_prog in cl.exe
3110 # Extract the first word of "$ac_prog", so it can be a program name with args.
3111 set dummy $ac_prog; ac_word=$2
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3113 $as_echo_n "checking for $ac_word... " >&6; }
3114 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3115 $as_echo_n "(cached) " >&6
3116 else
3117 if test -n "$ac_ct_CC"; then
3118 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3119 else
3120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3121 for as_dir in $PATH
3123 IFS=$as_save_IFS
3124 test -z "$as_dir" && as_dir=.
3125 for ac_exec_ext in '' $ac_executable_extensions; do
3126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3127 ac_cv_prog_ac_ct_CC="$ac_prog"
3128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3129 break 2
3131 done
3132 done
3133 IFS=$as_save_IFS
3137 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3138 if test -n "$ac_ct_CC"; then
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3140 $as_echo "$ac_ct_CC" >&6; }
3141 else
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3143 $as_echo "no" >&6; }
3147 test -n "$ac_ct_CC" && break
3148 done
3150 if test "x$ac_ct_CC" = x; then
3151 CC=""
3152 else
3153 case $cross_compiling:$ac_tool_warned in
3154 yes:)
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3157 ac_tool_warned=yes ;;
3158 esac
3159 CC=$ac_ct_CC
3166 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3167 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3168 as_fn_error "no acceptable C compiler found in \$PATH
3169 See \`config.log' for more details." "$LINENO" 5; }
3171 # Provide some information about the compiler.
3172 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3173 set X $ac_compile
3174 ac_compiler=$2
3175 for ac_option in --version -v -V -qversion; do
3176 { { ac_try="$ac_compiler $ac_option >&5"
3177 case "(($ac_try" in
3178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3179 *) ac_try_echo=$ac_try;;
3180 esac
3181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3182 $as_echo "$ac_try_echo"; } >&5
3183 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3184 ac_status=$?
3185 if test -s conftest.err; then
3186 sed '10a\
3187 ... rest of stderr output deleted ...
3188 10q' conftest.err >conftest.er1
3189 cat conftest.er1 >&5
3190 rm -f conftest.er1 conftest.err
3192 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3193 test $ac_status = 0; }
3194 done
3196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3197 /* end confdefs.h. */
3200 main ()
3204 return 0;
3206 _ACEOF
3207 ac_clean_files_save=$ac_clean_files
3208 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3209 # Try to create an executable without -o first, disregard a.out.
3210 # It will help us diagnose broken compilers, and finding out an intuition
3211 # of exeext.
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3213 $as_echo_n "checking for C compiler default output file name... " >&6; }
3214 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3216 # The possible output files:
3217 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3219 ac_rmfiles=
3220 for ac_file in $ac_files
3222 case $ac_file in
3223 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3224 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3225 esac
3226 done
3227 rm -f $ac_rmfiles
3229 if { { ac_try="$ac_link_default"
3230 case "(($ac_try" in
3231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3233 esac
3234 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3235 $as_echo "$ac_try_echo"; } >&5
3236 (eval "$ac_link_default") 2>&5
3237 ac_status=$?
3238 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239 test $ac_status = 0; }; then :
3240 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3241 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3242 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3243 # so that the user can short-circuit this test for compilers unknown to
3244 # Autoconf.
3245 for ac_file in $ac_files ''
3247 test -f "$ac_file" || continue
3248 case $ac_file in
3249 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3251 [ab].out )
3252 # We found the default executable, but exeext='' is most
3253 # certainly right.
3254 break;;
3255 *.* )
3256 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3257 then :; else
3258 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3260 # We set ac_cv_exeext here because the later test for it is not
3261 # safe: cross compilers may not add the suffix if given an `-o'
3262 # argument, so we may need to know it at that point already.
3263 # Even if this section looks crufty: it has the advantage of
3264 # actually working.
3265 break;;
3267 break;;
3268 esac
3269 done
3270 test "$ac_cv_exeext" = no && ac_cv_exeext=
3272 else
3273 ac_file=''
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3276 $as_echo "$ac_file" >&6; }
3277 if test -z "$ac_file"; then :
3278 $as_echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3283 { as_fn_set_status 77
3284 as_fn_error "C compiler cannot create executables
3285 See \`config.log' for more details." "$LINENO" 5; }; }
3287 ac_exeext=$ac_cv_exeext
3289 # Check that the compiler produces executables we can run. If not, either
3290 # the compiler is broken, or we cross compile.
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3292 $as_echo_n "checking whether the C compiler works... " >&6; }
3293 # If not cross compiling, check that we can run a simple program.
3294 if test "$cross_compiling" != yes; then
3295 if { ac_try='./$ac_file'
3296 { { case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_try") 2>&5
3303 ac_status=$?
3304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305 test $ac_status = 0; }; }; then
3306 cross_compiling=no
3307 else
3308 if test "$cross_compiling" = maybe; then
3309 cross_compiling=yes
3310 else
3311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3312 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3313 as_fn_error "cannot run C compiled programs.
3314 If you meant to cross compile, use \`--host'.
3315 See \`config.log' for more details." "$LINENO" 5; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3322 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3323 ac_clean_files=$ac_clean_files_save
3324 # Check that the compiler produces executables we can run. If not, either
3325 # the compiler is broken, or we cross compile.
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3327 $as_echo_n "checking whether we are cross compiling... " >&6; }
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3329 $as_echo "$cross_compiling" >&6; }
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3332 $as_echo_n "checking for suffix of executables... " >&6; }
3333 if { { ac_try="$ac_link"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_link") 2>&5
3341 ac_status=$?
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; then :
3344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3345 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3346 # work properly (i.e., refer to `conftest.exe'), while it won't with
3347 # `rm'.
3348 for ac_file in conftest.exe conftest conftest.*; do
3349 test -f "$ac_file" || continue
3350 case $ac_file in
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 break;;
3354 * ) break;;
3355 esac
3356 done
3357 else
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error "cannot compute suffix of executables: cannot compile and link
3361 See \`config.log' for more details." "$LINENO" 5; }
3363 rm -f conftest$ac_cv_exeext
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3365 $as_echo "$ac_cv_exeext" >&6; }
3367 rm -f conftest.$ac_ext
3368 EXEEXT=$ac_cv_exeext
3369 ac_exeext=$EXEEXT
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371 $as_echo_n "checking for suffix of object files... " >&6; }
3372 if test "${ac_cv_objext+set}" = set; then :
3373 $as_echo_n "(cached) " >&6
3374 else
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3379 main ()
3383 return 0;
3385 _ACEOF
3386 rm -f conftest.o conftest.obj
3387 if { { ac_try="$ac_compile"
3388 case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391 esac
3392 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393 $as_echo "$ac_try_echo"; } >&5
3394 (eval "$ac_compile") 2>&5
3395 ac_status=$?
3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3397 test $ac_status = 0; }; then :
3398 for ac_file in conftest.o conftest.obj conftest.*; do
3399 test -f "$ac_file" || continue;
3400 case $ac_file in
3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3403 break;;
3404 esac
3405 done
3406 else
3407 $as_echo "$as_me: failed program was:" >&5
3408 sed 's/^/| /' conftest.$ac_ext >&5
3410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3412 as_fn_error "cannot compute suffix of object files: cannot compile
3413 See \`config.log' for more details." "$LINENO" 5; }
3415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3418 $as_echo "$ac_cv_objext" >&6; }
3419 OBJEXT=$ac_cv_objext
3420 ac_objext=$OBJEXT
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3422 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3423 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3424 $as_echo_n "(cached) " >&6
3425 else
3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3427 /* end confdefs.h. */
3430 main ()
3432 #ifndef __GNUC__
3433 choke me
3434 #endif
3437 return 0;
3439 _ACEOF
3440 if ac_fn_c_try_compile "$LINENO"; then :
3441 ac_compiler_gnu=yes
3442 else
3443 ac_compiler_gnu=no
3445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3450 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3451 if test $ac_compiler_gnu = yes; then
3452 GCC=yes
3453 else
3454 GCC=
3456 ac_test_CFLAGS=${CFLAGS+set}
3457 ac_save_CFLAGS=$CFLAGS
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3460 if test "${ac_cv_prog_cc_g+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 ac_save_c_werror_flag=$ac_c_werror_flag
3464 ac_c_werror_flag=yes
3465 ac_cv_prog_cc_g=no
3466 CFLAGS="-g"
3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468 /* end confdefs.h. */
3471 main ()
3475 return 0;
3477 _ACEOF
3478 if ac_fn_c_try_compile "$LINENO"; then :
3479 ac_cv_prog_cc_g=yes
3480 else
3481 CFLAGS=""
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3486 main ()
3490 return 0;
3492 _ACEOF
3493 if ac_fn_c_try_compile "$LINENO"; then :
3495 else
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3497 CFLAGS="-g"
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499 /* end confdefs.h. */
3502 main ()
3506 return 0;
3508 _ACEOF
3509 if ac_fn_c_try_compile "$LINENO"; then :
3510 ac_cv_prog_cc_g=yes
3512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3520 $as_echo "$ac_cv_prog_cc_g" >&6; }
3521 if test "$ac_test_CFLAGS" = set; then
3522 CFLAGS=$ac_save_CFLAGS
3523 elif test $ac_cv_prog_cc_g = yes; then
3524 if test "$GCC" = yes; then
3525 CFLAGS="-g -O2"
3526 else
3527 CFLAGS="-g"
3529 else
3530 if test "$GCC" = yes; then
3531 CFLAGS="-O2"
3532 else
3533 CFLAGS=
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3537 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3538 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3539 $as_echo_n "(cached) " >&6
3540 else
3541 ac_cv_prog_cc_c89=no
3542 ac_save_CC=$CC
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3545 #include <stdarg.h>
3546 #include <stdio.h>
3547 #include <sys/types.h>
3548 #include <sys/stat.h>
3549 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3550 struct buf { int x; };
3551 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3552 static char *e (p, i)
3553 char **p;
3554 int i;
3556 return p[i];
3558 static char *f (char * (*g) (char **, int), char **p, ...)
3560 char *s;
3561 va_list v;
3562 va_start (v,p);
3563 s = g (p, va_arg (v,int));
3564 va_end (v);
3565 return s;
3568 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3569 function prototypes and stuff, but not '\xHH' hex character constants.
3570 These don't provoke an error unfortunately, instead are silently treated
3571 as 'x'. The following induces an error, until -std is added to get
3572 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3573 array size at least. It's necessary to write '\x00'==0 to get something
3574 that's true only with -std. */
3575 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3577 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3578 inside strings and character constants. */
3579 #define FOO(x) 'x'
3580 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3582 int test (int i, double x);
3583 struct s1 {int (*f) (int a);};
3584 struct s2 {int (*f) (double a);};
3585 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3586 int argc;
3587 char **argv;
3589 main ()
3591 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3593 return 0;
3595 _ACEOF
3596 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3597 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3599 CC="$ac_save_CC $ac_arg"
3600 if ac_fn_c_try_compile "$LINENO"; then :
3601 ac_cv_prog_cc_c89=$ac_arg
3603 rm -f core conftest.err conftest.$ac_objext
3604 test "x$ac_cv_prog_cc_c89" != "xno" && break
3605 done
3606 rm -f conftest.$ac_ext
3607 CC=$ac_save_CC
3610 # AC_CACHE_VAL
3611 case "x$ac_cv_prog_cc_c89" in
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3614 $as_echo "none needed" >&6; } ;;
3615 xno)
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3617 $as_echo "unsupported" >&6; } ;;
3619 CC="$CC $ac_cv_prog_cc_c89"
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3621 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3622 esac
3623 if test "x$ac_cv_prog_cc_c89" != xno; then :
3627 ac_ext=c
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3632 DEPDIR="${am__leading_dot}deps"
3634 ac_config_commands="$ac_config_commands depfiles"
3637 am_make=${MAKE-make}
3638 cat > confinc << 'END'
3639 am__doit:
3640 @echo this is the am__doit target
3641 .PHONY: am__doit
3643 # If we don't find an include directive, just comment out the code.
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3645 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3646 am__include="#"
3647 am__quote=
3648 _am_result=none
3649 # First try GNU make style include.
3650 echo "include confinc" > confmf
3651 # Ignore all kinds of additional output from `make'.
3652 case `$am_make -s -f confmf 2> /dev/null` in #(
3653 *the\ am__doit\ target*)
3654 am__include=include
3655 am__quote=
3656 _am_result=GNU
3658 esac
3659 # Now try BSD make style include.
3660 if test "$am__include" = "#"; then
3661 echo '.include "confinc"' > confmf
3662 case `$am_make -s -f confmf 2> /dev/null` in #(
3663 *the\ am__doit\ target*)
3664 am__include=.include
3665 am__quote="\""
3666 _am_result=BSD
3668 esac
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3673 $as_echo "$_am_result" >&6; }
3674 rm -f confinc confmf
3676 # Check whether --enable-dependency-tracking was given.
3677 if test "${enable_dependency_tracking+set}" = set; then :
3678 enableval=$enable_dependency_tracking;
3681 if test "x$enable_dependency_tracking" != xno; then
3682 am_depcomp="$ac_aux_dir/depcomp"
3683 AMDEPBACKSLASH='\'
3685 if test "x$enable_dependency_tracking" != xno; then
3686 AMDEP_TRUE=
3687 AMDEP_FALSE='#'
3688 else
3689 AMDEP_TRUE='#'
3690 AMDEP_FALSE=
3695 depcc="$CC" am_compiler_list=
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3698 $as_echo_n "checking dependency style of $depcc... " >&6; }
3699 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3703 # We make a subdir and do the tests there. Otherwise we can end up
3704 # making bogus files that we don't know about and never remove. For
3705 # instance it was reported that on HP-UX the gcc test will end up
3706 # making a dummy file named `D' -- because `-MD' means `put the output
3707 # in D'.
3708 mkdir conftest.dir
3709 # Copy depcomp to subdir because otherwise we won't find it if we're
3710 # using a relative directory.
3711 cp "$am_depcomp" conftest.dir
3712 cd conftest.dir
3713 # We will build objects and dependencies in a subdirectory because
3714 # it helps to detect inapplicable dependency modes. For instance
3715 # both Tru64's cc and ICC support -MD to output dependencies as a
3716 # side effect of compilation, but ICC will put the dependencies in
3717 # the current directory while Tru64 will put them in the object
3718 # directory.
3719 mkdir sub
3721 am_cv_CC_dependencies_compiler_type=none
3722 if test "$am_compiler_list" = ""; then
3723 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3725 am__universal=false
3726 case " $depcc " in #(
3727 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3728 esac
3730 for depmode in $am_compiler_list; do
3731 # Setup a source with many dependencies, because some compilers
3732 # like to wrap large dependency lists on column 80 (with \), and
3733 # we should not choose a depcomp mode which is confused by this.
3735 # We need to recreate these files for each test, as the compiler may
3736 # overwrite some of them when testing with obscure command lines.
3737 # This happens at least with the AIX C compiler.
3738 : > sub/conftest.c
3739 for i in 1 2 3 4 5 6; do
3740 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3741 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3742 # Solaris 8's {/usr,}/bin/sh.
3743 touch sub/conftst$i.h
3744 done
3745 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3747 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3748 # mode. It turns out that the SunPro C++ compiler does not properly
3749 # handle `-M -o', and we need to detect this. Also, some Intel
3750 # versions had trouble with output in subdirs
3751 am__obj=sub/conftest.${OBJEXT-o}
3752 am__minus_obj="-o $am__obj"
3753 case $depmode in
3754 gcc)
3755 # This depmode causes a compiler race in universal mode.
3756 test "$am__universal" = false || continue
3758 nosideeffect)
3759 # after this tag, mechanisms are not by side-effect, so they'll
3760 # only be used when explicitly requested
3761 if test "x$enable_dependency_tracking" = xyes; then
3762 continue
3763 else
3764 break
3767 msvisualcpp | msvcmsys)
3768 # This compiler won't grok `-c -o', but also, the minuso test has
3769 # not run yet. These depmodes are late enough in the game, and
3770 # so weak that their functioning should not be impacted.
3771 am__obj=conftest.${OBJEXT-o}
3772 am__minus_obj=
3774 none) break ;;
3775 esac
3776 if depmode=$depmode \
3777 source=sub/conftest.c object=$am__obj \
3778 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3779 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3780 >/dev/null 2>conftest.err &&
3781 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3782 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3783 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3784 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3785 # icc doesn't choke on unknown options, it will just issue warnings
3786 # or remarks (even with -Werror). So we grep stderr for any message
3787 # that says an option was ignored or not supported.
3788 # When given -MP, icc 7.0 and 7.1 complain thusly:
3789 # icc: Command line warning: ignoring option '-M'; no argument required
3790 # The diagnosis changed in icc 8.0:
3791 # icc: Command line remark: option '-MP' not supported
3792 if (grep 'ignoring option' conftest.err ||
3793 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3794 am_cv_CC_dependencies_compiler_type=$depmode
3795 break
3798 done
3800 cd ..
3801 rm -rf conftest.dir
3802 else
3803 am_cv_CC_dependencies_compiler_type=none
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3808 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3809 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3812 test "x$enable_dependency_tracking" != xno \
3813 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3814 am__fastdepCC_TRUE=
3815 am__fastdepCC_FALSE='#'
3816 else
3817 am__fastdepCC_TRUE='#'
3818 am__fastdepCC_FALSE=
3822 ac_ext=cpp
3823 ac_cpp='$CXXCPP $CPPFLAGS'
3824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3827 if test -z "$CXX"; then
3828 if test -n "$CCC"; then
3829 CXX=$CCC
3830 else
3831 if test -n "$ac_tool_prefix"; then
3832 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3835 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837 $as_echo_n "checking for $ac_word... " >&6; }
3838 if test "${ac_cv_prog_CXX+set}" = set; then :
3839 $as_echo_n "(cached) " >&6
3840 else
3841 if test -n "$CXX"; then
3842 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3847 IFS=$as_save_IFS
3848 test -z "$as_dir" && as_dir=.
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3853 break 2
3855 done
3856 done
3857 IFS=$as_save_IFS
3861 CXX=$ac_cv_prog_CXX
3862 if test -n "$CXX"; then
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3864 $as_echo "$CXX" >&6; }
3865 else
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867 $as_echo "no" >&6; }
3871 test -n "$CXX" && break
3872 done
3874 if test -z "$CXX"; then
3875 ac_ct_CXX=$CXX
3876 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3878 # Extract the first word of "$ac_prog", so it can be a program name with args.
3879 set dummy $ac_prog; ac_word=$2
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881 $as_echo_n "checking for $ac_word... " >&6; }
3882 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3883 $as_echo_n "(cached) " >&6
3884 else
3885 if test -n "$ac_ct_CXX"; then
3886 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3887 else
3888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 for as_dir in $PATH
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
3894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3895 ac_cv_prog_ac_ct_CXX="$ac_prog"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3899 done
3900 done
3901 IFS=$as_save_IFS
3905 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3906 if test -n "$ac_ct_CXX"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3908 $as_echo "$ac_ct_CXX" >&6; }
3909 else
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911 $as_echo "no" >&6; }
3915 test -n "$ac_ct_CXX" && break
3916 done
3918 if test "x$ac_ct_CXX" = x; then
3919 CXX="g++"
3920 else
3921 case $cross_compiling:$ac_tool_warned in
3922 yes:)
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3925 ac_tool_warned=yes ;;
3926 esac
3927 CXX=$ac_ct_CXX
3933 # Provide some information about the compiler.
3934 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3935 set X $ac_compile
3936 ac_compiler=$2
3937 for ac_option in --version -v -V -qversion; do
3938 { { ac_try="$ac_compiler $ac_option >&5"
3939 case "(($ac_try" in
3940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3941 *) ac_try_echo=$ac_try;;
3942 esac
3943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3944 $as_echo "$ac_try_echo"; } >&5
3945 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3946 ac_status=$?
3947 if test -s conftest.err; then
3948 sed '10a\
3949 ... rest of stderr output deleted ...
3950 10q' conftest.err >conftest.er1
3951 cat conftest.er1 >&5
3952 rm -f conftest.er1 conftest.err
3954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955 test $ac_status = 0; }
3956 done
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3959 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3960 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3961 $as_echo_n "(cached) " >&6
3962 else
3963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* end confdefs.h. */
3967 main ()
3969 #ifndef __GNUC__
3970 choke me
3971 #endif
3974 return 0;
3976 _ACEOF
3977 if ac_fn_cxx_try_compile "$LINENO"; then :
3978 ac_compiler_gnu=yes
3979 else
3980 ac_compiler_gnu=no
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3983 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3987 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3988 if test $ac_compiler_gnu = yes; then
3989 GXX=yes
3990 else
3991 GXX=
3993 ac_test_CXXFLAGS=${CXXFLAGS+set}
3994 ac_save_CXXFLAGS=$CXXFLAGS
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3996 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3997 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3998 $as_echo_n "(cached) " >&6
3999 else
4000 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4001 ac_cxx_werror_flag=yes
4002 ac_cv_prog_cxx_g=no
4003 CXXFLAGS="-g"
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005 /* end confdefs.h. */
4008 main ()
4012 return 0;
4014 _ACEOF
4015 if ac_fn_cxx_try_compile "$LINENO"; then :
4016 ac_cv_prog_cxx_g=yes
4017 else
4018 CXXFLAGS=""
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4023 main ()
4027 return 0;
4029 _ACEOF
4030 if ac_fn_cxx_try_compile "$LINENO"; then :
4032 else
4033 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4034 CXXFLAGS="-g"
4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4036 /* end confdefs.h. */
4039 main ()
4043 return 0;
4045 _ACEOF
4046 if ac_fn_cxx_try_compile "$LINENO"; then :
4047 ac_cv_prog_cxx_g=yes
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4057 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4058 if test "$ac_test_CXXFLAGS" = set; then
4059 CXXFLAGS=$ac_save_CXXFLAGS
4060 elif test $ac_cv_prog_cxx_g = yes; then
4061 if test "$GXX" = yes; then
4062 CXXFLAGS="-g -O2"
4063 else
4064 CXXFLAGS="-g"
4066 else
4067 if test "$GXX" = yes; then
4068 CXXFLAGS="-O2"
4069 else
4070 CXXFLAGS=
4073 ac_ext=c
4074 ac_cpp='$CPP $CPPFLAGS'
4075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4079 depcc="$CXX" am_compiler_list=
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4082 $as_echo_n "checking dependency style of $depcc... " >&6; }
4083 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4084 $as_echo_n "(cached) " >&6
4085 else
4086 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4087 # We make a subdir and do the tests there. Otherwise we can end up
4088 # making bogus files that we don't know about and never remove. For
4089 # instance it was reported that on HP-UX the gcc test will end up
4090 # making a dummy file named `D' -- because `-MD' means `put the output
4091 # in D'.
4092 mkdir conftest.dir
4093 # Copy depcomp to subdir because otherwise we won't find it if we're
4094 # using a relative directory.
4095 cp "$am_depcomp" conftest.dir
4096 cd conftest.dir
4097 # We will build objects and dependencies in a subdirectory because
4098 # it helps to detect inapplicable dependency modes. For instance
4099 # both Tru64's cc and ICC support -MD to output dependencies as a
4100 # side effect of compilation, but ICC will put the dependencies in
4101 # the current directory while Tru64 will put them in the object
4102 # directory.
4103 mkdir sub
4105 am_cv_CXX_dependencies_compiler_type=none
4106 if test "$am_compiler_list" = ""; then
4107 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4109 am__universal=false
4110 case " $depcc " in #(
4111 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4112 esac
4114 for depmode in $am_compiler_list; do
4115 # Setup a source with many dependencies, because some compilers
4116 # like to wrap large dependency lists on column 80 (with \), and
4117 # we should not choose a depcomp mode which is confused by this.
4119 # We need to recreate these files for each test, as the compiler may
4120 # overwrite some of them when testing with obscure command lines.
4121 # This happens at least with the AIX C compiler.
4122 : > sub/conftest.c
4123 for i in 1 2 3 4 5 6; do
4124 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4125 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4126 # Solaris 8's {/usr,}/bin/sh.
4127 touch sub/conftst$i.h
4128 done
4129 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4131 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4132 # mode. It turns out that the SunPro C++ compiler does not properly
4133 # handle `-M -o', and we need to detect this. Also, some Intel
4134 # versions had trouble with output in subdirs
4135 am__obj=sub/conftest.${OBJEXT-o}
4136 am__minus_obj="-o $am__obj"
4137 case $depmode in
4138 gcc)
4139 # This depmode causes a compiler race in universal mode.
4140 test "$am__universal" = false || continue
4142 nosideeffect)
4143 # after this tag, mechanisms are not by side-effect, so they'll
4144 # only be used when explicitly requested
4145 if test "x$enable_dependency_tracking" = xyes; then
4146 continue
4147 else
4148 break
4151 msvisualcpp | msvcmsys)
4152 # This compiler won't grok `-c -o', but also, the minuso test has
4153 # not run yet. These depmodes are late enough in the game, and
4154 # so weak that their functioning should not be impacted.
4155 am__obj=conftest.${OBJEXT-o}
4156 am__minus_obj=
4158 none) break ;;
4159 esac
4160 if depmode=$depmode \
4161 source=sub/conftest.c object=$am__obj \
4162 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4163 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4164 >/dev/null 2>conftest.err &&
4165 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4166 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4167 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4168 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4169 # icc doesn't choke on unknown options, it will just issue warnings
4170 # or remarks (even with -Werror). So we grep stderr for any message
4171 # that says an option was ignored or not supported.
4172 # When given -MP, icc 7.0 and 7.1 complain thusly:
4173 # icc: Command line warning: ignoring option '-M'; no argument required
4174 # The diagnosis changed in icc 8.0:
4175 # icc: Command line remark: option '-MP' not supported
4176 if (grep 'ignoring option' conftest.err ||
4177 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4178 am_cv_CXX_dependencies_compiler_type=$depmode
4179 break
4182 done
4184 cd ..
4185 rm -rf conftest.dir
4186 else
4187 am_cv_CXX_dependencies_compiler_type=none
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4192 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4193 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4196 test "x$enable_dependency_tracking" != xno \
4197 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4198 am__fastdepCXX_TRUE=
4199 am__fastdepCXX_FALSE='#'
4200 else
4201 am__fastdepCXX_TRUE='#'
4202 am__fastdepCXX_FALSE=
4206 ac_config_files="$ac_config_files Makefile"
4208 # Default to --enable-multilib
4209 # Check whether --enable-multilib was given.
4210 if test "${enable_multilib+set}" = set; then :
4211 enableval=$enable_multilib; case "$enableval" in
4212 yes) multilib=yes ;;
4213 no) multilib=no ;;
4214 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4215 esac
4216 else
4217 multilib=yes
4221 # We may get other options which we leave undocumented:
4222 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4223 # See config-ml.in if you want the gory details.
4225 if test "$srcdir" = "."; then
4226 if test "$with_target_subdir" != "."; then
4227 multi_basedir="$srcdir/$with_multisrctop../../.."
4228 else
4229 multi_basedir="$srcdir/$with_multisrctop../.."
4231 else
4232 multi_basedir="$srcdir/../.."
4236 # Even if the default multilib is not a cross compilation,
4237 # it may be that some of the other multilibs are.
4238 if test $cross_compiling = no && test $multilib = yes \
4239 && test "x${with_multisubdir}" != x ; then
4240 cross_compiling=maybe
4243 ac_config_commands="$ac_config_commands default-1"
4246 if test "${multilib}" = "yes"; then
4247 multilib_arg="--enable-multilib"
4248 else
4249 multilib_arg=
4252 # Make sure liboffloadmic is enabled
4253 case "$enable_liboffloadmic" in
4254 host | target)
4257 as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;;
4258 esac
4259 if test x"$enable_liboffloadmic" = xhost; then
4260 PLUGIN_HOST_TRUE=
4261 PLUGIN_HOST_FALSE='#'
4262 else
4263 PLUGIN_HOST_TRUE='#'
4264 PLUGIN_HOST_FALSE=
4268 # Get accel target and path to build or install tree of accel compiler
4269 accel_search_dir=
4270 accel_target=
4271 if test x"$enable_liboffloadmic" = xhost; then
4272 for accel in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
4273 accel_name=`echo $accel | sed 's/=.*//'`
4274 accel_dir=`echo $accel | grep '=' | sed 's/.*=//'`
4275 case "$accel_name" in
4276 *-intelmic-* | *-intelmicemul-*)
4277 accel_target=$accel_name
4278 accel_search_dir=$accel_dir
4280 esac
4281 done
4282 if test x"$accel_target" = x; then
4283 as_fn_error "--enable-offload-targets does not contain intelmic target" "$LINENO" 5
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4290 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4291 # Check whether --enable-version-specific-runtime-libs was given.
4292 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4293 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4294 yes) enable_version_specific_runtime_libs=yes ;;
4295 no) enable_version_specific_runtime_libs=no ;;
4296 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4297 esac
4298 else
4299 enable_version_specific_runtime_libs=no
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4303 $as_echo "$enable_version_specific_runtime_libs" >&6; }
4306 # Calculate toolexeclibdir.
4307 # Also toolexecdir, though it's only used in toolexeclibdir.
4308 case ${enable_version_specific_runtime_libs} in
4309 yes)
4310 # Need the gcc compiler version to know where to install libraries
4311 # and header files if --enable-version-specific-runtime-libs option
4312 # is selected.
4313 toolexecdir='$(libdir)/gcc/$(target_alias)'
4314 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4317 if test -n "$with_cross_host" &&
4318 test x"$with_cross_host" != x"no"; then
4319 # Install a library built with a cross compiler in tooldir, not libdir.
4320 toolexecdir='$(exec_prefix)/$(target_alias)'
4321 toolexeclibdir='$(toolexecdir)/lib'
4322 else
4323 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4324 toolexeclibdir='$(libdir)'
4326 multi_os_directory=`$CC -print-multi-os-directory`
4327 case $multi_os_directory in
4328 .) ;; # Avoid trailing /.
4329 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4330 esac
4332 esac
4334 enable_dlopen=yes
4338 case `pwd` in
4339 *\ * | *\ *)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4341 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4342 esac
4346 macro_version='2.2.7a'
4347 macro_revision='1.3134'
4361 ltmain="$ac_aux_dir/ltmain.sh"
4363 # Backslashify metacharacters that are still active within
4364 # double-quoted strings.
4365 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4367 # Same as above, but do not quote variable references.
4368 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4370 # Sed substitution to delay expansion of an escaped shell variable in a
4371 # double_quote_subst'ed string.
4372 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4374 # Sed substitution to delay expansion of an escaped single quote.
4375 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4377 # Sed substitution to avoid accidental globbing in evaled expressions
4378 no_glob_subst='s/\*/\\\*/g'
4380 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4381 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4382 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4385 $as_echo_n "checking how to print strings... " >&6; }
4386 # Test print first, because it will be a builtin if present.
4387 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4388 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4389 ECHO='print -r --'
4390 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4391 ECHO='printf %s\n'
4392 else
4393 # Use this function as a fallback that always works.
4394 func_fallback_echo ()
4396 eval 'cat <<_LTECHO_EOF
4398 _LTECHO_EOF'
4400 ECHO='func_fallback_echo'
4403 # func_echo_all arg...
4404 # Invoke $ECHO with all args, space-separated.
4405 func_echo_all ()
4407 $ECHO ""
4410 case "$ECHO" in
4411 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4412 $as_echo "printf" >&6; } ;;
4413 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4414 $as_echo "print -r" >&6; } ;;
4415 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4416 $as_echo "cat" >&6; } ;;
4417 esac
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4433 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4434 if test "${ac_cv_path_SED+set}" = set; then :
4435 $as_echo_n "(cached) " >&6
4436 else
4437 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4438 for ac_i in 1 2 3 4 5 6 7; do
4439 ac_script="$ac_script$as_nl$ac_script"
4440 done
4441 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4442 { ac_script=; unset ac_script;}
4443 if test -z "$SED"; then
4444 ac_path_SED_found=false
4445 # Loop through the user's path and test for each of PROGNAME-LIST
4446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447 for as_dir in $PATH
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
4451 for ac_prog in sed gsed; do
4452 for ac_exec_ext in '' $ac_executable_extensions; do
4453 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4454 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4455 # Check for GNU ac_path_SED and select it if it is found.
4456 # Check for GNU $ac_path_SED
4457 case `"$ac_path_SED" --version 2>&1` in
4458 *GNU*)
4459 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4461 ac_count=0
4462 $as_echo_n 0123456789 >"conftest.in"
4463 while :
4465 cat "conftest.in" "conftest.in" >"conftest.tmp"
4466 mv "conftest.tmp" "conftest.in"
4467 cp "conftest.in" "conftest.nl"
4468 $as_echo '' >> "conftest.nl"
4469 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4470 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4471 as_fn_arith $ac_count + 1 && ac_count=$as_val
4472 if test $ac_count -gt ${ac_path_SED_max-0}; then
4473 # Best one so far, save it but keep looking for a better one
4474 ac_cv_path_SED="$ac_path_SED"
4475 ac_path_SED_max=$ac_count
4477 # 10*(2^10) chars as input seems more than enough
4478 test $ac_count -gt 10 && break
4479 done
4480 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4481 esac
4483 $ac_path_SED_found && break 3
4484 done
4485 done
4486 done
4487 IFS=$as_save_IFS
4488 if test -z "$ac_cv_path_SED"; then
4489 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4491 else
4492 ac_cv_path_SED=$SED
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4497 $as_echo "$ac_cv_path_SED" >&6; }
4498 SED="$ac_cv_path_SED"
4499 rm -f conftest.sed
4501 test -z "$SED" && SED=sed
4502 Xsed="$SED -e 1s/^X//"
4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4515 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4516 if test "${ac_cv_path_GREP+set}" = set; then :
4517 $as_echo_n "(cached) " >&6
4518 else
4519 if test -z "$GREP"; then
4520 ac_path_GREP_found=false
4521 # Loop through the user's path and test for each of PROGNAME-LIST
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_prog in grep ggrep; do
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4530 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4531 # Check for GNU ac_path_GREP and select it if it is found.
4532 # Check for GNU $ac_path_GREP
4533 case `"$ac_path_GREP" --version 2>&1` in
4534 *GNU*)
4535 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4537 ac_count=0
4538 $as_echo_n 0123456789 >"conftest.in"
4539 while :
4541 cat "conftest.in" "conftest.in" >"conftest.tmp"
4542 mv "conftest.tmp" "conftest.in"
4543 cp "conftest.in" "conftest.nl"
4544 $as_echo 'GREP' >> "conftest.nl"
4545 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4547 as_fn_arith $ac_count + 1 && ac_count=$as_val
4548 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4549 # Best one so far, save it but keep looking for a better one
4550 ac_cv_path_GREP="$ac_path_GREP"
4551 ac_path_GREP_max=$ac_count
4553 # 10*(2^10) chars as input seems more than enough
4554 test $ac_count -gt 10 && break
4555 done
4556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4557 esac
4559 $ac_path_GREP_found && break 3
4560 done
4561 done
4562 done
4563 IFS=$as_save_IFS
4564 if test -z "$ac_cv_path_GREP"; then
4565 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4567 else
4568 ac_cv_path_GREP=$GREP
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4573 $as_echo "$ac_cv_path_GREP" >&6; }
4574 GREP="$ac_cv_path_GREP"
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4578 $as_echo_n "checking for egrep... " >&6; }
4579 if test "${ac_cv_path_EGREP+set}" = set; then :
4580 $as_echo_n "(cached) " >&6
4581 else
4582 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4583 then ac_cv_path_EGREP="$GREP -E"
4584 else
4585 if test -z "$EGREP"; then
4586 ac_path_EGREP_found=false
4587 # Loop through the user's path and test for each of PROGNAME-LIST
4588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4589 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4591 IFS=$as_save_IFS
4592 test -z "$as_dir" && as_dir=.
4593 for ac_prog in egrep; do
4594 for ac_exec_ext in '' $ac_executable_extensions; do
4595 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4596 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4597 # Check for GNU ac_path_EGREP and select it if it is found.
4598 # Check for GNU $ac_path_EGREP
4599 case `"$ac_path_EGREP" --version 2>&1` in
4600 *GNU*)
4601 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4603 ac_count=0
4604 $as_echo_n 0123456789 >"conftest.in"
4605 while :
4607 cat "conftest.in" "conftest.in" >"conftest.tmp"
4608 mv "conftest.tmp" "conftest.in"
4609 cp "conftest.in" "conftest.nl"
4610 $as_echo 'EGREP' >> "conftest.nl"
4611 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4612 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4613 as_fn_arith $ac_count + 1 && ac_count=$as_val
4614 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4615 # Best one so far, save it but keep looking for a better one
4616 ac_cv_path_EGREP="$ac_path_EGREP"
4617 ac_path_EGREP_max=$ac_count
4619 # 10*(2^10) chars as input seems more than enough
4620 test $ac_count -gt 10 && break
4621 done
4622 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4623 esac
4625 $ac_path_EGREP_found && break 3
4626 done
4627 done
4628 done
4629 IFS=$as_save_IFS
4630 if test -z "$ac_cv_path_EGREP"; then
4631 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4633 else
4634 ac_cv_path_EGREP=$EGREP
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4640 $as_echo "$ac_cv_path_EGREP" >&6; }
4641 EGREP="$ac_cv_path_EGREP"
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4645 $as_echo_n "checking for fgrep... " >&6; }
4646 if test "${ac_cv_path_FGREP+set}" = set; then :
4647 $as_echo_n "(cached) " >&6
4648 else
4649 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4650 then ac_cv_path_FGREP="$GREP -F"
4651 else
4652 if test -z "$FGREP"; then
4653 ac_path_FGREP_found=false
4654 # Loop through the user's path and test for each of PROGNAME-LIST
4655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4656 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4658 IFS=$as_save_IFS
4659 test -z "$as_dir" && as_dir=.
4660 for ac_prog in fgrep; do
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4663 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4664 # Check for GNU ac_path_FGREP and select it if it is found.
4665 # Check for GNU $ac_path_FGREP
4666 case `"$ac_path_FGREP" --version 2>&1` in
4667 *GNU*)
4668 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4670 ac_count=0
4671 $as_echo_n 0123456789 >"conftest.in"
4672 while :
4674 cat "conftest.in" "conftest.in" >"conftest.tmp"
4675 mv "conftest.tmp" "conftest.in"
4676 cp "conftest.in" "conftest.nl"
4677 $as_echo 'FGREP' >> "conftest.nl"
4678 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4679 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4680 as_fn_arith $ac_count + 1 && ac_count=$as_val
4681 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4682 # Best one so far, save it but keep looking for a better one
4683 ac_cv_path_FGREP="$ac_path_FGREP"
4684 ac_path_FGREP_max=$ac_count
4686 # 10*(2^10) chars as input seems more than enough
4687 test $ac_count -gt 10 && break
4688 done
4689 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4690 esac
4692 $ac_path_FGREP_found && break 3
4693 done
4694 done
4695 done
4696 IFS=$as_save_IFS
4697 if test -z "$ac_cv_path_FGREP"; then
4698 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4700 else
4701 ac_cv_path_FGREP=$FGREP
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4707 $as_echo "$ac_cv_path_FGREP" >&6; }
4708 FGREP="$ac_cv_path_FGREP"
4711 test -z "$GREP" && GREP=grep
4731 # Check whether --with-gnu-ld was given.
4732 if test "${with_gnu_ld+set}" = set; then :
4733 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4734 else
4735 with_gnu_ld=no
4738 ac_prog=ld
4739 if test "$GCC" = yes; then
4740 # Check if gcc -print-prog-name=ld gives a path.
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4742 $as_echo_n "checking for ld used by $CC... " >&6; }
4743 case $host in
4744 *-*-mingw*)
4745 # gcc leaves a trailing carriage return which upsets mingw
4746 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4748 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4749 esac
4750 case $ac_prog in
4751 # Accept absolute paths.
4752 [\\/]* | ?:[\\/]*)
4753 re_direlt='/[^/][^/]*/\.\./'
4754 # Canonicalize the pathname of ld
4755 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4756 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4757 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4758 done
4759 test -z "$LD" && LD="$ac_prog"
4762 # If it fails, then pretend we aren't using GCC.
4763 ac_prog=ld
4766 # If it is relative, then search for the first ld in PATH.
4767 with_gnu_ld=unknown
4769 esac
4770 elif test "$with_gnu_ld" = yes; then
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4772 $as_echo_n "checking for GNU ld... " >&6; }
4773 else
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4775 $as_echo_n "checking for non-GNU ld... " >&6; }
4777 if test "${lt_cv_path_LD+set}" = set; then :
4778 $as_echo_n "(cached) " >&6
4779 else
4780 if test -z "$LD"; then
4781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4782 for ac_dir in $PATH; do
4783 IFS="$lt_save_ifs"
4784 test -z "$ac_dir" && ac_dir=.
4785 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4786 lt_cv_path_LD="$ac_dir/$ac_prog"
4787 # Check to see if the program is GNU ld. I'd rather use --version,
4788 # but apparently some variants of GNU ld only accept -v.
4789 # Break only if it was the GNU/non-GNU ld that we prefer.
4790 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4791 *GNU* | *'with BFD'*)
4792 test "$with_gnu_ld" != no && break
4795 test "$with_gnu_ld" != yes && break
4797 esac
4799 done
4800 IFS="$lt_save_ifs"
4801 else
4802 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4806 LD="$lt_cv_path_LD"
4807 if test -n "$LD"; then
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4809 $as_echo "$LD" >&6; }
4810 else
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 $as_echo "no" >&6; }
4814 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4816 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4817 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4821 case `$LD -v 2>&1 </dev/null` in
4822 *GNU* | *'with BFD'*)
4823 lt_cv_prog_gnu_ld=yes
4826 lt_cv_prog_gnu_ld=no
4828 esac
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4831 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4832 with_gnu_ld=$lt_cv_prog_gnu_ld
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4843 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4844 if test "${lt_cv_path_NM+set}" = set; then :
4845 $as_echo_n "(cached) " >&6
4846 else
4847 if test -n "$NM"; then
4848 # Let the user override the test.
4849 lt_cv_path_NM="$NM"
4850 else
4851 lt_nm_to_check="${ac_tool_prefix}nm"
4852 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4853 lt_nm_to_check="$lt_nm_to_check nm"
4855 for lt_tmp_nm in $lt_nm_to_check; do
4856 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4857 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4858 IFS="$lt_save_ifs"
4859 test -z "$ac_dir" && ac_dir=.
4860 tmp_nm="$ac_dir/$lt_tmp_nm"
4861 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4862 # Check to see if the nm accepts a BSD-compat flag.
4863 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4864 # nm: unknown option "B" ignored
4865 # Tru64's nm complains that /dev/null is an invalid object file
4866 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4867 */dev/null* | *'Invalid file or object type'*)
4868 lt_cv_path_NM="$tmp_nm -B"
4869 break
4872 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4873 */dev/null*)
4874 lt_cv_path_NM="$tmp_nm -p"
4875 break
4878 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4879 continue # so that we can try to find one that supports BSD flags
4881 esac
4883 esac
4885 done
4886 IFS="$lt_save_ifs"
4887 done
4888 : ${lt_cv_path_NM=no}
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4892 $as_echo "$lt_cv_path_NM" >&6; }
4893 if test "$lt_cv_path_NM" != "no"; then
4894 NM="$lt_cv_path_NM"
4895 else
4896 # Didn't find any BSD compatible name lister, look for dumpbin.
4897 if test -n "$DUMPBIN"; then :
4898 # Let the user override the test.
4899 else
4900 if test -n "$ac_tool_prefix"; then
4901 for ac_prog in dumpbin "link -dump"
4903 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4904 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4906 $as_echo_n "checking for $ac_word... " >&6; }
4907 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4908 $as_echo_n "(cached) " >&6
4909 else
4910 if test -n "$DUMPBIN"; then
4911 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4912 else
4913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4914 for as_dir in $PATH
4916 IFS=$as_save_IFS
4917 test -z "$as_dir" && as_dir=.
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4920 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 break 2
4924 done
4925 done
4926 IFS=$as_save_IFS
4930 DUMPBIN=$ac_cv_prog_DUMPBIN
4931 if test -n "$DUMPBIN"; then
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4933 $as_echo "$DUMPBIN" >&6; }
4934 else
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4936 $as_echo "no" >&6; }
4940 test -n "$DUMPBIN" && break
4941 done
4943 if test -z "$DUMPBIN"; then
4944 ac_ct_DUMPBIN=$DUMPBIN
4945 for ac_prog in dumpbin "link -dump"
4947 # Extract the first word of "$ac_prog", so it can be a program name with args.
4948 set dummy $ac_prog; ac_word=$2
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4950 $as_echo_n "checking for $ac_word... " >&6; }
4951 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4952 $as_echo_n "(cached) " >&6
4953 else
4954 if test -n "$ac_ct_DUMPBIN"; then
4955 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4956 else
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4968 done
4969 done
4970 IFS=$as_save_IFS
4974 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4975 if test -n "$ac_ct_DUMPBIN"; then
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4977 $as_echo "$ac_ct_DUMPBIN" >&6; }
4978 else
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4980 $as_echo "no" >&6; }
4984 test -n "$ac_ct_DUMPBIN" && break
4985 done
4987 if test "x$ac_ct_DUMPBIN" = x; then
4988 DUMPBIN=":"
4989 else
4990 case $cross_compiling:$ac_tool_warned in
4991 yes:)
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4993 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4994 ac_tool_warned=yes ;;
4995 esac
4996 DUMPBIN=$ac_ct_DUMPBIN
5000 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5001 *COFF*)
5002 DUMPBIN="$DUMPBIN -symbols"
5005 DUMPBIN=:
5007 esac
5010 if test "$DUMPBIN" != ":"; then
5011 NM="$DUMPBIN"
5014 test -z "$NM" && NM=nm
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5022 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5023 if test "${lt_cv_nm_interface+set}" = set; then :
5024 $as_echo_n "(cached) " >&6
5025 else
5026 lt_cv_nm_interface="BSD nm"
5027 echo "int some_variable = 0;" > conftest.$ac_ext
5028 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5029 (eval "$ac_compile" 2>conftest.err)
5030 cat conftest.err >&5
5031 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5032 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5033 cat conftest.err >&5
5034 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5035 cat conftest.out >&5
5036 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5037 lt_cv_nm_interface="MS dumpbin"
5039 rm -f conftest*
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5042 $as_echo "$lt_cv_nm_interface" >&6; }
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5045 $as_echo_n "checking whether ln -s works... " >&6; }
5046 LN_S=$as_ln_s
5047 if test "$LN_S" = "ln -s"; then
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5049 $as_echo "yes" >&6; }
5050 else
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5052 $as_echo "no, using $LN_S" >&6; }
5055 # find the maximum length of command line arguments
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5057 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5058 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5062 teststring="ABCD"
5064 case $build_os in
5065 msdosdjgpp*)
5066 # On DJGPP, this test can blow up pretty badly due to problems in libc
5067 # (any single argument exceeding 2000 bytes causes a buffer overrun
5068 # during glob expansion). Even if it were fixed, the result of this
5069 # check would be larger than it should be.
5070 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5073 gnu*)
5074 # Under GNU Hurd, this test is not required because there is
5075 # no limit to the length of command line arguments.
5076 # Libtool will interpret -1 as no limit whatsoever
5077 lt_cv_sys_max_cmd_len=-1;
5080 cygwin* | mingw* | cegcc*)
5081 # On Win9x/ME, this test blows up -- it succeeds, but takes
5082 # about 5 minutes as the teststring grows exponentially.
5083 # Worse, since 9x/ME are not pre-emptively multitasking,
5084 # you end up with a "frozen" computer, even though with patience
5085 # the test eventually succeeds (with a max line length of 256k).
5086 # Instead, let's just punt: use the minimum linelength reported by
5087 # all of the supported platforms: 8192 (on NT/2K/XP).
5088 lt_cv_sys_max_cmd_len=8192;
5091 mint*)
5092 # On MiNT this can take a long time and run out of memory.
5093 lt_cv_sys_max_cmd_len=8192;
5096 amigaos*)
5097 # On AmigaOS with pdksh, this test takes hours, literally.
5098 # So we just punt and use a minimum line length of 8192.
5099 lt_cv_sys_max_cmd_len=8192;
5102 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5103 # This has been around since 386BSD, at least. Likely further.
5104 if test -x /sbin/sysctl; then
5105 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5106 elif test -x /usr/sbin/sysctl; then
5107 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5108 else
5109 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5111 # And add a safety zone
5112 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5116 interix*)
5117 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5118 lt_cv_sys_max_cmd_len=196608
5121 osf*)
5122 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5123 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5124 # nice to cause kernel panics so lets avoid the loop below.
5125 # First set a reasonable default.
5126 lt_cv_sys_max_cmd_len=16384
5128 if test -x /sbin/sysconfig; then
5129 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5130 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5131 esac
5134 sco3.2v5*)
5135 lt_cv_sys_max_cmd_len=102400
5137 sysv5* | sco5v6* | sysv4.2uw2*)
5138 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5139 if test -n "$kargmax"; then
5140 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5141 else
5142 lt_cv_sys_max_cmd_len=32768
5146 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5147 if test -n "$lt_cv_sys_max_cmd_len"; then
5148 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5150 else
5151 # Make teststring a little bigger before we do anything with it.
5152 # a 1K string should be a reasonable start.
5153 for i in 1 2 3 4 5 6 7 8 ; do
5154 teststring=$teststring$teststring
5155 done
5156 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5157 # If test is not a shell built-in, we'll probably end up computing a
5158 # maximum length that is only half of the actual maximum length, but
5159 # we can't tell.
5160 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5161 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5162 test $i != 17 # 1/2 MB should be enough
5164 i=`expr $i + 1`
5165 teststring=$teststring$teststring
5166 done
5167 # Only check the string length outside the loop.
5168 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5169 teststring=
5170 # Add a significant safety factor because C++ compilers can tack on
5171 # massive amounts of additional arguments before passing them to the
5172 # linker. It appears as though 1/2 is a usable value.
5173 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5176 esac
5180 if test -n $lt_cv_sys_max_cmd_len ; then
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5182 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5183 else
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5185 $as_echo "none" >&6; }
5187 max_cmd_len=$lt_cv_sys_max_cmd_len
5194 : ${CP="cp -f"}
5195 : ${MV="mv -f"}
5196 : ${RM="rm -f"}
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5199 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5200 # Try some XSI features
5201 xsi_shell=no
5202 ( _lt_dummy="a/b/c"
5203 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5204 = c,a/b,, \
5205 && eval 'test $(( 1 + 1 )) -eq 2 \
5206 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5207 && xsi_shell=yes
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5209 $as_echo "$xsi_shell" >&6; }
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5213 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5214 lt_shell_append=no
5215 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5216 >/dev/null 2>&1 \
5217 && lt_shell_append=yes
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5219 $as_echo "$lt_shell_append" >&6; }
5222 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5223 lt_unset=unset
5224 else
5225 lt_unset=false
5232 # test EBCDIC or ASCII
5233 case `echo X|tr X '\101'` in
5234 A) # ASCII based system
5235 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5236 lt_SP2NL='tr \040 \012'
5237 lt_NL2SP='tr \015\012 \040\040'
5239 *) # EBCDIC based system
5240 lt_SP2NL='tr \100 \n'
5241 lt_NL2SP='tr \r\n \100\100'
5243 esac
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5254 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5255 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5256 $as_echo_n "(cached) " >&6
5257 else
5258 lt_cv_ld_reload_flag='-r'
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5261 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5262 reload_flag=$lt_cv_ld_reload_flag
5263 case $reload_flag in
5264 "" | " "*) ;;
5265 *) reload_flag=" $reload_flag" ;;
5266 esac
5267 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5268 case $host_os in
5269 darwin*)
5270 if test "$GCC" = yes; then
5271 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5272 else
5273 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5276 esac
5286 if test -n "$ac_tool_prefix"; then
5287 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5288 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5290 $as_echo_n "checking for $ac_word... " >&6; }
5291 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5292 $as_echo_n "(cached) " >&6
5293 else
5294 if test -n "$OBJDUMP"; then
5295 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5296 else
5297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5298 for as_dir in $PATH
5300 IFS=$as_save_IFS
5301 test -z "$as_dir" && as_dir=.
5302 for ac_exec_ext in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5306 break 2
5308 done
5309 done
5310 IFS=$as_save_IFS
5314 OBJDUMP=$ac_cv_prog_OBJDUMP
5315 if test -n "$OBJDUMP"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5317 $as_echo "$OBJDUMP" >&6; }
5318 else
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5325 if test -z "$ac_cv_prog_OBJDUMP"; then
5326 ac_ct_OBJDUMP=$OBJDUMP
5327 # Extract the first word of "objdump", so it can be a program name with args.
5328 set dummy objdump; ac_word=$2
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5330 $as_echo_n "checking for $ac_word... " >&6; }
5331 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 if test -n "$ac_ct_OBJDUMP"; then
5335 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5336 else
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5338 for as_dir in $PATH
5340 IFS=$as_save_IFS
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5346 break 2
5348 done
5349 done
5350 IFS=$as_save_IFS
5354 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5355 if test -n "$ac_ct_OBJDUMP"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5357 $as_echo "$ac_ct_OBJDUMP" >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5363 if test "x$ac_ct_OBJDUMP" = x; then
5364 OBJDUMP="false"
5365 else
5366 case $cross_compiling:$ac_tool_warned in
5367 yes:)
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5370 ac_tool_warned=yes ;;
5371 esac
5372 OBJDUMP=$ac_ct_OBJDUMP
5374 else
5375 OBJDUMP="$ac_cv_prog_OBJDUMP"
5378 test -z "$OBJDUMP" && OBJDUMP=objdump
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5389 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5390 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5391 $as_echo_n "(cached) " >&6
5392 else
5393 lt_cv_file_magic_cmd='$MAGIC_CMD'
5394 lt_cv_file_magic_test_file=
5395 lt_cv_deplibs_check_method='unknown'
5396 # Need to set the preceding variable on all platforms that support
5397 # interlibrary dependencies.
5398 # 'none' -- dependencies not supported.
5399 # `unknown' -- same as none, but documents that we really don't know.
5400 # 'pass_all' -- all dependencies passed with no checks.
5401 # 'test_compile' -- check by making test program.
5402 # 'file_magic [[regex]]' -- check by looking for files in library path
5403 # which responds to the $file_magic_cmd with a given extended regex.
5404 # If you have `file' or equivalent on your system and you're not sure
5405 # whether `pass_all' will *always* work, you probably want this one.
5407 case $host_os in
5408 aix[4-9]*)
5409 lt_cv_deplibs_check_method=pass_all
5412 beos*)
5413 lt_cv_deplibs_check_method=pass_all
5416 bsdi[45]*)
5417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5418 lt_cv_file_magic_cmd='/usr/bin/file -L'
5419 lt_cv_file_magic_test_file=/shlib/libc.so
5422 cygwin*)
5423 # func_win32_libid is a shell function defined in ltmain.sh
5424 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5425 lt_cv_file_magic_cmd='func_win32_libid'
5428 mingw* | pw32*)
5429 # Base MSYS/MinGW do not provide the 'file' command needed by
5430 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5431 # unless we find 'file', for example because we are cross-compiling.
5432 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5433 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5434 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5435 lt_cv_file_magic_cmd='func_win32_libid'
5436 else
5437 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5438 lt_cv_file_magic_cmd='$OBJDUMP -f'
5442 cegcc*)
5443 # use the weaker test based on 'objdump'. See mingw*.
5444 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5445 lt_cv_file_magic_cmd='$OBJDUMP -f'
5448 darwin* | rhapsody*)
5449 lt_cv_deplibs_check_method=pass_all
5452 freebsd* | dragonfly*)
5453 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5454 case $host_cpu in
5455 i*86 )
5456 # Not sure whether the presence of OpenBSD here was a mistake.
5457 # Let's accept both of them until this is cleared up.
5458 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5459 lt_cv_file_magic_cmd=/usr/bin/file
5460 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5462 esac
5463 else
5464 lt_cv_deplibs_check_method=pass_all
5468 gnu*)
5469 lt_cv_deplibs_check_method=pass_all
5472 haiku*)
5473 lt_cv_deplibs_check_method=pass_all
5476 hpux10.20* | hpux11*)
5477 lt_cv_file_magic_cmd=/usr/bin/file
5478 case $host_cpu in
5479 ia64*)
5480 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5481 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5483 hppa*64*)
5484 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]'
5485 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5488 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5489 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5491 esac
5494 interix[3-9]*)
5495 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5499 irix5* | irix6* | nonstopux*)
5500 case $LD in
5501 *-32|*"-32 ") libmagic=32-bit;;
5502 *-n32|*"-n32 ") libmagic=N32;;
5503 *-64|*"-64 ") libmagic=64-bit;;
5504 *) libmagic=never-match;;
5505 esac
5506 lt_cv_deplibs_check_method=pass_all
5509 # This must be Linux ELF.
5510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5511 lt_cv_deplibs_check_method=pass_all
5514 netbsd*)
5515 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5516 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5517 else
5518 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5522 newos6*)
5523 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5524 lt_cv_file_magic_cmd=/usr/bin/file
5525 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5528 *nto* | *qnx*)
5529 lt_cv_deplibs_check_method=pass_all
5532 openbsd*)
5533 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5534 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5535 else
5536 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5540 osf3* | osf4* | osf5*)
5541 lt_cv_deplibs_check_method=pass_all
5544 rdos*)
5545 lt_cv_deplibs_check_method=pass_all
5548 solaris*)
5549 lt_cv_deplibs_check_method=pass_all
5552 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5553 lt_cv_deplibs_check_method=pass_all
5556 sysv4 | sysv4.3*)
5557 case $host_vendor in
5558 motorola)
5559 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]'
5560 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5562 ncr)
5563 lt_cv_deplibs_check_method=pass_all
5565 sequent)
5566 lt_cv_file_magic_cmd='/bin/file'
5567 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5569 sni)
5570 lt_cv_file_magic_cmd='/bin/file'
5571 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5572 lt_cv_file_magic_test_file=/lib/libc.so
5574 siemens)
5575 lt_cv_deplibs_check_method=pass_all
5578 lt_cv_deplibs_check_method=pass_all
5580 esac
5583 tpf*)
5584 lt_cv_deplibs_check_method=pass_all
5586 esac
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5590 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5591 file_magic_cmd=$lt_cv_file_magic_cmd
5592 deplibs_check_method=$lt_cv_deplibs_check_method
5593 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5606 if test -n "$ac_tool_prefix"; then
5607 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5608 set dummy ${ac_tool_prefix}ar; ac_word=$2
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5610 $as_echo_n "checking for $ac_word... " >&6; }
5611 if test "${ac_cv_prog_AR+set}" = set; then :
5612 $as_echo_n "(cached) " >&6
5613 else
5614 if test -n "$AR"; then
5615 ac_cv_prog_AR="$AR" # Let the user override the test.
5616 else
5617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5618 for as_dir in $PATH
5620 IFS=$as_save_IFS
5621 test -z "$as_dir" && as_dir=.
5622 for ac_exec_ext in '' $ac_executable_extensions; do
5623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5624 ac_cv_prog_AR="${ac_tool_prefix}ar"
5625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5626 break 2
5628 done
5629 done
5630 IFS=$as_save_IFS
5634 AR=$ac_cv_prog_AR
5635 if test -n "$AR"; then
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5637 $as_echo "$AR" >&6; }
5638 else
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5640 $as_echo "no" >&6; }
5645 if test -z "$ac_cv_prog_AR"; then
5646 ac_ct_AR=$AR
5647 # Extract the first word of "ar", so it can be a program name with args.
5648 set dummy ar; ac_word=$2
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5650 $as_echo_n "checking for $ac_word... " >&6; }
5651 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5652 $as_echo_n "(cached) " >&6
5653 else
5654 if test -n "$ac_ct_AR"; then
5655 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5656 else
5657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5658 for as_dir in $PATH
5660 IFS=$as_save_IFS
5661 test -z "$as_dir" && as_dir=.
5662 for ac_exec_ext in '' $ac_executable_extensions; do
5663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5664 ac_cv_prog_ac_ct_AR="ar"
5665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 break 2
5668 done
5669 done
5670 IFS=$as_save_IFS
5674 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5675 if test -n "$ac_ct_AR"; then
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5677 $as_echo "$ac_ct_AR" >&6; }
5678 else
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5680 $as_echo "no" >&6; }
5683 if test "x$ac_ct_AR" = x; then
5684 AR="false"
5685 else
5686 case $cross_compiling:$ac_tool_warned in
5687 yes:)
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5690 ac_tool_warned=yes ;;
5691 esac
5692 AR=$ac_ct_AR
5694 else
5695 AR="$ac_cv_prog_AR"
5698 test -z "$AR" && AR=ar
5699 test -z "$AR_FLAGS" && AR_FLAGS=cru
5711 if test -n "$ac_tool_prefix"; then
5712 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5713 set dummy ${ac_tool_prefix}strip; ac_word=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if test "${ac_cv_prog_STRIP+set}" = set; then :
5717 $as_echo_n "(cached) " >&6
5718 else
5719 if test -n "$STRIP"; then
5720 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5721 else
5722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5723 for as_dir in $PATH
5725 IFS=$as_save_IFS
5726 test -z "$as_dir" && as_dir=.
5727 for ac_exec_ext in '' $ac_executable_extensions; do
5728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5729 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5731 break 2
5733 done
5734 done
5735 IFS=$as_save_IFS
5739 STRIP=$ac_cv_prog_STRIP
5740 if test -n "$STRIP"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5742 $as_echo "$STRIP" >&6; }
5743 else
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5750 if test -z "$ac_cv_prog_STRIP"; then
5751 ac_ct_STRIP=$STRIP
5752 # Extract the first word of "strip", so it can be a program name with args.
5753 set dummy strip; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$ac_ct_STRIP"; then
5760 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5769 ac_cv_prog_ac_ct_STRIP="strip"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5773 done
5774 done
5775 IFS=$as_save_IFS
5779 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5780 if test -n "$ac_ct_STRIP"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5782 $as_echo "$ac_ct_STRIP" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5788 if test "x$ac_ct_STRIP" = x; then
5789 STRIP=":"
5790 else
5791 case $cross_compiling:$ac_tool_warned in
5792 yes:)
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5795 ac_tool_warned=yes ;;
5796 esac
5797 STRIP=$ac_ct_STRIP
5799 else
5800 STRIP="$ac_cv_prog_STRIP"
5803 test -z "$STRIP" && STRIP=:
5810 if test -n "$ac_tool_prefix"; then
5811 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5812 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5814 $as_echo_n "checking for $ac_word... " >&6; }
5815 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818 if test -n "$RANLIB"; then
5819 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820 else
5821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5822 for as_dir in $PATH
5824 IFS=$as_save_IFS
5825 test -z "$as_dir" && as_dir=.
5826 for ac_exec_ext in '' $ac_executable_extensions; do
5827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5828 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5830 break 2
5832 done
5833 done
5834 IFS=$as_save_IFS
5838 RANLIB=$ac_cv_prog_RANLIB
5839 if test -n "$RANLIB"; then
5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5841 $as_echo "$RANLIB" >&6; }
5842 else
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5844 $as_echo "no" >&6; }
5849 if test -z "$ac_cv_prog_RANLIB"; then
5850 ac_ct_RANLIB=$RANLIB
5851 # Extract the first word of "ranlib", so it can be a program name with args.
5852 set dummy ranlib; ac_word=$2
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5854 $as_echo_n "checking for $ac_word... " >&6; }
5855 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5856 $as_echo_n "(cached) " >&6
5857 else
5858 if test -n "$ac_ct_RANLIB"; then
5859 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5860 else
5861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 for as_dir in $PATH
5864 IFS=$as_save_IFS
5865 test -z "$as_dir" && as_dir=.
5866 for ac_exec_ext in '' $ac_executable_extensions; do
5867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5868 ac_cv_prog_ac_ct_RANLIB="ranlib"
5869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 break 2
5872 done
5873 done
5874 IFS=$as_save_IFS
5878 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5879 if test -n "$ac_ct_RANLIB"; then
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5881 $as_echo "$ac_ct_RANLIB" >&6; }
5882 else
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5884 $as_echo "no" >&6; }
5887 if test "x$ac_ct_RANLIB" = x; then
5888 RANLIB=":"
5889 else
5890 case $cross_compiling:$ac_tool_warned in
5891 yes:)
5892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5893 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5894 ac_tool_warned=yes ;;
5895 esac
5896 RANLIB=$ac_ct_RANLIB
5898 else
5899 RANLIB="$ac_cv_prog_RANLIB"
5902 test -z "$RANLIB" && RANLIB=:
5909 # Determine commands to create old-style static archives.
5910 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5911 old_postinstall_cmds='chmod 644 $oldlib'
5912 old_postuninstall_cmds=
5914 if test -n "$RANLIB"; then
5915 case $host_os in
5916 openbsd*)
5917 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5920 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5922 esac
5923 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5926 case $host_os in
5927 darwin*)
5928 lock_old_archive_extraction=yes ;;
5930 lock_old_archive_extraction=no ;;
5931 esac
5971 # If no C compiler was specified, use CC.
5972 LTCC=${LTCC-"$CC"}
5974 # If no C compiler flags were specified, use CFLAGS.
5975 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5977 # Allow CC to be a program name with arguments.
5978 compiler=$CC
5981 # Check for command to grab the raw symbol name followed by C symbol from nm.
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5983 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5984 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5985 $as_echo_n "(cached) " >&6
5986 else
5988 # These are sane defaults that work on at least a few old systems.
5989 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5991 # Character class describing NM global symbol codes.
5992 symcode='[BCDEGRST]'
5994 # Regexp to match symbols that can be accessed directly from C.
5995 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5997 # Define system-specific variables.
5998 case $host_os in
5999 aix*)
6000 symcode='[BCDT]'
6002 cygwin* | mingw* | pw32* | cegcc*)
6003 symcode='[ABCDGISTW]'
6005 hpux*)
6006 if test "$host_cpu" = ia64; then
6007 symcode='[ABCDEGRST]'
6010 irix* | nonstopux*)
6011 symcode='[BCDEGRST]'
6013 osf*)
6014 symcode='[BCDEGQRST]'
6016 solaris*)
6017 symcode='[BDRT]'
6019 sco3.2v5*)
6020 symcode='[DT]'
6022 sysv4.2uw2*)
6023 symcode='[DT]'
6025 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6026 symcode='[ABDT]'
6028 sysv4)
6029 symcode='[DFNSTU]'
6031 esac
6033 # If we're using GNU nm, then use its standard symbol codes.
6034 case `$NM -V 2>&1` in
6035 *GNU* | *'with BFD'*)
6036 symcode='[ABCDGIRSTW]' ;;
6037 esac
6039 # Transform an extracted symbol line into a proper C declaration.
6040 # Some systems (esp. on ia64) link data and code symbols differently,
6041 # so use this general approach.
6042 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6044 # Transform an extracted symbol line into symbol name and symbol address
6045 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6046 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'"
6048 # Handle CRLF in mingw tool chain
6049 opt_cr=
6050 case $build_os in
6051 mingw*)
6052 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6054 esac
6056 # Try without a prefix underscore, then with it.
6057 for ac_symprfx in "" "_"; do
6059 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6060 symxfrm="\\1 $ac_symprfx\\2 \\2"
6062 # Write the raw and C identifiers.
6063 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6064 # Fake it for dumpbin and say T for any non-static function
6065 # and D for any global variable.
6066 # Also find C++ and __fastcall symbols from MSVC++,
6067 # which start with @ or ?.
6068 lt_cv_sys_global_symbol_pipe="$AWK '"\
6069 " {last_section=section; section=\$ 3};"\
6070 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6071 " \$ 0!~/External *\|/{next};"\
6072 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6073 " {if(hide[section]) next};"\
6074 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6075 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6076 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6077 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6078 " ' prfx=^$ac_symprfx"
6079 else
6080 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6083 # Check to see that the pipe works correctly.
6084 pipe_works=no
6086 rm -f conftest*
6087 cat > conftest.$ac_ext <<_LT_EOF
6088 #ifdef __cplusplus
6089 extern "C" {
6090 #endif
6091 char nm_test_var;
6092 void nm_test_func(void);
6093 void nm_test_func(void){}
6094 #ifdef __cplusplus
6096 #endif
6097 int main(){nm_test_var='a';nm_test_func();return(0);}
6098 _LT_EOF
6100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6101 (eval $ac_compile) 2>&5
6102 ac_status=$?
6103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6104 test $ac_status = 0; }; then
6105 # Now try to grab the symbols.
6106 nlist=conftest.nm
6107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6108 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6109 ac_status=$?
6110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6111 test $ac_status = 0; } && test -s "$nlist"; then
6112 # Try sorting and uniquifying the output.
6113 if sort "$nlist" | uniq > "$nlist"T; then
6114 mv -f "$nlist"T "$nlist"
6115 else
6116 rm -f "$nlist"T
6119 # Make sure that we snagged all the symbols we need.
6120 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6121 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6122 cat <<_LT_EOF > conftest.$ac_ext
6123 #ifdef __cplusplus
6124 extern "C" {
6125 #endif
6127 _LT_EOF
6128 # Now generate the symbol file.
6129 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6131 cat <<_LT_EOF >> conftest.$ac_ext
6133 /* The mapping between symbol names and symbols. */
6134 const struct {
6135 const char *name;
6136 void *address;
6138 lt__PROGRAM__LTX_preloaded_symbols[] =
6140 { "@PROGRAM@", (void *) 0 },
6141 _LT_EOF
6142 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6143 cat <<\_LT_EOF >> conftest.$ac_ext
6144 {0, (void *) 0}
6147 /* This works around a problem in FreeBSD linker */
6148 #ifdef FREEBSD_WORKAROUND
6149 static const void *lt_preloaded_setup() {
6150 return lt__PROGRAM__LTX_preloaded_symbols;
6152 #endif
6154 #ifdef __cplusplus
6156 #endif
6157 _LT_EOF
6158 # Now try linking the two files.
6159 mv conftest.$ac_objext conftstm.$ac_objext
6160 lt_save_LIBS="$LIBS"
6161 lt_save_CFLAGS="$CFLAGS"
6162 LIBS="conftstm.$ac_objext"
6163 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6165 (eval $ac_link) 2>&5
6166 ac_status=$?
6167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6168 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6169 pipe_works=yes
6171 LIBS="$lt_save_LIBS"
6172 CFLAGS="$lt_save_CFLAGS"
6173 else
6174 echo "cannot find nm_test_func in $nlist" >&5
6176 else
6177 echo "cannot find nm_test_var in $nlist" >&5
6179 else
6180 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6182 else
6183 echo "$progname: failed program was:" >&5
6184 cat conftest.$ac_ext >&5
6186 rm -rf conftest* conftst*
6188 # Do not use the global_symbol_pipe unless it works.
6189 if test "$pipe_works" = yes; then
6190 break
6191 else
6192 lt_cv_sys_global_symbol_pipe=
6194 done
6198 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6199 lt_cv_sys_global_symbol_to_cdecl=
6201 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6203 $as_echo "failed" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6206 $as_echo "ok" >&6; }
6231 # Check whether --enable-libtool-lock was given.
6232 if test "${enable_libtool_lock+set}" = set; then :
6233 enableval=$enable_libtool_lock;
6236 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6238 # Some flags need to be propagated to the compiler or linker for good
6239 # libtool support.
6240 case $host in
6241 ia64-*-hpux*)
6242 # Find out which ABI we are using.
6243 echo 'int i;' > conftest.$ac_ext
6244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6245 (eval $ac_compile) 2>&5
6246 ac_status=$?
6247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6248 test $ac_status = 0; }; then
6249 case `/usr/bin/file conftest.$ac_objext` in
6250 *ELF-32*)
6251 HPUX_IA64_MODE="32"
6253 *ELF-64*)
6254 HPUX_IA64_MODE="64"
6256 esac
6258 rm -rf conftest*
6260 *-*-irix6*)
6261 # Find out which ABI we are using.
6262 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6263 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6264 (eval $ac_compile) 2>&5
6265 ac_status=$?
6266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6267 test $ac_status = 0; }; then
6268 if test "$lt_cv_prog_gnu_ld" = yes; then
6269 case `/usr/bin/file conftest.$ac_objext` in
6270 *32-bit*)
6271 LD="${LD-ld} -melf32bsmip"
6273 *N32*)
6274 LD="${LD-ld} -melf32bmipn32"
6276 *64-bit*)
6277 LD="${LD-ld} -melf64bmip"
6279 esac
6280 else
6281 case `/usr/bin/file conftest.$ac_objext` in
6282 *32-bit*)
6283 LD="${LD-ld} -32"
6285 *N32*)
6286 LD="${LD-ld} -n32"
6288 *64-bit*)
6289 LD="${LD-ld} -64"
6291 esac
6294 rm -rf conftest*
6297 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6298 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6299 # Find out which ABI we are using.
6300 echo 'int i;' > conftest.$ac_ext
6301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6302 (eval $ac_compile) 2>&5
6303 ac_status=$?
6304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305 test $ac_status = 0; }; then
6306 case `/usr/bin/file conftest.o` in
6307 *32-bit*)
6308 case $host in
6309 x86_64-*kfreebsd*-gnu)
6310 LD="${LD-ld} -m elf_i386_fbsd"
6312 x86_64-*linux*)
6313 case `/usr/bin/file conftest.o` in
6314 *x86-64*)
6315 LD="${LD-ld} -m elf32_x86_64"
6318 LD="${LD-ld} -m elf_i386"
6320 esac
6322 powerpc64le-*linux*)
6323 LD="${LD-ld} -m elf32lppclinux"
6325 powerpc64-*linux*)
6326 LD="${LD-ld} -m elf32ppclinux"
6328 s390x-*linux*)
6329 LD="${LD-ld} -m elf_s390"
6331 sparc64-*linux*)
6332 LD="${LD-ld} -m elf32_sparc"
6334 esac
6336 *64-bit*)
6337 case $host in
6338 x86_64-*kfreebsd*-gnu)
6339 LD="${LD-ld} -m elf_x86_64_fbsd"
6341 x86_64-*linux*)
6342 LD="${LD-ld} -m elf_x86_64"
6344 powerpcle-*linux*)
6345 LD="${LD-ld} -m elf64lppc"
6347 powerpc-*linux*)
6348 LD="${LD-ld} -m elf64ppc"
6350 s390*-*linux*|s390*-*tpf*)
6351 LD="${LD-ld} -m elf64_s390"
6353 sparc*-*linux*)
6354 LD="${LD-ld} -m elf64_sparc"
6356 esac
6358 esac
6360 rm -rf conftest*
6363 *-*-sco3.2v5*)
6364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6365 SAVE_CFLAGS="$CFLAGS"
6366 CFLAGS="$CFLAGS -belf"
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6368 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6369 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6370 $as_echo_n "(cached) " >&6
6371 else
6372 ac_ext=c
6373 ac_cpp='$CPP $CPPFLAGS'
6374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379 /* end confdefs.h. */
6382 main ()
6386 return 0;
6388 _ACEOF
6389 if ac_fn_c_try_link "$LINENO"; then :
6390 lt_cv_cc_needs_belf=yes
6391 else
6392 lt_cv_cc_needs_belf=no
6394 rm -f core conftest.err conftest.$ac_objext \
6395 conftest$ac_exeext conftest.$ac_ext
6396 ac_ext=c
6397 ac_cpp='$CPP $CPPFLAGS'
6398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6404 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6405 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6406 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6407 CFLAGS="$SAVE_CFLAGS"
6410 sparc*-*solaris*)
6411 # Find out which ABI we are using.
6412 echo 'int i;' > conftest.$ac_ext
6413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6414 (eval $ac_compile) 2>&5
6415 ac_status=$?
6416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6417 test $ac_status = 0; }; then
6418 case `/usr/bin/file conftest.o` in
6419 *64-bit*)
6420 case $lt_cv_prog_gnu_ld in
6421 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6423 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6424 LD="${LD-ld} -64"
6427 esac
6429 esac
6431 rm -rf conftest*
6433 esac
6435 need_locks="$enable_libtool_lock"
6438 case $host_os in
6439 rhapsody* | darwin*)
6440 if test -n "$ac_tool_prefix"; then
6441 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6442 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444 $as_echo_n "checking for $ac_word... " >&6; }
6445 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6446 $as_echo_n "(cached) " >&6
6447 else
6448 if test -n "$DSYMUTIL"; then
6449 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6450 else
6451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6452 for as_dir in $PATH
6454 IFS=$as_save_IFS
6455 test -z "$as_dir" && as_dir=.
6456 for ac_exec_ext in '' $ac_executable_extensions; do
6457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6458 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6460 break 2
6462 done
6463 done
6464 IFS=$as_save_IFS
6468 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6469 if test -n "$DSYMUTIL"; then
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6471 $as_echo "$DSYMUTIL" >&6; }
6472 else
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474 $as_echo "no" >&6; }
6479 if test -z "$ac_cv_prog_DSYMUTIL"; then
6480 ac_ct_DSYMUTIL=$DSYMUTIL
6481 # Extract the first word of "dsymutil", so it can be a program name with args.
6482 set dummy dsymutil; ac_word=$2
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484 $as_echo_n "checking for $ac_word... " >&6; }
6485 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6486 $as_echo_n "(cached) " >&6
6487 else
6488 if test -n "$ac_ct_DSYMUTIL"; then
6489 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6494 IFS=$as_save_IFS
6495 test -z "$as_dir" && as_dir=.
6496 for ac_exec_ext in '' $ac_executable_extensions; do
6497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6498 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6500 break 2
6502 done
6503 done
6504 IFS=$as_save_IFS
6508 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6509 if test -n "$ac_ct_DSYMUTIL"; then
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6511 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6512 else
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514 $as_echo "no" >&6; }
6517 if test "x$ac_ct_DSYMUTIL" = x; then
6518 DSYMUTIL=":"
6519 else
6520 case $cross_compiling:$ac_tool_warned in
6521 yes:)
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524 ac_tool_warned=yes ;;
6525 esac
6526 DSYMUTIL=$ac_ct_DSYMUTIL
6528 else
6529 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6532 if test -n "$ac_tool_prefix"; then
6533 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6534 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6536 $as_echo_n "checking for $ac_word... " >&6; }
6537 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6538 $as_echo_n "(cached) " >&6
6539 else
6540 if test -n "$NMEDIT"; then
6541 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6542 else
6543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6544 for as_dir in $PATH
6546 IFS=$as_save_IFS
6547 test -z "$as_dir" && as_dir=.
6548 for ac_exec_ext in '' $ac_executable_extensions; do
6549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6550 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6552 break 2
6554 done
6555 done
6556 IFS=$as_save_IFS
6560 NMEDIT=$ac_cv_prog_NMEDIT
6561 if test -n "$NMEDIT"; then
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6563 $as_echo "$NMEDIT" >&6; }
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6571 if test -z "$ac_cv_prog_NMEDIT"; then
6572 ac_ct_NMEDIT=$NMEDIT
6573 # Extract the first word of "nmedit", so it can be a program name with args.
6574 set dummy nmedit; ac_word=$2
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6576 $as_echo_n "checking for $ac_word... " >&6; }
6577 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6578 $as_echo_n "(cached) " >&6
6579 else
6580 if test -n "$ac_ct_NMEDIT"; then
6581 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6586 IFS=$as_save_IFS
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6592 break 2
6594 done
6595 done
6596 IFS=$as_save_IFS
6600 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6601 if test -n "$ac_ct_NMEDIT"; then
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6603 $as_echo "$ac_ct_NMEDIT" >&6; }
6604 else
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6606 $as_echo "no" >&6; }
6609 if test "x$ac_ct_NMEDIT" = x; then
6610 NMEDIT=":"
6611 else
6612 case $cross_compiling:$ac_tool_warned in
6613 yes:)
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6615 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6616 ac_tool_warned=yes ;;
6617 esac
6618 NMEDIT=$ac_ct_NMEDIT
6620 else
6621 NMEDIT="$ac_cv_prog_NMEDIT"
6624 if test -n "$ac_tool_prefix"; then
6625 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6626 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628 $as_echo_n "checking for $ac_word... " >&6; }
6629 if test "${ac_cv_prog_LIPO+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$LIPO"; then
6633 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6634 else
6635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636 for as_dir in $PATH
6638 IFS=$as_save_IFS
6639 test -z "$as_dir" && as_dir=.
6640 for ac_exec_ext in '' $ac_executable_extensions; do
6641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644 break 2
6646 done
6647 done
6648 IFS=$as_save_IFS
6652 LIPO=$ac_cv_prog_LIPO
6653 if test -n "$LIPO"; then
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6655 $as_echo "$LIPO" >&6; }
6656 else
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658 $as_echo "no" >&6; }
6663 if test -z "$ac_cv_prog_LIPO"; then
6664 ac_ct_LIPO=$LIPO
6665 # Extract the first word of "lipo", so it can be a program name with args.
6666 set dummy lipo; ac_word=$2
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6668 $as_echo_n "checking for $ac_word... " >&6; }
6669 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6670 $as_echo_n "(cached) " >&6
6671 else
6672 if test -n "$ac_ct_LIPO"; then
6673 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6674 else
6675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6676 for as_dir in $PATH
6678 IFS=$as_save_IFS
6679 test -z "$as_dir" && as_dir=.
6680 for ac_exec_ext in '' $ac_executable_extensions; do
6681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6682 ac_cv_prog_ac_ct_LIPO="lipo"
6683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6684 break 2
6686 done
6687 done
6688 IFS=$as_save_IFS
6692 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6693 if test -n "$ac_ct_LIPO"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6695 $as_echo "$ac_ct_LIPO" >&6; }
6696 else
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6701 if test "x$ac_ct_LIPO" = x; then
6702 LIPO=":"
6703 else
6704 case $cross_compiling:$ac_tool_warned in
6705 yes:)
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6708 ac_tool_warned=yes ;;
6709 esac
6710 LIPO=$ac_ct_LIPO
6712 else
6713 LIPO="$ac_cv_prog_LIPO"
6716 if test -n "$ac_tool_prefix"; then
6717 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6718 set dummy ${ac_tool_prefix}otool; ac_word=$2
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6720 $as_echo_n "checking for $ac_word... " >&6; }
6721 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6722 $as_echo_n "(cached) " >&6
6723 else
6724 if test -n "$OTOOL"; then
6725 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6726 else
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_exec_ext in '' $ac_executable_extensions; do
6733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6734 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6736 break 2
6738 done
6739 done
6740 IFS=$as_save_IFS
6744 OTOOL=$ac_cv_prog_OTOOL
6745 if test -n "$OTOOL"; then
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6747 $as_echo "$OTOOL" >&6; }
6748 else
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6750 $as_echo "no" >&6; }
6755 if test -z "$ac_cv_prog_OTOOL"; then
6756 ac_ct_OTOOL=$OTOOL
6757 # Extract the first word of "otool", so it can be a program name with args.
6758 set dummy otool; ac_word=$2
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6760 $as_echo_n "checking for $ac_word... " >&6; }
6761 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6762 $as_echo_n "(cached) " >&6
6763 else
6764 if test -n "$ac_ct_OTOOL"; then
6765 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6766 else
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6768 for as_dir in $PATH
6770 IFS=$as_save_IFS
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_prog_ac_ct_OTOOL="otool"
6775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6776 break 2
6778 done
6779 done
6780 IFS=$as_save_IFS
6784 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6785 if test -n "$ac_ct_OTOOL"; then
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6787 $as_echo "$ac_ct_OTOOL" >&6; }
6788 else
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6790 $as_echo "no" >&6; }
6793 if test "x$ac_ct_OTOOL" = x; then
6794 OTOOL=":"
6795 else
6796 case $cross_compiling:$ac_tool_warned in
6797 yes:)
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6799 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6800 ac_tool_warned=yes ;;
6801 esac
6802 OTOOL=$ac_ct_OTOOL
6804 else
6805 OTOOL="$ac_cv_prog_OTOOL"
6808 if test -n "$ac_tool_prefix"; then
6809 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6810 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6812 $as_echo_n "checking for $ac_word... " >&6; }
6813 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6814 $as_echo_n "(cached) " >&6
6815 else
6816 if test -n "$OTOOL64"; then
6817 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6818 else
6819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 for as_dir in $PATH
6822 IFS=$as_save_IFS
6823 test -z "$as_dir" && as_dir=.
6824 for ac_exec_ext in '' $ac_executable_extensions; do
6825 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6826 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 break 2
6830 done
6831 done
6832 IFS=$as_save_IFS
6836 OTOOL64=$ac_cv_prog_OTOOL64
6837 if test -n "$OTOOL64"; then
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6839 $as_echo "$OTOOL64" >&6; }
6840 else
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6842 $as_echo "no" >&6; }
6847 if test -z "$ac_cv_prog_OTOOL64"; then
6848 ac_ct_OTOOL64=$OTOOL64
6849 # Extract the first word of "otool64", so it can be a program name with args.
6850 set dummy otool64; ac_word=$2
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6852 $as_echo_n "checking for $ac_word... " >&6; }
6853 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6854 $as_echo_n "(cached) " >&6
6855 else
6856 if test -n "$ac_ct_OTOOL64"; then
6857 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6862 IFS=$as_save_IFS
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_prog_ac_ct_OTOOL64="otool64"
6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6868 break 2
6870 done
6871 done
6872 IFS=$as_save_IFS
6876 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6877 if test -n "$ac_ct_OTOOL64"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6879 $as_echo "$ac_ct_OTOOL64" >&6; }
6880 else
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6885 if test "x$ac_ct_OTOOL64" = x; then
6886 OTOOL64=":"
6887 else
6888 case $cross_compiling:$ac_tool_warned in
6889 yes:)
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6892 ac_tool_warned=yes ;;
6893 esac
6894 OTOOL64=$ac_ct_OTOOL64
6896 else
6897 OTOOL64="$ac_cv_prog_OTOOL64"
6926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6927 $as_echo_n "checking for -single_module linker flag... " >&6; }
6928 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6929 $as_echo_n "(cached) " >&6
6930 else
6931 lt_cv_apple_cc_single_mod=no
6932 if test -z "${LT_MULTI_MODULE}"; then
6933 # By default we will add the -single_module flag. You can override
6934 # by either setting the environment variable LT_MULTI_MODULE
6935 # non-empty at configure time, or by adding -multi_module to the
6936 # link flags.
6937 rm -rf libconftest.dylib*
6938 echo "int foo(void){return 1;}" > conftest.c
6939 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6940 -dynamiclib -Wl,-single_module conftest.c" >&5
6941 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6942 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6943 _lt_result=$?
6944 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6945 lt_cv_apple_cc_single_mod=yes
6946 else
6947 cat conftest.err >&5
6949 rm -rf libconftest.dylib*
6950 rm -f conftest.*
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6954 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6956 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6957 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 lt_cv_ld_exported_symbols_list=no
6961 save_LDFLAGS=$LDFLAGS
6962 echo "_main" > conftest.sym
6963 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6965 /* end confdefs.h. */
6968 main ()
6972 return 0;
6974 _ACEOF
6975 if ac_fn_c_try_link "$LINENO"; then :
6976 lt_cv_ld_exported_symbols_list=yes
6977 else
6978 lt_cv_ld_exported_symbols_list=no
6980 rm -f core conftest.err conftest.$ac_objext \
6981 conftest$ac_exeext conftest.$ac_ext
6982 LDFLAGS="$save_LDFLAGS"
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6986 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6988 $as_echo_n "checking for -force_load linker flag... " >&6; }
6989 if test "${lt_cv_ld_force_load+set}" = set; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 lt_cv_ld_force_load=no
6993 cat > conftest.c << _LT_EOF
6994 int forced_loaded() { return 2;}
6995 _LT_EOF
6996 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
6997 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
6998 echo "$AR cru libconftest.a conftest.o" >&5
6999 $AR cru libconftest.a conftest.o 2>&5
7000 cat > conftest.c << _LT_EOF
7001 int main() { return 0;}
7002 _LT_EOF
7003 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7004 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7005 _lt_result=$?
7006 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7007 lt_cv_ld_force_load=yes
7008 else
7009 cat conftest.err >&5
7011 rm -f conftest.err libconftest.a conftest conftest.c
7012 rm -rf conftest.dSYM
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7016 $as_echo "$lt_cv_ld_force_load" >&6; }
7017 case $host_os in
7018 rhapsody* | darwin1.[012])
7019 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7020 darwin1.*)
7021 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7022 darwin*) # darwin 5.x on
7023 # if running on 10.5 or later, the deployment target defaults
7024 # to the OS version, if on x86, and 10.4, the deployment
7025 # target defaults to 10.4. Don't you love it?
7026 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7027 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7028 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7029 10.[012]*)
7030 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7031 10.*)
7032 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7033 esac
7035 esac
7036 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7037 _lt_dar_single_mod='$single_module'
7039 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7040 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7041 else
7042 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7044 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7045 _lt_dsymutil='~$DSYMUTIL $lib || :'
7046 else
7047 _lt_dsymutil=
7050 esac
7052 ac_ext=c
7053 ac_cpp='$CPP $CPPFLAGS'
7054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7058 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7059 # On Suns, sometimes $CPP names a directory.
7060 if test -n "$CPP" && test -d "$CPP"; then
7061 CPP=
7063 if test -z "$CPP"; then
7064 if test "${ac_cv_prog_CPP+set}" = set; then :
7065 $as_echo_n "(cached) " >&6
7066 else
7067 # Double quotes because CPP needs to be expanded
7068 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7070 ac_preproc_ok=false
7071 for ac_c_preproc_warn_flag in '' yes
7073 # Use a header file that comes with gcc, so configuring glibc
7074 # with a fresh cross-compiler works.
7075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7076 # <limits.h> exists even on freestanding compilers.
7077 # On the NeXT, cc -E runs the code through the compiler's parser,
7078 # not just through cpp. "Syntax error" is here to catch this case.
7079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7080 /* end confdefs.h. */
7081 #ifdef __STDC__
7082 # include <limits.h>
7083 #else
7084 # include <assert.h>
7085 #endif
7086 Syntax error
7087 _ACEOF
7088 if ac_fn_c_try_cpp "$LINENO"; then :
7090 else
7091 # Broken: fails on valid input.
7092 continue
7094 rm -f conftest.err conftest.$ac_ext
7096 # OK, works on sane cases. Now check whether nonexistent headers
7097 # can be detected and how.
7098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7100 #include <ac_nonexistent.h>
7101 _ACEOF
7102 if ac_fn_c_try_cpp "$LINENO"; then :
7103 # Broken: success on invalid input.
7104 continue
7105 else
7106 # Passes both tests.
7107 ac_preproc_ok=:
7108 break
7110 rm -f conftest.err conftest.$ac_ext
7112 done
7113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7114 rm -f conftest.err conftest.$ac_ext
7115 if $ac_preproc_ok; then :
7116 break
7119 done
7120 ac_cv_prog_CPP=$CPP
7123 CPP=$ac_cv_prog_CPP
7124 else
7125 ac_cv_prog_CPP=$CPP
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7128 $as_echo "$CPP" >&6; }
7129 ac_preproc_ok=false
7130 for ac_c_preproc_warn_flag in '' yes
7132 # Use a header file that comes with gcc, so configuring glibc
7133 # with a fresh cross-compiler works.
7134 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7135 # <limits.h> exists even on freestanding compilers.
7136 # On the NeXT, cc -E runs the code through the compiler's parser,
7137 # not just through cpp. "Syntax error" is here to catch this case.
7138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7139 /* end confdefs.h. */
7140 #ifdef __STDC__
7141 # include <limits.h>
7142 #else
7143 # include <assert.h>
7144 #endif
7145 Syntax error
7146 _ACEOF
7147 if ac_fn_c_try_cpp "$LINENO"; then :
7149 else
7150 # Broken: fails on valid input.
7151 continue
7153 rm -f conftest.err conftest.$ac_ext
7155 # OK, works on sane cases. Now check whether nonexistent headers
7156 # can be detected and how.
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7159 #include <ac_nonexistent.h>
7160 _ACEOF
7161 if ac_fn_c_try_cpp "$LINENO"; then :
7162 # Broken: success on invalid input.
7163 continue
7164 else
7165 # Passes both tests.
7166 ac_preproc_ok=:
7167 break
7169 rm -f conftest.err conftest.$ac_ext
7171 done
7172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7173 rm -f conftest.err conftest.$ac_ext
7174 if $ac_preproc_ok; then :
7176 else
7177 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7178 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7179 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7180 See \`config.log' for more details." "$LINENO" 5; }
7183 ac_ext=c
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7191 $as_echo_n "checking for ANSI C header files... " >&6; }
7192 if test "${ac_cv_header_stdc+set}" = set; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7196 /* end confdefs.h. */
7197 #include <stdlib.h>
7198 #include <stdarg.h>
7199 #include <string.h>
7200 #include <float.h>
7203 main ()
7207 return 0;
7209 _ACEOF
7210 if ac_fn_c_try_compile "$LINENO"; then :
7211 ac_cv_header_stdc=yes
7212 else
7213 ac_cv_header_stdc=no
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 if test $ac_cv_header_stdc = yes; then
7218 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7220 /* end confdefs.h. */
7221 #include <string.h>
7223 _ACEOF
7224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7225 $EGREP "memchr" >/dev/null 2>&1; then :
7227 else
7228 ac_cv_header_stdc=no
7230 rm -f conftest*
7234 if test $ac_cv_header_stdc = yes; then
7235 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7237 /* end confdefs.h. */
7238 #include <stdlib.h>
7240 _ACEOF
7241 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7242 $EGREP "free" >/dev/null 2>&1; then :
7244 else
7245 ac_cv_header_stdc=no
7247 rm -f conftest*
7251 if test $ac_cv_header_stdc = yes; then
7252 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7253 if test "$cross_compiling" = yes; then :
7255 else
7256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7257 /* end confdefs.h. */
7258 #include <ctype.h>
7259 #include <stdlib.h>
7260 #if ((' ' & 0x0FF) == 0x020)
7261 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7262 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7263 #else
7264 # define ISLOWER(c) \
7265 (('a' <= (c) && (c) <= 'i') \
7266 || ('j' <= (c) && (c) <= 'r') \
7267 || ('s' <= (c) && (c) <= 'z'))
7268 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7269 #endif
7271 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7273 main ()
7275 int i;
7276 for (i = 0; i < 256; i++)
7277 if (XOR (islower (i), ISLOWER (i))
7278 || toupper (i) != TOUPPER (i))
7279 return 2;
7280 return 0;
7282 _ACEOF
7283 if ac_fn_c_try_run "$LINENO"; then :
7285 else
7286 ac_cv_header_stdc=no
7288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7289 conftest.$ac_objext conftest.beam conftest.$ac_ext
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7295 $as_echo "$ac_cv_header_stdc" >&6; }
7296 if test $ac_cv_header_stdc = yes; then
7298 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7302 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7303 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7304 inttypes.h stdint.h unistd.h
7305 do :
7306 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7307 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7309 eval as_val=\$$as_ac_Header
7310 if test "x$as_val" = x""yes; then :
7311 cat >>confdefs.h <<_ACEOF
7312 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7313 _ACEOF
7317 done
7320 for ac_header in dlfcn.h
7321 do :
7322 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7324 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7325 cat >>confdefs.h <<_ACEOF
7326 #define HAVE_DLFCN_H 1
7327 _ACEOF
7331 done
7338 # Set options
7343 enable_win32_dll=no
7346 # Check whether --enable-shared was given.
7347 if test "${enable_shared+set}" = set; then :
7348 enableval=$enable_shared; p=${PACKAGE-default}
7349 case $enableval in
7350 yes) enable_shared=yes ;;
7351 no) enable_shared=no ;;
7353 enable_shared=no
7354 # Look at the argument we got. We use all the common list separators.
7355 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7356 for pkg in $enableval; do
7357 IFS="$lt_save_ifs"
7358 if test "X$pkg" = "X$p"; then
7359 enable_shared=yes
7361 done
7362 IFS="$lt_save_ifs"
7364 esac
7365 else
7366 enable_shared=yes
7377 # Check whether --enable-static was given.
7378 if test "${enable_static+set}" = set; then :
7379 enableval=$enable_static; p=${PACKAGE-default}
7380 case $enableval in
7381 yes) enable_static=yes ;;
7382 no) enable_static=no ;;
7384 enable_static=no
7385 # Look at the argument we got. We use all the common list separators.
7386 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7387 for pkg in $enableval; do
7388 IFS="$lt_save_ifs"
7389 if test "X$pkg" = "X$p"; then
7390 enable_static=yes
7392 done
7393 IFS="$lt_save_ifs"
7395 esac
7396 else
7397 enable_static=yes
7409 # Check whether --with-pic was given.
7410 if test "${with_pic+set}" = set; then :
7411 withval=$with_pic; pic_mode="$withval"
7412 else
7413 pic_mode=default
7417 test -z "$pic_mode" && pic_mode=default
7425 # Check whether --enable-fast-install was given.
7426 if test "${enable_fast_install+set}" = set; then :
7427 enableval=$enable_fast_install; p=${PACKAGE-default}
7428 case $enableval in
7429 yes) enable_fast_install=yes ;;
7430 no) enable_fast_install=no ;;
7432 enable_fast_install=no
7433 # Look at the argument we got. We use all the common list separators.
7434 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7435 for pkg in $enableval; do
7436 IFS="$lt_save_ifs"
7437 if test "X$pkg" = "X$p"; then
7438 enable_fast_install=yes
7440 done
7441 IFS="$lt_save_ifs"
7443 esac
7444 else
7445 enable_fast_install=yes
7458 # This can be used to rebuild libtool when needed
7459 LIBTOOL_DEPS="$ltmain"
7461 # Always use our own libtool.
7462 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7489 test -z "$LN_S" && LN_S="ln -s"
7504 if test -n "${ZSH_VERSION+set}" ; then
7505 setopt NO_GLOB_SUBST
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7509 $as_echo_n "checking for objdir... " >&6; }
7510 if test "${lt_cv_objdir+set}" = set; then :
7511 $as_echo_n "(cached) " >&6
7512 else
7513 rm -f .libs 2>/dev/null
7514 mkdir .libs 2>/dev/null
7515 if test -d .libs; then
7516 lt_cv_objdir=.libs
7517 else
7518 # MS-DOS does not allow filenames that begin with a dot.
7519 lt_cv_objdir=_libs
7521 rmdir .libs 2>/dev/null
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7524 $as_echo "$lt_cv_objdir" >&6; }
7525 objdir=$lt_cv_objdir
7531 cat >>confdefs.h <<_ACEOF
7532 #define LT_OBJDIR "$lt_cv_objdir/"
7533 _ACEOF
7538 case $host_os in
7539 aix3*)
7540 # AIX sometimes has problems with the GCC collect2 program. For some
7541 # reason, if we set the COLLECT_NAMES environment variable, the problems
7542 # vanish in a puff of smoke.
7543 if test "X${COLLECT_NAMES+set}" != Xset; then
7544 COLLECT_NAMES=
7545 export COLLECT_NAMES
7548 esac
7550 # Global variables:
7551 ofile=libtool
7552 can_build_shared=yes
7554 # All known linkers require a `.a' archive for static linking (except MSVC,
7555 # which needs '.lib').
7556 libext=a
7558 with_gnu_ld="$lt_cv_prog_gnu_ld"
7560 old_CC="$CC"
7561 old_CFLAGS="$CFLAGS"
7563 # Set sane defaults for various variables
7564 test -z "$CC" && CC=cc
7565 test -z "$LTCC" && LTCC=$CC
7566 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7567 test -z "$LD" && LD=ld
7568 test -z "$ac_objext" && ac_objext=o
7570 for cc_temp in $compiler""; do
7571 case $cc_temp in
7572 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7573 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7574 \-*) ;;
7575 *) break;;
7576 esac
7577 done
7578 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7581 # Only perform the check for file, if the check method requires it
7582 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7583 case $deplibs_check_method in
7584 file_magic*)
7585 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7587 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7588 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7589 $as_echo_n "(cached) " >&6
7590 else
7591 case $MAGIC_CMD in
7592 [\\/*] | ?:[\\/]*)
7593 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7596 lt_save_MAGIC_CMD="$MAGIC_CMD"
7597 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7598 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7599 for ac_dir in $ac_dummy; do
7600 IFS="$lt_save_ifs"
7601 test -z "$ac_dir" && ac_dir=.
7602 if test -f $ac_dir/${ac_tool_prefix}file; then
7603 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7604 if test -n "$file_magic_test_file"; then
7605 case $deplibs_check_method in
7606 "file_magic "*)
7607 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7609 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7610 $EGREP "$file_magic_regex" > /dev/null; then
7612 else
7613 cat <<_LT_EOF 1>&2
7615 *** Warning: the command libtool uses to detect shared libraries,
7616 *** $file_magic_cmd, produces output that libtool cannot recognize.
7617 *** The result is that libtool may fail to recognize shared libraries
7618 *** as such. This will affect the creation of libtool libraries that
7619 *** depend on shared libraries, but programs linked with such libtool
7620 *** libraries will work regardless of this problem. Nevertheless, you
7621 *** may want to report the problem to your system manager and/or to
7622 *** bug-libtool@gnu.org
7624 _LT_EOF
7625 fi ;;
7626 esac
7628 break
7630 done
7631 IFS="$lt_save_ifs"
7632 MAGIC_CMD="$lt_save_MAGIC_CMD"
7634 esac
7637 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7638 if test -n "$MAGIC_CMD"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7640 $as_echo "$MAGIC_CMD" >&6; }
7641 else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7650 if test -z "$lt_cv_path_MAGIC_CMD"; then
7651 if test -n "$ac_tool_prefix"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7653 $as_echo_n "checking for file... " >&6; }
7654 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7655 $as_echo_n "(cached) " >&6
7656 else
7657 case $MAGIC_CMD in
7658 [\\/*] | ?:[\\/]*)
7659 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7662 lt_save_MAGIC_CMD="$MAGIC_CMD"
7663 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7664 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7665 for ac_dir in $ac_dummy; do
7666 IFS="$lt_save_ifs"
7667 test -z "$ac_dir" && ac_dir=.
7668 if test -f $ac_dir/file; then
7669 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7670 if test -n "$file_magic_test_file"; then
7671 case $deplibs_check_method in
7672 "file_magic "*)
7673 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7674 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7675 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7676 $EGREP "$file_magic_regex" > /dev/null; then
7678 else
7679 cat <<_LT_EOF 1>&2
7681 *** Warning: the command libtool uses to detect shared libraries,
7682 *** $file_magic_cmd, produces output that libtool cannot recognize.
7683 *** The result is that libtool may fail to recognize shared libraries
7684 *** as such. This will affect the creation of libtool libraries that
7685 *** depend on shared libraries, but programs linked with such libtool
7686 *** libraries will work regardless of this problem. Nevertheless, you
7687 *** may want to report the problem to your system manager and/or to
7688 *** bug-libtool@gnu.org
7690 _LT_EOF
7691 fi ;;
7692 esac
7694 break
7696 done
7697 IFS="$lt_save_ifs"
7698 MAGIC_CMD="$lt_save_MAGIC_CMD"
7700 esac
7703 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7704 if test -n "$MAGIC_CMD"; then
7705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7706 $as_echo "$MAGIC_CMD" >&6; }
7707 else
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7709 $as_echo "no" >&6; }
7713 else
7714 MAGIC_CMD=:
7720 esac
7722 # Use C for the default configuration in the libtool script
7724 lt_save_CC="$CC"
7725 ac_ext=c
7726 ac_cpp='$CPP $CPPFLAGS'
7727 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7728 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7729 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7732 # Source file extension for C test sources.
7733 ac_ext=c
7735 # Object file extension for compiled C test sources.
7736 objext=o
7737 objext=$objext
7739 # Code to be used in simple compile tests
7740 lt_simple_compile_test_code="int some_variable = 0;"
7742 # Code to be used in simple link tests
7743 lt_simple_link_test_code='int main(){return(0);}'
7751 # If no C compiler was specified, use CC.
7752 LTCC=${LTCC-"$CC"}
7754 # If no C compiler flags were specified, use CFLAGS.
7755 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7757 # Allow CC to be a program name with arguments.
7758 compiler=$CC
7760 # Save the default compiler, since it gets overwritten when the other
7761 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7762 compiler_DEFAULT=$CC
7764 # save warnings/boilerplate of simple test code
7765 ac_outfile=conftest.$ac_objext
7766 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7767 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7768 _lt_compiler_boilerplate=`cat conftest.err`
7769 $RM conftest*
7771 ac_outfile=conftest.$ac_objext
7772 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7773 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7774 _lt_linker_boilerplate=`cat conftest.err`
7775 $RM -r conftest*
7778 ## CAVEAT EMPTOR:
7779 ## There is no encapsulation within the following macros, do not change
7780 ## the running order or otherwise move them around unless you know exactly
7781 ## what you are doing...
7782 if test -n "$compiler"; then
7784 lt_prog_compiler_no_builtin_flag=
7786 if test "$GCC" = yes; then
7787 case $cc_basename in
7788 nvcc*)
7789 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7791 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7792 esac
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7795 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7796 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7798 else
7799 lt_cv_prog_compiler_rtti_exceptions=no
7800 ac_outfile=conftest.$ac_objext
7801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7802 lt_compiler_flag="-fno-rtti -fno-exceptions"
7803 # Insert the option either (1) after the last *FLAGS variable, or
7804 # (2) before a word containing "conftest.", or (3) at the end.
7805 # Note that $ac_compile itself does not contain backslashes and begins
7806 # with a dollar sign (not a hyphen), so the echo should work correctly.
7807 # The option is referenced via a variable to avoid confusing sed.
7808 lt_compile=`echo "$ac_compile" | $SED \
7809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7811 -e 's:$: $lt_compiler_flag:'`
7812 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7813 (eval "$lt_compile" 2>conftest.err)
7814 ac_status=$?
7815 cat conftest.err >&5
7816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7817 if (exit $ac_status) && test -s "$ac_outfile"; then
7818 # The compiler can only warn and ignore the option if not recognized
7819 # So say no if there are warnings other than the usual output.
7820 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7821 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7822 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7823 lt_cv_prog_compiler_rtti_exceptions=yes
7826 $RM conftest*
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7830 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7832 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7833 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7834 else
7845 lt_prog_compiler_wl=
7846 lt_prog_compiler_pic=
7847 lt_prog_compiler_static=
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7850 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7852 if test "$GCC" = yes; then
7853 lt_prog_compiler_wl='-Wl,'
7854 lt_prog_compiler_static='-static'
7856 case $host_os in
7857 aix*)
7858 # All AIX code is PIC.
7859 if test "$host_cpu" = ia64; then
7860 # AIX 5 now supports IA64 processor
7861 lt_prog_compiler_static='-Bstatic'
7863 lt_prog_compiler_pic='-fPIC'
7866 amigaos*)
7867 case $host_cpu in
7868 powerpc)
7869 # see comment about AmigaOS4 .so support
7870 lt_prog_compiler_pic='-fPIC'
7872 m68k)
7873 # FIXME: we need at least 68020 code to build shared libraries, but
7874 # adding the `-m68020' flag to GCC prevents building anything better,
7875 # like `-m68040'.
7876 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7878 esac
7881 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7882 # PIC is the default for these OSes.
7885 mingw* | cygwin* | pw32* | os2* | cegcc*)
7886 # This hack is so that the source file can tell whether it is being
7887 # built for inclusion in a dll (and should export symbols for example).
7888 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7889 # (--disable-auto-import) libraries
7890 lt_prog_compiler_pic='-DDLL_EXPORT'
7893 darwin* | rhapsody*)
7894 # PIC is the default on this platform
7895 # Common symbols not allowed in MH_DYLIB files
7896 lt_prog_compiler_pic='-fno-common'
7899 haiku*)
7900 # PIC is the default for Haiku.
7901 # The "-static" flag exists, but is broken.
7902 lt_prog_compiler_static=
7905 hpux*)
7906 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7907 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7908 # sets the default TLS model and affects inlining.
7909 case $host_cpu in
7910 hppa*64*)
7911 # +Z the default
7914 lt_prog_compiler_pic='-fPIC'
7916 esac
7919 interix[3-9]*)
7920 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7921 # Instead, we relocate shared libraries at runtime.
7924 msdosdjgpp*)
7925 # Just because we use GCC doesn't mean we suddenly get shared libraries
7926 # on systems that don't support them.
7927 lt_prog_compiler_can_build_shared=no
7928 enable_shared=no
7931 *nto* | *qnx*)
7932 # QNX uses GNU C++, but need to define -shared option too, otherwise
7933 # it will coredump.
7934 lt_prog_compiler_pic='-fPIC -shared'
7937 sysv4*MP*)
7938 if test -d /usr/nec; then
7939 lt_prog_compiler_pic=-Kconform_pic
7944 lt_prog_compiler_pic='-fPIC'
7946 esac
7948 case $cc_basename in
7949 nvcc*) # Cuda Compiler Driver 2.2
7950 lt_prog_compiler_wl='-Xlinker '
7951 lt_prog_compiler_pic='-Xcompiler -fPIC'
7953 esac
7954 else
7955 # PORTME Check for flag to pass linker flags through the system compiler.
7956 case $host_os in
7957 aix*)
7958 lt_prog_compiler_wl='-Wl,'
7959 if test "$host_cpu" = ia64; then
7960 # AIX 5 now supports IA64 processor
7961 lt_prog_compiler_static='-Bstatic'
7962 else
7963 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7967 mingw* | cygwin* | pw32* | os2* | cegcc*)
7968 # This hack is so that the source file can tell whether it is being
7969 # built for inclusion in a dll (and should export symbols for example).
7970 lt_prog_compiler_pic='-DDLL_EXPORT'
7973 hpux9* | hpux10* | hpux11*)
7974 lt_prog_compiler_wl='-Wl,'
7975 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7976 # not for PA HP-UX.
7977 case $host_cpu in
7978 hppa*64*|ia64*)
7979 # +Z the default
7982 lt_prog_compiler_pic='+Z'
7984 esac
7985 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7986 lt_prog_compiler_static='${wl}-a ${wl}archive'
7989 irix5* | irix6* | nonstopux*)
7990 lt_prog_compiler_wl='-Wl,'
7991 # PIC (with -KPIC) is the default.
7992 lt_prog_compiler_static='-non_shared'
7995 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7996 case $cc_basename in
7997 # old Intel for x86_64 which still supported -KPIC.
7998 ecc*)
7999 lt_prog_compiler_wl='-Wl,'
8000 lt_prog_compiler_pic='-KPIC'
8001 lt_prog_compiler_static='-static'
8003 # icc used to be incompatible with GCC.
8004 # ICC 10 doesn't accept -KPIC any more.
8005 icc* | ifort*)
8006 lt_prog_compiler_wl='-Wl,'
8007 lt_prog_compiler_pic='-fPIC'
8008 lt_prog_compiler_static='-static'
8010 # Lahey Fortran 8.1.
8011 lf95*)
8012 lt_prog_compiler_wl='-Wl,'
8013 lt_prog_compiler_pic='--shared'
8014 lt_prog_compiler_static='--static'
8016 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8017 # Portland Group compilers (*not* the Pentium gcc compiler,
8018 # which looks to be a dead project)
8019 lt_prog_compiler_wl='-Wl,'
8020 lt_prog_compiler_pic='-fpic'
8021 lt_prog_compiler_static='-Bstatic'
8023 ccc*)
8024 lt_prog_compiler_wl='-Wl,'
8025 # All Alpha code is PIC.
8026 lt_prog_compiler_static='-non_shared'
8028 xl* | bgxl* | bgf* | mpixl*)
8029 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8030 lt_prog_compiler_wl='-Wl,'
8031 lt_prog_compiler_pic='-qpic'
8032 lt_prog_compiler_static='-qstaticlink'
8035 case `$CC -V 2>&1 | sed 5q` in
8036 *Sun\ F* | *Sun*Fortran*)
8037 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8038 lt_prog_compiler_pic='-KPIC'
8039 lt_prog_compiler_static='-Bstatic'
8040 lt_prog_compiler_wl=''
8042 *Sun\ C*)
8043 # Sun C 5.9
8044 lt_prog_compiler_pic='-KPIC'
8045 lt_prog_compiler_static='-Bstatic'
8046 lt_prog_compiler_wl='-Wl,'
8048 esac
8050 esac
8053 newsos6)
8054 lt_prog_compiler_pic='-KPIC'
8055 lt_prog_compiler_static='-Bstatic'
8058 *nto* | *qnx*)
8059 # QNX uses GNU C++, but need to define -shared option too, otherwise
8060 # it will coredump.
8061 lt_prog_compiler_pic='-fPIC -shared'
8064 osf3* | osf4* | osf5*)
8065 lt_prog_compiler_wl='-Wl,'
8066 # All OSF/1 code is PIC.
8067 lt_prog_compiler_static='-non_shared'
8070 rdos*)
8071 lt_prog_compiler_static='-non_shared'
8074 solaris*)
8075 lt_prog_compiler_pic='-KPIC'
8076 lt_prog_compiler_static='-Bstatic'
8077 case $cc_basename in
8078 f77* | f90* | f95*)
8079 lt_prog_compiler_wl='-Qoption ld ';;
8081 lt_prog_compiler_wl='-Wl,';;
8082 esac
8085 sunos4*)
8086 lt_prog_compiler_wl='-Qoption ld '
8087 lt_prog_compiler_pic='-PIC'
8088 lt_prog_compiler_static='-Bstatic'
8091 sysv4 | sysv4.2uw2* | sysv4.3*)
8092 lt_prog_compiler_wl='-Wl,'
8093 lt_prog_compiler_pic='-KPIC'
8094 lt_prog_compiler_static='-Bstatic'
8097 sysv4*MP*)
8098 if test -d /usr/nec ;then
8099 lt_prog_compiler_pic='-Kconform_pic'
8100 lt_prog_compiler_static='-Bstatic'
8104 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8105 lt_prog_compiler_wl='-Wl,'
8106 lt_prog_compiler_pic='-KPIC'
8107 lt_prog_compiler_static='-Bstatic'
8110 unicos*)
8111 lt_prog_compiler_wl='-Wl,'
8112 lt_prog_compiler_can_build_shared=no
8115 uts4*)
8116 lt_prog_compiler_pic='-pic'
8117 lt_prog_compiler_static='-Bstatic'
8121 lt_prog_compiler_can_build_shared=no
8123 esac
8126 case $host_os in
8127 # For platforms which do not support PIC, -DPIC is meaningless:
8128 *djgpp*)
8129 lt_prog_compiler_pic=
8132 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8134 esac
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8136 $as_echo "$lt_prog_compiler_pic" >&6; }
8144 # Check to make sure the PIC flag actually works.
8146 if test -n "$lt_prog_compiler_pic"; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8148 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8149 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8150 $as_echo_n "(cached) " >&6
8151 else
8152 lt_cv_prog_compiler_pic_works=no
8153 ac_outfile=conftest.$ac_objext
8154 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8155 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8156 # Insert the option either (1) after the last *FLAGS variable, or
8157 # (2) before a word containing "conftest.", or (3) at the end.
8158 # Note that $ac_compile itself does not contain backslashes and begins
8159 # with a dollar sign (not a hyphen), so the echo should work correctly.
8160 # The option is referenced via a variable to avoid confusing sed.
8161 lt_compile=`echo "$ac_compile" | $SED \
8162 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8163 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8164 -e 's:$: $lt_compiler_flag:'`
8165 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8166 (eval "$lt_compile" 2>conftest.err)
8167 ac_status=$?
8168 cat conftest.err >&5
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 if (exit $ac_status) && test -s "$ac_outfile"; then
8171 # The compiler can only warn and ignore the option if not recognized
8172 # So say no if there are warnings other than the usual output.
8173 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8174 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8175 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8176 lt_cv_prog_compiler_pic_works=yes
8179 $RM conftest*
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8183 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8185 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8186 case $lt_prog_compiler_pic in
8187 "" | " "*) ;;
8188 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8189 esac
8190 else
8191 lt_prog_compiler_pic=
8192 lt_prog_compiler_can_build_shared=no
8203 # Check to make sure the static flag actually works.
8205 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8207 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8208 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 lt_cv_prog_compiler_static_works=no
8212 save_LDFLAGS="$LDFLAGS"
8213 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8214 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8215 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8216 # The linker can only warn and ignore the option if not recognized
8217 # So say no if there are warnings
8218 if test -s conftest.err; then
8219 # Append any errors to the config.log.
8220 cat conftest.err 1>&5
8221 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8222 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8223 if diff conftest.exp conftest.er2 >/dev/null; then
8224 lt_cv_prog_compiler_static_works=yes
8226 else
8227 lt_cv_prog_compiler_static_works=yes
8230 $RM -r conftest*
8231 LDFLAGS="$save_LDFLAGS"
8234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8235 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8237 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8239 else
8240 lt_prog_compiler_static=
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8250 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8251 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8252 $as_echo_n "(cached) " >&6
8253 else
8254 lt_cv_prog_compiler_c_o=no
8255 $RM -r conftest 2>/dev/null
8256 mkdir conftest
8257 cd conftest
8258 mkdir out
8259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8261 lt_compiler_flag="-o out/conftest2.$ac_objext"
8262 # Insert the option either (1) after the last *FLAGS variable, or
8263 # (2) before a word containing "conftest.", or (3) at the end.
8264 # Note that $ac_compile itself does not contain backslashes and begins
8265 # with a dollar sign (not a hyphen), so the echo should work correctly.
8266 lt_compile=`echo "$ac_compile" | $SED \
8267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8269 -e 's:$: $lt_compiler_flag:'`
8270 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8271 (eval "$lt_compile" 2>out/conftest.err)
8272 ac_status=$?
8273 cat out/conftest.err >&5
8274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8276 then
8277 # The compiler can only warn and ignore the option if not recognized
8278 # So say no if there are warnings
8279 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8280 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8281 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8282 lt_cv_prog_compiler_c_o=yes
8285 chmod u+w . 2>&5
8286 $RM conftest*
8287 # SGI C++ compiler will create directory out/ii_files/ for
8288 # template instantiation
8289 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8290 $RM out/* && rmdir out
8291 cd ..
8292 $RM -r conftest
8293 $RM conftest*
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8297 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8305 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8306 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 lt_cv_prog_compiler_c_o=no
8310 $RM -r conftest 2>/dev/null
8311 mkdir conftest
8312 cd conftest
8313 mkdir out
8314 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8316 lt_compiler_flag="-o out/conftest2.$ac_objext"
8317 # Insert the option either (1) after the last *FLAGS variable, or
8318 # (2) before a word containing "conftest.", or (3) at the end.
8319 # Note that $ac_compile itself does not contain backslashes and begins
8320 # with a dollar sign (not a hyphen), so the echo should work correctly.
8321 lt_compile=`echo "$ac_compile" | $SED \
8322 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8323 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8324 -e 's:$: $lt_compiler_flag:'`
8325 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8326 (eval "$lt_compile" 2>out/conftest.err)
8327 ac_status=$?
8328 cat out/conftest.err >&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8331 then
8332 # The compiler can only warn and ignore the option if not recognized
8333 # So say no if there are warnings
8334 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8335 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8336 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8337 lt_cv_prog_compiler_c_o=yes
8340 chmod u+w . 2>&5
8341 $RM conftest*
8342 # SGI C++ compiler will create directory out/ii_files/ for
8343 # template instantiation
8344 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8345 $RM out/* && rmdir out
8346 cd ..
8347 $RM -r conftest
8348 $RM conftest*
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8352 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8357 hard_links="nottested"
8358 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8359 # do not overwrite the value of need_locks provided by the user
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8361 $as_echo_n "checking if we can lock with hard links... " >&6; }
8362 hard_links=yes
8363 $RM conftest*
8364 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8365 touch conftest.a
8366 ln conftest.a conftest.b 2>&5 || hard_links=no
8367 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8369 $as_echo "$hard_links" >&6; }
8370 if test "$hard_links" = no; then
8371 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8372 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8373 need_locks=warn
8375 else
8376 need_locks=no
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8385 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8387 runpath_var=
8388 allow_undefined_flag=
8389 always_export_symbols=no
8390 archive_cmds=
8391 archive_expsym_cmds=
8392 compiler_needs_object=no
8393 enable_shared_with_static_runtimes=no
8394 export_dynamic_flag_spec=
8395 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8396 hardcode_automatic=no
8397 hardcode_direct=no
8398 hardcode_direct_absolute=no
8399 hardcode_libdir_flag_spec=
8400 hardcode_libdir_flag_spec_ld=
8401 hardcode_libdir_separator=
8402 hardcode_minus_L=no
8403 hardcode_shlibpath_var=unsupported
8404 inherit_rpath=no
8405 link_all_deplibs=unknown
8406 module_cmds=
8407 module_expsym_cmds=
8408 old_archive_from_new_cmds=
8409 old_archive_from_expsyms_cmds=
8410 thread_safe_flag_spec=
8411 whole_archive_flag_spec=
8412 # include_expsyms should be a list of space-separated symbols to be *always*
8413 # included in the symbol list
8414 include_expsyms=
8415 # exclude_expsyms can be an extended regexp of symbols to exclude
8416 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8417 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8418 # as well as any symbol that contains `d'.
8419 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8420 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8421 # platforms (ab)use it in PIC code, but their linkers get confused if
8422 # the symbol is explicitly referenced. Since portable code cannot
8423 # rely on this symbol name, it's probably fine to never include it in
8424 # preloaded symbol tables.
8425 # Exclude shared library initialization/finalization symbols.
8426 extract_expsyms_cmds=
8428 case $host_os in
8429 cygwin* | mingw* | pw32* | cegcc*)
8430 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8431 # When not using gcc, we currently assume that we are using
8432 # Microsoft Visual C++.
8433 if test "$GCC" != yes; then
8434 with_gnu_ld=no
8437 interix*)
8438 # we just hope/assume this is gcc and not c89 (= MSVC++)
8439 with_gnu_ld=yes
8441 openbsd*)
8442 with_gnu_ld=no
8444 esac
8446 ld_shlibs=yes
8448 # On some targets, GNU ld is compatible enough with the native linker
8449 # that we're better off using the native interface for both.
8450 lt_use_gnu_ld_interface=no
8451 if test "$with_gnu_ld" = yes; then
8452 case $host_os in
8453 aix*)
8454 # The AIX port of GNU ld has always aspired to compatibility
8455 # with the native linker. However, as the warning in the GNU ld
8456 # block says, versions before 2.19.5* couldn't really create working
8457 # shared libraries, regardless of the interface used.
8458 case `$LD -v 2>&1` in
8459 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8460 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8461 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8463 lt_use_gnu_ld_interface=yes
8465 esac
8468 lt_use_gnu_ld_interface=yes
8470 esac
8473 if test "$lt_use_gnu_ld_interface" = yes; then
8474 # If archive_cmds runs LD, not CC, wlarc should be empty
8475 wlarc='${wl}'
8477 # Set some defaults for GNU ld with shared library support. These
8478 # are reset later if shared libraries are not supported. Putting them
8479 # here allows them to be overridden if necessary.
8480 runpath_var=LD_RUN_PATH
8481 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8482 export_dynamic_flag_spec='${wl}--export-dynamic'
8483 # ancient GNU ld didn't support --whole-archive et. al.
8484 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8485 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8486 else
8487 whole_archive_flag_spec=
8489 supports_anon_versioning=no
8490 case `$LD -v 2>&1` in
8491 *GNU\ gold*) supports_anon_versioning=yes ;;
8492 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8493 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8494 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8495 *\ 2.11.*) ;; # other 2.11 versions
8496 *) supports_anon_versioning=yes ;;
8497 esac
8499 # See if GNU ld supports shared libraries.
8500 case $host_os in
8501 aix[3-9]*)
8502 # On AIX/PPC, the GNU linker is very broken
8503 if test "$host_cpu" != ia64; then
8504 ld_shlibs=no
8505 cat <<_LT_EOF 1>&2
8507 *** Warning: the GNU linker, at least up to release 2.19, is reported
8508 *** to be unable to reliably create shared libraries on AIX.
8509 *** Therefore, libtool is disabling shared libraries support. If you
8510 *** really care for shared libraries, you may want to install binutils
8511 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8512 *** You will then need to restart the configuration process.
8514 _LT_EOF
8518 amigaos*)
8519 case $host_cpu in
8520 powerpc)
8521 # see comment about AmigaOS4 .so support
8522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8523 archive_expsym_cmds=''
8525 m68k)
8526 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)'
8527 hardcode_libdir_flag_spec='-L$libdir'
8528 hardcode_minus_L=yes
8530 esac
8533 beos*)
8534 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8535 allow_undefined_flag=unsupported
8536 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8537 # support --undefined. This deserves some investigation. FIXME
8538 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8539 else
8540 ld_shlibs=no
8544 cygwin* | mingw* | pw32* | cegcc*)
8545 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8546 # as there is no search path for DLLs.
8547 hardcode_libdir_flag_spec='-L$libdir'
8548 export_dynamic_flag_spec='${wl}--export-all-symbols'
8549 allow_undefined_flag=unsupported
8550 always_export_symbols=no
8551 enable_shared_with_static_runtimes=yes
8552 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8554 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8555 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8556 # If the export-symbols file already is a .def file (1st line
8557 # is EXPORTS), use it as is; otherwise, prepend...
8558 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8559 cp $export_symbols $output_objdir/$soname.def;
8560 else
8561 echo EXPORTS > $output_objdir/$soname.def;
8562 cat $export_symbols >> $output_objdir/$soname.def;
8564 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8565 else
8566 ld_shlibs=no
8570 haiku*)
8571 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8572 link_all_deplibs=yes
8575 interix[3-9]*)
8576 hardcode_direct=no
8577 hardcode_shlibpath_var=no
8578 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8579 export_dynamic_flag_spec='${wl}-E'
8580 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8581 # Instead, shared libraries are loaded at an image base (0x10000000 by
8582 # default) and relocated if they conflict, which is a slow very memory
8583 # consuming and fragmenting process. To avoid this, we pick a random,
8584 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8585 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8586 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8587 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'
8590 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8591 tmp_diet=no
8592 if test "$host_os" = linux-dietlibc; then
8593 case $cc_basename in
8594 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8595 esac
8597 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8598 && test "$tmp_diet" = no
8599 then
8600 tmp_addflag=
8601 tmp_sharedflag='-shared'
8602 case $cc_basename,$host_cpu in
8603 pgcc*) # Portland Group C compiler
8604 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'
8605 tmp_addflag=' $pic_flag'
8607 pgf77* | pgf90* | pgf95* | pgfortran*)
8608 # Portland Group f77 and f90 compilers
8609 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'
8610 tmp_addflag=' $pic_flag -Mnomain' ;;
8611 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8612 tmp_addflag=' -i_dynamic' ;;
8613 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8614 tmp_addflag=' -i_dynamic -nofor_main' ;;
8615 ifc* | ifort*) # Intel Fortran compiler
8616 tmp_addflag=' -nofor_main' ;;
8617 lf95*) # Lahey Fortran 8.1
8618 whole_archive_flag_spec=
8619 tmp_sharedflag='--shared' ;;
8620 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8621 tmp_sharedflag='-qmkshrobj'
8622 tmp_addflag= ;;
8623 nvcc*) # Cuda Compiler Driver 2.2
8624 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'
8625 compiler_needs_object=yes
8627 esac
8628 case `$CC -V 2>&1 | sed 5q` in
8629 *Sun\ C*) # Sun C 5.9
8630 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'
8631 compiler_needs_object=yes
8632 tmp_sharedflag='-G' ;;
8633 *Sun\ F*) # Sun Fortran 8.3
8634 tmp_sharedflag='-G' ;;
8635 esac
8636 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8638 if test "x$supports_anon_versioning" = xyes; then
8639 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8640 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8641 echo "local: *; };" >> $output_objdir/$libname.ver~
8642 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8645 case $cc_basename in
8646 xlf* | bgf* | bgxlf* | mpixlf*)
8647 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8648 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8649 hardcode_libdir_flag_spec=
8650 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8651 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8652 if test "x$supports_anon_versioning" = xyes; then
8653 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8654 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8655 echo "local: *; };" >> $output_objdir/$libname.ver~
8656 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8659 esac
8660 else
8661 ld_shlibs=no
8665 netbsd*)
8666 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8667 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8668 wlarc=
8669 else
8670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8671 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8675 solaris*)
8676 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8677 ld_shlibs=no
8678 cat <<_LT_EOF 1>&2
8680 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8681 *** create shared libraries on Solaris systems. Therefore, libtool
8682 *** is disabling shared libraries support. We urge you to upgrade GNU
8683 *** binutils to release 2.9.1 or newer. Another option is to modify
8684 *** your PATH or compiler configuration so that the native linker is
8685 *** used, and then restart.
8687 _LT_EOF
8688 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8689 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8691 else
8692 ld_shlibs=no
8696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8697 case `$LD -v 2>&1` in
8698 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8699 ld_shlibs=no
8700 cat <<_LT_EOF 1>&2
8702 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8703 *** reliably create shared libraries on SCO systems. Therefore, libtool
8704 *** is disabling shared libraries support. We urge you to upgrade GNU
8705 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8706 *** your PATH or compiler configuration so that the native linker is
8707 *** used, and then restart.
8709 _LT_EOF
8712 # For security reasons, it is highly recommended that you always
8713 # use absolute paths for naming shared libraries, and exclude the
8714 # DT_RUNPATH tag from executables and libraries. But doing so
8715 # requires that you compile everything twice, which is a pain.
8716 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8717 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8718 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8719 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8720 else
8721 ld_shlibs=no
8724 esac
8727 sunos4*)
8728 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8729 wlarc=
8730 hardcode_direct=yes
8731 hardcode_shlibpath_var=no
8735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8738 else
8739 ld_shlibs=no
8742 esac
8744 if test "$ld_shlibs" = no; then
8745 runpath_var=
8746 hardcode_libdir_flag_spec=
8747 export_dynamic_flag_spec=
8748 whole_archive_flag_spec=
8750 else
8751 # PORTME fill in a description of your system's linker (not GNU ld)
8752 case $host_os in
8753 aix3*)
8754 allow_undefined_flag=unsupported
8755 always_export_symbols=yes
8756 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'
8757 # Note: this linker hardcodes the directories in LIBPATH if there
8758 # are no directories specified by -L.
8759 hardcode_minus_L=yes
8760 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8761 # Neither direct hardcoding nor static linking is supported with a
8762 # broken collect2.
8763 hardcode_direct=unsupported
8767 aix[4-9]*)
8768 if test "$host_cpu" = ia64; then
8769 # On IA64, the linker does run time linking by default, so we don't
8770 # have to do anything special.
8771 aix_use_runtimelinking=no
8772 exp_sym_flag='-Bexport'
8773 no_entry_flag=""
8774 else
8775 # If we're using GNU nm, then we don't want the "-C" option.
8776 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8777 # Also, AIX nm treats weak defined symbols like other global
8778 # defined symbols, whereas GNU nm marks them as "W".
8779 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8780 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'
8781 else
8782 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'
8784 aix_use_runtimelinking=no
8786 # Test if we are trying to use run time linking or normal
8787 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8788 # need to do runtime linking.
8789 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8790 for ld_flag in $LDFLAGS; do
8791 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8792 aix_use_runtimelinking=yes
8793 break
8795 done
8797 esac
8799 exp_sym_flag='-bexport'
8800 no_entry_flag='-bnoentry'
8803 # When large executables or shared objects are built, AIX ld can
8804 # have problems creating the table of contents. If linking a library
8805 # or program results in "error TOC overflow" add -mminimal-toc to
8806 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8807 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8809 archive_cmds=''
8810 hardcode_direct=yes
8811 hardcode_direct_absolute=yes
8812 hardcode_libdir_separator=':'
8813 link_all_deplibs=yes
8814 file_list_spec='${wl}-f,'
8816 if test "$GCC" = yes; then
8817 case $host_os in aix4.[012]|aix4.[012].*)
8818 # We only want to do this on AIX 4.2 and lower, the check
8819 # below for broken collect2 doesn't work under 4.3+
8820 collect2name=`${CC} -print-prog-name=collect2`
8821 if test -f "$collect2name" &&
8822 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8823 then
8824 # We have reworked collect2
8826 else
8827 # We have old collect2
8828 hardcode_direct=unsupported
8829 # It fails to find uninstalled libraries when the uninstalled
8830 # path is not listed in the libpath. Setting hardcode_minus_L
8831 # to unsupported forces relinking
8832 hardcode_minus_L=yes
8833 hardcode_libdir_flag_spec='-L$libdir'
8834 hardcode_libdir_separator=
8837 esac
8838 shared_flag='-shared'
8839 if test "$aix_use_runtimelinking" = yes; then
8840 shared_flag="$shared_flag "'${wl}-G'
8842 else
8843 # not using gcc
8844 if test "$host_cpu" = ia64; then
8845 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8846 # chokes on -Wl,-G. The following line is correct:
8847 shared_flag='-G'
8848 else
8849 if test "$aix_use_runtimelinking" = yes; then
8850 shared_flag='${wl}-G'
8851 else
8852 shared_flag='${wl}-bM:SRE'
8857 export_dynamic_flag_spec='${wl}-bexpall'
8858 # It seems that -bexpall does not export symbols beginning with
8859 # underscore (_), so it is better to generate a list of symbols to export.
8860 always_export_symbols=yes
8861 if test "$aix_use_runtimelinking" = yes; then
8862 # Warning - without using the other runtime loading flags (-brtl),
8863 # -berok will link without error, but may produce a broken library.
8864 allow_undefined_flag='-berok'
8865 # Determine the default libpath from the value encoded in an
8866 # empty executable.
8867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8868 /* end confdefs.h. */
8871 main ()
8875 return 0;
8877 _ACEOF
8878 if ac_fn_c_try_link "$LINENO"; then :
8880 lt_aix_libpath_sed='
8881 /Import File Strings/,/^$/ {
8882 /^0/ {
8883 s/^0 *\(.*\)$/\1/
8887 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8888 # Check for a 64-bit object if we didn't find anything.
8889 if test -z "$aix_libpath"; then
8890 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8893 rm -f core conftest.err conftest.$ac_objext \
8894 conftest$ac_exeext conftest.$ac_ext
8895 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8897 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8898 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"
8899 else
8900 if test "$host_cpu" = ia64; then
8901 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8902 allow_undefined_flag="-z nodefs"
8903 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"
8904 else
8905 # Determine the default libpath from the value encoded in an
8906 # empty executable.
8907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8908 /* end confdefs.h. */
8911 main ()
8915 return 0;
8917 _ACEOF
8918 if ac_fn_c_try_link "$LINENO"; then :
8920 lt_aix_libpath_sed='
8921 /Import File Strings/,/^$/ {
8922 /^0/ {
8923 s/^0 *\(.*\)$/\1/
8927 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8928 # Check for a 64-bit object if we didn't find anything.
8929 if test -z "$aix_libpath"; then
8930 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8933 rm -f core conftest.err conftest.$ac_objext \
8934 conftest$ac_exeext conftest.$ac_ext
8935 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8937 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8938 # Warning - without using the other run time loading flags,
8939 # -berok will link without error, but may produce a broken library.
8940 no_undefined_flag=' ${wl}-bernotok'
8941 allow_undefined_flag=' ${wl}-berok'
8942 if test "$with_gnu_ld" = yes; then
8943 # We only use this code for GNU lds that support --whole-archive.
8944 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8945 else
8946 # Exported symbols can be pulled into shared objects from archives
8947 whole_archive_flag_spec='$convenience'
8949 archive_cmds_need_lc=yes
8950 # This is similar to how AIX traditionally builds its shared libraries.
8951 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'
8956 amigaos*)
8957 case $host_cpu in
8958 powerpc)
8959 # see comment about AmigaOS4 .so support
8960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8961 archive_expsym_cmds=''
8963 m68k)
8964 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)'
8965 hardcode_libdir_flag_spec='-L$libdir'
8966 hardcode_minus_L=yes
8968 esac
8971 bsdi[45]*)
8972 export_dynamic_flag_spec=-rdynamic
8975 cygwin* | mingw* | pw32* | cegcc*)
8976 # When not using gcc, we currently assume that we are using
8977 # Microsoft Visual C++.
8978 # hardcode_libdir_flag_spec is actually meaningless, as there is
8979 # no search path for DLLs.
8980 hardcode_libdir_flag_spec=' '
8981 allow_undefined_flag=unsupported
8982 # Tell ltmain to make .lib files, not .a files.
8983 libext=lib
8984 # Tell ltmain to make .dll files, not .so files.
8985 shrext_cmds=".dll"
8986 # FIXME: Setting linknames here is a bad hack.
8987 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8988 # The linker will automatically build a .lib file if we build a DLL.
8989 old_archive_from_new_cmds='true'
8990 # FIXME: Should let the user specify the lib program.
8991 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8992 fix_srcfile_path='`cygpath -w "$srcfile"`'
8993 enable_shared_with_static_runtimes=yes
8996 darwin* | rhapsody*)
8999 archive_cmds_need_lc=no
9000 hardcode_direct=no
9001 hardcode_automatic=yes
9002 hardcode_shlibpath_var=unsupported
9003 if test "$lt_cv_ld_force_load" = "yes"; then
9004 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\"`'
9005 else
9006 whole_archive_flag_spec=''
9008 link_all_deplibs=yes
9009 allow_undefined_flag="$_lt_dar_allow_undefined"
9010 case $cc_basename in
9011 ifort*) _lt_dar_can_shared=yes ;;
9012 *) _lt_dar_can_shared=$GCC ;;
9013 esac
9014 if test "$_lt_dar_can_shared" = "yes"; then
9015 output_verbose_link_cmd=func_echo_all
9016 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9017 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9018 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}"
9019 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}"
9021 else
9022 ld_shlibs=no
9027 dgux*)
9028 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9029 hardcode_libdir_flag_spec='-L$libdir'
9030 hardcode_shlibpath_var=no
9033 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9034 # support. Future versions do this automatically, but an explicit c++rt0.o
9035 # does not break anything, and helps significantly (at the cost of a little
9036 # extra space).
9037 freebsd2.2*)
9038 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9039 hardcode_libdir_flag_spec='-R$libdir'
9040 hardcode_direct=yes
9041 hardcode_shlibpath_var=no
9044 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9045 freebsd2.*)
9046 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9047 hardcode_direct=yes
9048 hardcode_minus_L=yes
9049 hardcode_shlibpath_var=no
9052 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9053 freebsd* | dragonfly*)
9054 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9055 hardcode_libdir_flag_spec='-R$libdir'
9056 hardcode_direct=yes
9057 hardcode_shlibpath_var=no
9060 hpux9*)
9061 if test "$GCC" = yes; then
9062 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'
9063 else
9064 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'
9066 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9067 hardcode_libdir_separator=:
9068 hardcode_direct=yes
9070 # hardcode_minus_L: Not really in the search PATH,
9071 # but as the default location of the library.
9072 hardcode_minus_L=yes
9073 export_dynamic_flag_spec='${wl}-E'
9076 hpux10*)
9077 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9078 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9079 else
9080 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9082 if test "$with_gnu_ld" = no; then
9083 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9084 hardcode_libdir_flag_spec_ld='+b $libdir'
9085 hardcode_libdir_separator=:
9086 hardcode_direct=yes
9087 hardcode_direct_absolute=yes
9088 export_dynamic_flag_spec='${wl}-E'
9089 # hardcode_minus_L: Not really in the search PATH,
9090 # but as the default location of the library.
9091 hardcode_minus_L=yes
9095 hpux11*)
9096 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9097 case $host_cpu in
9098 hppa*64*)
9099 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9101 ia64*)
9102 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9105 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9107 esac
9108 else
9109 case $host_cpu in
9110 hppa*64*)
9111 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9113 ia64*)
9114 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9118 # Older versions of the 11.00 compiler do not understand -b yet
9119 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9121 $as_echo_n "checking if $CC understands -b... " >&6; }
9122 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9123 $as_echo_n "(cached) " >&6
9124 else
9125 lt_cv_prog_compiler__b=no
9126 save_LDFLAGS="$LDFLAGS"
9127 LDFLAGS="$LDFLAGS -b"
9128 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9129 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9130 # The linker can only warn and ignore the option if not recognized
9131 # So say no if there are warnings
9132 if test -s conftest.err; then
9133 # Append any errors to the config.log.
9134 cat conftest.err 1>&5
9135 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9136 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9137 if diff conftest.exp conftest.er2 >/dev/null; then
9138 lt_cv_prog_compiler__b=yes
9140 else
9141 lt_cv_prog_compiler__b=yes
9144 $RM -r conftest*
9145 LDFLAGS="$save_LDFLAGS"
9148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9149 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9151 if test x"$lt_cv_prog_compiler__b" = xyes; then
9152 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9153 else
9154 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9158 esac
9160 if test "$with_gnu_ld" = no; then
9161 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9162 hardcode_libdir_separator=:
9164 case $host_cpu in
9165 hppa*64*|ia64*)
9166 hardcode_direct=no
9167 hardcode_shlibpath_var=no
9170 hardcode_direct=yes
9171 hardcode_direct_absolute=yes
9172 export_dynamic_flag_spec='${wl}-E'
9174 # hardcode_minus_L: Not really in the search PATH,
9175 # but as the default location of the library.
9176 hardcode_minus_L=yes
9178 esac
9182 irix5* | irix6* | nonstopux*)
9183 if test "$GCC" = yes; then
9184 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'
9185 # Try to use the -exported_symbol ld option, if it does not
9186 # work, assume that -exports_file does not work either and
9187 # implicitly export all symbols.
9188 save_LDFLAGS="$LDFLAGS"
9189 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9191 /* end confdefs.h. */
9192 int foo(void) {}
9193 _ACEOF
9194 if ac_fn_c_try_link "$LINENO"; then :
9195 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'
9198 rm -f core conftest.err conftest.$ac_objext \
9199 conftest$ac_exeext conftest.$ac_ext
9200 LDFLAGS="$save_LDFLAGS"
9201 else
9202 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'
9203 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'
9205 archive_cmds_need_lc='no'
9206 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9207 hardcode_libdir_separator=:
9208 inherit_rpath=yes
9209 link_all_deplibs=yes
9212 netbsd*)
9213 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9214 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9215 else
9216 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9218 hardcode_libdir_flag_spec='-R$libdir'
9219 hardcode_direct=yes
9220 hardcode_shlibpath_var=no
9223 newsos6)
9224 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9225 hardcode_direct=yes
9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9227 hardcode_libdir_separator=:
9228 hardcode_shlibpath_var=no
9231 *nto* | *qnx*)
9234 openbsd*)
9235 if test -f /usr/libexec/ld.so; then
9236 hardcode_direct=yes
9237 hardcode_shlibpath_var=no
9238 hardcode_direct_absolute=yes
9239 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9240 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9241 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9242 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9243 export_dynamic_flag_spec='${wl}-E'
9244 else
9245 case $host_os in
9246 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9248 hardcode_libdir_flag_spec='-R$libdir'
9251 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9252 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9254 esac
9256 else
9257 ld_shlibs=no
9261 os2*)
9262 hardcode_libdir_flag_spec='-L$libdir'
9263 hardcode_minus_L=yes
9264 allow_undefined_flag=unsupported
9265 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'
9266 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9269 osf3*)
9270 if test "$GCC" = yes; then
9271 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9272 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'
9273 else
9274 allow_undefined_flag=' -expect_unresolved \*'
9275 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'
9277 archive_cmds_need_lc='no'
9278 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9279 hardcode_libdir_separator=:
9282 osf4* | osf5*) # as osf3* with the addition of -msym flag
9283 if test "$GCC" = yes; then
9284 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9285 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'
9286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9287 else
9288 allow_undefined_flag=' -expect_unresolved \*'
9289 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'
9290 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~
9291 $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'
9293 # Both c and cxx compiler support -rpath directly
9294 hardcode_libdir_flag_spec='-rpath $libdir'
9296 archive_cmds_need_lc='no'
9297 hardcode_libdir_separator=:
9300 solaris*)
9301 no_undefined_flag=' -z defs'
9302 if test "$GCC" = yes; then
9303 wlarc='${wl}'
9304 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9305 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9306 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9307 else
9308 case `$CC -V 2>&1` in
9309 *"Compilers 5.0"*)
9310 wlarc=''
9311 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9313 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9316 wlarc='${wl}'
9317 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9318 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9319 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9321 esac
9323 hardcode_libdir_flag_spec='-R$libdir'
9324 hardcode_shlibpath_var=no
9325 case $host_os in
9326 solaris2.[0-5] | solaris2.[0-5].*) ;;
9328 # The compiler driver will combine and reorder linker options,
9329 # but understands `-z linker_flag'. GCC discards it without `$wl',
9330 # but is careful enough not to reorder.
9331 # Supported since Solaris 2.6 (maybe 2.5.1?)
9332 if test "$GCC" = yes; then
9333 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9334 else
9335 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9338 esac
9339 link_all_deplibs=yes
9342 sunos4*)
9343 if test "x$host_vendor" = xsequent; then
9344 # Use $CC to link under sequent, because it throws in some extra .o
9345 # files that make .init and .fini sections work.
9346 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9347 else
9348 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9350 hardcode_libdir_flag_spec='-L$libdir'
9351 hardcode_direct=yes
9352 hardcode_minus_L=yes
9353 hardcode_shlibpath_var=no
9356 sysv4)
9357 case $host_vendor in
9358 sni)
9359 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9360 hardcode_direct=yes # is this really true???
9362 siemens)
9363 ## LD is ld it makes a PLAMLIB
9364 ## CC just makes a GrossModule.
9365 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9366 reload_cmds='$CC -r -o $output$reload_objs'
9367 hardcode_direct=no
9369 motorola)
9370 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9373 esac
9374 runpath_var='LD_RUN_PATH'
9375 hardcode_shlibpath_var=no
9378 sysv4.3*)
9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9380 hardcode_shlibpath_var=no
9381 export_dynamic_flag_spec='-Bexport'
9384 sysv4*MP*)
9385 if test -d /usr/nec; then
9386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9387 hardcode_shlibpath_var=no
9388 runpath_var=LD_RUN_PATH
9389 hardcode_runpath_var=yes
9390 ld_shlibs=yes
9394 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9395 no_undefined_flag='${wl}-z,text'
9396 archive_cmds_need_lc=no
9397 hardcode_shlibpath_var=no
9398 runpath_var='LD_RUN_PATH'
9400 if test "$GCC" = yes; then
9401 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9402 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9403 else
9404 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9405 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 sysv5* | sco3.2v5* | sco5v6*)
9410 # Note: We can NOT use -z defs as we might desire, because we do not
9411 # link with -lc, and that would cause any symbols used from libc to
9412 # always be unresolved, which means just about no library would
9413 # ever link correctly. If we're not using GNU ld we use -z text
9414 # though, which does catch some bad symbols but isn't as heavy-handed
9415 # as -z defs.
9416 no_undefined_flag='${wl}-z,text'
9417 allow_undefined_flag='${wl}-z,nodefs'
9418 archive_cmds_need_lc=no
9419 hardcode_shlibpath_var=no
9420 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9421 hardcode_libdir_separator=':'
9422 link_all_deplibs=yes
9423 export_dynamic_flag_spec='${wl}-Bexport'
9424 runpath_var='LD_RUN_PATH'
9426 if test "$GCC" = yes; then
9427 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9428 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9429 else
9430 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9431 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 uts4*)
9436 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9437 hardcode_libdir_flag_spec='-L$libdir'
9438 hardcode_shlibpath_var=no
9442 ld_shlibs=no
9444 esac
9446 if test x$host_vendor = xsni; then
9447 case $host in
9448 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9449 export_dynamic_flag_spec='${wl}-Blargedynsym'
9451 esac
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9456 $as_echo "$ld_shlibs" >&6; }
9457 test "$ld_shlibs" = no && can_build_shared=no
9459 with_gnu_ld=$with_gnu_ld
9476 # Do we need to explicitly link libc?
9478 case "x$archive_cmds_need_lc" in
9479 x|xyes)
9480 # Assume -lc should be added
9481 archive_cmds_need_lc=yes
9483 if test "$enable_shared" = yes && test "$GCC" = yes; then
9484 case $archive_cmds in
9485 *'~'*)
9486 # FIXME: we may have to deal with multi-command sequences.
9488 '$CC '*)
9489 # Test whether the compiler implicitly links with -lc since on some
9490 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9491 # to ld, don't add -lc before -lgcc.
9492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9493 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9494 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9495 $as_echo_n "(cached) " >&6
9496 else
9497 $RM conftest*
9498 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9500 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9501 (eval $ac_compile) 2>&5
9502 ac_status=$?
9503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9504 test $ac_status = 0; } 2>conftest.err; then
9505 soname=conftest
9506 lib=conftest
9507 libobjs=conftest.$ac_objext
9508 deplibs=
9509 wl=$lt_prog_compiler_wl
9510 pic_flag=$lt_prog_compiler_pic
9511 compiler_flags=-v
9512 linker_flags=-v
9513 verstring=
9514 output_objdir=.
9515 libname=conftest
9516 lt_save_allow_undefined_flag=$allow_undefined_flag
9517 allow_undefined_flag=
9518 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9519 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9520 ac_status=$?
9521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9522 test $ac_status = 0; }
9523 then
9524 lt_cv_archive_cmds_need_lc=no
9525 else
9526 lt_cv_archive_cmds_need_lc=yes
9528 allow_undefined_flag=$lt_save_allow_undefined_flag
9529 else
9530 cat conftest.err 1>&5
9532 $RM conftest*
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9536 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9537 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9539 esac
9542 esac
9700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9701 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9703 if test "$GCC" = yes; then
9704 case $host_os in
9705 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9706 *) lt_awk_arg="/^libraries:/" ;;
9707 esac
9708 case $host_os in
9709 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9710 *) lt_sed_strip_eq="s,=/,/,g" ;;
9711 esac
9712 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9713 case $lt_search_path_spec in
9714 *\;*)
9715 # if the path contains ";" then we assume it to be the separator
9716 # otherwise default to the standard path separator (i.e. ":") - it is
9717 # assumed that no part of a normal pathname contains ";" but that should
9718 # okay in the real world where ";" in dirpaths is itself problematic.
9719 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9722 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9724 esac
9725 # Ok, now we have the path, separated by spaces, we can step through it
9726 # and add multilib dir if necessary.
9727 lt_tmp_lt_search_path_spec=
9728 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9729 for lt_sys_path in $lt_search_path_spec; do
9730 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9731 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9732 else
9733 test -d "$lt_sys_path" && \
9734 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9736 done
9737 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9738 BEGIN {RS=" "; FS="/|\n";} {
9739 lt_foo="";
9740 lt_count=0;
9741 for (lt_i = NF; lt_i > 0; lt_i--) {
9742 if ($lt_i != "" && $lt_i != ".") {
9743 if ($lt_i == "..") {
9744 lt_count++;
9745 } else {
9746 if (lt_count == 0) {
9747 lt_foo="/" $lt_i lt_foo;
9748 } else {
9749 lt_count--;
9754 if (lt_foo != "") { lt_freq[lt_foo]++; }
9755 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9757 # AWK program above erroneously prepends '/' to C:/dos/paths
9758 # for these hosts.
9759 case $host_os in
9760 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9761 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9762 esac
9763 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9764 else
9765 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9767 library_names_spec=
9768 libname_spec='lib$name'
9769 soname_spec=
9770 shrext_cmds=".so"
9771 postinstall_cmds=
9772 postuninstall_cmds=
9773 finish_cmds=
9774 finish_eval=
9775 shlibpath_var=
9776 shlibpath_overrides_runpath=unknown
9777 version_type=none
9778 dynamic_linker="$host_os ld.so"
9779 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9780 need_lib_prefix=unknown
9781 hardcode_into_libs=no
9783 # when you set need_version to no, make sure it does not cause -set_version
9784 # flags to be left without arguments
9785 need_version=unknown
9787 case $host_os in
9788 aix3*)
9789 version_type=linux
9790 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9791 shlibpath_var=LIBPATH
9793 # AIX 3 has no versioning support, so we append a major version to the name.
9794 soname_spec='${libname}${release}${shared_ext}$major'
9797 aix[4-9]*)
9798 version_type=linux
9799 need_lib_prefix=no
9800 need_version=no
9801 hardcode_into_libs=yes
9802 if test "$host_cpu" = ia64; then
9803 # AIX 5 supports IA64
9804 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 else
9807 # With GCC up to 2.95.x, collect2 would create an import file
9808 # for dependence libraries. The import file would start with
9809 # the line `#! .'. This would cause the generated library to
9810 # depend on `.', always an invalid library. This was fixed in
9811 # development snapshots of GCC prior to 3.0.
9812 case $host_os in
9813 aix4 | aix4.[01] | aix4.[01].*)
9814 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9815 echo ' yes '
9816 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9818 else
9819 can_build_shared=no
9822 esac
9823 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9824 # soname into executable. Probably we can add versioning support to
9825 # collect2, so additional links can be useful in future.
9826 if test "$aix_use_runtimelinking" = yes; then
9827 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9828 # instead of lib<name>.a to let people know that these are not
9829 # typical AIX shared libraries.
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9831 else
9832 # We preserve .a as extension for shared libraries through AIX4.2
9833 # and later when we are not doing run time linking.
9834 library_names_spec='${libname}${release}.a $libname.a'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9837 shlibpath_var=LIBPATH
9841 amigaos*)
9842 case $host_cpu in
9843 powerpc)
9844 # Since July 2007 AmigaOS4 officially supports .so libraries.
9845 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848 m68k)
9849 library_names_spec='$libname.ixlibrary $libname.a'
9850 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9851 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'
9853 esac
9856 beos*)
9857 library_names_spec='${libname}${shared_ext}'
9858 dynamic_linker="$host_os ld.so"
9859 shlibpath_var=LIBRARY_PATH
9862 bsdi[45]*)
9863 version_type=linux
9864 need_version=no
9865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9866 soname_spec='${libname}${release}${shared_ext}$major'
9867 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9868 shlibpath_var=LD_LIBRARY_PATH
9869 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9870 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9871 # the default ld.so.conf also contains /usr/contrib/lib and
9872 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9873 # libtool to hard-code these into programs
9876 cygwin* | mingw* | pw32* | cegcc*)
9877 version_type=windows
9878 shrext_cmds=".dll"
9879 need_version=no
9880 need_lib_prefix=no
9882 case $GCC,$host_os in
9883 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9884 library_names_spec='$libname.dll.a'
9885 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9886 postinstall_cmds='base_file=`basename \${file}`~
9887 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9888 dldir=$destdir/`dirname \$dlpath`~
9889 test -d \$dldir || mkdir -p \$dldir~
9890 $install_prog $dir/$dlname \$dldir/$dlname~
9891 chmod a+x \$dldir/$dlname~
9892 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9893 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9895 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9896 dlpath=$dir/\$dldll~
9897 $RM \$dlpath'
9898 shlibpath_overrides_runpath=yes
9900 case $host_os in
9901 cygwin*)
9902 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9903 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9905 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9907 mingw* | cegcc*)
9908 # MinGW DLLs use traditional 'lib' prefix
9909 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9911 pw32*)
9912 # pw32 DLLs use 'pw' prefix rather than 'lib'
9913 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9915 esac
9919 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9921 esac
9922 dynamic_linker='Win32 ld.exe'
9923 # FIXME: first we should search . and the directory the executable is in
9924 shlibpath_var=PATH
9927 darwin* | rhapsody*)
9928 dynamic_linker="$host_os dyld"
9929 version_type=darwin
9930 need_lib_prefix=no
9931 need_version=no
9932 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9933 soname_spec='${libname}${release}${major}$shared_ext'
9934 shlibpath_overrides_runpath=yes
9935 shlibpath_var=DYLD_LIBRARY_PATH
9936 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9938 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9939 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9942 dgux*)
9943 version_type=linux
9944 need_lib_prefix=no
9945 need_version=no
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 shlibpath_var=LD_LIBRARY_PATH
9951 freebsd* | dragonfly*)
9952 # DragonFly does not have aout. When/if they implement a new
9953 # versioning mechanism, adjust this.
9954 if test -x /usr/bin/objformat; then
9955 objformat=`/usr/bin/objformat`
9956 else
9957 case $host_os in
9958 freebsd[23].*) objformat=aout ;;
9959 *) objformat=elf ;;
9960 esac
9962 version_type=freebsd-$objformat
9963 case $version_type in
9964 freebsd-elf*)
9965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9966 need_version=no
9967 need_lib_prefix=no
9969 freebsd-*)
9970 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9971 need_version=yes
9973 esac
9974 shlibpath_var=LD_LIBRARY_PATH
9975 case $host_os in
9976 freebsd2.*)
9977 shlibpath_overrides_runpath=yes
9979 freebsd3.[01]* | freebsdelf3.[01]*)
9980 shlibpath_overrides_runpath=yes
9981 hardcode_into_libs=yes
9983 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9984 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9985 shlibpath_overrides_runpath=no
9986 hardcode_into_libs=yes
9988 *) # from 4.6 on, and DragonFly
9989 shlibpath_overrides_runpath=yes
9990 hardcode_into_libs=yes
9992 esac
9995 gnu*)
9996 version_type=linux
9997 need_lib_prefix=no
9998 need_version=no
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 shlibpath_var=LD_LIBRARY_PATH
10002 hardcode_into_libs=yes
10005 haiku*)
10006 version_type=linux
10007 need_lib_prefix=no
10008 need_version=no
10009 dynamic_linker="$host_os runtime_loader"
10010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10011 soname_spec='${libname}${release}${shared_ext}$major'
10012 shlibpath_var=LIBRARY_PATH
10013 shlibpath_overrides_runpath=yes
10014 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10015 hardcode_into_libs=yes
10018 hpux9* | hpux10* | hpux11*)
10019 # Give a soname corresponding to the major version so that dld.sl refuses to
10020 # link against other versions.
10021 version_type=sunos
10022 need_lib_prefix=no
10023 need_version=no
10024 case $host_cpu in
10025 ia64*)
10026 shrext_cmds='.so'
10027 hardcode_into_libs=yes
10028 dynamic_linker="$host_os dld.so"
10029 shlibpath_var=LD_LIBRARY_PATH
10030 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10032 soname_spec='${libname}${release}${shared_ext}$major'
10033 if test "X$HPUX_IA64_MODE" = X32; then
10034 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10035 else
10036 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10038 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10040 hppa*64*)
10041 shrext_cmds='.sl'
10042 hardcode_into_libs=yes
10043 dynamic_linker="$host_os dld.sl"
10044 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10045 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10047 soname_spec='${libname}${release}${shared_ext}$major'
10048 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10049 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10052 shrext_cmds='.sl'
10053 dynamic_linker="$host_os dld.sl"
10054 shlibpath_var=SHLIB_PATH
10055 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10057 soname_spec='${libname}${release}${shared_ext}$major'
10059 esac
10060 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10061 postinstall_cmds='chmod 555 $lib'
10062 # or fails outright, so override atomically:
10063 install_override_mode=555
10066 interix[3-9]*)
10067 version_type=linux
10068 need_lib_prefix=no
10069 need_version=no
10070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10071 soname_spec='${libname}${release}${shared_ext}$major'
10072 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10073 shlibpath_var=LD_LIBRARY_PATH
10074 shlibpath_overrides_runpath=no
10075 hardcode_into_libs=yes
10078 irix5* | irix6* | nonstopux*)
10079 case $host_os in
10080 nonstopux*) version_type=nonstopux ;;
10082 if test "$lt_cv_prog_gnu_ld" = yes; then
10083 version_type=linux
10084 else
10085 version_type=irix
10086 fi ;;
10087 esac
10088 need_lib_prefix=no
10089 need_version=no
10090 soname_spec='${libname}${release}${shared_ext}$major'
10091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10092 case $host_os in
10093 irix5* | nonstopux*)
10094 libsuff= shlibsuff=
10097 case $LD in # libtool.m4 will add one of these switches to LD
10098 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10099 libsuff= shlibsuff= libmagic=32-bit;;
10100 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10101 libsuff=32 shlibsuff=N32 libmagic=N32;;
10102 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10103 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10104 *) libsuff= shlibsuff= libmagic=never-match;;
10105 esac
10107 esac
10108 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10109 shlibpath_overrides_runpath=no
10110 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10111 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10112 hardcode_into_libs=yes
10115 # No shared lib support for Linux oldld, aout, or coff.
10116 linux*oldld* | linux*aout* | linux*coff*)
10117 dynamic_linker=no
10120 # This must be Linux ELF.
10121 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10122 version_type=linux
10123 need_lib_prefix=no
10124 need_version=no
10125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10126 soname_spec='${libname}${release}${shared_ext}$major'
10127 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10128 shlibpath_var=LD_LIBRARY_PATH
10129 shlibpath_overrides_runpath=no
10131 # Some binutils ld are patched to set DT_RUNPATH
10132 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10133 $as_echo_n "(cached) " >&6
10134 else
10135 lt_cv_shlibpath_overrides_runpath=no
10136 save_LDFLAGS=$LDFLAGS
10137 save_libdir=$libdir
10138 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10139 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10141 /* end confdefs.h. */
10144 main ()
10148 return 0;
10150 _ACEOF
10151 if ac_fn_c_try_link "$LINENO"; then :
10152 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10153 lt_cv_shlibpath_overrides_runpath=yes
10156 rm -f core conftest.err conftest.$ac_objext \
10157 conftest$ac_exeext conftest.$ac_ext
10158 LDFLAGS=$save_LDFLAGS
10159 libdir=$save_libdir
10163 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10165 # This implies no fast_install, which is unacceptable.
10166 # Some rework will be needed to allow for fast_install
10167 # before this can be enabled.
10168 hardcode_into_libs=yes
10170 # Append ld.so.conf contents to the search path
10171 if test -f /etc/ld.so.conf; then
10172 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' ' '`
10173 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10176 # We used to test for /lib/ld.so.1 and disable shared libraries on
10177 # powerpc, because MkLinux only supported shared libraries with the
10178 # GNU dynamic linker. Since this was broken with cross compilers,
10179 # most powerpc-linux boxes support dynamic linking these days and
10180 # people can always --disable-shared, the test was removed, and we
10181 # assume the GNU/Linux dynamic linker is in use.
10182 dynamic_linker='GNU/Linux ld.so'
10185 netbsd*)
10186 version_type=sunos
10187 need_lib_prefix=no
10188 need_version=no
10189 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10191 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10192 dynamic_linker='NetBSD (a.out) ld.so'
10193 else
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10195 soname_spec='${libname}${release}${shared_ext}$major'
10196 dynamic_linker='NetBSD ld.elf_so'
10198 shlibpath_var=LD_LIBRARY_PATH
10199 shlibpath_overrides_runpath=yes
10200 hardcode_into_libs=yes
10203 newsos6)
10204 version_type=linux
10205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10206 shlibpath_var=LD_LIBRARY_PATH
10207 shlibpath_overrides_runpath=yes
10210 *nto* | *qnx*)
10211 version_type=qnx
10212 need_lib_prefix=no
10213 need_version=no
10214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10215 soname_spec='${libname}${release}${shared_ext}$major'
10216 shlibpath_var=LD_LIBRARY_PATH
10217 shlibpath_overrides_runpath=no
10218 hardcode_into_libs=yes
10219 dynamic_linker='ldqnx.so'
10222 openbsd*)
10223 version_type=sunos
10224 sys_lib_dlsearch_path_spec="/usr/lib"
10225 need_lib_prefix=no
10226 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10227 case $host_os in
10228 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10229 *) need_version=no ;;
10230 esac
10231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10232 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10233 shlibpath_var=LD_LIBRARY_PATH
10234 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10235 case $host_os in
10236 openbsd2.[89] | openbsd2.[89].*)
10237 shlibpath_overrides_runpath=no
10240 shlibpath_overrides_runpath=yes
10242 esac
10243 else
10244 shlibpath_overrides_runpath=yes
10248 os2*)
10249 libname_spec='$name'
10250 shrext_cmds=".dll"
10251 need_lib_prefix=no
10252 library_names_spec='$libname${shared_ext} $libname.a'
10253 dynamic_linker='OS/2 ld.exe'
10254 shlibpath_var=LIBPATH
10257 osf3* | osf4* | osf5*)
10258 version_type=osf
10259 need_lib_prefix=no
10260 need_version=no
10261 soname_spec='${libname}${release}${shared_ext}$major'
10262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10263 shlibpath_var=LD_LIBRARY_PATH
10264 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10265 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10268 rdos*)
10269 dynamic_linker=no
10272 solaris*)
10273 version_type=linux
10274 need_lib_prefix=no
10275 need_version=no
10276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10277 soname_spec='${libname}${release}${shared_ext}$major'
10278 shlibpath_var=LD_LIBRARY_PATH
10279 shlibpath_overrides_runpath=yes
10280 hardcode_into_libs=yes
10281 # ldd complains unless libraries are executable
10282 postinstall_cmds='chmod +x $lib'
10285 sunos4*)
10286 version_type=sunos
10287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10288 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10289 shlibpath_var=LD_LIBRARY_PATH
10290 shlibpath_overrides_runpath=yes
10291 if test "$with_gnu_ld" = yes; then
10292 need_lib_prefix=no
10294 need_version=yes
10297 sysv4 | sysv4.3*)
10298 version_type=linux
10299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10300 soname_spec='${libname}${release}${shared_ext}$major'
10301 shlibpath_var=LD_LIBRARY_PATH
10302 case $host_vendor in
10303 sni)
10304 shlibpath_overrides_runpath=no
10305 need_lib_prefix=no
10306 runpath_var=LD_RUN_PATH
10308 siemens)
10309 need_lib_prefix=no
10311 motorola)
10312 need_lib_prefix=no
10313 need_version=no
10314 shlibpath_overrides_runpath=no
10315 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10317 esac
10320 sysv4*MP*)
10321 if test -d /usr/nec ;then
10322 version_type=linux
10323 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10324 soname_spec='$libname${shared_ext}.$major'
10325 shlibpath_var=LD_LIBRARY_PATH
10329 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10330 version_type=freebsd-elf
10331 need_lib_prefix=no
10332 need_version=no
10333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10334 soname_spec='${libname}${release}${shared_ext}$major'
10335 shlibpath_var=LD_LIBRARY_PATH
10336 shlibpath_overrides_runpath=yes
10337 hardcode_into_libs=yes
10338 if test "$with_gnu_ld" = yes; then
10339 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10340 else
10341 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10342 case $host_os in
10343 sco3.2v5*)
10344 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10346 esac
10348 sys_lib_dlsearch_path_spec='/usr/lib'
10351 tpf*)
10352 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10353 version_type=linux
10354 need_lib_prefix=no
10355 need_version=no
10356 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357 shlibpath_var=LD_LIBRARY_PATH
10358 shlibpath_overrides_runpath=no
10359 hardcode_into_libs=yes
10362 uts4*)
10363 version_type=linux
10364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10365 soname_spec='${libname}${release}${shared_ext}$major'
10366 shlibpath_var=LD_LIBRARY_PATH
10370 dynamic_linker=no
10372 esac
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10374 $as_echo "$dynamic_linker" >&6; }
10375 test "$dynamic_linker" = no && can_build_shared=no
10377 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10378 if test "$GCC" = yes; then
10379 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10382 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10383 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10385 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10386 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10481 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10482 hardcode_action=
10483 if test -n "$hardcode_libdir_flag_spec" ||
10484 test -n "$runpath_var" ||
10485 test "X$hardcode_automatic" = "Xyes" ; then
10487 # We can hardcode non-existent directories.
10488 if test "$hardcode_direct" != no &&
10489 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10490 # have to relink, otherwise we might link with an installed library
10491 # when we should be linking with a yet-to-be-installed one
10492 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10493 test "$hardcode_minus_L" != no; then
10494 # Linking always hardcodes the temporary library directory.
10495 hardcode_action=relink
10496 else
10497 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10498 hardcode_action=immediate
10500 else
10501 # We cannot hardcode anything, or else we can only hardcode existing
10502 # directories.
10503 hardcode_action=unsupported
10505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10506 $as_echo "$hardcode_action" >&6; }
10508 if test "$hardcode_action" = relink ||
10509 test "$inherit_rpath" = yes; then
10510 # Fast installation is not supported
10511 enable_fast_install=no
10512 elif test "$shlibpath_overrides_runpath" = yes ||
10513 test "$enable_shared" = no; then
10514 # Fast installation is not necessary
10515 enable_fast_install=needless
10523 if test "x$enable_dlopen" != xyes; then
10524 enable_dlopen=unknown
10525 enable_dlopen_self=unknown
10526 enable_dlopen_self_static=unknown
10527 else
10528 lt_cv_dlopen=no
10529 lt_cv_dlopen_libs=
10531 case $host_os in
10532 beos*)
10533 lt_cv_dlopen="load_add_on"
10534 lt_cv_dlopen_libs=
10535 lt_cv_dlopen_self=yes
10538 mingw* | pw32* | cegcc*)
10539 lt_cv_dlopen="LoadLibrary"
10540 lt_cv_dlopen_libs=
10543 cygwin*)
10544 lt_cv_dlopen="dlopen"
10545 lt_cv_dlopen_libs=
10548 darwin*)
10549 # if libdl is installed we need to link against it
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10551 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10552 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10553 $as_echo_n "(cached) " >&6
10554 else
10555 ac_check_lib_save_LIBS=$LIBS
10556 LIBS="-ldl $LIBS"
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558 /* end confdefs.h. */
10560 /* Override any GCC internal prototype to avoid an error.
10561 Use char because int might match the return type of a GCC
10562 builtin and then its argument prototype would still apply. */
10563 #ifdef __cplusplus
10564 extern "C"
10565 #endif
10566 char dlopen ();
10568 main ()
10570 return dlopen ();
10572 return 0;
10574 _ACEOF
10575 if ac_fn_c_try_link "$LINENO"; then :
10576 ac_cv_lib_dl_dlopen=yes
10577 else
10578 ac_cv_lib_dl_dlopen=no
10580 rm -f core conftest.err conftest.$ac_objext \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10585 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10586 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10587 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10588 else
10590 lt_cv_dlopen="dyld"
10591 lt_cv_dlopen_libs=
10592 lt_cv_dlopen_self=yes
10599 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10600 if test "x$ac_cv_func_shl_load" = x""yes; then :
10601 lt_cv_dlopen="shl_load"
10602 else
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10604 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10605 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10606 $as_echo_n "(cached) " >&6
10607 else
10608 ac_check_lib_save_LIBS=$LIBS
10609 LIBS="-ldld $LIBS"
10610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10611 /* end confdefs.h. */
10613 /* Override any GCC internal prototype to avoid an error.
10614 Use char because int might match the return type of a GCC
10615 builtin and then its argument prototype would still apply. */
10616 #ifdef __cplusplus
10617 extern "C"
10618 #endif
10619 char shl_load ();
10621 main ()
10623 return shl_load ();
10625 return 0;
10627 _ACEOF
10628 if ac_fn_c_try_link "$LINENO"; then :
10629 ac_cv_lib_dld_shl_load=yes
10630 else
10631 ac_cv_lib_dld_shl_load=no
10633 rm -f core conftest.err conftest.$ac_objext \
10634 conftest$ac_exeext conftest.$ac_ext
10635 LIBS=$ac_check_lib_save_LIBS
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10638 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10639 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10640 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10641 else
10642 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10643 if test "x$ac_cv_func_dlopen" = x""yes; then :
10644 lt_cv_dlopen="dlopen"
10645 else
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10647 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10648 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10649 $as_echo_n "(cached) " >&6
10650 else
10651 ac_check_lib_save_LIBS=$LIBS
10652 LIBS="-ldl $LIBS"
10653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10654 /* end confdefs.h. */
10656 /* Override any GCC internal prototype to avoid an error.
10657 Use char because int might match the return type of a GCC
10658 builtin and then its argument prototype would still apply. */
10659 #ifdef __cplusplus
10660 extern "C"
10661 #endif
10662 char dlopen ();
10664 main ()
10666 return dlopen ();
10668 return 0;
10670 _ACEOF
10671 if ac_fn_c_try_link "$LINENO"; then :
10672 ac_cv_lib_dl_dlopen=yes
10673 else
10674 ac_cv_lib_dl_dlopen=no
10676 rm -f core conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 LIBS=$ac_check_lib_save_LIBS
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10681 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10682 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10683 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10684 else
10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10686 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10687 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10688 $as_echo_n "(cached) " >&6
10689 else
10690 ac_check_lib_save_LIBS=$LIBS
10691 LIBS="-lsvld $LIBS"
10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h. */
10695 /* Override any GCC internal prototype to avoid an error.
10696 Use char because int might match the return type of a GCC
10697 builtin and then its argument prototype would still apply. */
10698 #ifdef __cplusplus
10699 extern "C"
10700 #endif
10701 char dlopen ();
10703 main ()
10705 return dlopen ();
10707 return 0;
10709 _ACEOF
10710 if ac_fn_c_try_link "$LINENO"; then :
10711 ac_cv_lib_svld_dlopen=yes
10712 else
10713 ac_cv_lib_svld_dlopen=no
10715 rm -f core conftest.err conftest.$ac_objext \
10716 conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10720 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10721 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10722 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10723 else
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10725 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10726 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10727 $as_echo_n "(cached) " >&6
10728 else
10729 ac_check_lib_save_LIBS=$LIBS
10730 LIBS="-ldld $LIBS"
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10734 /* Override any GCC internal prototype to avoid an error.
10735 Use char because int might match the return type of a GCC
10736 builtin and then its argument prototype would still apply. */
10737 #ifdef __cplusplus
10738 extern "C"
10739 #endif
10740 char dld_link ();
10742 main ()
10744 return dld_link ();
10746 return 0;
10748 _ACEOF
10749 if ac_fn_c_try_link "$LINENO"; then :
10750 ac_cv_lib_dld_dld_link=yes
10751 else
10752 ac_cv_lib_dld_dld_link=no
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10759 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10760 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10761 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10780 esac
10782 if test "x$lt_cv_dlopen" != xno; then
10783 enable_dlopen=yes
10784 else
10785 enable_dlopen=no
10788 case $lt_cv_dlopen in
10789 dlopen)
10790 save_CPPFLAGS="$CPPFLAGS"
10791 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10793 save_LDFLAGS="$LDFLAGS"
10794 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10796 save_LIBS="$LIBS"
10797 LIBS="$lt_cv_dlopen_libs $LIBS"
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10800 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10801 if test "${lt_cv_dlopen_self+set}" = set; then :
10802 $as_echo_n "(cached) " >&6
10803 else
10804 if test "$cross_compiling" = yes; then :
10805 lt_cv_dlopen_self=cross
10806 else
10807 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10808 lt_status=$lt_dlunknown
10809 cat > conftest.$ac_ext <<_LT_EOF
10810 #line 10810 "configure"
10811 #include "confdefs.h"
10813 #if HAVE_DLFCN_H
10814 #include <dlfcn.h>
10815 #endif
10817 #include <stdio.h>
10819 #ifdef RTLD_GLOBAL
10820 # define LT_DLGLOBAL RTLD_GLOBAL
10821 #else
10822 # ifdef DL_GLOBAL
10823 # define LT_DLGLOBAL DL_GLOBAL
10824 # else
10825 # define LT_DLGLOBAL 0
10826 # endif
10827 #endif
10829 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10830 find out it does not work in some platform. */
10831 #ifndef LT_DLLAZY_OR_NOW
10832 # ifdef RTLD_LAZY
10833 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10834 # else
10835 # ifdef DL_LAZY
10836 # define LT_DLLAZY_OR_NOW DL_LAZY
10837 # else
10838 # ifdef RTLD_NOW
10839 # define LT_DLLAZY_OR_NOW RTLD_NOW
10840 # else
10841 # ifdef DL_NOW
10842 # define LT_DLLAZY_OR_NOW DL_NOW
10843 # else
10844 # define LT_DLLAZY_OR_NOW 0
10845 # endif
10846 # endif
10847 # endif
10848 # endif
10849 #endif
10851 /* When -fvisbility=hidden is used, assume the code has been annotated
10852 correspondingly for the symbols needed. */
10853 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10854 void fnord () __attribute__((visibility("default")));
10855 #endif
10857 void fnord () { int i=42; }
10858 int main ()
10860 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10861 int status = $lt_dlunknown;
10863 if (self)
10865 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10866 else
10868 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10869 else puts (dlerror ());
10871 /* dlclose (self); */
10873 else
10874 puts (dlerror ());
10876 return status;
10878 _LT_EOF
10879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10880 (eval $ac_link) 2>&5
10881 ac_status=$?
10882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10883 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10884 (./conftest; exit; ) >&5 2>/dev/null
10885 lt_status=$?
10886 case x$lt_status in
10887 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10888 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10889 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10890 esac
10891 else :
10892 # compilation failed
10893 lt_cv_dlopen_self=no
10896 rm -fr conftest*
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10901 $as_echo "$lt_cv_dlopen_self" >&6; }
10903 if test "x$lt_cv_dlopen_self" = xyes; then
10904 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10906 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10907 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10908 $as_echo_n "(cached) " >&6
10909 else
10910 if test "$cross_compiling" = yes; then :
10911 lt_cv_dlopen_self_static=cross
10912 else
10913 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10914 lt_status=$lt_dlunknown
10915 cat > conftest.$ac_ext <<_LT_EOF
10916 #line 10916 "configure"
10917 #include "confdefs.h"
10919 #if HAVE_DLFCN_H
10920 #include <dlfcn.h>
10921 #endif
10923 #include <stdio.h>
10925 #ifdef RTLD_GLOBAL
10926 # define LT_DLGLOBAL RTLD_GLOBAL
10927 #else
10928 # ifdef DL_GLOBAL
10929 # define LT_DLGLOBAL DL_GLOBAL
10930 # else
10931 # define LT_DLGLOBAL 0
10932 # endif
10933 #endif
10935 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10936 find out it does not work in some platform. */
10937 #ifndef LT_DLLAZY_OR_NOW
10938 # ifdef RTLD_LAZY
10939 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10940 # else
10941 # ifdef DL_LAZY
10942 # define LT_DLLAZY_OR_NOW DL_LAZY
10943 # else
10944 # ifdef RTLD_NOW
10945 # define LT_DLLAZY_OR_NOW RTLD_NOW
10946 # else
10947 # ifdef DL_NOW
10948 # define LT_DLLAZY_OR_NOW DL_NOW
10949 # else
10950 # define LT_DLLAZY_OR_NOW 0
10951 # endif
10952 # endif
10953 # endif
10954 # endif
10955 #endif
10957 /* When -fvisbility=hidden is used, assume the code has been annotated
10958 correspondingly for the symbols needed. */
10959 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10960 void fnord () __attribute__((visibility("default")));
10961 #endif
10963 void fnord () { int i=42; }
10964 int main ()
10966 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10967 int status = $lt_dlunknown;
10969 if (self)
10971 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10972 else
10974 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10975 else puts (dlerror ());
10977 /* dlclose (self); */
10979 else
10980 puts (dlerror ());
10982 return status;
10984 _LT_EOF
10985 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10986 (eval $ac_link) 2>&5
10987 ac_status=$?
10988 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10989 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10990 (./conftest; exit; ) >&5 2>/dev/null
10991 lt_status=$?
10992 case x$lt_status in
10993 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10994 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10995 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10996 esac
10997 else :
10998 # compilation failed
10999 lt_cv_dlopen_self_static=no
11002 rm -fr conftest*
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11007 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11010 CPPFLAGS="$save_CPPFLAGS"
11011 LDFLAGS="$save_LDFLAGS"
11012 LIBS="$save_LIBS"
11014 esac
11016 case $lt_cv_dlopen_self in
11017 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11018 *) enable_dlopen_self=unknown ;;
11019 esac
11021 case $lt_cv_dlopen_self_static in
11022 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11023 *) enable_dlopen_self_static=unknown ;;
11024 esac
11043 striplib=
11044 old_striplib=
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11046 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11047 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11048 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11049 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11051 $as_echo "yes" >&6; }
11052 else
11053 # FIXME - insert some real tests, host_os isn't really good enough
11054 case $host_os in
11055 darwin*)
11056 if test -n "$STRIP" ; then
11057 striplib="$STRIP -x"
11058 old_striplib="$STRIP -S"
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11060 $as_echo "yes" >&6; }
11061 else
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; }
11070 esac
11084 # Report which library types will actually be built
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11086 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11088 $as_echo "$can_build_shared" >&6; }
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11091 $as_echo_n "checking whether to build shared libraries... " >&6; }
11092 test "$can_build_shared" = "no" && enable_shared=no
11094 # On AIX, shared libraries and static libraries use the same namespace, and
11095 # are all built from PIC.
11096 case $host_os in
11097 aix3*)
11098 test "$enable_shared" = yes && enable_static=no
11099 if test -n "$RANLIB"; then
11100 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11101 postinstall_cmds='$RANLIB $lib'
11105 aix[4-9]*)
11106 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11107 test "$enable_shared" = yes && enable_static=no
11110 esac
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11112 $as_echo "$enable_shared" >&6; }
11114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11115 $as_echo_n "checking whether to build static libraries... " >&6; }
11116 # Make sure either enable_shared or enable_static is yes.
11117 test "$enable_shared" = yes || enable_static=yes
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11119 $as_echo "$enable_static" >&6; }
11125 ac_ext=c
11126 ac_cpp='$CPP $CPPFLAGS'
11127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11131 CC="$lt_save_CC"
11133 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11134 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11135 (test "X$CXX" != "Xg++"))) ; then
11136 ac_ext=cpp
11137 ac_cpp='$CXXCPP $CPPFLAGS'
11138 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11139 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11140 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11142 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11143 if test -z "$CXXCPP"; then
11144 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11145 $as_echo_n "(cached) " >&6
11146 else
11147 # Double quotes because CXXCPP needs to be expanded
11148 for CXXCPP in "$CXX -E" "/lib/cpp"
11150 ac_preproc_ok=false
11151 for ac_cxx_preproc_warn_flag in '' yes
11153 # Use a header file that comes with gcc, so configuring glibc
11154 # with a fresh cross-compiler works.
11155 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11156 # <limits.h> exists even on freestanding compilers.
11157 # On the NeXT, cc -E runs the code through the compiler's parser,
11158 # not just through cpp. "Syntax error" is here to catch this case.
11159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11160 /* end confdefs.h. */
11161 #ifdef __STDC__
11162 # include <limits.h>
11163 #else
11164 # include <assert.h>
11165 #endif
11166 Syntax error
11167 _ACEOF
11168 if ac_fn_cxx_try_cpp "$LINENO"; then :
11170 else
11171 # Broken: fails on valid input.
11172 continue
11174 rm -f conftest.err conftest.$ac_ext
11176 # OK, works on sane cases. Now check whether nonexistent headers
11177 # can be detected and how.
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179 /* end confdefs.h. */
11180 #include <ac_nonexistent.h>
11181 _ACEOF
11182 if ac_fn_cxx_try_cpp "$LINENO"; then :
11183 # Broken: success on invalid input.
11184 continue
11185 else
11186 # Passes both tests.
11187 ac_preproc_ok=:
11188 break
11190 rm -f conftest.err conftest.$ac_ext
11192 done
11193 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11194 rm -f conftest.err conftest.$ac_ext
11195 if $ac_preproc_ok; then :
11196 break
11199 done
11200 ac_cv_prog_CXXCPP=$CXXCPP
11203 CXXCPP=$ac_cv_prog_CXXCPP
11204 else
11205 ac_cv_prog_CXXCPP=$CXXCPP
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11208 $as_echo "$CXXCPP" >&6; }
11209 ac_preproc_ok=false
11210 for ac_cxx_preproc_warn_flag in '' yes
11212 # Use a header file that comes with gcc, so configuring glibc
11213 # with a fresh cross-compiler works.
11214 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11215 # <limits.h> exists even on freestanding compilers.
11216 # On the NeXT, cc -E runs the code through the compiler's parser,
11217 # not just through cpp. "Syntax error" is here to catch this case.
11218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11219 /* end confdefs.h. */
11220 #ifdef __STDC__
11221 # include <limits.h>
11222 #else
11223 # include <assert.h>
11224 #endif
11225 Syntax error
11226 _ACEOF
11227 if ac_fn_cxx_try_cpp "$LINENO"; then :
11229 else
11230 # Broken: fails on valid input.
11231 continue
11233 rm -f conftest.err conftest.$ac_ext
11235 # OK, works on sane cases. Now check whether nonexistent headers
11236 # can be detected and how.
11237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11238 /* end confdefs.h. */
11239 #include <ac_nonexistent.h>
11240 _ACEOF
11241 if ac_fn_cxx_try_cpp "$LINENO"; then :
11242 # Broken: success on invalid input.
11243 continue
11244 else
11245 # Passes both tests.
11246 ac_preproc_ok=:
11247 break
11249 rm -f conftest.err conftest.$ac_ext
11251 done
11252 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11253 rm -f conftest.err conftest.$ac_ext
11254 if $ac_preproc_ok; then :
11256 else
11257 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11259 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11260 See \`config.log' for more details." "$LINENO" 5; }
11263 ac_ext=c
11264 ac_cpp='$CPP $CPPFLAGS'
11265 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11266 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11267 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11269 else
11270 _lt_caught_CXX_error=yes
11273 ac_ext=cpp
11274 ac_cpp='$CXXCPP $CPPFLAGS'
11275 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11276 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11277 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11279 archive_cmds_need_lc_CXX=no
11280 allow_undefined_flag_CXX=
11281 always_export_symbols_CXX=no
11282 archive_expsym_cmds_CXX=
11283 compiler_needs_object_CXX=no
11284 export_dynamic_flag_spec_CXX=
11285 hardcode_direct_CXX=no
11286 hardcode_direct_absolute_CXX=no
11287 hardcode_libdir_flag_spec_CXX=
11288 hardcode_libdir_flag_spec_ld_CXX=
11289 hardcode_libdir_separator_CXX=
11290 hardcode_minus_L_CXX=no
11291 hardcode_shlibpath_var_CXX=unsupported
11292 hardcode_automatic_CXX=no
11293 inherit_rpath_CXX=no
11294 module_cmds_CXX=
11295 module_expsym_cmds_CXX=
11296 link_all_deplibs_CXX=unknown
11297 old_archive_cmds_CXX=$old_archive_cmds
11298 reload_flag_CXX=$reload_flag
11299 reload_cmds_CXX=$reload_cmds
11300 no_undefined_flag_CXX=
11301 whole_archive_flag_spec_CXX=
11302 enable_shared_with_static_runtimes_CXX=no
11304 # Source file extension for C++ test sources.
11305 ac_ext=cpp
11307 # Object file extension for compiled C++ test sources.
11308 objext=o
11309 objext_CXX=$objext
11311 # No sense in running all these tests if we already determined that
11312 # the CXX compiler isn't working. Some variables (like enable_shared)
11313 # are currently assumed to apply to all compilers on this platform,
11314 # and will be corrupted by setting them based on a non-working compiler.
11315 if test "$_lt_caught_CXX_error" != yes; then
11316 # Code to be used in simple compile tests
11317 lt_simple_compile_test_code="int some_variable = 0;"
11319 # Code to be used in simple link tests
11320 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11322 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11329 # If no C compiler was specified, use CC.
11330 LTCC=${LTCC-"$CC"}
11332 # If no C compiler flags were specified, use CFLAGS.
11333 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11335 # Allow CC to be a program name with arguments.
11336 compiler=$CC
11339 # save warnings/boilerplate of simple test code
11340 ac_outfile=conftest.$ac_objext
11341 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11342 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11343 _lt_compiler_boilerplate=`cat conftest.err`
11344 $RM conftest*
11346 ac_outfile=conftest.$ac_objext
11347 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11348 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11349 _lt_linker_boilerplate=`cat conftest.err`
11350 $RM -r conftest*
11353 # Allow CC to be a program name with arguments.
11354 lt_save_CC=$CC
11355 lt_save_LD=$LD
11356 lt_save_GCC=$GCC
11357 GCC=$GXX
11358 lt_save_with_gnu_ld=$with_gnu_ld
11359 lt_save_path_LD=$lt_cv_path_LD
11360 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11361 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11362 else
11363 $as_unset lt_cv_prog_gnu_ld
11365 if test -n "${lt_cv_path_LDCXX+set}"; then
11366 lt_cv_path_LD=$lt_cv_path_LDCXX
11367 else
11368 $as_unset lt_cv_path_LD
11370 test -z "${LDCXX+set}" || LD=$LDCXX
11371 CC=${CXX-"c++"}
11372 compiler=$CC
11373 compiler_CXX=$CC
11374 for cc_temp in $compiler""; do
11375 case $cc_temp in
11376 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11377 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11378 \-*) ;;
11379 *) break;;
11380 esac
11381 done
11382 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11385 if test -n "$compiler"; then
11386 # We don't want -fno-exception when compiling C++ code, so set the
11387 # no_builtin_flag separately
11388 if test "$GXX" = yes; then
11389 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11390 else
11391 lt_prog_compiler_no_builtin_flag_CXX=
11394 if test "$GXX" = yes; then
11395 # Set up default GNU C++ configuration
11399 # Check whether --with-gnu-ld was given.
11400 if test "${with_gnu_ld+set}" = set; then :
11401 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11402 else
11403 with_gnu_ld=no
11406 ac_prog=ld
11407 if test "$GCC" = yes; then
11408 # Check if gcc -print-prog-name=ld gives a path.
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11410 $as_echo_n "checking for ld used by $CC... " >&6; }
11411 case $host in
11412 *-*-mingw*)
11413 # gcc leaves a trailing carriage return which upsets mingw
11414 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11416 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11417 esac
11418 case $ac_prog in
11419 # Accept absolute paths.
11420 [\\/]* | ?:[\\/]*)
11421 re_direlt='/[^/][^/]*/\.\./'
11422 # Canonicalize the pathname of ld
11423 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11424 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11425 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11426 done
11427 test -z "$LD" && LD="$ac_prog"
11430 # If it fails, then pretend we aren't using GCC.
11431 ac_prog=ld
11434 # If it is relative, then search for the first ld in PATH.
11435 with_gnu_ld=unknown
11437 esac
11438 elif test "$with_gnu_ld" = yes; then
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11440 $as_echo_n "checking for GNU ld... " >&6; }
11441 else
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11443 $as_echo_n "checking for non-GNU ld... " >&6; }
11445 if test "${lt_cv_path_LD+set}" = set; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 if test -z "$LD"; then
11449 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11450 for ac_dir in $PATH; do
11451 IFS="$lt_save_ifs"
11452 test -z "$ac_dir" && ac_dir=.
11453 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11454 lt_cv_path_LD="$ac_dir/$ac_prog"
11455 # Check to see if the program is GNU ld. I'd rather use --version,
11456 # but apparently some variants of GNU ld only accept -v.
11457 # Break only if it was the GNU/non-GNU ld that we prefer.
11458 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11459 *GNU* | *'with BFD'*)
11460 test "$with_gnu_ld" != no && break
11463 test "$with_gnu_ld" != yes && break
11465 esac
11467 done
11468 IFS="$lt_save_ifs"
11469 else
11470 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11474 LD="$lt_cv_path_LD"
11475 if test -n "$LD"; then
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11477 $as_echo "$LD" >&6; }
11478 else
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11482 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11484 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11485 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11486 $as_echo_n "(cached) " >&6
11487 else
11488 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11489 case `$LD -v 2>&1 </dev/null` in
11490 *GNU* | *'with BFD'*)
11491 lt_cv_prog_gnu_ld=yes
11494 lt_cv_prog_gnu_ld=no
11496 esac
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11499 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11500 with_gnu_ld=$lt_cv_prog_gnu_ld
11508 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11509 # archiving commands below assume that GNU ld is being used.
11510 if test "$with_gnu_ld" = yes; then
11511 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11512 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'
11514 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11515 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11517 # If archive_cmds runs LD, not CC, wlarc should be empty
11518 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11519 # investigate it a little bit more. (MM)
11520 wlarc='${wl}'
11522 # ancient GNU ld didn't support --whole-archive et. al.
11523 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11524 $GREP 'no-whole-archive' > /dev/null; then
11525 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11526 else
11527 whole_archive_flag_spec_CXX=
11529 else
11530 with_gnu_ld=no
11531 wlarc=
11533 # A generic and very simple default shared library creation
11534 # command for GNU C++ for the case where it uses the native
11535 # linker, instead of GNU ld. If possible, this setting should
11536 # overridden to take advantage of the native linker features on
11537 # the platform it is being used on.
11538 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11541 # Commands to make compiler produce verbose output that lists
11542 # what "hidden" libraries, object files and flags are used when
11543 # linking a shared library.
11544 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11546 else
11547 GXX=no
11548 with_gnu_ld=no
11549 wlarc=
11552 # PORTME: fill in a description of your system's C++ link characteristics
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11554 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11555 ld_shlibs_CXX=yes
11556 case $host_os in
11557 aix3*)
11558 # FIXME: insert proper C++ library support
11559 ld_shlibs_CXX=no
11561 aix[4-9]*)
11562 if test "$host_cpu" = ia64; then
11563 # On IA64, the linker does run time linking by default, so we don't
11564 # have to do anything special.
11565 aix_use_runtimelinking=no
11566 exp_sym_flag='-Bexport'
11567 no_entry_flag=""
11568 else
11569 aix_use_runtimelinking=no
11571 # Test if we are trying to use run time linking or normal
11572 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11573 # need to do runtime linking.
11574 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11575 for ld_flag in $LDFLAGS; do
11576 case $ld_flag in
11577 *-brtl*)
11578 aix_use_runtimelinking=yes
11579 break
11581 esac
11582 done
11584 esac
11586 exp_sym_flag='-bexport'
11587 no_entry_flag='-bnoentry'
11590 # When large executables or shared objects are built, AIX ld can
11591 # have problems creating the table of contents. If linking a library
11592 # or program results in "error TOC overflow" add -mminimal-toc to
11593 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11594 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11596 archive_cmds_CXX=''
11597 hardcode_direct_CXX=yes
11598 hardcode_direct_absolute_CXX=yes
11599 hardcode_libdir_separator_CXX=':'
11600 link_all_deplibs_CXX=yes
11601 file_list_spec_CXX='${wl}-f,'
11603 if test "$GXX" = yes; then
11604 case $host_os in aix4.[012]|aix4.[012].*)
11605 # We only want to do this on AIX 4.2 and lower, the check
11606 # below for broken collect2 doesn't work under 4.3+
11607 collect2name=`${CC} -print-prog-name=collect2`
11608 if test -f "$collect2name" &&
11609 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11610 then
11611 # We have reworked collect2
11613 else
11614 # We have old collect2
11615 hardcode_direct_CXX=unsupported
11616 # It fails to find uninstalled libraries when the uninstalled
11617 # path is not listed in the libpath. Setting hardcode_minus_L
11618 # to unsupported forces relinking
11619 hardcode_minus_L_CXX=yes
11620 hardcode_libdir_flag_spec_CXX='-L$libdir'
11621 hardcode_libdir_separator_CXX=
11623 esac
11624 shared_flag='-shared'
11625 if test "$aix_use_runtimelinking" = yes; then
11626 shared_flag="$shared_flag "'${wl}-G'
11628 else
11629 # not using gcc
11630 if test "$host_cpu" = ia64; then
11631 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11632 # chokes on -Wl,-G. The following line is correct:
11633 shared_flag='-G'
11634 else
11635 if test "$aix_use_runtimelinking" = yes; then
11636 shared_flag='${wl}-G'
11637 else
11638 shared_flag='${wl}-bM:SRE'
11643 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11644 # It seems that -bexpall does not export symbols beginning with
11645 # underscore (_), so it is better to generate a list of symbols to
11646 # export.
11647 always_export_symbols_CXX=yes
11648 if test "$aix_use_runtimelinking" = yes; then
11649 # Warning - without using the other runtime loading flags (-brtl),
11650 # -berok will link without error, but may produce a broken library.
11651 allow_undefined_flag_CXX='-berok'
11652 # Determine the default libpath from the value encoded in an empty
11653 # executable.
11654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11655 /* end confdefs.h. */
11658 main ()
11662 return 0;
11664 _ACEOF
11665 if ac_fn_cxx_try_link "$LINENO"; then :
11667 lt_aix_libpath_sed='
11668 /Import File Strings/,/^$/ {
11669 /^0/ {
11670 s/^0 *\(.*\)$/\1/
11674 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11675 # Check for a 64-bit object if we didn't find anything.
11676 if test -z "$aix_libpath"; then
11677 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11680 rm -f core conftest.err conftest.$ac_objext \
11681 conftest$ac_exeext conftest.$ac_ext
11682 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11684 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11686 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"
11687 else
11688 if test "$host_cpu" = ia64; then
11689 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11690 allow_undefined_flag_CXX="-z nodefs"
11691 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"
11692 else
11693 # Determine the default libpath from the value encoded in an
11694 # empty executable.
11695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11696 /* end confdefs.h. */
11699 main ()
11703 return 0;
11705 _ACEOF
11706 if ac_fn_cxx_try_link "$LINENO"; then :
11708 lt_aix_libpath_sed='
11709 /Import File Strings/,/^$/ {
11710 /^0/ {
11711 s/^0 *\(.*\)$/\1/
11715 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11716 # Check for a 64-bit object if we didn't find anything.
11717 if test -z "$aix_libpath"; then
11718 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11721 rm -f core conftest.err conftest.$ac_objext \
11722 conftest$ac_exeext conftest.$ac_ext
11723 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11725 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11726 # Warning - without using the other run time loading flags,
11727 # -berok will link without error, but may produce a broken library.
11728 no_undefined_flag_CXX=' ${wl}-bernotok'
11729 allow_undefined_flag_CXX=' ${wl}-berok'
11730 if test "$with_gnu_ld" = yes; then
11731 # We only use this code for GNU lds that support --whole-archive.
11732 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11733 else
11734 # Exported symbols can be pulled into shared objects from archives
11735 whole_archive_flag_spec_CXX='$convenience'
11737 archive_cmds_need_lc_CXX=yes
11738 # This is similar to how AIX traditionally builds its shared
11739 # libraries.
11740 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'
11745 beos*)
11746 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11747 allow_undefined_flag_CXX=unsupported
11748 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11749 # support --undefined. This deserves some investigation. FIXME
11750 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11751 else
11752 ld_shlibs_CXX=no
11756 chorus*)
11757 case $cc_basename in
11759 # FIXME: insert proper C++ library support
11760 ld_shlibs_CXX=no
11762 esac
11765 cygwin* | mingw* | pw32* | cegcc*)
11766 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11767 # as there is no search path for DLLs.
11768 hardcode_libdir_flag_spec_CXX='-L$libdir'
11769 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11770 allow_undefined_flag_CXX=unsupported
11771 always_export_symbols_CXX=no
11772 enable_shared_with_static_runtimes_CXX=yes
11774 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11775 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'
11776 # If the export-symbols file already is a .def file (1st line
11777 # is EXPORTS), use it as is; otherwise, prepend...
11778 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11779 cp $export_symbols $output_objdir/$soname.def;
11780 else
11781 echo EXPORTS > $output_objdir/$soname.def;
11782 cat $export_symbols >> $output_objdir/$soname.def;
11784 $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'
11785 else
11786 ld_shlibs_CXX=no
11789 darwin* | rhapsody*)
11792 archive_cmds_need_lc_CXX=no
11793 hardcode_direct_CXX=no
11794 hardcode_automatic_CXX=yes
11795 hardcode_shlibpath_var_CXX=unsupported
11796 if test "$lt_cv_ld_force_load" = "yes"; then
11797 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\"`'
11798 else
11799 whole_archive_flag_spec_CXX=''
11801 link_all_deplibs_CXX=yes
11802 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11803 case $cc_basename in
11804 ifort*) _lt_dar_can_shared=yes ;;
11805 *) _lt_dar_can_shared=$GCC ;;
11806 esac
11807 if test "$_lt_dar_can_shared" = "yes"; then
11808 output_verbose_link_cmd=func_echo_all
11809 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}"
11810 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11811 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}"
11812 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}"
11813 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11814 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}"
11815 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}"
11818 else
11819 ld_shlibs_CXX=no
11824 dgux*)
11825 case $cc_basename in
11826 ec++*)
11827 # FIXME: insert proper C++ library support
11828 ld_shlibs_CXX=no
11830 ghcx*)
11831 # Green Hills C++ Compiler
11832 # FIXME: insert proper C++ library support
11833 ld_shlibs_CXX=no
11836 # FIXME: insert proper C++ library support
11837 ld_shlibs_CXX=no
11839 esac
11842 freebsd2.*)
11843 # C++ shared libraries reported to be fairly broken before
11844 # switch to ELF
11845 ld_shlibs_CXX=no
11848 freebsd-elf*)
11849 archive_cmds_need_lc_CXX=no
11852 freebsd* | dragonfly*)
11853 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11854 # conventions
11855 ld_shlibs_CXX=yes
11858 gnu*)
11861 haiku*)
11862 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11863 link_all_deplibs_CXX=yes
11866 hpux9*)
11867 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11868 hardcode_libdir_separator_CXX=:
11869 export_dynamic_flag_spec_CXX='${wl}-E'
11870 hardcode_direct_CXX=yes
11871 hardcode_minus_L_CXX=yes # Not in the search PATH,
11872 # but as the default
11873 # location of the library.
11875 case $cc_basename in
11876 CC*)
11877 # FIXME: insert proper C++ library support
11878 ld_shlibs_CXX=no
11880 aCC*)
11881 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'
11882 # Commands to make compiler produce verbose output that lists
11883 # what "hidden" libraries, object files and flags are used when
11884 # linking a shared library.
11886 # There doesn't appear to be a way to prevent this compiler from
11887 # explicitly linking system object files so we need to strip them
11888 # from the output so that they don't get included in the library
11889 # dependencies.
11890 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"'
11893 if test "$GXX" = yes; then
11894 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'
11895 else
11896 # FIXME: insert proper C++ library support
11897 ld_shlibs_CXX=no
11900 esac
11903 hpux10*|hpux11*)
11904 if test $with_gnu_ld = no; then
11905 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11906 hardcode_libdir_separator_CXX=:
11908 case $host_cpu in
11909 hppa*64*|ia64*)
11912 export_dynamic_flag_spec_CXX='${wl}-E'
11914 esac
11916 case $host_cpu in
11917 hppa*64*|ia64*)
11918 hardcode_direct_CXX=no
11919 hardcode_shlibpath_var_CXX=no
11922 hardcode_direct_CXX=yes
11923 hardcode_direct_absolute_CXX=yes
11924 hardcode_minus_L_CXX=yes # Not in the search PATH,
11925 # but as the default
11926 # location of the library.
11928 esac
11930 case $cc_basename in
11931 CC*)
11932 # FIXME: insert proper C++ library support
11933 ld_shlibs_CXX=no
11935 aCC*)
11936 case $host_cpu in
11937 hppa*64*)
11938 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11940 ia64*)
11941 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11944 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11946 esac
11947 # Commands to make compiler produce verbose output that lists
11948 # what "hidden" libraries, object files and flags are used when
11949 # linking a shared library.
11951 # There doesn't appear to be a way to prevent this compiler from
11952 # explicitly linking system object files so we need to strip them
11953 # from the output so that they don't get included in the library
11954 # dependencies.
11955 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"'
11958 if test "$GXX" = yes; then
11959 if test $with_gnu_ld = no; then
11960 case $host_cpu in
11961 hppa*64*)
11962 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11964 ia64*)
11965 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11968 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'
11970 esac
11972 else
11973 # FIXME: insert proper C++ library support
11974 ld_shlibs_CXX=no
11977 esac
11980 interix[3-9]*)
11981 hardcode_direct_CXX=no
11982 hardcode_shlibpath_var_CXX=no
11983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11984 export_dynamic_flag_spec_CXX='${wl}-E'
11985 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11986 # Instead, shared libraries are loaded at an image base (0x10000000 by
11987 # default) and relocated if they conflict, which is a slow very memory
11988 # consuming and fragmenting process. To avoid this, we pick a random,
11989 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11990 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11991 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'
11992 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'
11994 irix5* | irix6*)
11995 case $cc_basename in
11996 CC*)
11997 # SGI C++
11998 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'
12000 # Archives containing C++ object files must be created using
12001 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12002 # necessary to make sure instantiated templates are included
12003 # in the archive.
12004 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12007 if test "$GXX" = yes; then
12008 if test "$with_gnu_ld" = no; then
12009 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'
12010 else
12011 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'
12014 link_all_deplibs_CXX=yes
12016 esac
12017 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12018 hardcode_libdir_separator_CXX=:
12019 inherit_rpath_CXX=yes
12022 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12023 case $cc_basename in
12024 KCC*)
12025 # Kuck and Associates, Inc. (KAI) C++ Compiler
12027 # KCC will only create a shared library if the output file
12028 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12029 # to its proper name (with version) after linking.
12030 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'
12031 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'
12032 # Commands to make compiler produce verbose output that lists
12033 # what "hidden" libraries, object files and flags are used when
12034 # linking a shared library.
12036 # There doesn't appear to be a way to prevent this compiler from
12037 # explicitly linking system object files so we need to strip them
12038 # from the output so that they don't get included in the library
12039 # dependencies.
12040 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"'
12042 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12043 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12045 # Archives containing C++ object files must be created using
12046 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12047 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12049 icpc* | ecpc* )
12050 # Intel C++
12051 with_gnu_ld=yes
12052 # version 8.0 and above of icpc choke on multiply defined symbols
12053 # if we add $predep_objects and $postdep_objects, however 7.1 and
12054 # earlier do not add the objects themselves.
12055 case `$CC -V 2>&1` in
12056 *"Version 7."*)
12057 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12058 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'
12060 *) # Version 8.0 or newer
12061 tmp_idyn=
12062 case $host_cpu in
12063 ia64*) tmp_idyn=' -i_dynamic';;
12064 esac
12065 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12066 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'
12068 esac
12069 archive_cmds_need_lc_CXX=no
12070 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12071 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12072 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12074 pgCC* | pgcpp*)
12075 # Portland Group C++ compiler
12076 case `$CC -V` in
12077 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12078 prelink_cmds_CXX='tpldir=Template.dir~
12079 rm -rf $tpldir~
12080 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12081 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12082 old_archive_cmds_CXX='tpldir=Template.dir~
12083 rm -rf $tpldir~
12084 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12085 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12086 $RANLIB $oldlib'
12087 archive_cmds_CXX='tpldir=Template.dir~
12088 rm -rf $tpldir~
12089 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12090 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12091 archive_expsym_cmds_CXX='tpldir=Template.dir~
12092 rm -rf $tpldir~
12093 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12094 $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'
12096 *) # Version 6 and above use weak symbols
12097 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12098 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'
12100 esac
12102 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12103 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12104 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'
12106 cxx*)
12107 # Compaq C++
12108 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12109 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'
12111 runpath_var=LD_RUN_PATH
12112 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12113 hardcode_libdir_separator_CXX=:
12115 # Commands to make compiler produce verbose output that lists
12116 # what "hidden" libraries, object files and flags are used when
12117 # linking a shared library.
12119 # There doesn't appear to be a way to prevent this compiler from
12120 # explicitly linking system object files so we need to strip them
12121 # from the output so that they don't get included in the library
12122 # dependencies.
12123 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'
12125 xl* | mpixl* | bgxl*)
12126 # IBM XL 8.0 on PPC, with GNU ld
12127 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12128 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12129 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12130 if test "x$supports_anon_versioning" = xyes; then
12131 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12132 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12133 echo "local: *; };" >> $output_objdir/$libname.ver~
12134 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12138 case `$CC -V 2>&1 | sed 5q` in
12139 *Sun\ C*)
12140 # Sun C++ 5.9
12141 no_undefined_flag_CXX=' -zdefs'
12142 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12143 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'
12144 hardcode_libdir_flag_spec_CXX='-R$libdir'
12145 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'
12146 compiler_needs_object_CXX=yes
12148 # Not sure whether something based on
12149 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12150 # would be better.
12151 output_verbose_link_cmd='func_echo_all'
12153 # Archives containing C++ object files must be created using
12154 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12155 # necessary to make sure instantiated templates are included
12156 # in the archive.
12157 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12159 esac
12161 esac
12164 lynxos*)
12165 # FIXME: insert proper C++ library support
12166 ld_shlibs_CXX=no
12169 m88k*)
12170 # FIXME: insert proper C++ library support
12171 ld_shlibs_CXX=no
12174 mvs*)
12175 case $cc_basename in
12176 cxx*)
12177 # FIXME: insert proper C++ library support
12178 ld_shlibs_CXX=no
12181 # FIXME: insert proper C++ library support
12182 ld_shlibs_CXX=no
12184 esac
12187 netbsd*)
12188 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12189 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12190 wlarc=
12191 hardcode_libdir_flag_spec_CXX='-R$libdir'
12192 hardcode_direct_CXX=yes
12193 hardcode_shlibpath_var_CXX=no
12195 # Workaround some broken pre-1.5 toolchains
12196 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12199 *nto* | *qnx*)
12200 ld_shlibs_CXX=yes
12203 openbsd2*)
12204 # C++ shared libraries are fairly broken
12205 ld_shlibs_CXX=no
12208 openbsd*)
12209 if test -f /usr/libexec/ld.so; then
12210 hardcode_direct_CXX=yes
12211 hardcode_shlibpath_var_CXX=no
12212 hardcode_direct_absolute_CXX=yes
12213 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12214 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12215 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12216 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12217 export_dynamic_flag_spec_CXX='${wl}-E'
12218 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12220 output_verbose_link_cmd=func_echo_all
12221 else
12222 ld_shlibs_CXX=no
12226 osf3* | osf4* | osf5*)
12227 case $cc_basename in
12228 KCC*)
12229 # Kuck and Associates, Inc. (KAI) C++ Compiler
12231 # KCC will only create a shared library if the output file
12232 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12233 # to its proper name (with version) after linking.
12234 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'
12236 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12237 hardcode_libdir_separator_CXX=:
12239 # Archives containing C++ object files must be created using
12240 # the KAI C++ compiler.
12241 case $host in
12242 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12243 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12244 esac
12246 RCC*)
12247 # Rational C++ 2.4.1
12248 # FIXME: insert proper C++ library support
12249 ld_shlibs_CXX=no
12251 cxx*)
12252 case $host in
12253 osf3*)
12254 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12255 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'
12256 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12259 allow_undefined_flag_CXX=' -expect_unresolved \*'
12260 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'
12261 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12262 echo "-hidden">> $lib.exp~
12263 $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~
12264 $RM $lib.exp'
12265 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12267 esac
12269 hardcode_libdir_separator_CXX=:
12271 # Commands to make compiler produce verbose output that lists
12272 # what "hidden" libraries, object files and flags are used when
12273 # linking a shared library.
12275 # There doesn't appear to be a way to prevent this compiler from
12276 # explicitly linking system object files so we need to strip them
12277 # from the output so that they don't get included in the library
12278 # dependencies.
12279 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"'
12282 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12283 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12284 case $host in
12285 osf3*)
12286 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'
12289 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'
12291 esac
12293 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12294 hardcode_libdir_separator_CXX=:
12296 # Commands to make compiler produce verbose output that lists
12297 # what "hidden" libraries, object files and flags are used when
12298 # linking a shared library.
12299 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12301 else
12302 # FIXME: insert proper C++ library support
12303 ld_shlibs_CXX=no
12306 esac
12309 psos*)
12310 # FIXME: insert proper C++ library support
12311 ld_shlibs_CXX=no
12314 sunos4*)
12315 case $cc_basename in
12316 CC*)
12317 # Sun C++ 4.x
12318 # FIXME: insert proper C++ library support
12319 ld_shlibs_CXX=no
12321 lcc*)
12322 # Lucid
12323 # FIXME: insert proper C++ library support
12324 ld_shlibs_CXX=no
12327 # FIXME: insert proper C++ library support
12328 ld_shlibs_CXX=no
12330 esac
12333 solaris*)
12334 case $cc_basename in
12335 CC*)
12336 # Sun C++ 4.2, 5.x and Centerline C++
12337 archive_cmds_need_lc_CXX=yes
12338 no_undefined_flag_CXX=' -zdefs'
12339 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12340 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12341 $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'
12343 hardcode_libdir_flag_spec_CXX='-R$libdir'
12344 hardcode_shlibpath_var_CXX=no
12345 case $host_os in
12346 solaris2.[0-5] | solaris2.[0-5].*) ;;
12348 # The compiler driver will combine and reorder linker options,
12349 # but understands `-z linker_flag'.
12350 # Supported since Solaris 2.6 (maybe 2.5.1?)
12351 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12353 esac
12354 link_all_deplibs_CXX=yes
12356 output_verbose_link_cmd='func_echo_all'
12358 # Archives containing C++ object files must be created using
12359 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12360 # necessary to make sure instantiated templates are included
12361 # in the archive.
12362 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12364 gcx*)
12365 # Green Hills C++ Compiler
12366 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12368 # The C++ compiler must be used to create the archive.
12369 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12372 # GNU C++ compiler with Solaris linker
12373 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12374 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12375 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12376 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12377 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12378 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12380 # Commands to make compiler produce verbose output that lists
12381 # what "hidden" libraries, object files and flags are used when
12382 # linking a shared library.
12383 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12384 else
12385 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12386 # platform.
12387 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12388 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12389 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12391 # Commands to make compiler produce verbose output that lists
12392 # what "hidden" libraries, object files and flags are used when
12393 # linking a shared library.
12394 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12397 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12398 case $host_os in
12399 solaris2.[0-5] | solaris2.[0-5].*) ;;
12401 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12403 esac
12406 esac
12409 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12410 no_undefined_flag_CXX='${wl}-z,text'
12411 archive_cmds_need_lc_CXX=no
12412 hardcode_shlibpath_var_CXX=no
12413 runpath_var='LD_RUN_PATH'
12415 case $cc_basename in
12416 CC*)
12417 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12418 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12421 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12422 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12424 esac
12427 sysv5* | sco3.2v5* | sco5v6*)
12428 # Note: We can NOT use -z defs as we might desire, because we do not
12429 # link with -lc, and that would cause any symbols used from libc to
12430 # always be unresolved, which means just about no library would
12431 # ever link correctly. If we're not using GNU ld we use -z text
12432 # though, which does catch some bad symbols but isn't as heavy-handed
12433 # as -z defs.
12434 no_undefined_flag_CXX='${wl}-z,text'
12435 allow_undefined_flag_CXX='${wl}-z,nodefs'
12436 archive_cmds_need_lc_CXX=no
12437 hardcode_shlibpath_var_CXX=no
12438 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12439 hardcode_libdir_separator_CXX=':'
12440 link_all_deplibs_CXX=yes
12441 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12442 runpath_var='LD_RUN_PATH'
12444 case $cc_basename in
12445 CC*)
12446 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12447 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12448 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12449 '"$old_archive_cmds_CXX"
12450 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12451 '"$reload_cmds_CXX"
12454 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12455 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12457 esac
12460 tandem*)
12461 case $cc_basename in
12462 NCC*)
12463 # NonStop-UX NCC 3.20
12464 # FIXME: insert proper C++ library support
12465 ld_shlibs_CXX=no
12468 # FIXME: insert proper C++ library support
12469 ld_shlibs_CXX=no
12471 esac
12474 vxworks*)
12475 # FIXME: insert proper C++ library support
12476 ld_shlibs_CXX=no
12480 # FIXME: insert proper C++ library support
12481 ld_shlibs_CXX=no
12483 esac
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12486 $as_echo "$ld_shlibs_CXX" >&6; }
12487 test "$ld_shlibs_CXX" = no && can_build_shared=no
12489 GCC_CXX="$GXX"
12490 LD_CXX="$LD"
12492 ## CAVEAT EMPTOR:
12493 ## There is no encapsulation within the following macros, do not change
12494 ## the running order or otherwise move them around unless you know exactly
12495 ## what you are doing...
12496 # Dependencies to place before and after the object being linked:
12497 predep_objects_CXX=
12498 postdep_objects_CXX=
12499 predeps_CXX=
12500 postdeps_CXX=
12501 compiler_lib_search_path_CXX=
12503 cat > conftest.$ac_ext <<_LT_EOF
12504 class Foo
12506 public:
12507 Foo (void) { a = 0; }
12508 private:
12509 int a;
12511 _LT_EOF
12513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12514 (eval $ac_compile) 2>&5
12515 ac_status=$?
12516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12517 test $ac_status = 0; }; then
12518 # Parse the compiler output and extract the necessary
12519 # objects, libraries and library flags.
12521 # Sentinel used to keep track of whether or not we are before
12522 # the conftest object file.
12523 pre_test_object_deps_done=no
12525 for p in `eval "$output_verbose_link_cmd"`; do
12526 case $p in
12528 -L* | -R* | -l*)
12529 # Some compilers place space between "-{L,R}" and the path.
12530 # Remove the space.
12531 if test $p = "-L" ||
12532 test $p = "-R"; then
12533 prev=$p
12534 continue
12535 else
12536 prev=
12539 if test "$pre_test_object_deps_done" = no; then
12540 case $p in
12541 -L* | -R*)
12542 # Internal compiler library paths should come after those
12543 # provided the user. The postdeps already come after the
12544 # user supplied libs so there is no need to process them.
12545 if test -z "$compiler_lib_search_path_CXX"; then
12546 compiler_lib_search_path_CXX="${prev}${p}"
12547 else
12548 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12551 # The "-l" case would never come before the object being
12552 # linked, so don't bother handling this case.
12553 esac
12554 else
12555 if test -z "$postdeps_CXX"; then
12556 postdeps_CXX="${prev}${p}"
12557 else
12558 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12563 *.$objext)
12564 # This assumes that the test object file only shows up
12565 # once in the compiler output.
12566 if test "$p" = "conftest.$objext"; then
12567 pre_test_object_deps_done=yes
12568 continue
12571 if test "$pre_test_object_deps_done" = no; then
12572 if test -z "$predep_objects_CXX"; then
12573 predep_objects_CXX="$p"
12574 else
12575 predep_objects_CXX="$predep_objects_CXX $p"
12577 else
12578 if test -z "$postdep_objects_CXX"; then
12579 postdep_objects_CXX="$p"
12580 else
12581 postdep_objects_CXX="$postdep_objects_CXX $p"
12586 *) ;; # Ignore the rest.
12588 esac
12589 done
12591 # Clean up.
12592 rm -f a.out a.exe
12593 else
12594 echo "libtool.m4: error: problem compiling CXX test program"
12597 $RM -f confest.$objext
12599 # PORTME: override above test on systems where it is broken
12600 case $host_os in
12601 interix[3-9]*)
12602 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12603 # hack all around it, let's just trust "g++" to DTRT.
12604 predep_objects_CXX=
12605 postdep_objects_CXX=
12606 postdeps_CXX=
12609 linux*)
12610 case `$CC -V 2>&1 | sed 5q` in
12611 *Sun\ C*)
12612 # Sun C++ 5.9
12614 # The more standards-conforming stlport4 library is
12615 # incompatible with the Cstd library. Avoid specifying
12616 # it if it's in CXXFLAGS. Ignore libCrun as
12617 # -library=stlport4 depends on it.
12618 case " $CXX $CXXFLAGS " in
12619 *" -library=stlport4 "*)
12620 solaris_use_stlport4=yes
12622 esac
12624 if test "$solaris_use_stlport4" != yes; then
12625 postdeps_CXX='-library=Cstd -library=Crun'
12628 esac
12631 solaris*)
12632 case $cc_basename in
12633 CC*)
12634 # The more standards-conforming stlport4 library is
12635 # incompatible with the Cstd library. Avoid specifying
12636 # it if it's in CXXFLAGS. Ignore libCrun as
12637 # -library=stlport4 depends on it.
12638 case " $CXX $CXXFLAGS " in
12639 *" -library=stlport4 "*)
12640 solaris_use_stlport4=yes
12642 esac
12644 # Adding this requires a known-good setup of shared libraries for
12645 # Sun compiler versions before 5.6, else PIC objects from an old
12646 # archive will be linked into the output, leading to subtle bugs.
12647 if test "$solaris_use_stlport4" != yes; then
12648 postdeps_CXX='-library=Cstd -library=Crun'
12651 esac
12653 esac
12656 case " $postdeps_CXX " in
12657 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12658 esac
12659 compiler_lib_search_dirs_CXX=
12660 if test -n "${compiler_lib_search_path_CXX}"; then
12661 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12694 lt_prog_compiler_wl_CXX=
12695 lt_prog_compiler_pic_CXX=
12696 lt_prog_compiler_static_CXX=
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12699 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12701 # C++ specific cases for pic, static, wl, etc.
12702 if test "$GXX" = yes; then
12703 lt_prog_compiler_wl_CXX='-Wl,'
12704 lt_prog_compiler_static_CXX='-static'
12706 case $host_os in
12707 aix*)
12708 # All AIX code is PIC.
12709 if test "$host_cpu" = ia64; then
12710 # AIX 5 now supports IA64 processor
12711 lt_prog_compiler_static_CXX='-Bstatic'
12713 lt_prog_compiler_pic_CXX='-fPIC'
12716 amigaos*)
12717 case $host_cpu in
12718 powerpc)
12719 # see comment about AmigaOS4 .so support
12720 lt_prog_compiler_pic_CXX='-fPIC'
12722 m68k)
12723 # FIXME: we need at least 68020 code to build shared libraries, but
12724 # adding the `-m68020' flag to GCC prevents building anything better,
12725 # like `-m68040'.
12726 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12728 esac
12731 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12732 # PIC is the default for these OSes.
12734 mingw* | cygwin* | os2* | pw32* | cegcc*)
12735 # This hack is so that the source file can tell whether it is being
12736 # built for inclusion in a dll (and should export symbols for example).
12737 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12738 # (--disable-auto-import) libraries
12739 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12741 darwin* | rhapsody*)
12742 # PIC is the default on this platform
12743 # Common symbols not allowed in MH_DYLIB files
12744 lt_prog_compiler_pic_CXX='-fno-common'
12746 *djgpp*)
12747 # DJGPP does not support shared libraries at all
12748 lt_prog_compiler_pic_CXX=
12750 haiku*)
12751 # PIC is the default for Haiku.
12752 # The "-static" flag exists, but is broken.
12753 lt_prog_compiler_static_CXX=
12755 interix[3-9]*)
12756 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12757 # Instead, we relocate shared libraries at runtime.
12759 sysv4*MP*)
12760 if test -d /usr/nec; then
12761 lt_prog_compiler_pic_CXX=-Kconform_pic
12764 hpux*)
12765 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12766 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12767 # sets the default TLS model and affects inlining.
12768 case $host_cpu in
12769 hppa*64*)
12772 lt_prog_compiler_pic_CXX='-fPIC'
12774 esac
12776 *qnx* | *nto*)
12777 # QNX uses GNU C++, but need to define -shared option too, otherwise
12778 # it will coredump.
12779 lt_prog_compiler_pic_CXX='-fPIC -shared'
12782 lt_prog_compiler_pic_CXX='-fPIC'
12784 esac
12785 else
12786 case $host_os in
12787 aix[4-9]*)
12788 # All AIX code is PIC.
12789 if test "$host_cpu" = ia64; then
12790 # AIX 5 now supports IA64 processor
12791 lt_prog_compiler_static_CXX='-Bstatic'
12792 else
12793 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12796 chorus*)
12797 case $cc_basename in
12798 cxch68*)
12799 # Green Hills C++ Compiler
12800 # _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"
12802 esac
12804 dgux*)
12805 case $cc_basename in
12806 ec++*)
12807 lt_prog_compiler_pic_CXX='-KPIC'
12809 ghcx*)
12810 # Green Hills C++ Compiler
12811 lt_prog_compiler_pic_CXX='-pic'
12815 esac
12817 freebsd* | dragonfly*)
12818 # FreeBSD uses GNU C++
12820 hpux9* | hpux10* | hpux11*)
12821 case $cc_basename in
12822 CC*)
12823 lt_prog_compiler_wl_CXX='-Wl,'
12824 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12825 if test "$host_cpu" != ia64; then
12826 lt_prog_compiler_pic_CXX='+Z'
12829 aCC*)
12830 lt_prog_compiler_wl_CXX='-Wl,'
12831 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12832 case $host_cpu in
12833 hppa*64*|ia64*)
12834 # +Z the default
12837 lt_prog_compiler_pic_CXX='+Z'
12839 esac
12843 esac
12845 interix*)
12846 # This is c89, which is MS Visual C++ (no shared libs)
12847 # Anyone wants to do a port?
12849 irix5* | irix6* | nonstopux*)
12850 case $cc_basename in
12851 CC*)
12852 lt_prog_compiler_wl_CXX='-Wl,'
12853 lt_prog_compiler_static_CXX='-non_shared'
12854 # CC pic flag -KPIC is the default.
12858 esac
12860 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12861 case $cc_basename in
12862 KCC*)
12863 # KAI C++ Compiler
12864 lt_prog_compiler_wl_CXX='--backend -Wl,'
12865 lt_prog_compiler_pic_CXX='-fPIC'
12867 ecpc* )
12868 # old Intel C++ for x86_64 which still supported -KPIC.
12869 lt_prog_compiler_wl_CXX='-Wl,'
12870 lt_prog_compiler_pic_CXX='-KPIC'
12871 lt_prog_compiler_static_CXX='-static'
12873 icpc* )
12874 # Intel C++, used to be incompatible with GCC.
12875 # ICC 10 doesn't accept -KPIC any more.
12876 lt_prog_compiler_wl_CXX='-Wl,'
12877 lt_prog_compiler_pic_CXX='-fPIC'
12878 lt_prog_compiler_static_CXX='-static'
12880 pgCC* | pgcpp*)
12881 # Portland Group C++ compiler
12882 lt_prog_compiler_wl_CXX='-Wl,'
12883 lt_prog_compiler_pic_CXX='-fpic'
12884 lt_prog_compiler_static_CXX='-Bstatic'
12886 cxx*)
12887 # Compaq C++
12888 # Make sure the PIC flag is empty. It appears that all Alpha
12889 # Linux and Compaq Tru64 Unix objects are PIC.
12890 lt_prog_compiler_pic_CXX=
12891 lt_prog_compiler_static_CXX='-non_shared'
12893 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
12894 # IBM XL 8.0, 9.0 on PPC and BlueGene
12895 lt_prog_compiler_wl_CXX='-Wl,'
12896 lt_prog_compiler_pic_CXX='-qpic'
12897 lt_prog_compiler_static_CXX='-qstaticlink'
12900 case `$CC -V 2>&1 | sed 5q` in
12901 *Sun\ C*)
12902 # Sun C++ 5.9
12903 lt_prog_compiler_pic_CXX='-KPIC'
12904 lt_prog_compiler_static_CXX='-Bstatic'
12905 lt_prog_compiler_wl_CXX='-Qoption ld '
12907 esac
12909 esac
12911 lynxos*)
12913 m88k*)
12915 mvs*)
12916 case $cc_basename in
12917 cxx*)
12918 lt_prog_compiler_pic_CXX='-W c,exportall'
12922 esac
12924 netbsd*)
12926 *qnx* | *nto*)
12927 # QNX uses GNU C++, but need to define -shared option too, otherwise
12928 # it will coredump.
12929 lt_prog_compiler_pic_CXX='-fPIC -shared'
12931 osf3* | osf4* | osf5*)
12932 case $cc_basename in
12933 KCC*)
12934 lt_prog_compiler_wl_CXX='--backend -Wl,'
12936 RCC*)
12937 # Rational C++ 2.4.1
12938 lt_prog_compiler_pic_CXX='-pic'
12940 cxx*)
12941 # Digital/Compaq C++
12942 lt_prog_compiler_wl_CXX='-Wl,'
12943 # Make sure the PIC flag is empty. It appears that all Alpha
12944 # Linux and Compaq Tru64 Unix objects are PIC.
12945 lt_prog_compiler_pic_CXX=
12946 lt_prog_compiler_static_CXX='-non_shared'
12950 esac
12952 psos*)
12954 solaris*)
12955 case $cc_basename in
12956 CC*)
12957 # Sun C++ 4.2, 5.x and Centerline C++
12958 lt_prog_compiler_pic_CXX='-KPIC'
12959 lt_prog_compiler_static_CXX='-Bstatic'
12960 lt_prog_compiler_wl_CXX='-Qoption ld '
12962 gcx*)
12963 # Green Hills C++ Compiler
12964 lt_prog_compiler_pic_CXX='-PIC'
12968 esac
12970 sunos4*)
12971 case $cc_basename in
12972 CC*)
12973 # Sun C++ 4.x
12974 lt_prog_compiler_pic_CXX='-pic'
12975 lt_prog_compiler_static_CXX='-Bstatic'
12977 lcc*)
12978 # Lucid
12979 lt_prog_compiler_pic_CXX='-pic'
12983 esac
12985 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12986 case $cc_basename in
12987 CC*)
12988 lt_prog_compiler_wl_CXX='-Wl,'
12989 lt_prog_compiler_pic_CXX='-KPIC'
12990 lt_prog_compiler_static_CXX='-Bstatic'
12992 esac
12994 tandem*)
12995 case $cc_basename in
12996 NCC*)
12997 # NonStop-UX NCC 3.20
12998 lt_prog_compiler_pic_CXX='-KPIC'
13002 esac
13004 vxworks*)
13007 lt_prog_compiler_can_build_shared_CXX=no
13009 esac
13012 case $host_os in
13013 # For platforms which do not support PIC, -DPIC is meaningless:
13014 *djgpp*)
13015 lt_prog_compiler_pic_CXX=
13018 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13020 esac
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13022 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13027 # Check to make sure the PIC flag actually works.
13029 if test -n "$lt_prog_compiler_pic_CXX"; then
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13031 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13032 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13033 $as_echo_n "(cached) " >&6
13034 else
13035 lt_cv_prog_compiler_pic_works_CXX=no
13036 ac_outfile=conftest.$ac_objext
13037 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13038 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13039 # Insert the option either (1) after the last *FLAGS variable, or
13040 # (2) before a word containing "conftest.", or (3) at the end.
13041 # Note that $ac_compile itself does not contain backslashes and begins
13042 # with a dollar sign (not a hyphen), so the echo should work correctly.
13043 # The option is referenced via a variable to avoid confusing sed.
13044 lt_compile=`echo "$ac_compile" | $SED \
13045 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13046 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13047 -e 's:$: $lt_compiler_flag:'`
13048 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13049 (eval "$lt_compile" 2>conftest.err)
13050 ac_status=$?
13051 cat conftest.err >&5
13052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13053 if (exit $ac_status) && test -s "$ac_outfile"; then
13054 # The compiler can only warn and ignore the option if not recognized
13055 # So say no if there are warnings other than the usual output.
13056 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13057 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13058 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13059 lt_cv_prog_compiler_pic_works_CXX=yes
13062 $RM conftest*
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13066 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13068 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13069 case $lt_prog_compiler_pic_CXX in
13070 "" | " "*) ;;
13071 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13072 esac
13073 else
13074 lt_prog_compiler_pic_CXX=
13075 lt_prog_compiler_can_build_shared_CXX=no
13083 # Check to make sure the static flag actually works.
13085 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13087 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13088 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13089 $as_echo_n "(cached) " >&6
13090 else
13091 lt_cv_prog_compiler_static_works_CXX=no
13092 save_LDFLAGS="$LDFLAGS"
13093 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13094 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13095 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13096 # The linker can only warn and ignore the option if not recognized
13097 # So say no if there are warnings
13098 if test -s conftest.err; then
13099 # Append any errors to the config.log.
13100 cat conftest.err 1>&5
13101 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13103 if diff conftest.exp conftest.er2 >/dev/null; then
13104 lt_cv_prog_compiler_static_works_CXX=yes
13106 else
13107 lt_cv_prog_compiler_static_works_CXX=yes
13110 $RM -r conftest*
13111 LDFLAGS="$save_LDFLAGS"
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13115 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13117 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13119 else
13120 lt_prog_compiler_static_CXX=
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13127 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13128 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13129 $as_echo_n "(cached) " >&6
13130 else
13131 lt_cv_prog_compiler_c_o_CXX=no
13132 $RM -r conftest 2>/dev/null
13133 mkdir conftest
13134 cd conftest
13135 mkdir out
13136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13138 lt_compiler_flag="-o out/conftest2.$ac_objext"
13139 # Insert the option either (1) after the last *FLAGS variable, or
13140 # (2) before a word containing "conftest.", or (3) at the end.
13141 # Note that $ac_compile itself does not contain backslashes and begins
13142 # with a dollar sign (not a hyphen), so the echo should work correctly.
13143 lt_compile=`echo "$ac_compile" | $SED \
13144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13146 -e 's:$: $lt_compiler_flag:'`
13147 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13148 (eval "$lt_compile" 2>out/conftest.err)
13149 ac_status=$?
13150 cat out/conftest.err >&5
13151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13152 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13153 then
13154 # The compiler can only warn and ignore the option if not recognized
13155 # So say no if there are warnings
13156 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13157 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13158 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13159 lt_cv_prog_compiler_c_o_CXX=yes
13162 chmod u+w . 2>&5
13163 $RM conftest*
13164 # SGI C++ compiler will create directory out/ii_files/ for
13165 # template instantiation
13166 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13167 $RM out/* && rmdir out
13168 cd ..
13169 $RM -r conftest
13170 $RM conftest*
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13174 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13179 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13180 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13181 $as_echo_n "(cached) " >&6
13182 else
13183 lt_cv_prog_compiler_c_o_CXX=no
13184 $RM -r conftest 2>/dev/null
13185 mkdir conftest
13186 cd conftest
13187 mkdir out
13188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13190 lt_compiler_flag="-o out/conftest2.$ac_objext"
13191 # Insert the option either (1) after the last *FLAGS variable, or
13192 # (2) before a word containing "conftest.", or (3) at the end.
13193 # Note that $ac_compile itself does not contain backslashes and begins
13194 # with a dollar sign (not a hyphen), so the echo should work correctly.
13195 lt_compile=`echo "$ac_compile" | $SED \
13196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13198 -e 's:$: $lt_compiler_flag:'`
13199 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13200 (eval "$lt_compile" 2>out/conftest.err)
13201 ac_status=$?
13202 cat out/conftest.err >&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13205 then
13206 # The compiler can only warn and ignore the option if not recognized
13207 # So say no if there are warnings
13208 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13209 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13210 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13211 lt_cv_prog_compiler_c_o_CXX=yes
13214 chmod u+w . 2>&5
13215 $RM conftest*
13216 # SGI C++ compiler will create directory out/ii_files/ for
13217 # template instantiation
13218 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13219 $RM out/* && rmdir out
13220 cd ..
13221 $RM -r conftest
13222 $RM conftest*
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13226 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13231 hard_links="nottested"
13232 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13233 # do not overwrite the value of need_locks provided by the user
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13235 $as_echo_n "checking if we can lock with hard links... " >&6; }
13236 hard_links=yes
13237 $RM conftest*
13238 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13239 touch conftest.a
13240 ln conftest.a conftest.b 2>&5 || hard_links=no
13241 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13243 $as_echo "$hard_links" >&6; }
13244 if test "$hard_links" = no; then
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13246 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13247 need_locks=warn
13249 else
13250 need_locks=no
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13256 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13258 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13259 case $host_os in
13260 aix[4-9]*)
13261 # If we're using GNU nm, then we don't want the "-C" option.
13262 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13263 # Also, AIX nm treats weak defined symbols like other global defined
13264 # symbols, whereas GNU nm marks them as "W".
13265 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13266 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'
13267 else
13268 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'
13271 pw32*)
13272 export_symbols_cmds_CXX="$ltdll_cmds"
13274 cygwin* | mingw* | cegcc*)
13275 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'
13278 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13280 esac
13281 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13284 $as_echo "$ld_shlibs_CXX" >&6; }
13285 test "$ld_shlibs_CXX" = no && can_build_shared=no
13287 with_gnu_ld_CXX=$with_gnu_ld
13295 # Do we need to explicitly link libc?
13297 case "x$archive_cmds_need_lc_CXX" in
13298 x|xyes)
13299 # Assume -lc should be added
13300 archive_cmds_need_lc_CXX=yes
13302 if test "$enable_shared" = yes && test "$GCC" = yes; then
13303 case $archive_cmds_CXX in
13304 *'~'*)
13305 # FIXME: we may have to deal with multi-command sequences.
13307 '$CC '*)
13308 # Test whether the compiler implicitly links with -lc since on some
13309 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13310 # to ld, don't add -lc before -lgcc.
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13312 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13313 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13314 $as_echo_n "(cached) " >&6
13315 else
13316 $RM conftest*
13317 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13320 (eval $ac_compile) 2>&5
13321 ac_status=$?
13322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13323 test $ac_status = 0; } 2>conftest.err; then
13324 soname=conftest
13325 lib=conftest
13326 libobjs=conftest.$ac_objext
13327 deplibs=
13328 wl=$lt_prog_compiler_wl_CXX
13329 pic_flag=$lt_prog_compiler_pic_CXX
13330 compiler_flags=-v
13331 linker_flags=-v
13332 verstring=
13333 output_objdir=.
13334 libname=conftest
13335 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13336 allow_undefined_flag_CXX=
13337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13338 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13339 ac_status=$?
13340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13341 test $ac_status = 0; }
13342 then
13343 lt_cv_archive_cmds_need_lc_CXX=no
13344 else
13345 lt_cv_archive_cmds_need_lc_CXX=yes
13347 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13348 else
13349 cat conftest.err 1>&5
13351 $RM conftest*
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13355 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13356 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13358 esac
13361 esac
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13427 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13429 library_names_spec=
13430 libname_spec='lib$name'
13431 soname_spec=
13432 shrext_cmds=".so"
13433 postinstall_cmds=
13434 postuninstall_cmds=
13435 finish_cmds=
13436 finish_eval=
13437 shlibpath_var=
13438 shlibpath_overrides_runpath=unknown
13439 version_type=none
13440 dynamic_linker="$host_os ld.so"
13441 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13442 need_lib_prefix=unknown
13443 hardcode_into_libs=no
13445 # when you set need_version to no, make sure it does not cause -set_version
13446 # flags to be left without arguments
13447 need_version=unknown
13449 case $host_os in
13450 aix3*)
13451 version_type=linux
13452 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13453 shlibpath_var=LIBPATH
13455 # AIX 3 has no versioning support, so we append a major version to the name.
13456 soname_spec='${libname}${release}${shared_ext}$major'
13459 aix[4-9]*)
13460 version_type=linux
13461 need_lib_prefix=no
13462 need_version=no
13463 hardcode_into_libs=yes
13464 if test "$host_cpu" = ia64; then
13465 # AIX 5 supports IA64
13466 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 else
13469 # With GCC up to 2.95.x, collect2 would create an import file
13470 # for dependence libraries. The import file would start with
13471 # the line `#! .'. This would cause the generated library to
13472 # depend on `.', always an invalid library. This was fixed in
13473 # development snapshots of GCC prior to 3.0.
13474 case $host_os in
13475 aix4 | aix4.[01] | aix4.[01].*)
13476 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13477 echo ' yes '
13478 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13480 else
13481 can_build_shared=no
13484 esac
13485 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13486 # soname into executable. Probably we can add versioning support to
13487 # collect2, so additional links can be useful in future.
13488 if test "$aix_use_runtimelinking" = yes; then
13489 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13490 # instead of lib<name>.a to let people know that these are not
13491 # typical AIX shared libraries.
13492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13493 else
13494 # We preserve .a as extension for shared libraries through AIX4.2
13495 # and later when we are not doing run time linking.
13496 library_names_spec='${libname}${release}.a $libname.a'
13497 soname_spec='${libname}${release}${shared_ext}$major'
13499 shlibpath_var=LIBPATH
13503 amigaos*)
13504 case $host_cpu in
13505 powerpc)
13506 # Since July 2007 AmigaOS4 officially supports .so libraries.
13507 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13510 m68k)
13511 library_names_spec='$libname.ixlibrary $libname.a'
13512 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13513 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'
13515 esac
13518 beos*)
13519 library_names_spec='${libname}${shared_ext}'
13520 dynamic_linker="$host_os ld.so"
13521 shlibpath_var=LIBRARY_PATH
13524 bsdi[45]*)
13525 version_type=linux
13526 need_version=no
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13528 soname_spec='${libname}${release}${shared_ext}$major'
13529 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13530 shlibpath_var=LD_LIBRARY_PATH
13531 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13532 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13533 # the default ld.so.conf also contains /usr/contrib/lib and
13534 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13535 # libtool to hard-code these into programs
13538 cygwin* | mingw* | pw32* | cegcc*)
13539 version_type=windows
13540 shrext_cmds=".dll"
13541 need_version=no
13542 need_lib_prefix=no
13544 case $GCC,$host_os in
13545 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13546 library_names_spec='$libname.dll.a'
13547 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13548 postinstall_cmds='base_file=`basename \${file}`~
13549 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13550 dldir=$destdir/`dirname \$dlpath`~
13551 test -d \$dldir || mkdir -p \$dldir~
13552 $install_prog $dir/$dlname \$dldir/$dlname~
13553 chmod a+x \$dldir/$dlname~
13554 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13555 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13558 dlpath=$dir/\$dldll~
13559 $RM \$dlpath'
13560 shlibpath_overrides_runpath=yes
13562 case $host_os in
13563 cygwin*)
13564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13568 mingw* | cegcc*)
13569 # MinGW DLLs use traditional 'lib' prefix
13570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13572 pw32*)
13573 # pw32 DLLs use 'pw' prefix rather than 'lib'
13574 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13576 esac
13580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13582 esac
13583 dynamic_linker='Win32 ld.exe'
13584 # FIXME: first we should search . and the directory the executable is in
13585 shlibpath_var=PATH
13588 darwin* | rhapsody*)
13589 dynamic_linker="$host_os dyld"
13590 version_type=darwin
13591 need_lib_prefix=no
13592 need_version=no
13593 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13594 soname_spec='${libname}${release}${major}$shared_ext'
13595 shlibpath_overrides_runpath=yes
13596 shlibpath_var=DYLD_LIBRARY_PATH
13597 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13599 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13602 dgux*)
13603 version_type=linux
13604 need_lib_prefix=no
13605 need_version=no
13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 shlibpath_var=LD_LIBRARY_PATH
13611 freebsd* | dragonfly*)
13612 # DragonFly does not have aout. When/if they implement a new
13613 # versioning mechanism, adjust this.
13614 if test -x /usr/bin/objformat; then
13615 objformat=`/usr/bin/objformat`
13616 else
13617 case $host_os in
13618 freebsd[23].*) objformat=aout ;;
13619 *) objformat=elf ;;
13620 esac
13622 version_type=freebsd-$objformat
13623 case $version_type in
13624 freebsd-elf*)
13625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13626 need_version=no
13627 need_lib_prefix=no
13629 freebsd-*)
13630 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13631 need_version=yes
13633 esac
13634 shlibpath_var=LD_LIBRARY_PATH
13635 case $host_os in
13636 freebsd2.*)
13637 shlibpath_overrides_runpath=yes
13639 freebsd3.[01]* | freebsdelf3.[01]*)
13640 shlibpath_overrides_runpath=yes
13641 hardcode_into_libs=yes
13643 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13644 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13645 shlibpath_overrides_runpath=no
13646 hardcode_into_libs=yes
13648 *) # from 4.6 on, and DragonFly
13649 shlibpath_overrides_runpath=yes
13650 hardcode_into_libs=yes
13652 esac
13655 gnu*)
13656 version_type=linux
13657 need_lib_prefix=no
13658 need_version=no
13659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13660 soname_spec='${libname}${release}${shared_ext}$major'
13661 shlibpath_var=LD_LIBRARY_PATH
13662 hardcode_into_libs=yes
13665 haiku*)
13666 version_type=linux
13667 need_lib_prefix=no
13668 need_version=no
13669 dynamic_linker="$host_os runtime_loader"
13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13671 soname_spec='${libname}${release}${shared_ext}$major'
13672 shlibpath_var=LIBRARY_PATH
13673 shlibpath_overrides_runpath=yes
13674 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13675 hardcode_into_libs=yes
13678 hpux9* | hpux10* | hpux11*)
13679 # Give a soname corresponding to the major version so that dld.sl refuses to
13680 # link against other versions.
13681 version_type=sunos
13682 need_lib_prefix=no
13683 need_version=no
13684 case $host_cpu in
13685 ia64*)
13686 shrext_cmds='.so'
13687 hardcode_into_libs=yes
13688 dynamic_linker="$host_os dld.so"
13689 shlibpath_var=LD_LIBRARY_PATH
13690 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13692 soname_spec='${libname}${release}${shared_ext}$major'
13693 if test "X$HPUX_IA64_MODE" = X32; then
13694 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13695 else
13696 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13700 hppa*64*)
13701 shrext_cmds='.sl'
13702 hardcode_into_libs=yes
13703 dynamic_linker="$host_os dld.sl"
13704 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13705 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13707 soname_spec='${libname}${release}${shared_ext}$major'
13708 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13709 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13712 shrext_cmds='.sl'
13713 dynamic_linker="$host_os dld.sl"
13714 shlibpath_var=SHLIB_PATH
13715 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13717 soname_spec='${libname}${release}${shared_ext}$major'
13719 esac
13720 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13721 postinstall_cmds='chmod 555 $lib'
13722 # or fails outright, so override atomically:
13723 install_override_mode=555
13726 interix[3-9]*)
13727 version_type=linux
13728 need_lib_prefix=no
13729 need_version=no
13730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13731 soname_spec='${libname}${release}${shared_ext}$major'
13732 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13733 shlibpath_var=LD_LIBRARY_PATH
13734 shlibpath_overrides_runpath=no
13735 hardcode_into_libs=yes
13738 irix5* | irix6* | nonstopux*)
13739 case $host_os in
13740 nonstopux*) version_type=nonstopux ;;
13742 if test "$lt_cv_prog_gnu_ld" = yes; then
13743 version_type=linux
13744 else
13745 version_type=irix
13746 fi ;;
13747 esac
13748 need_lib_prefix=no
13749 need_version=no
13750 soname_spec='${libname}${release}${shared_ext}$major'
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13752 case $host_os in
13753 irix5* | nonstopux*)
13754 libsuff= shlibsuff=
13757 case $LD in # libtool.m4 will add one of these switches to LD
13758 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13759 libsuff= shlibsuff= libmagic=32-bit;;
13760 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13761 libsuff=32 shlibsuff=N32 libmagic=N32;;
13762 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13763 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13764 *) libsuff= shlibsuff= libmagic=never-match;;
13765 esac
13767 esac
13768 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13769 shlibpath_overrides_runpath=no
13770 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13771 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13772 hardcode_into_libs=yes
13775 # No shared lib support for Linux oldld, aout, or coff.
13776 linux*oldld* | linux*aout* | linux*coff*)
13777 dynamic_linker=no
13780 # This must be Linux ELF.
13781 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13782 version_type=linux
13783 need_lib_prefix=no
13784 need_version=no
13785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13786 soname_spec='${libname}${release}${shared_ext}$major'
13787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13788 shlibpath_var=LD_LIBRARY_PATH
13789 shlibpath_overrides_runpath=no
13791 # Some binutils ld are patched to set DT_RUNPATH
13792 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13793 $as_echo_n "(cached) " >&6
13794 else
13795 lt_cv_shlibpath_overrides_runpath=no
13796 save_LDFLAGS=$LDFLAGS
13797 save_libdir=$libdir
13798 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13799 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13801 /* end confdefs.h. */
13804 main ()
13808 return 0;
13810 _ACEOF
13811 if ac_fn_cxx_try_link "$LINENO"; then :
13812 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13813 lt_cv_shlibpath_overrides_runpath=yes
13816 rm -f core conftest.err conftest.$ac_objext \
13817 conftest$ac_exeext conftest.$ac_ext
13818 LDFLAGS=$save_LDFLAGS
13819 libdir=$save_libdir
13823 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13825 # This implies no fast_install, which is unacceptable.
13826 # Some rework will be needed to allow for fast_install
13827 # before this can be enabled.
13828 hardcode_into_libs=yes
13830 # Append ld.so.conf contents to the search path
13831 if test -f /etc/ld.so.conf; then
13832 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' ' '`
13833 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13836 # We used to test for /lib/ld.so.1 and disable shared libraries on
13837 # powerpc, because MkLinux only supported shared libraries with the
13838 # GNU dynamic linker. Since this was broken with cross compilers,
13839 # most powerpc-linux boxes support dynamic linking these days and
13840 # people can always --disable-shared, the test was removed, and we
13841 # assume the GNU/Linux dynamic linker is in use.
13842 dynamic_linker='GNU/Linux ld.so'
13845 netbsd*)
13846 version_type=sunos
13847 need_lib_prefix=no
13848 need_version=no
13849 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13852 dynamic_linker='NetBSD (a.out) ld.so'
13853 else
13854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13855 soname_spec='${libname}${release}${shared_ext}$major'
13856 dynamic_linker='NetBSD ld.elf_so'
13858 shlibpath_var=LD_LIBRARY_PATH
13859 shlibpath_overrides_runpath=yes
13860 hardcode_into_libs=yes
13863 newsos6)
13864 version_type=linux
13865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13866 shlibpath_var=LD_LIBRARY_PATH
13867 shlibpath_overrides_runpath=yes
13870 *nto* | *qnx*)
13871 version_type=qnx
13872 need_lib_prefix=no
13873 need_version=no
13874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13875 soname_spec='${libname}${release}${shared_ext}$major'
13876 shlibpath_var=LD_LIBRARY_PATH
13877 shlibpath_overrides_runpath=no
13878 hardcode_into_libs=yes
13879 dynamic_linker='ldqnx.so'
13882 openbsd*)
13883 version_type=sunos
13884 sys_lib_dlsearch_path_spec="/usr/lib"
13885 need_lib_prefix=no
13886 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13887 case $host_os in
13888 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13889 *) need_version=no ;;
13890 esac
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13893 shlibpath_var=LD_LIBRARY_PATH
13894 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13895 case $host_os in
13896 openbsd2.[89] | openbsd2.[89].*)
13897 shlibpath_overrides_runpath=no
13900 shlibpath_overrides_runpath=yes
13902 esac
13903 else
13904 shlibpath_overrides_runpath=yes
13908 os2*)
13909 libname_spec='$name'
13910 shrext_cmds=".dll"
13911 need_lib_prefix=no
13912 library_names_spec='$libname${shared_ext} $libname.a'
13913 dynamic_linker='OS/2 ld.exe'
13914 shlibpath_var=LIBPATH
13917 osf3* | osf4* | osf5*)
13918 version_type=osf
13919 need_lib_prefix=no
13920 need_version=no
13921 soname_spec='${libname}${release}${shared_ext}$major'
13922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13923 shlibpath_var=LD_LIBRARY_PATH
13924 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13925 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13928 rdos*)
13929 dynamic_linker=no
13932 solaris*)
13933 version_type=linux
13934 need_lib_prefix=no
13935 need_version=no
13936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13937 soname_spec='${libname}${release}${shared_ext}$major'
13938 shlibpath_var=LD_LIBRARY_PATH
13939 shlibpath_overrides_runpath=yes
13940 hardcode_into_libs=yes
13941 # ldd complains unless libraries are executable
13942 postinstall_cmds='chmod +x $lib'
13945 sunos4*)
13946 version_type=sunos
13947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13948 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13949 shlibpath_var=LD_LIBRARY_PATH
13950 shlibpath_overrides_runpath=yes
13951 if test "$with_gnu_ld" = yes; then
13952 need_lib_prefix=no
13954 need_version=yes
13957 sysv4 | sysv4.3*)
13958 version_type=linux
13959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13960 soname_spec='${libname}${release}${shared_ext}$major'
13961 shlibpath_var=LD_LIBRARY_PATH
13962 case $host_vendor in
13963 sni)
13964 shlibpath_overrides_runpath=no
13965 need_lib_prefix=no
13966 runpath_var=LD_RUN_PATH
13968 siemens)
13969 need_lib_prefix=no
13971 motorola)
13972 need_lib_prefix=no
13973 need_version=no
13974 shlibpath_overrides_runpath=no
13975 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13977 esac
13980 sysv4*MP*)
13981 if test -d /usr/nec ;then
13982 version_type=linux
13983 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13984 soname_spec='$libname${shared_ext}.$major'
13985 shlibpath_var=LD_LIBRARY_PATH
13989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13990 version_type=freebsd-elf
13991 need_lib_prefix=no
13992 need_version=no
13993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13994 soname_spec='${libname}${release}${shared_ext}$major'
13995 shlibpath_var=LD_LIBRARY_PATH
13996 shlibpath_overrides_runpath=yes
13997 hardcode_into_libs=yes
13998 if test "$with_gnu_ld" = yes; then
13999 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14000 else
14001 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14002 case $host_os in
14003 sco3.2v5*)
14004 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14006 esac
14008 sys_lib_dlsearch_path_spec='/usr/lib'
14011 tpf*)
14012 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14013 version_type=linux
14014 need_lib_prefix=no
14015 need_version=no
14016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14017 shlibpath_var=LD_LIBRARY_PATH
14018 shlibpath_overrides_runpath=no
14019 hardcode_into_libs=yes
14022 uts4*)
14023 version_type=linux
14024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14025 soname_spec='${libname}${release}${shared_ext}$major'
14026 shlibpath_var=LD_LIBRARY_PATH
14030 dynamic_linker=no
14032 esac
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14034 $as_echo "$dynamic_linker" >&6; }
14035 test "$dynamic_linker" = no && can_build_shared=no
14037 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14038 if test "$GCC" = yes; then
14039 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14042 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14043 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14045 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14046 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14087 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14088 hardcode_action_CXX=
14089 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14090 test -n "$runpath_var_CXX" ||
14091 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14093 # We can hardcode non-existent directories.
14094 if test "$hardcode_direct_CXX" != no &&
14095 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14096 # have to relink, otherwise we might link with an installed library
14097 # when we should be linking with a yet-to-be-installed one
14098 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14099 test "$hardcode_minus_L_CXX" != no; then
14100 # Linking always hardcodes the temporary library directory.
14101 hardcode_action_CXX=relink
14102 else
14103 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14104 hardcode_action_CXX=immediate
14106 else
14107 # We cannot hardcode anything, or else we can only hardcode existing
14108 # directories.
14109 hardcode_action_CXX=unsupported
14111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14112 $as_echo "$hardcode_action_CXX" >&6; }
14114 if test "$hardcode_action_CXX" = relink ||
14115 test "$inherit_rpath_CXX" = yes; then
14116 # Fast installation is not supported
14117 enable_fast_install=no
14118 elif test "$shlibpath_overrides_runpath" = yes ||
14119 test "$enable_shared" = no; then
14120 # Fast installation is not necessary
14121 enable_fast_install=needless
14130 fi # test -n "$compiler"
14132 CC=$lt_save_CC
14133 LDCXX=$LD
14134 LD=$lt_save_LD
14135 GCC=$lt_save_GCC
14136 with_gnu_ld=$lt_save_with_gnu_ld
14137 lt_cv_path_LDCXX=$lt_cv_path_LD
14138 lt_cv_path_LD=$lt_save_path_LD
14139 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14140 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14141 fi # test "$_lt_caught_CXX_error" != yes
14143 ac_ext=c
14144 ac_cpp='$CPP $CPPFLAGS'
14145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14161 ac_config_commands="$ac_config_commands libtool"
14166 # Only expand once:
14169 # Forbid libtool to hardcode RPATH, because we want to be able to specify
14170 # library search directory using LD_LIBRARY_PATH
14171 hardcode_into_libs=no
14175 # Must be last
14176 cat >confcache <<\_ACEOF
14177 # This file is a shell script that caches the results of configure
14178 # tests run on this system so they can be shared between configure
14179 # scripts and configure runs, see configure's option --config-cache.
14180 # It is not useful on other systems. If it contains results you don't
14181 # want to keep, you may remove or edit it.
14183 # config.status only pays attention to the cache file if you give it
14184 # the --recheck option to rerun configure.
14186 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14187 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14188 # following values.
14190 _ACEOF
14192 # The following way of writing the cache mishandles newlines in values,
14193 # but we know of no workaround that is simple, portable, and efficient.
14194 # So, we kill variables containing newlines.
14195 # Ultrix sh set writes to stderr and can't be redirected directly,
14196 # and sets the high bit in the cache file unless we assign to the vars.
14198 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14199 eval ac_val=\$$ac_var
14200 case $ac_val in #(
14201 *${as_nl}*)
14202 case $ac_var in #(
14203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14204 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14205 esac
14206 case $ac_var in #(
14207 _ | IFS | as_nl) ;; #(
14208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14209 *) { eval $ac_var=; unset $ac_var;} ;;
14210 esac ;;
14211 esac
14212 done
14214 (set) 2>&1 |
14215 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14216 *${as_nl}ac_space=\ *)
14217 # `set' does not quote correctly, so add quotes: double-quote
14218 # substitution turns \\\\ into \\, and sed turns \\ into \.
14219 sed -n \
14220 "s/'/'\\\\''/g;
14221 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14222 ;; #(
14224 # `set' quotes correctly as required by POSIX, so do not add quotes.
14225 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14227 esac |
14228 sort
14230 sed '
14231 /^ac_cv_env_/b end
14232 t clear
14233 :clear
14234 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14235 t end
14236 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14237 :end' >>confcache
14238 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14239 if test -w "$cache_file"; then
14240 test "x$cache_file" != "x/dev/null" &&
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14242 $as_echo "$as_me: updating cache $cache_file" >&6;}
14243 cat confcache >$cache_file
14244 else
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14246 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14249 rm -f confcache
14251 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14252 # Let make expand exec_prefix.
14253 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14255 # Transform confdefs.h into DEFS.
14256 # Protect against shell expansion while executing Makefile rules.
14257 # Protect against Makefile macro expansion.
14259 # If the first sed substitution is executed (which looks for macros that
14260 # take arguments), then branch to the quote section. Otherwise,
14261 # look for a macro that doesn't take arguments.
14262 ac_script='
14263 :mline
14264 /\\$/{
14266 s,\\\n,,
14267 b mline
14269 t clear
14270 :clear
14271 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14272 t quote
14273 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14274 t quote
14275 b any
14276 :quote
14277 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14278 s/\[/\\&/g
14279 s/\]/\\&/g
14280 s/\$/$$/g
14282 :any
14285 s/^\n//
14286 s/\n/ /g
14290 DEFS=`sed -n "$ac_script" confdefs.h`
14293 ac_libobjs=
14294 ac_ltlibobjs=
14295 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14296 # 1. Remove the extension, and $U if already installed.
14297 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14298 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14299 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14300 # will be set to the directory where LIBOBJS objects are built.
14301 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14302 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14303 done
14304 LIBOBJS=$ac_libobjs
14306 LTLIBOBJS=$ac_ltlibobjs
14309 if test -n "$EXEEXT"; then
14310 am__EXEEXT_TRUE=
14311 am__EXEEXT_FALSE='#'
14312 else
14313 am__EXEEXT_TRUE='#'
14314 am__EXEEXT_FALSE=
14317 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14318 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14321 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14322 as_fn_error "conditional \"AMDEP\" was never defined.
14323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14325 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14326 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14329 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14330 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14333 if test -z "${PLUGIN_HOST_TRUE}" && test -z "${PLUGIN_HOST_FALSE}"; then
14334 as_fn_error "conditional \"PLUGIN_HOST\" was never defined.
14335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14338 : ${CONFIG_STATUS=./config.status}
14339 ac_write_fail=0
14340 ac_clean_files_save=$ac_clean_files
14341 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14343 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14344 as_write_fail=0
14345 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14346 #! $SHELL
14347 # Generated by $as_me.
14348 # Run this file to recreate the current configuration.
14349 # Compiler output produced by configure, useful for debugging
14350 # configure, is in config.log if it exists.
14352 debug=false
14353 ac_cs_recheck=false
14354 ac_cs_silent=false
14356 SHELL=\${CONFIG_SHELL-$SHELL}
14357 export SHELL
14358 _ASEOF
14359 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14360 ## -------------------- ##
14361 ## M4sh Initialization. ##
14362 ## -------------------- ##
14364 # Be more Bourne compatible
14365 DUALCASE=1; export DUALCASE # for MKS sh
14366 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14367 emulate sh
14368 NULLCMD=:
14369 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14370 # is contrary to our usage. Disable this feature.
14371 alias -g '${1+"$@"}'='"$@"'
14372 setopt NO_GLOB_SUBST
14373 else
14374 case `(set -o) 2>/dev/null` in #(
14375 *posix*) :
14376 set -o posix ;; #(
14377 *) :
14379 esac
14383 as_nl='
14385 export as_nl
14386 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14387 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14388 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14389 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14390 # Prefer a ksh shell builtin over an external printf program on Solaris,
14391 # but without wasting forks for bash or zsh.
14392 if test -z "$BASH_VERSION$ZSH_VERSION" \
14393 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14394 as_echo='print -r --'
14395 as_echo_n='print -rn --'
14396 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14397 as_echo='printf %s\n'
14398 as_echo_n='printf %s'
14399 else
14400 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14401 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14402 as_echo_n='/usr/ucb/echo -n'
14403 else
14404 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14405 as_echo_n_body='eval
14406 arg=$1;
14407 case $arg in #(
14408 *"$as_nl"*)
14409 expr "X$arg" : "X\\(.*\\)$as_nl";
14410 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14411 esac;
14412 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14414 export as_echo_n_body
14415 as_echo_n='sh -c $as_echo_n_body as_echo'
14417 export as_echo_body
14418 as_echo='sh -c $as_echo_body as_echo'
14421 # The user is always right.
14422 if test "${PATH_SEPARATOR+set}" != set; then
14423 PATH_SEPARATOR=:
14424 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14425 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14426 PATH_SEPARATOR=';'
14431 # IFS
14432 # We need space, tab and new line, in precisely that order. Quoting is
14433 # there to prevent editors from complaining about space-tab.
14434 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14435 # splitting by setting IFS to empty value.)
14436 IFS=" "" $as_nl"
14438 # Find who we are. Look in the path if we contain no directory separator.
14439 case $0 in #((
14440 *[\\/]* ) as_myself=$0 ;;
14441 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $PATH
14444 IFS=$as_save_IFS
14445 test -z "$as_dir" && as_dir=.
14446 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14447 done
14448 IFS=$as_save_IFS
14451 esac
14452 # We did not find ourselves, most probably we were run as `sh COMMAND'
14453 # in which case we are not to be found in the path.
14454 if test "x$as_myself" = x; then
14455 as_myself=$0
14457 if test ! -f "$as_myself"; then
14458 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14459 exit 1
14462 # Unset variables that we do not need and which cause bugs (e.g. in
14463 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14464 # suppresses any "Segmentation fault" message there. '((' could
14465 # trigger a bug in pdksh 5.2.14.
14466 for as_var in BASH_ENV ENV MAIL MAILPATH
14467 do eval test x\${$as_var+set} = xset \
14468 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14469 done
14470 PS1='$ '
14471 PS2='> '
14472 PS4='+ '
14474 # NLS nuisances.
14475 LC_ALL=C
14476 export LC_ALL
14477 LANGUAGE=C
14478 export LANGUAGE
14480 # CDPATH.
14481 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14484 # as_fn_error ERROR [LINENO LOG_FD]
14485 # ---------------------------------
14486 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14487 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14488 # script with status $?, using 1 if that was 0.
14489 as_fn_error ()
14491 as_status=$?; test $as_status -eq 0 && as_status=1
14492 if test "$3"; then
14493 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14494 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14496 $as_echo "$as_me: error: $1" >&2
14497 as_fn_exit $as_status
14498 } # as_fn_error
14501 # as_fn_set_status STATUS
14502 # -----------------------
14503 # Set $? to STATUS, without forking.
14504 as_fn_set_status ()
14506 return $1
14507 } # as_fn_set_status
14509 # as_fn_exit STATUS
14510 # -----------------
14511 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14512 as_fn_exit ()
14514 set +e
14515 as_fn_set_status $1
14516 exit $1
14517 } # as_fn_exit
14519 # as_fn_unset VAR
14520 # ---------------
14521 # Portably unset VAR.
14522 as_fn_unset ()
14524 { eval $1=; unset $1;}
14526 as_unset=as_fn_unset
14527 # as_fn_append VAR VALUE
14528 # ----------------------
14529 # Append the text in VALUE to the end of the definition contained in VAR. Take
14530 # advantage of any shell optimizations that allow amortized linear growth over
14531 # repeated appends, instead of the typical quadratic growth present in naive
14532 # implementations.
14533 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14534 eval 'as_fn_append ()
14536 eval $1+=\$2
14538 else
14539 as_fn_append ()
14541 eval $1=\$$1\$2
14543 fi # as_fn_append
14545 # as_fn_arith ARG...
14546 # ------------------
14547 # Perform arithmetic evaluation on the ARGs, and store the result in the
14548 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14549 # must be portable across $(()) and expr.
14550 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14551 eval 'as_fn_arith ()
14553 as_val=$(( $* ))
14555 else
14556 as_fn_arith ()
14558 as_val=`expr "$@" || test $? -eq 1`
14560 fi # as_fn_arith
14563 if expr a : '\(a\)' >/dev/null 2>&1 &&
14564 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14565 as_expr=expr
14566 else
14567 as_expr=false
14570 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14571 as_basename=basename
14572 else
14573 as_basename=false
14576 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14577 as_dirname=dirname
14578 else
14579 as_dirname=false
14582 as_me=`$as_basename -- "$0" ||
14583 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14584 X"$0" : 'X\(//\)$' \| \
14585 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14586 $as_echo X/"$0" |
14587 sed '/^.*\/\([^/][^/]*\)\/*$/{
14588 s//\1/
14591 /^X\/\(\/\/\)$/{
14592 s//\1/
14595 /^X\/\(\/\).*/{
14596 s//\1/
14599 s/.*/./; q'`
14601 # Avoid depending upon Character Ranges.
14602 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14603 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14604 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14605 as_cr_digits='0123456789'
14606 as_cr_alnum=$as_cr_Letters$as_cr_digits
14608 ECHO_C= ECHO_N= ECHO_T=
14609 case `echo -n x` in #(((((
14610 -n*)
14611 case `echo 'xy\c'` in
14612 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14613 xy) ECHO_C='\c';;
14614 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14615 ECHO_T=' ';;
14616 esac;;
14618 ECHO_N='-n';;
14619 esac
14621 rm -f conf$$ conf$$.exe conf$$.file
14622 if test -d conf$$.dir; then
14623 rm -f conf$$.dir/conf$$.file
14624 else
14625 rm -f conf$$.dir
14626 mkdir conf$$.dir 2>/dev/null
14628 if (echo >conf$$.file) 2>/dev/null; then
14629 if ln -s conf$$.file conf$$ 2>/dev/null; then
14630 as_ln_s='ln -s'
14631 # ... but there are two gotchas:
14632 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14633 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14634 # In both cases, we have to default to `cp -p'.
14635 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14636 as_ln_s='cp -p'
14637 elif ln conf$$.file conf$$ 2>/dev/null; then
14638 as_ln_s=ln
14639 else
14640 as_ln_s='cp -p'
14642 else
14643 as_ln_s='cp -p'
14645 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14646 rmdir conf$$.dir 2>/dev/null
14649 # as_fn_mkdir_p
14650 # -------------
14651 # Create "$as_dir" as a directory, including parents if necessary.
14652 as_fn_mkdir_p ()
14655 case $as_dir in #(
14656 -*) as_dir=./$as_dir;;
14657 esac
14658 test -d "$as_dir" || eval $as_mkdir_p || {
14659 as_dirs=
14660 while :; do
14661 case $as_dir in #(
14662 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14663 *) as_qdir=$as_dir;;
14664 esac
14665 as_dirs="'$as_qdir' $as_dirs"
14666 as_dir=`$as_dirname -- "$as_dir" ||
14667 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14668 X"$as_dir" : 'X\(//\)[^/]' \| \
14669 X"$as_dir" : 'X\(//\)$' \| \
14670 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14671 $as_echo X"$as_dir" |
14672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14673 s//\1/
14676 /^X\(\/\/\)[^/].*/{
14677 s//\1/
14680 /^X\(\/\/\)$/{
14681 s//\1/
14684 /^X\(\/\).*/{
14685 s//\1/
14688 s/.*/./; q'`
14689 test -d "$as_dir" && break
14690 done
14691 test -z "$as_dirs" || eval "mkdir $as_dirs"
14692 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14695 } # as_fn_mkdir_p
14696 if mkdir -p . 2>/dev/null; then
14697 as_mkdir_p='mkdir -p "$as_dir"'
14698 else
14699 test -d ./-p && rmdir ./-p
14700 as_mkdir_p=false
14703 if test -x / >/dev/null 2>&1; then
14704 as_test_x='test -x'
14705 else
14706 if ls -dL / >/dev/null 2>&1; then
14707 as_ls_L_option=L
14708 else
14709 as_ls_L_option=
14711 as_test_x='
14712 eval sh -c '\''
14713 if test -d "$1"; then
14714 test -d "$1/.";
14715 else
14716 case $1 in #(
14717 -*)set "./$1";;
14718 esac;
14719 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14720 ???[sx]*):;;*)false;;esac;fi
14721 '\'' sh
14724 as_executable_p=$as_test_x
14726 # Sed expression to map a string onto a valid CPP name.
14727 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14729 # Sed expression to map a string onto a valid variable name.
14730 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14733 exec 6>&1
14734 ## ----------------------------------- ##
14735 ## Main body of $CONFIG_STATUS script. ##
14736 ## ----------------------------------- ##
14737 _ASEOF
14738 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14741 # Save the log message, to keep $0 and so on meaningful, and to
14742 # report actual input values of CONFIG_FILES etc. instead of their
14743 # values after options handling.
14744 ac_log="
14745 This file was extended by Intel MIC Offload Plugin $as_me 1.0, which was
14746 generated by GNU Autoconf 2.64. Invocation command line was
14748 CONFIG_FILES = $CONFIG_FILES
14749 CONFIG_HEADERS = $CONFIG_HEADERS
14750 CONFIG_LINKS = $CONFIG_LINKS
14751 CONFIG_COMMANDS = $CONFIG_COMMANDS
14752 $ $0 $@
14754 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14757 _ACEOF
14759 case $ac_config_files in *"
14760 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14761 esac
14765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14766 # Files that config.status was made for.
14767 config_files="$ac_config_files"
14768 config_commands="$ac_config_commands"
14770 _ACEOF
14772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14773 ac_cs_usage="\
14774 \`$as_me' instantiates files and other configuration actions
14775 from templates according to the current configuration. Unless the files
14776 and actions are specified as TAGs, all are instantiated by default.
14778 Usage: $0 [OPTION]... [TAG]...
14780 -h, --help print this help, then exit
14781 -V, --version print version number and configuration settings, then exit
14782 -q, --quiet, --silent
14783 do not print progress messages
14784 -d, --debug don't remove temporary files
14785 --recheck update $as_me by reconfiguring in the same conditions
14786 --file=FILE[:TEMPLATE]
14787 instantiate the configuration file FILE
14789 Configuration files:
14790 $config_files
14792 Configuration commands:
14793 $config_commands
14795 Report bugs to the package provider."
14797 _ACEOF
14798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14799 ac_cs_version="\\
14800 Intel MIC Offload Plugin config.status 1.0
14801 configured by $0, generated by GNU Autoconf 2.64,
14802 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14804 Copyright (C) 2009 Free Software Foundation, Inc.
14805 This config.status script is free software; the Free Software Foundation
14806 gives unlimited permission to copy, distribute and modify it."
14808 ac_pwd='$ac_pwd'
14809 srcdir='$srcdir'
14810 INSTALL='$INSTALL'
14811 MKDIR_P='$MKDIR_P'
14812 AWK='$AWK'
14813 test -n "\$AWK" || AWK=awk
14814 _ACEOF
14816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14817 # The default lists apply if the user does not specify any file.
14818 ac_need_defaults=:
14819 while test $# != 0
14821 case $1 in
14822 --*=*)
14823 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14824 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14825 ac_shift=:
14828 ac_option=$1
14829 ac_optarg=$2
14830 ac_shift=shift
14832 esac
14834 case $ac_option in
14835 # Handling of the options.
14836 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14837 ac_cs_recheck=: ;;
14838 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14839 $as_echo "$ac_cs_version"; exit ;;
14840 --debug | --debu | --deb | --de | --d | -d )
14841 debug=: ;;
14842 --file | --fil | --fi | --f )
14843 $ac_shift
14844 case $ac_optarg in
14845 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14846 esac
14847 as_fn_append CONFIG_FILES " '$ac_optarg'"
14848 ac_need_defaults=false;;
14849 --he | --h | --help | --hel | -h )
14850 $as_echo "$ac_cs_usage"; exit ;;
14851 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14852 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14853 ac_cs_silent=: ;;
14855 # This is an error.
14856 -*) as_fn_error "unrecognized option: \`$1'
14857 Try \`$0 --help' for more information." ;;
14859 *) as_fn_append ac_config_targets " $1"
14860 ac_need_defaults=false ;;
14862 esac
14863 shift
14864 done
14866 ac_configure_extra_args=
14868 if $ac_cs_silent; then
14869 exec 6>/dev/null
14870 ac_configure_extra_args="$ac_configure_extra_args --silent"
14873 _ACEOF
14874 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14875 if \$ac_cs_recheck; then
14876 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14877 shift
14878 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14879 CONFIG_SHELL='$SHELL'
14880 export CONFIG_SHELL
14881 exec "\$@"
14884 _ACEOF
14885 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14886 exec 5>>config.log
14888 echo
14889 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14890 ## Running $as_me. ##
14891 _ASBOX
14892 $as_echo "$ac_log"
14893 } >&5
14895 _ACEOF
14896 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14898 # INIT-COMMANDS
14900 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14902 srcdir="$srcdir"
14903 host="$host"
14904 target="$target"
14905 with_multisubdir="$with_multisubdir"
14906 with_multisrctop="$with_multisrctop"
14907 with_target_subdir="$with_target_subdir"
14908 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14909 multi_basedir="$multi_basedir"
14910 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14911 CC="$CC"
14912 CXX="$CXX"
14913 GFORTRAN="$GFORTRAN"
14914 GCJ="$GCJ"
14917 # The HP-UX ksh and POSIX shell print the target directory to stdout
14918 # if CDPATH is set.
14919 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14921 sed_quote_subst='$sed_quote_subst'
14922 double_quote_subst='$double_quote_subst'
14923 delay_variable_subst='$delay_variable_subst'
14924 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14925 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14926 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14927 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14928 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14929 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14930 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14931 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14932 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14933 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14934 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14935 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14936 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14937 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14938 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14939 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14940 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14941 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14942 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14943 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14944 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14945 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14946 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14947 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14948 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14949 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14950 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14951 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14952 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14953 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14954 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14955 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14956 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14957 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14958 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14959 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14960 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14961 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14962 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14963 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14964 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14965 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14966 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14967 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14968 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14969 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14970 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14971 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14972 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"`'
14973 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14974 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14975 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14976 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14977 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14978 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14979 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14980 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14981 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14982 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14983 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14984 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14985 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14986 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14987 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14988 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14989 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14990 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14991 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14992 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14993 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14994 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14995 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14996 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
14997 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
14998 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
14999 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15000 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15001 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15002 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15003 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15004 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15005 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15006 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15007 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15008 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15009 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15010 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15011 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15012 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15013 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15014 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15015 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15016 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15017 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15018 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15019 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15020 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15021 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15022 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15023 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15024 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15025 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15026 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15027 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15028 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15029 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15030 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15031 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15032 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15033 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15034 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15035 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15036 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15037 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15038 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15039 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15040 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15041 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15042 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15043 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15044 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15045 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15046 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15047 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15048 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15049 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15050 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15051 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15052 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15053 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15054 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15055 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15056 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15057 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15058 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15059 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15060 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15061 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15062 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15063 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15064 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15065 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15066 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15067 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15068 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15069 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15070 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15071 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15072 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15073 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15074 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15075 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15076 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15077 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15078 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15079 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15080 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15081 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15082 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15083 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15084 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15085 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15086 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15087 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15088 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15089 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15090 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15091 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15092 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15093 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15094 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15095 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15096 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15097 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15098 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15100 LTCC='$LTCC'
15101 LTCFLAGS='$LTCFLAGS'
15102 compiler='$compiler_DEFAULT'
15104 # A function that is used when there is no print builtin or printf.
15105 func_fallback_echo ()
15107 eval 'cat <<_LTECHO_EOF
15109 _LTECHO_EOF'
15112 # Quote evaled strings.
15113 for var in SHELL \
15114 ECHO \
15115 SED \
15116 GREP \
15117 EGREP \
15118 FGREP \
15119 LD \
15120 NM \
15121 LN_S \
15122 lt_SP2NL \
15123 lt_NL2SP \
15124 reload_flag \
15125 OBJDUMP \
15126 deplibs_check_method \
15127 file_magic_cmd \
15128 AR \
15129 AR_FLAGS \
15130 STRIP \
15131 RANLIB \
15132 CC \
15133 CFLAGS \
15134 compiler \
15135 lt_cv_sys_global_symbol_pipe \
15136 lt_cv_sys_global_symbol_to_cdecl \
15137 lt_cv_sys_global_symbol_to_c_name_address \
15138 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15139 lt_prog_compiler_no_builtin_flag \
15140 lt_prog_compiler_wl \
15141 lt_prog_compiler_pic \
15142 lt_prog_compiler_static \
15143 lt_cv_prog_compiler_c_o \
15144 need_locks \
15145 DSYMUTIL \
15146 NMEDIT \
15147 LIPO \
15148 OTOOL \
15149 OTOOL64 \
15150 shrext_cmds \
15151 export_dynamic_flag_spec \
15152 whole_archive_flag_spec \
15153 compiler_needs_object \
15154 with_gnu_ld \
15155 allow_undefined_flag \
15156 no_undefined_flag \
15157 hardcode_libdir_flag_spec \
15158 hardcode_libdir_flag_spec_ld \
15159 hardcode_libdir_separator \
15160 fix_srcfile_path \
15161 exclude_expsyms \
15162 include_expsyms \
15163 file_list_spec \
15164 variables_saved_for_relink \
15165 libname_spec \
15166 library_names_spec \
15167 soname_spec \
15168 install_override_mode \
15169 finish_eval \
15170 old_striplib \
15171 striplib \
15172 compiler_lib_search_dirs \
15173 predep_objects \
15174 postdep_objects \
15175 predeps \
15176 postdeps \
15177 compiler_lib_search_path \
15178 LD_CXX \
15179 reload_flag_CXX \
15180 compiler_CXX \
15181 lt_prog_compiler_no_builtin_flag_CXX \
15182 lt_prog_compiler_wl_CXX \
15183 lt_prog_compiler_pic_CXX \
15184 lt_prog_compiler_static_CXX \
15185 lt_cv_prog_compiler_c_o_CXX \
15186 export_dynamic_flag_spec_CXX \
15187 whole_archive_flag_spec_CXX \
15188 compiler_needs_object_CXX \
15189 with_gnu_ld_CXX \
15190 allow_undefined_flag_CXX \
15191 no_undefined_flag_CXX \
15192 hardcode_libdir_flag_spec_CXX \
15193 hardcode_libdir_flag_spec_ld_CXX \
15194 hardcode_libdir_separator_CXX \
15195 fix_srcfile_path_CXX \
15196 exclude_expsyms_CXX \
15197 include_expsyms_CXX \
15198 file_list_spec_CXX \
15199 compiler_lib_search_dirs_CXX \
15200 predep_objects_CXX \
15201 postdep_objects_CXX \
15202 predeps_CXX \
15203 postdeps_CXX \
15204 compiler_lib_search_path_CXX; do
15205 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15206 *[\\\\\\\`\\"\\\$]*)
15207 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15210 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15212 esac
15213 done
15215 # Double-quote double-evaled strings.
15216 for var in reload_cmds \
15217 old_postinstall_cmds \
15218 old_postuninstall_cmds \
15219 old_archive_cmds \
15220 extract_expsyms_cmds \
15221 old_archive_from_new_cmds \
15222 old_archive_from_expsyms_cmds \
15223 archive_cmds \
15224 archive_expsym_cmds \
15225 module_cmds \
15226 module_expsym_cmds \
15227 export_symbols_cmds \
15228 prelink_cmds \
15229 postinstall_cmds \
15230 postuninstall_cmds \
15231 finish_cmds \
15232 sys_lib_search_path_spec \
15233 sys_lib_dlsearch_path_spec \
15234 reload_cmds_CXX \
15235 old_archive_cmds_CXX \
15236 old_archive_from_new_cmds_CXX \
15237 old_archive_from_expsyms_cmds_CXX \
15238 archive_cmds_CXX \
15239 archive_expsym_cmds_CXX \
15240 module_cmds_CXX \
15241 module_expsym_cmds_CXX \
15242 export_symbols_cmds_CXX \
15243 prelink_cmds_CXX; do
15244 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15245 *[\\\\\\\`\\"\\\$]*)
15246 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15249 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15251 esac
15252 done
15254 ac_aux_dir='$ac_aux_dir'
15255 xsi_shell='$xsi_shell'
15256 lt_shell_append='$lt_shell_append'
15258 # See if we are running on zsh, and set the options which allow our
15259 # commands through without removal of \ escapes INIT.
15260 if test -n "\${ZSH_VERSION+set}" ; then
15261 setopt NO_GLOB_SUBST
15265 PACKAGE='$PACKAGE'
15266 VERSION='$VERSION'
15267 TIMESTAMP='$TIMESTAMP'
15268 RM='$RM'
15269 ofile='$ofile'
15276 _ACEOF
15278 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15280 # Handling of arguments.
15281 for ac_config_target in $ac_config_targets
15283 case $ac_config_target in
15284 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15285 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15286 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15287 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15289 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15290 esac
15291 done
15294 # If the user did not use the arguments to specify the items to instantiate,
15295 # then the envvar interface is used. Set only those that are not.
15296 # We use the long form for the default assignment because of an extremely
15297 # bizarre bug on SunOS 4.1.3.
15298 if $ac_need_defaults; then
15299 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15300 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15303 # Have a temporary directory for convenience. Make it in the build tree
15304 # simply because there is no reason against having it here, and in addition,
15305 # creating and moving files from /tmp can sometimes cause problems.
15306 # Hook for its removal unless debugging.
15307 # Note that there is a small window in which the directory will not be cleaned:
15308 # after its creation but before its name has been assigned to `$tmp'.
15309 $debug ||
15311 tmp=
15312 trap 'exit_status=$?
15313 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15315 trap 'as_fn_exit 1' 1 2 13 15
15317 # Create a (secure) tmp directory for tmp files.
15320 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15321 test -n "$tmp" && test -d "$tmp"
15322 } ||
15324 tmp=./conf$$-$RANDOM
15325 (umask 077 && mkdir "$tmp")
15326 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15328 # Set up the scripts for CONFIG_FILES section.
15329 # No need to generate them if there are no CONFIG_FILES.
15330 # This happens for instance with `./config.status config.h'.
15331 if test -n "$CONFIG_FILES"; then
15334 ac_cr=`echo X | tr X '\015'`
15335 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15336 # But we know of no other shell where ac_cr would be empty at this
15337 # point, so we can use a bashism as a fallback.
15338 if test "x$ac_cr" = x; then
15339 eval ac_cr=\$\'\\r\'
15341 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15342 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15343 ac_cs_awk_cr='\r'
15344 else
15345 ac_cs_awk_cr=$ac_cr
15348 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15349 _ACEOF
15353 echo "cat >conf$$subs.awk <<_ACEOF" &&
15354 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15355 echo "_ACEOF"
15356 } >conf$$subs.sh ||
15357 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15358 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15359 ac_delim='%!_!# '
15360 for ac_last_try in false false false false false :; do
15361 . ./conf$$subs.sh ||
15362 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15364 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15365 if test $ac_delim_n = $ac_delim_num; then
15366 break
15367 elif $ac_last_try; then
15368 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15369 else
15370 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15372 done
15373 rm -f conf$$subs.sh
15375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15376 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15377 _ACEOF
15378 sed -n '
15380 s/^/S["/; s/!.*/"]=/
15383 s/^[^!]*!//
15384 :repl
15385 t repl
15386 s/'"$ac_delim"'$//
15387 t delim
15390 s/\(.\{148\}\).*/\1/
15391 t more1
15392 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15395 b repl
15396 :more1
15397 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15400 s/.\{148\}//
15401 t nl
15402 :delim
15404 s/\(.\{148\}\).*/\1/
15405 t more2
15406 s/["\\]/\\&/g; s/^/"/; s/$/"/
15409 :more2
15410 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15413 s/.\{148\}//
15414 t delim
15415 ' <conf$$subs.awk | sed '
15416 /^[^""]/{
15418 s/\n//
15420 ' >>$CONFIG_STATUS || ac_write_fail=1
15421 rm -f conf$$subs.awk
15422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15423 _ACAWK
15424 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15425 for (key in S) S_is_set[key] = 1
15426 FS = "\a"
15430 line = $ 0
15431 nfields = split(line, field, "@")
15432 substed = 0
15433 len = length(field[1])
15434 for (i = 2; i < nfields; i++) {
15435 key = field[i]
15436 keylen = length(key)
15437 if (S_is_set[key]) {
15438 value = S[key]
15439 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15440 len += length(value) + length(field[++i])
15441 substed = 1
15442 } else
15443 len += 1 + keylen
15446 print line
15449 _ACAWK
15450 _ACEOF
15451 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15452 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15453 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15454 else
15456 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15457 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15458 _ACEOF
15460 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15461 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15462 # trailing colons and then remove the whole line if VPATH becomes empty
15463 # (actually we leave an empty line to preserve line numbers).
15464 if test "x$srcdir" = x.; then
15465 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15466 s/:*\$(srcdir):*/:/
15467 s/:*\${srcdir}:*/:/
15468 s/:*@srcdir@:*/:/
15469 s/^\([^=]*=[ ]*\):*/\1/
15470 s/:*$//
15471 s/^[^=]*=[ ]*$//
15475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15476 fi # test -n "$CONFIG_FILES"
15479 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15480 shift
15481 for ac_tag
15483 case $ac_tag in
15484 :[FHLC]) ac_mode=$ac_tag; continue;;
15485 esac
15486 case $ac_mode$ac_tag in
15487 :[FHL]*:*);;
15488 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15489 :[FH]-) ac_tag=-:-;;
15490 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15491 esac
15492 ac_save_IFS=$IFS
15493 IFS=:
15494 set x $ac_tag
15495 IFS=$ac_save_IFS
15496 shift
15497 ac_file=$1
15498 shift
15500 case $ac_mode in
15501 :L) ac_source=$1;;
15502 :[FH])
15503 ac_file_inputs=
15504 for ac_f
15506 case $ac_f in
15507 -) ac_f="$tmp/stdin";;
15508 *) # Look for the file first in the build tree, then in the source tree
15509 # (if the path is not absolute). The absolute path cannot be DOS-style,
15510 # because $ac_f cannot contain `:'.
15511 test -f "$ac_f" ||
15512 case $ac_f in
15513 [\\/$]*) false;;
15514 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15515 esac ||
15516 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15517 esac
15518 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15519 as_fn_append ac_file_inputs " '$ac_f'"
15520 done
15522 # Let's still pretend it is `configure' which instantiates (i.e., don't
15523 # use $as_me), people would be surprised to read:
15524 # /* config.h. Generated by config.status. */
15525 configure_input='Generated from '`
15526 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15527 `' by configure.'
15528 if test x"$ac_file" != x-; then
15529 configure_input="$ac_file. $configure_input"
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15531 $as_echo "$as_me: creating $ac_file" >&6;}
15533 # Neutralize special characters interpreted by sed in replacement strings.
15534 case $configure_input in #(
15535 *\&* | *\|* | *\\* )
15536 ac_sed_conf_input=`$as_echo "$configure_input" |
15537 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15538 *) ac_sed_conf_input=$configure_input;;
15539 esac
15541 case $ac_tag in
15542 *:-:* | *:-) cat >"$tmp/stdin" \
15543 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15544 esac
15546 esac
15548 ac_dir=`$as_dirname -- "$ac_file" ||
15549 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15550 X"$ac_file" : 'X\(//\)[^/]' \| \
15551 X"$ac_file" : 'X\(//\)$' \| \
15552 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15553 $as_echo X"$ac_file" |
15554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15555 s//\1/
15558 /^X\(\/\/\)[^/].*/{
15559 s//\1/
15562 /^X\(\/\/\)$/{
15563 s//\1/
15566 /^X\(\/\).*/{
15567 s//\1/
15570 s/.*/./; q'`
15571 as_dir="$ac_dir"; as_fn_mkdir_p
15572 ac_builddir=.
15574 case "$ac_dir" in
15575 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15577 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15578 # A ".." for each directory in $ac_dir_suffix.
15579 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15580 case $ac_top_builddir_sub in
15581 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15582 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15583 esac ;;
15584 esac
15585 ac_abs_top_builddir=$ac_pwd
15586 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15587 # for backward compatibility:
15588 ac_top_builddir=$ac_top_build_prefix
15590 case $srcdir in
15591 .) # We are building in place.
15592 ac_srcdir=.
15593 ac_top_srcdir=$ac_top_builddir_sub
15594 ac_abs_top_srcdir=$ac_pwd ;;
15595 [\\/]* | ?:[\\/]* ) # Absolute name.
15596 ac_srcdir=$srcdir$ac_dir_suffix;
15597 ac_top_srcdir=$srcdir
15598 ac_abs_top_srcdir=$srcdir ;;
15599 *) # Relative name.
15600 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15601 ac_top_srcdir=$ac_top_build_prefix$srcdir
15602 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15603 esac
15604 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15607 case $ac_mode in
15610 # CONFIG_FILE
15613 case $INSTALL in
15614 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15615 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15616 esac
15617 ac_MKDIR_P=$MKDIR_P
15618 case $MKDIR_P in
15619 [\\/$]* | ?:[\\/]* ) ;;
15620 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15621 esac
15622 _ACEOF
15624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15625 # If the template does not know about datarootdir, expand it.
15626 # FIXME: This hack should be removed a few years after 2.60.
15627 ac_datarootdir_hack=; ac_datarootdir_seen=
15628 ac_sed_dataroot='
15629 /datarootdir/ {
15633 /@datadir@/p
15634 /@docdir@/p
15635 /@infodir@/p
15636 /@localedir@/p
15637 /@mandir@/p'
15638 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15639 *datarootdir*) ac_datarootdir_seen=yes;;
15640 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15642 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15643 _ACEOF
15644 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15645 ac_datarootdir_hack='
15646 s&@datadir@&$datadir&g
15647 s&@docdir@&$docdir&g
15648 s&@infodir@&$infodir&g
15649 s&@localedir@&$localedir&g
15650 s&@mandir@&$mandir&g
15651 s&\\\${datarootdir}&$datarootdir&g' ;;
15652 esac
15653 _ACEOF
15655 # Neutralize VPATH when `$srcdir' = `.'.
15656 # Shell code in configure.ac might set extrasub.
15657 # FIXME: do we really want to maintain this feature?
15658 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15659 ac_sed_extra="$ac_vpsub
15660 $extrasub
15661 _ACEOF
15662 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15664 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15665 s|@configure_input@|$ac_sed_conf_input|;t t
15666 s&@top_builddir@&$ac_top_builddir_sub&;t t
15667 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15668 s&@srcdir@&$ac_srcdir&;t t
15669 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15670 s&@top_srcdir@&$ac_top_srcdir&;t t
15671 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15672 s&@builddir@&$ac_builddir&;t t
15673 s&@abs_builddir@&$ac_abs_builddir&;t t
15674 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15675 s&@INSTALL@&$ac_INSTALL&;t t
15676 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15677 $ac_datarootdir_hack
15679 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15680 || as_fn_error "could not create $ac_file" "$LINENO" 5
15682 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15683 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15684 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15686 which seems to be undefined. Please make sure it is defined." >&5
15687 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15688 which seems to be undefined. Please make sure it is defined." >&2;}
15690 rm -f "$tmp/stdin"
15691 case $ac_file in
15692 -) cat "$tmp/out" && rm -f "$tmp/out";;
15693 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15694 esac \
15695 || as_fn_error "could not create $ac_file" "$LINENO" 5
15699 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15700 $as_echo "$as_me: executing $ac_file commands" >&6;}
15702 esac
15705 case $ac_file$ac_mode in
15706 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15707 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15708 # are listed without --file. Let's play safe and only enable the eval
15709 # if we detect the quoting.
15710 case $CONFIG_FILES in
15711 *\'*) eval set x "$CONFIG_FILES" ;;
15712 *) set x $CONFIG_FILES ;;
15713 esac
15714 shift
15715 for mf
15717 # Strip MF so we end up with the name of the file.
15718 mf=`echo "$mf" | sed -e 's/:.*$//'`
15719 # Check whether this is an Automake generated Makefile or not.
15720 # We used to match only the files named `Makefile.in', but
15721 # some people rename them; so instead we look at the file content.
15722 # Grep'ing the first line is not enough: some people post-process
15723 # each Makefile.in and add a new line on top of each file to say so.
15724 # Grep'ing the whole file is not good either: AIX grep has a line
15725 # limit of 2048, but all sed's we know have understand at least 4000.
15726 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15727 dirpart=`$as_dirname -- "$mf" ||
15728 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15729 X"$mf" : 'X\(//\)[^/]' \| \
15730 X"$mf" : 'X\(//\)$' \| \
15731 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15732 $as_echo X"$mf" |
15733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15734 s//\1/
15737 /^X\(\/\/\)[^/].*/{
15738 s//\1/
15741 /^X\(\/\/\)$/{
15742 s//\1/
15745 /^X\(\/\).*/{
15746 s//\1/
15749 s/.*/./; q'`
15750 else
15751 continue
15753 # Extract the definition of DEPDIR, am__include, and am__quote
15754 # from the Makefile without running `make'.
15755 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15756 test -z "$DEPDIR" && continue
15757 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15758 test -z "am__include" && continue
15759 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15760 # When using ansi2knr, U may be empty or an underscore; expand it
15761 U=`sed -n 's/^U = //p' < "$mf"`
15762 # Find all dependency output files, they are included files with
15763 # $(DEPDIR) in their names. We invoke sed twice because it is the
15764 # simplest approach to changing $(DEPDIR) to its actual value in the
15765 # expansion.
15766 for file in `sed -n "
15767 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15768 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15769 # Make sure the directory exists.
15770 test -f "$dirpart/$file" && continue
15771 fdir=`$as_dirname -- "$file" ||
15772 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15773 X"$file" : 'X\(//\)[^/]' \| \
15774 X"$file" : 'X\(//\)$' \| \
15775 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15776 $as_echo X"$file" |
15777 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15778 s//\1/
15781 /^X\(\/\/\)[^/].*/{
15782 s//\1/
15785 /^X\(\/\/\)$/{
15786 s//\1/
15789 /^X\(\/\).*/{
15790 s//\1/
15793 s/.*/./; q'`
15794 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15795 # echo "creating $dirpart/$file"
15796 echo '# dummy' > "$dirpart/$file"
15797 done
15798 done
15801 "default-1":C)
15802 # Only add multilib support code if we just rebuilt the top-level
15803 # Makefile.
15804 case " $CONFIG_FILES " in
15805 *" Makefile "*)
15806 ac_file=Makefile . ${multi_basedir}/config-ml.in
15808 esac ;;
15809 "libtool":C)
15811 # See if we are running on zsh, and set the options which allow our
15812 # commands through without removal of \ escapes.
15813 if test -n "${ZSH_VERSION+set}" ; then
15814 setopt NO_GLOB_SUBST
15817 cfgfile="${ofile}T"
15818 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15819 $RM "$cfgfile"
15821 cat <<_LT_EOF >> "$cfgfile"
15822 #! $SHELL
15824 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15825 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15826 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15827 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15829 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15830 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15831 # Written by Gordon Matzigkeit, 1996
15833 # This file is part of GNU Libtool.
15835 # GNU Libtool is free software; you can redistribute it and/or
15836 # modify it under the terms of the GNU General Public License as
15837 # published by the Free Software Foundation; either version 2 of
15838 # the License, or (at your option) any later version.
15840 # As a special exception to the GNU General Public License,
15841 # if you distribute this file as part of a program or library that
15842 # is built using GNU Libtool, you may include this file under the
15843 # same distribution terms that you use for the rest of that program.
15845 # GNU Libtool is distributed in the hope that it will be useful,
15846 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15847 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15848 # GNU General Public License for more details.
15850 # You should have received a copy of the GNU General Public License
15851 # along with GNU Libtool; see the file COPYING. If not, a copy
15852 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15853 # obtained by writing to the Free Software Foundation, Inc.,
15854 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15857 # The names of the tagged configurations supported by this script.
15858 available_tags="CXX "
15860 # ### BEGIN LIBTOOL CONFIG
15862 # Which release of libtool.m4 was used?
15863 macro_version=$macro_version
15864 macro_revision=$macro_revision
15866 # Whether or not to build shared libraries.
15867 build_libtool_libs=$enable_shared
15869 # Whether or not to build static libraries.
15870 build_old_libs=$enable_static
15872 # What type of objects to build.
15873 pic_mode=$pic_mode
15875 # Whether or not to optimize for fast installation.
15876 fast_install=$enable_fast_install
15878 # Shell to use when invoking shell scripts.
15879 SHELL=$lt_SHELL
15881 # An echo program that protects backslashes.
15882 ECHO=$lt_ECHO
15884 # The host system.
15885 host_alias=$host_alias
15886 host=$host
15887 host_os=$host_os
15889 # The build system.
15890 build_alias=$build_alias
15891 build=$build
15892 build_os=$build_os
15894 # A sed program that does not truncate output.
15895 SED=$lt_SED
15897 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15898 Xsed="\$SED -e 1s/^X//"
15900 # A grep program that handles long lines.
15901 GREP=$lt_GREP
15903 # An ERE matcher.
15904 EGREP=$lt_EGREP
15906 # A literal string matcher.
15907 FGREP=$lt_FGREP
15909 # A BSD- or MS-compatible name lister.
15910 NM=$lt_NM
15912 # Whether we need soft or hard links.
15913 LN_S=$lt_LN_S
15915 # What is the maximum length of a command?
15916 max_cmd_len=$max_cmd_len
15918 # Object file suffix (normally "o").
15919 objext=$ac_objext
15921 # Executable file suffix (normally "").
15922 exeext=$exeext
15924 # whether the shell understands "unset".
15925 lt_unset=$lt_unset
15927 # turn spaces into newlines.
15928 SP2NL=$lt_lt_SP2NL
15930 # turn newlines into spaces.
15931 NL2SP=$lt_lt_NL2SP
15933 # An object symbol dumper.
15934 OBJDUMP=$lt_OBJDUMP
15936 # Method to check whether dependent libraries are shared objects.
15937 deplibs_check_method=$lt_deplibs_check_method
15939 # Command to use when deplibs_check_method == "file_magic".
15940 file_magic_cmd=$lt_file_magic_cmd
15942 # The archiver.
15943 AR=$lt_AR
15944 AR_FLAGS=$lt_AR_FLAGS
15946 # A symbol stripping program.
15947 STRIP=$lt_STRIP
15949 # Commands used to install an old-style archive.
15950 RANLIB=$lt_RANLIB
15951 old_postinstall_cmds=$lt_old_postinstall_cmds
15952 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15954 # Whether to use a lock for old archive extraction.
15955 lock_old_archive_extraction=$lock_old_archive_extraction
15957 # A C compiler.
15958 LTCC=$lt_CC
15960 # LTCC compiler flags.
15961 LTCFLAGS=$lt_CFLAGS
15963 # Take the output of nm and produce a listing of raw symbols and C names.
15964 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15966 # Transform the output of nm in a proper C declaration.
15967 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15969 # Transform the output of nm in a C name address pair.
15970 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15972 # Transform the output of nm in a C name address pair when lib prefix is needed.
15973 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15975 # The name of the directory that contains temporary libtool files.
15976 objdir=$objdir
15978 # Used to examine libraries when file_magic_cmd begins with "file".
15979 MAGIC_CMD=$MAGIC_CMD
15981 # Must we lock files when doing compilation?
15982 need_locks=$lt_need_locks
15984 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15985 DSYMUTIL=$lt_DSYMUTIL
15987 # Tool to change global to local symbols on Mac OS X.
15988 NMEDIT=$lt_NMEDIT
15990 # Tool to manipulate fat objects and archives on Mac OS X.
15991 LIPO=$lt_LIPO
15993 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15994 OTOOL=$lt_OTOOL
15996 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
15997 OTOOL64=$lt_OTOOL64
15999 # Old archive suffix (normally "a").
16000 libext=$libext
16002 # Shared library suffix (normally ".so").
16003 shrext_cmds=$lt_shrext_cmds
16005 # The commands to extract the exported symbol list from a shared archive.
16006 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16008 # Variables whose values should be saved in libtool wrapper scripts and
16009 # restored at link time.
16010 variables_saved_for_relink=$lt_variables_saved_for_relink
16012 # Do we need the "lib" prefix for modules?
16013 need_lib_prefix=$need_lib_prefix
16015 # Do we need a version for libraries?
16016 need_version=$need_version
16018 # Library versioning type.
16019 version_type=$version_type
16021 # Shared library runtime path variable.
16022 runpath_var=$runpath_var
16024 # Shared library path variable.
16025 shlibpath_var=$shlibpath_var
16027 # Is shlibpath searched before the hard-coded library search path?
16028 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16030 # Format of library name prefix.
16031 libname_spec=$lt_libname_spec
16033 # List of archive names. First name is the real one, the rest are links.
16034 # The last name is the one that the linker finds with -lNAME
16035 library_names_spec=$lt_library_names_spec
16037 # The coded name of the library, if different from the real name.
16038 soname_spec=$lt_soname_spec
16040 # Permission mode override for installation of shared libraries.
16041 install_override_mode=$lt_install_override_mode
16043 # Command to use after installation of a shared archive.
16044 postinstall_cmds=$lt_postinstall_cmds
16046 # Command to use after uninstallation of a shared archive.
16047 postuninstall_cmds=$lt_postuninstall_cmds
16049 # Commands used to finish a libtool library installation in a directory.
16050 finish_cmds=$lt_finish_cmds
16052 # As "finish_cmds", except a single script fragment to be evaled but
16053 # not shown.
16054 finish_eval=$lt_finish_eval
16056 # Whether we should hardcode library paths into libraries.
16057 hardcode_into_libs=$hardcode_into_libs
16059 # Compile-time system search path for libraries.
16060 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16062 # Run-time system search path for libraries.
16063 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16065 # Whether dlopen is supported.
16066 dlopen_support=$enable_dlopen
16068 # Whether dlopen of programs is supported.
16069 dlopen_self=$enable_dlopen_self
16071 # Whether dlopen of statically linked programs is supported.
16072 dlopen_self_static=$enable_dlopen_self_static
16074 # Commands to strip libraries.
16075 old_striplib=$lt_old_striplib
16076 striplib=$lt_striplib
16079 # The linker used to build libraries.
16080 LD=$lt_LD
16082 # How to create reloadable object files.
16083 reload_flag=$lt_reload_flag
16084 reload_cmds=$lt_reload_cmds
16086 # Commands used to build an old-style archive.
16087 old_archive_cmds=$lt_old_archive_cmds
16089 # A language specific compiler.
16090 CC=$lt_compiler
16092 # Is the compiler the GNU compiler?
16093 with_gcc=$GCC
16095 # Compiler flag to turn off builtin functions.
16096 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16098 # How to pass a linker flag through the compiler.
16099 wl=$lt_lt_prog_compiler_wl
16101 # Additional compiler flags for building library objects.
16102 pic_flag=$lt_lt_prog_compiler_pic
16104 # Compiler flag to prevent dynamic linking.
16105 link_static_flag=$lt_lt_prog_compiler_static
16107 # Does compiler simultaneously support -c and -o options?
16108 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16110 # Whether or not to add -lc for building shared libraries.
16111 build_libtool_need_lc=$archive_cmds_need_lc
16113 # Whether or not to disallow shared libs when runtime libs are static.
16114 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16116 # Compiler flag to allow reflexive dlopens.
16117 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16119 # Compiler flag to generate shared objects directly from archives.
16120 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16122 # Whether the compiler copes with passing no objects directly.
16123 compiler_needs_object=$lt_compiler_needs_object
16125 # Create an old-style archive from a shared archive.
16126 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16128 # Create a temporary old-style archive to link instead of a shared archive.
16129 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16131 # Commands used to build a shared archive.
16132 archive_cmds=$lt_archive_cmds
16133 archive_expsym_cmds=$lt_archive_expsym_cmds
16135 # Commands used to build a loadable module if different from building
16136 # a shared archive.
16137 module_cmds=$lt_module_cmds
16138 module_expsym_cmds=$lt_module_expsym_cmds
16140 # Whether we are building with GNU ld or not.
16141 with_gnu_ld=$lt_with_gnu_ld
16143 # Flag that allows shared libraries with undefined symbols to be built.
16144 allow_undefined_flag=$lt_allow_undefined_flag
16146 # Flag that enforces no undefined symbols.
16147 no_undefined_flag=$lt_no_undefined_flag
16149 # Flag to hardcode \$libdir into a binary during linking.
16150 # This must work even if \$libdir does not exist
16151 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16153 # If ld is used when linking, flag to hardcode \$libdir into a binary
16154 # during linking. This must work even if \$libdir does not exist.
16155 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16157 # Whether we need a single "-rpath" flag with a separated argument.
16158 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16160 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16161 # DIR into the resulting binary.
16162 hardcode_direct=$hardcode_direct
16164 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16165 # DIR into the resulting binary and the resulting library dependency is
16166 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16167 # library is relocated.
16168 hardcode_direct_absolute=$hardcode_direct_absolute
16170 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16171 # into the resulting binary.
16172 hardcode_minus_L=$hardcode_minus_L
16174 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16175 # into the resulting binary.
16176 hardcode_shlibpath_var=$hardcode_shlibpath_var
16178 # Set to "yes" if building a shared library automatically hardcodes DIR
16179 # into the library and all subsequent libraries and executables linked
16180 # against it.
16181 hardcode_automatic=$hardcode_automatic
16183 # Set to yes if linker adds runtime paths of dependent libraries
16184 # to runtime path list.
16185 inherit_rpath=$inherit_rpath
16187 # Whether libtool must link a program against all its dependency libraries.
16188 link_all_deplibs=$link_all_deplibs
16190 # Fix the shell variable \$srcfile for the compiler.
16191 fix_srcfile_path=$lt_fix_srcfile_path
16193 # Set to "yes" if exported symbols are required.
16194 always_export_symbols=$always_export_symbols
16196 # The commands to list exported symbols.
16197 export_symbols_cmds=$lt_export_symbols_cmds
16199 # Symbols that should not be listed in the preloaded symbols.
16200 exclude_expsyms=$lt_exclude_expsyms
16202 # Symbols that must always be exported.
16203 include_expsyms=$lt_include_expsyms
16205 # Commands necessary for linking programs (against libraries) with templates.
16206 prelink_cmds=$lt_prelink_cmds
16208 # Specify filename containing input files.
16209 file_list_spec=$lt_file_list_spec
16211 # How to hardcode a shared library path into an executable.
16212 hardcode_action=$hardcode_action
16214 # The directories searched by this compiler when creating a shared library.
16215 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16217 # Dependencies to place before and after the objects being linked to
16218 # create a shared library.
16219 predep_objects=$lt_predep_objects
16220 postdep_objects=$lt_postdep_objects
16221 predeps=$lt_predeps
16222 postdeps=$lt_postdeps
16224 # The library search path used internally by the compiler when linking
16225 # a shared library.
16226 compiler_lib_search_path=$lt_compiler_lib_search_path
16228 # ### END LIBTOOL CONFIG
16230 _LT_EOF
16232 case $host_os in
16233 aix3*)
16234 cat <<\_LT_EOF >> "$cfgfile"
16235 # AIX sometimes has problems with the GCC collect2 program. For some
16236 # reason, if we set the COLLECT_NAMES environment variable, the problems
16237 # vanish in a puff of smoke.
16238 if test "X${COLLECT_NAMES+set}" != Xset; then
16239 COLLECT_NAMES=
16240 export COLLECT_NAMES
16242 _LT_EOF
16244 esac
16247 ltmain="$ac_aux_dir/ltmain.sh"
16250 # We use sed instead of cat because bash on DJGPP gets confused if
16251 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16252 # text mode, it properly converts lines to CR/LF. This bash problem
16253 # is reportedly fixed, but why not run on old versions too?
16254 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16255 || (rm -f "$cfgfile"; exit 1)
16257 case $xsi_shell in
16258 yes)
16259 cat << \_LT_EOF >> "$cfgfile"
16261 # func_dirname file append nondir_replacement
16262 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16263 # otherwise set result to NONDIR_REPLACEMENT.
16264 func_dirname ()
16266 case ${1} in
16267 */*) func_dirname_result="${1%/*}${2}" ;;
16268 * ) func_dirname_result="${3}" ;;
16269 esac
16272 # func_basename file
16273 func_basename ()
16275 func_basename_result="${1##*/}"
16278 # func_dirname_and_basename file append nondir_replacement
16279 # perform func_basename and func_dirname in a single function
16280 # call:
16281 # dirname: Compute the dirname of FILE. If nonempty,
16282 # add APPEND to the result, otherwise set result
16283 # to NONDIR_REPLACEMENT.
16284 # value returned in "$func_dirname_result"
16285 # basename: Compute filename of FILE.
16286 # value retuned in "$func_basename_result"
16287 # Implementation must be kept synchronized with func_dirname
16288 # and func_basename. For efficiency, we do not delegate to
16289 # those functions but instead duplicate the functionality here.
16290 func_dirname_and_basename ()
16292 case ${1} in
16293 */*) func_dirname_result="${1%/*}${2}" ;;
16294 * ) func_dirname_result="${3}" ;;
16295 esac
16296 func_basename_result="${1##*/}"
16299 # func_stripname prefix suffix name
16300 # strip PREFIX and SUFFIX off of NAME.
16301 # PREFIX and SUFFIX must not contain globbing or regex special
16302 # characters, hashes, percent signs, but SUFFIX may contain a leading
16303 # dot (in which case that matches only a dot).
16304 func_stripname ()
16306 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16307 # positional parameters, so assign one to ordinary parameter first.
16308 func_stripname_result=${3}
16309 func_stripname_result=${func_stripname_result#"${1}"}
16310 func_stripname_result=${func_stripname_result%"${2}"}
16313 # func_opt_split
16314 func_opt_split ()
16316 func_opt_split_opt=${1%%=*}
16317 func_opt_split_arg=${1#*=}
16320 # func_lo2o object
16321 func_lo2o ()
16323 case ${1} in
16324 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16325 *) func_lo2o_result=${1} ;;
16326 esac
16329 # func_xform libobj-or-source
16330 func_xform ()
16332 func_xform_result=${1%.*}.lo
16335 # func_arith arithmetic-term...
16336 func_arith ()
16338 func_arith_result=$(( $* ))
16341 # func_len string
16342 # STRING may not start with a hyphen.
16343 func_len ()
16345 func_len_result=${#1}
16348 _LT_EOF
16350 *) # Bourne compatible functions.
16351 cat << \_LT_EOF >> "$cfgfile"
16353 # func_dirname file append nondir_replacement
16354 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16355 # otherwise set result to NONDIR_REPLACEMENT.
16356 func_dirname ()
16358 # Extract subdirectory from the argument.
16359 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16360 if test "X$func_dirname_result" = "X${1}"; then
16361 func_dirname_result="${3}"
16362 else
16363 func_dirname_result="$func_dirname_result${2}"
16367 # func_basename file
16368 func_basename ()
16370 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16374 # func_stripname prefix suffix name
16375 # strip PREFIX and SUFFIX off of NAME.
16376 # PREFIX and SUFFIX must not contain globbing or regex special
16377 # characters, hashes, percent signs, but SUFFIX may contain a leading
16378 # dot (in which case that matches only a dot).
16379 # func_strip_suffix prefix name
16380 func_stripname ()
16382 case ${2} in
16383 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16384 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16385 esac
16388 # sed scripts:
16389 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16390 my_sed_long_arg='1s/^-[^=]*=//'
16392 # func_opt_split
16393 func_opt_split ()
16395 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16396 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16399 # func_lo2o object
16400 func_lo2o ()
16402 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16405 # func_xform libobj-or-source
16406 func_xform ()
16408 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16411 # func_arith arithmetic-term...
16412 func_arith ()
16414 func_arith_result=`expr "$@"`
16417 # func_len string
16418 # STRING may not start with a hyphen.
16419 func_len ()
16421 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16424 _LT_EOF
16425 esac
16427 case $lt_shell_append in
16428 yes)
16429 cat << \_LT_EOF >> "$cfgfile"
16431 # func_append var value
16432 # Append VALUE to the end of shell variable VAR.
16433 func_append ()
16435 eval "$1+=\$2"
16437 _LT_EOF
16440 cat << \_LT_EOF >> "$cfgfile"
16442 # func_append var value
16443 # Append VALUE to the end of shell variable VAR.
16444 func_append ()
16446 eval "$1=\$$1\$2"
16449 _LT_EOF
16451 esac
16454 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16455 || (rm -f "$cfgfile"; exit 1)
16457 mv -f "$cfgfile" "$ofile" ||
16458 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16459 chmod +x "$ofile"
16462 cat <<_LT_EOF >> "$ofile"
16464 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16466 # The linker used to build libraries.
16467 LD=$lt_LD_CXX
16469 # How to create reloadable object files.
16470 reload_flag=$lt_reload_flag_CXX
16471 reload_cmds=$lt_reload_cmds_CXX
16473 # Commands used to build an old-style archive.
16474 old_archive_cmds=$lt_old_archive_cmds_CXX
16476 # A language specific compiler.
16477 CC=$lt_compiler_CXX
16479 # Is the compiler the GNU compiler?
16480 with_gcc=$GCC_CXX
16482 # Compiler flag to turn off builtin functions.
16483 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16485 # How to pass a linker flag through the compiler.
16486 wl=$lt_lt_prog_compiler_wl_CXX
16488 # Additional compiler flags for building library objects.
16489 pic_flag=$lt_lt_prog_compiler_pic_CXX
16491 # Compiler flag to prevent dynamic linking.
16492 link_static_flag=$lt_lt_prog_compiler_static_CXX
16494 # Does compiler simultaneously support -c and -o options?
16495 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16497 # Whether or not to add -lc for building shared libraries.
16498 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16500 # Whether or not to disallow shared libs when runtime libs are static.
16501 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16503 # Compiler flag to allow reflexive dlopens.
16504 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16506 # Compiler flag to generate shared objects directly from archives.
16507 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16509 # Whether the compiler copes with passing no objects directly.
16510 compiler_needs_object=$lt_compiler_needs_object_CXX
16512 # Create an old-style archive from a shared archive.
16513 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16515 # Create a temporary old-style archive to link instead of a shared archive.
16516 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16518 # Commands used to build a shared archive.
16519 archive_cmds=$lt_archive_cmds_CXX
16520 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16522 # Commands used to build a loadable module if different from building
16523 # a shared archive.
16524 module_cmds=$lt_module_cmds_CXX
16525 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16527 # Whether we are building with GNU ld or not.
16528 with_gnu_ld=$lt_with_gnu_ld_CXX
16530 # Flag that allows shared libraries with undefined symbols to be built.
16531 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16533 # Flag that enforces no undefined symbols.
16534 no_undefined_flag=$lt_no_undefined_flag_CXX
16536 # Flag to hardcode \$libdir into a binary during linking.
16537 # This must work even if \$libdir does not exist
16538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16540 # If ld is used when linking, flag to hardcode \$libdir into a binary
16541 # during linking. This must work even if \$libdir does not exist.
16542 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16544 # Whether we need a single "-rpath" flag with a separated argument.
16545 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16547 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16548 # DIR into the resulting binary.
16549 hardcode_direct=$hardcode_direct_CXX
16551 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16552 # DIR into the resulting binary and the resulting library dependency is
16553 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16554 # library is relocated.
16555 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16557 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16558 # into the resulting binary.
16559 hardcode_minus_L=$hardcode_minus_L_CXX
16561 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16562 # into the resulting binary.
16563 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16565 # Set to "yes" if building a shared library automatically hardcodes DIR
16566 # into the library and all subsequent libraries and executables linked
16567 # against it.
16568 hardcode_automatic=$hardcode_automatic_CXX
16570 # Set to yes if linker adds runtime paths of dependent libraries
16571 # to runtime path list.
16572 inherit_rpath=$inherit_rpath_CXX
16574 # Whether libtool must link a program against all its dependency libraries.
16575 link_all_deplibs=$link_all_deplibs_CXX
16577 # Fix the shell variable \$srcfile for the compiler.
16578 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16580 # Set to "yes" if exported symbols are required.
16581 always_export_symbols=$always_export_symbols_CXX
16583 # The commands to list exported symbols.
16584 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16586 # Symbols that should not be listed in the preloaded symbols.
16587 exclude_expsyms=$lt_exclude_expsyms_CXX
16589 # Symbols that must always be exported.
16590 include_expsyms=$lt_include_expsyms_CXX
16592 # Commands necessary for linking programs (against libraries) with templates.
16593 prelink_cmds=$lt_prelink_cmds_CXX
16595 # Specify filename containing input files.
16596 file_list_spec=$lt_file_list_spec_CXX
16598 # How to hardcode a shared library path into an executable.
16599 hardcode_action=$hardcode_action_CXX
16601 # The directories searched by this compiler when creating a shared library.
16602 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16604 # Dependencies to place before and after the objects being linked to
16605 # create a shared library.
16606 predep_objects=$lt_predep_objects_CXX
16607 postdep_objects=$lt_postdep_objects_CXX
16608 predeps=$lt_predeps_CXX
16609 postdeps=$lt_postdeps_CXX
16611 # The library search path used internally by the compiler when linking
16612 # a shared library.
16613 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16615 # ### END LIBTOOL TAG CONFIG: CXX
16616 _LT_EOF
16620 esac
16621 done # for ac_tag
16624 as_fn_exit 0
16625 _ACEOF
16626 ac_clean_files=$ac_clean_files_save
16628 test $ac_write_fail = 0 ||
16629 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16632 # configure is writing to config.log, and then calls config.status.
16633 # config.status does its own redirection, appending to config.log.
16634 # Unfortunately, on DOS this fails, as config.log is still kept open
16635 # by configure, so config.status won't be able to write to it; its
16636 # output is simply discarded. So we exec the FD to /dev/null,
16637 # effectively closing config.log, so it can be properly (re)opened and
16638 # appended to by config.status. When coming back to configure, we
16639 # need to make the FD available again.
16640 if test "$no_create" != yes; then
16641 ac_cs_success=:
16642 ac_config_status_args=
16643 test "$silent" = yes &&
16644 ac_config_status_args="$ac_config_status_args --quiet"
16645 exec 5>/dev/null
16646 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16647 exec 5>>config.log
16648 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16649 # would make configure fail if this is the last instruction.
16650 $ac_cs_success || as_fn_exit $?
16652 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16654 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}