* sv.po: Update.
[official-gcc.git] / liboffloadmic / plugin / configure
blob13736707dc5c53376ce83d9c34a8ef6a2d074a56
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 am__nodep
641 AMDEPBACKSLASH
642 AMDEP_FALSE
643 AMDEP_TRUE
644 am__quote
645 am__include
646 DEPDIR
647 OBJEXT
648 EXEEXT
649 ac_ct_CC
650 CPPFLAGS
651 LDFLAGS
652 CFLAGS
654 MAINT
655 MAINTAINER_MODE_FALSE
656 MAINTAINER_MODE_TRUE
657 am__untar
658 am__tar
659 AMTAR
660 am__leading_dot
661 SET_MAKE
663 mkdir_p
664 MKDIR_P
665 INSTALL_STRIP_PROGRAM
666 STRIP
667 install_sh
668 MAKEINFO
669 AUTOHEADER
670 AUTOMAKE
671 AUTOCONF
672 ACLOCAL
673 VERSION
674 PACKAGE
675 CYGPATH_W
676 am__isrc
677 INSTALL_DATA
678 INSTALL_SCRIPT
679 INSTALL_PROGRAM
680 target_os
681 target_vendor
682 target_cpu
683 target
684 host_os
685 host_vendor
686 host_cpu
687 host
688 build_os
689 build_vendor
690 build_cpu
691 build
692 target_alias
693 host_alias
694 build_alias
695 LIBS
696 ECHO_T
697 ECHO_N
698 ECHO_C
699 DEFS
700 mandir
701 localedir
702 libdir
703 psdir
704 pdfdir
705 dvidir
706 htmldir
707 infodir
708 docdir
709 oldincludedir
710 includedir
711 localstatedir
712 sharedstatedir
713 sysconfdir
714 datadir
715 datarootdir
716 libexecdir
717 sbindir
718 bindir
719 program_transform_name
720 prefix
721 exec_prefix
722 PACKAGE_URL
723 PACKAGE_BUGREPORT
724 PACKAGE_STRING
725 PACKAGE_VERSION
726 PACKAGE_TARNAME
727 PACKAGE_NAME
728 PATH_SEPARATOR
729 SHELL'
730 ac_subst_files=''
731 ac_user_opts='
732 enable_option_checking
733 enable_maintainer_mode
734 enable_dependency_tracking
735 enable_multilib
736 enable_version_specific_runtime_libs
737 enable_shared
738 enable_static
739 with_pic
740 enable_fast_install
741 with_gnu_ld
742 enable_libtool_lock
744 ac_precious_vars='build_alias
745 host_alias
746 target_alias
748 CFLAGS
749 LDFLAGS
750 LIBS
751 CPPFLAGS
753 CXXFLAGS
756 CXXCPP'
759 # Initialize some variables set by options.
760 ac_init_help=
761 ac_init_version=false
762 ac_unrecognized_opts=
763 ac_unrecognized_sep=
764 # The variables have the same names as the options, with
765 # dashes changed to underlines.
766 cache_file=/dev/null
767 exec_prefix=NONE
768 no_create=
769 no_recursion=
770 prefix=NONE
771 program_prefix=NONE
772 program_suffix=NONE
773 program_transform_name=s,x,x,
774 silent=
775 site=
776 srcdir=
777 verbose=
778 x_includes=NONE
779 x_libraries=NONE
781 # Installation directory options.
782 # These are left unexpanded so users can "make install exec_prefix=/foo"
783 # and all the variables that are supposed to be based on exec_prefix
784 # by default will actually change.
785 # Use braces instead of parens because sh, perl, etc. also accept them.
786 # (The list follows the same order as the GNU Coding Standards.)
787 bindir='${exec_prefix}/bin'
788 sbindir='${exec_prefix}/sbin'
789 libexecdir='${exec_prefix}/libexec'
790 datarootdir='${prefix}/share'
791 datadir='${datarootdir}'
792 sysconfdir='${prefix}/etc'
793 sharedstatedir='${prefix}/com'
794 localstatedir='${prefix}/var'
795 includedir='${prefix}/include'
796 oldincludedir='/usr/include'
797 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
798 infodir='${datarootdir}/info'
799 htmldir='${docdir}'
800 dvidir='${docdir}'
801 pdfdir='${docdir}'
802 psdir='${docdir}'
803 libdir='${exec_prefix}/lib'
804 localedir='${datarootdir}/locale'
805 mandir='${datarootdir}/man'
807 ac_prev=
808 ac_dashdash=
809 for ac_option
811 # If the previous option needs an argument, assign it.
812 if test -n "$ac_prev"; then
813 eval $ac_prev=\$ac_option
814 ac_prev=
815 continue
818 case $ac_option in
819 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
820 *) ac_optarg=yes ;;
821 esac
823 # Accept the important Cygnus configure options, so we can diagnose typos.
825 case $ac_dashdash$ac_option in
827 ac_dashdash=yes ;;
829 -bindir | --bindir | --bindi | --bind | --bin | --bi)
830 ac_prev=bindir ;;
831 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
832 bindir=$ac_optarg ;;
834 -build | --build | --buil | --bui | --bu)
835 ac_prev=build_alias ;;
836 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
837 build_alias=$ac_optarg ;;
839 -cache-file | --cache-file | --cache-fil | --cache-fi \
840 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
841 ac_prev=cache_file ;;
842 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
843 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
844 cache_file=$ac_optarg ;;
846 --config-cache | -C)
847 cache_file=config.cache ;;
849 -datadir | --datadir | --datadi | --datad)
850 ac_prev=datadir ;;
851 -datadir=* | --datadir=* | --datadi=* | --datad=*)
852 datadir=$ac_optarg ;;
854 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
855 | --dataroo | --dataro | --datar)
856 ac_prev=datarootdir ;;
857 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
858 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
859 datarootdir=$ac_optarg ;;
861 -disable-* | --disable-*)
862 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
863 # Reject names that are not valid shell variable names.
864 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
865 as_fn_error "invalid feature name: $ac_useropt"
866 ac_useropt_orig=$ac_useropt
867 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
868 case $ac_user_opts in
870 "enable_$ac_useropt"
871 "*) ;;
872 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
873 ac_unrecognized_sep=', ';;
874 esac
875 eval enable_$ac_useropt=no ;;
877 -docdir | --docdir | --docdi | --doc | --do)
878 ac_prev=docdir ;;
879 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
880 docdir=$ac_optarg ;;
882 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
883 ac_prev=dvidir ;;
884 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
885 dvidir=$ac_optarg ;;
887 -enable-* | --enable-*)
888 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
889 # Reject names that are not valid shell variable names.
890 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
891 as_fn_error "invalid feature name: $ac_useropt"
892 ac_useropt_orig=$ac_useropt
893 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
894 case $ac_user_opts in
896 "enable_$ac_useropt"
897 "*) ;;
898 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
899 ac_unrecognized_sep=', ';;
900 esac
901 eval enable_$ac_useropt=\$ac_optarg ;;
903 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
904 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
905 | --exec | --exe | --ex)
906 ac_prev=exec_prefix ;;
907 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
908 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
909 | --exec=* | --exe=* | --ex=*)
910 exec_prefix=$ac_optarg ;;
912 -gas | --gas | --ga | --g)
913 # Obsolete; use --with-gas.
914 with_gas=yes ;;
916 -help | --help | --hel | --he | -h)
917 ac_init_help=long ;;
918 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
919 ac_init_help=recursive ;;
920 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
921 ac_init_help=short ;;
923 -host | --host | --hos | --ho)
924 ac_prev=host_alias ;;
925 -host=* | --host=* | --hos=* | --ho=*)
926 host_alias=$ac_optarg ;;
928 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
929 ac_prev=htmldir ;;
930 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
931 | --ht=*)
932 htmldir=$ac_optarg ;;
934 -includedir | --includedir | --includedi | --included | --include \
935 | --includ | --inclu | --incl | --inc)
936 ac_prev=includedir ;;
937 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
938 | --includ=* | --inclu=* | --incl=* | --inc=*)
939 includedir=$ac_optarg ;;
941 -infodir | --infodir | --infodi | --infod | --info | --inf)
942 ac_prev=infodir ;;
943 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
944 infodir=$ac_optarg ;;
946 -libdir | --libdir | --libdi | --libd)
947 ac_prev=libdir ;;
948 -libdir=* | --libdir=* | --libdi=* | --libd=*)
949 libdir=$ac_optarg ;;
951 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
952 | --libexe | --libex | --libe)
953 ac_prev=libexecdir ;;
954 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
955 | --libexe=* | --libex=* | --libe=*)
956 libexecdir=$ac_optarg ;;
958 -localedir | --localedir | --localedi | --localed | --locale)
959 ac_prev=localedir ;;
960 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
961 localedir=$ac_optarg ;;
963 -localstatedir | --localstatedir | --localstatedi | --localstated \
964 | --localstate | --localstat | --localsta | --localst | --locals)
965 ac_prev=localstatedir ;;
966 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
967 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
968 localstatedir=$ac_optarg ;;
970 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
971 ac_prev=mandir ;;
972 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
973 mandir=$ac_optarg ;;
975 -nfp | --nfp | --nf)
976 # Obsolete; use --without-fp.
977 with_fp=no ;;
979 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
980 | --no-cr | --no-c | -n)
981 no_create=yes ;;
983 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
984 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
985 no_recursion=yes ;;
987 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
988 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
989 | --oldin | --oldi | --old | --ol | --o)
990 ac_prev=oldincludedir ;;
991 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
992 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
993 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
994 oldincludedir=$ac_optarg ;;
996 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
997 ac_prev=prefix ;;
998 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
999 prefix=$ac_optarg ;;
1001 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1002 | --program-pre | --program-pr | --program-p)
1003 ac_prev=program_prefix ;;
1004 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1005 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1006 program_prefix=$ac_optarg ;;
1008 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1009 | --program-suf | --program-su | --program-s)
1010 ac_prev=program_suffix ;;
1011 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1012 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1013 program_suffix=$ac_optarg ;;
1015 -program-transform-name | --program-transform-name \
1016 | --program-transform-nam | --program-transform-na \
1017 | --program-transform-n | --program-transform- \
1018 | --program-transform | --program-transfor \
1019 | --program-transfo | --program-transf \
1020 | --program-trans | --program-tran \
1021 | --progr-tra | --program-tr | --program-t)
1022 ac_prev=program_transform_name ;;
1023 -program-transform-name=* | --program-transform-name=* \
1024 | --program-transform-nam=* | --program-transform-na=* \
1025 | --program-transform-n=* | --program-transform-=* \
1026 | --program-transform=* | --program-transfor=* \
1027 | --program-transfo=* | --program-transf=* \
1028 | --program-trans=* | --program-tran=* \
1029 | --progr-tra=* | --program-tr=* | --program-t=*)
1030 program_transform_name=$ac_optarg ;;
1032 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1033 ac_prev=pdfdir ;;
1034 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1035 pdfdir=$ac_optarg ;;
1037 -psdir | --psdir | --psdi | --psd | --ps)
1038 ac_prev=psdir ;;
1039 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1040 psdir=$ac_optarg ;;
1042 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1043 | -silent | --silent | --silen | --sile | --sil)
1044 silent=yes ;;
1046 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1047 ac_prev=sbindir ;;
1048 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1049 | --sbi=* | --sb=*)
1050 sbindir=$ac_optarg ;;
1052 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1053 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1054 | --sharedst | --shareds | --shared | --share | --shar \
1055 | --sha | --sh)
1056 ac_prev=sharedstatedir ;;
1057 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1058 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1059 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1060 | --sha=* | --sh=*)
1061 sharedstatedir=$ac_optarg ;;
1063 -site | --site | --sit)
1064 ac_prev=site ;;
1065 -site=* | --site=* | --sit=*)
1066 site=$ac_optarg ;;
1068 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1069 ac_prev=srcdir ;;
1070 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1071 srcdir=$ac_optarg ;;
1073 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1074 | --syscon | --sysco | --sysc | --sys | --sy)
1075 ac_prev=sysconfdir ;;
1076 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1077 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1078 sysconfdir=$ac_optarg ;;
1080 -target | --target | --targe | --targ | --tar | --ta | --t)
1081 ac_prev=target_alias ;;
1082 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1083 target_alias=$ac_optarg ;;
1085 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1086 verbose=yes ;;
1088 -version | --version | --versio | --versi | --vers | -V)
1089 ac_init_version=: ;;
1091 -with-* | --with-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1100 "with_$ac_useropt"
1101 "*) ;;
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1104 esac
1105 eval with_$ac_useropt=\$ac_optarg ;;
1107 -without-* | --without-*)
1108 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1116 "with_$ac_useropt"
1117 "*) ;;
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1120 esac
1121 eval with_$ac_useropt=no ;;
1123 --x)
1124 # Obsolete; use --with-x.
1125 with_x=yes ;;
1127 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1128 | --x-incl | --x-inc | --x-in | --x-i)
1129 ac_prev=x_includes ;;
1130 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1131 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1132 x_includes=$ac_optarg ;;
1134 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1135 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1136 ac_prev=x_libraries ;;
1137 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1138 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1139 x_libraries=$ac_optarg ;;
1141 -*) as_fn_error "unrecognized option: \`$ac_option'
1142 Try \`$0 --help' for more information."
1145 *=*)
1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147 # Reject names that are not valid shell variable names.
1148 case $ac_envvar in #(
1149 '' | [0-9]* | *[!_$as_cr_alnum]* )
1150 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1151 esac
1152 eval $ac_envvar=\$ac_optarg
1153 export $ac_envvar ;;
1156 # FIXME: should be removed in autoconf 3.0.
1157 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1158 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1159 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1160 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1163 esac
1164 done
1166 if test -n "$ac_prev"; then
1167 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1168 as_fn_error "missing argument to $ac_option"
1171 if test -n "$ac_unrecognized_opts"; then
1172 case $enable_option_checking in
1173 no) ;;
1174 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1175 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1176 esac
1179 # Check all directory arguments for consistency.
1180 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1181 datadir sysconfdir sharedstatedir localstatedir includedir \
1182 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1183 libdir localedir mandir
1185 eval ac_val=\$$ac_var
1186 # Remove trailing slashes.
1187 case $ac_val in
1188 */ )
1189 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1190 eval $ac_var=\$ac_val;;
1191 esac
1192 # Be sure to have absolute directory names.
1193 case $ac_val in
1194 [\\/$]* | ?:[\\/]* ) continue;;
1195 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1196 esac
1197 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1198 done
1200 # There might be people who depend on the old broken behavior: `$host'
1201 # used to hold the argument of --host etc.
1202 # FIXME: To remove some day.
1203 build=$build_alias
1204 host=$host_alias
1205 target=$target_alias
1207 # FIXME: To remove some day.
1208 if test "x$host_alias" != x; then
1209 if test "x$build_alias" = x; then
1210 cross_compiling=maybe
1211 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1212 If a cross compiler is detected then cross compile mode will be used." >&2
1213 elif test "x$build_alias" != "x$host_alias"; then
1214 cross_compiling=yes
1218 ac_tool_prefix=
1219 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1221 test "$silent" = yes && exec 6>/dev/null
1224 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1225 ac_ls_di=`ls -di .` &&
1226 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1227 as_fn_error "working directory cannot be determined"
1228 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1229 as_fn_error "pwd does not report name of working directory"
1232 # Find the source files, if location was not specified.
1233 if test -z "$srcdir"; then
1234 ac_srcdir_defaulted=yes
1235 # Try the directory containing this script, then the parent directory.
1236 ac_confdir=`$as_dirname -- "$as_myself" ||
1237 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1238 X"$as_myself" : 'X\(//\)[^/]' \| \
1239 X"$as_myself" : 'X\(//\)$' \| \
1240 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1241 $as_echo X"$as_myself" |
1242 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1243 s//\1/
1246 /^X\(\/\/\)[^/].*/{
1247 s//\1/
1250 /^X\(\/\/\)$/{
1251 s//\1/
1254 /^X\(\/\).*/{
1255 s//\1/
1258 s/.*/./; q'`
1259 srcdir=$ac_confdir
1260 if test ! -r "$srcdir/$ac_unique_file"; then
1261 srcdir=..
1263 else
1264 ac_srcdir_defaulted=no
1266 if test ! -r "$srcdir/$ac_unique_file"; then
1267 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1268 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1270 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1271 ac_abs_confdir=`(
1272 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1273 pwd)`
1274 # When building in place, set srcdir=.
1275 if test "$ac_abs_confdir" = "$ac_pwd"; then
1276 srcdir=.
1278 # Remove unnecessary trailing slashes from srcdir.
1279 # Double slashes in file names in object file debugging info
1280 # mess up M-x gdb in Emacs.
1281 case $srcdir in
1282 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1283 esac
1284 for ac_var in $ac_precious_vars; do
1285 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1286 eval ac_env_${ac_var}_value=\$${ac_var}
1287 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1288 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1289 done
1292 # Report the --help message.
1294 if test "$ac_init_help" = "long"; then
1295 # Omit some internal or obsolete options to make the list less imposing.
1296 # This message is too long to be a string in the A/UX 3.1 sh.
1297 cat <<_ACEOF
1298 \`configure' configures Intel MIC Offload Plugin 1.0 to adapt to many kinds of systems.
1300 Usage: $0 [OPTION]... [VAR=VALUE]...
1302 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1303 VAR=VALUE. See below for descriptions of some of the useful variables.
1305 Defaults for the options are specified in brackets.
1307 Configuration:
1308 -h, --help display this help and exit
1309 --help=short display options specific to this package
1310 --help=recursive display the short help of all the included packages
1311 -V, --version display version information and exit
1312 -q, --quiet, --silent do not print \`checking...' messages
1313 --cache-file=FILE cache test results in FILE [disabled]
1314 -C, --config-cache alias for \`--cache-file=config.cache'
1315 -n, --no-create do not create output files
1316 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1318 Installation directories:
1319 --prefix=PREFIX install architecture-independent files in PREFIX
1320 [$ac_default_prefix]
1321 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1322 [PREFIX]
1324 By default, \`make install' will install all the files in
1325 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1326 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1327 for instance \`--prefix=\$HOME'.
1329 For better control, use the options below.
1331 Fine tuning of the installation directories:
1332 --bindir=DIR user executables [EPREFIX/bin]
1333 --sbindir=DIR system admin executables [EPREFIX/sbin]
1334 --libexecdir=DIR program executables [EPREFIX/libexec]
1335 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1336 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1337 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1338 --libdir=DIR object code libraries [EPREFIX/lib]
1339 --includedir=DIR C header files [PREFIX/include]
1340 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1341 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1342 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1343 --infodir=DIR info documentation [DATAROOTDIR/info]
1344 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1345 --mandir=DIR man documentation [DATAROOTDIR/man]
1346 --docdir=DIR documentation root
1347 [DATAROOTDIR/doc/libgomp-plugin-intelmic]
1348 --htmldir=DIR html documentation [DOCDIR]
1349 --dvidir=DIR dvi documentation [DOCDIR]
1350 --pdfdir=DIR pdf documentation [DOCDIR]
1351 --psdir=DIR ps documentation [DOCDIR]
1352 _ACEOF
1354 cat <<\_ACEOF
1356 Program names:
1357 --program-prefix=PREFIX prepend PREFIX to installed program names
1358 --program-suffix=SUFFIX append SUFFIX to installed program names
1359 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1361 System types:
1362 --build=BUILD configure for building on BUILD [guessed]
1363 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1364 --target=TARGET configure for building compilers for TARGET [HOST]
1365 _ACEOF
1368 if test -n "$ac_init_help"; then
1369 case $ac_init_help in
1370 short | recursive ) echo "Configuration of Intel MIC Offload Plugin 1.0:";;
1371 esac
1372 cat <<\_ACEOF
1374 Optional Features:
1375 --disable-option-checking ignore unrecognized --enable/--with options
1376 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1377 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1378 --enable-maintainer-mode enable make rules and dependencies not useful
1379 (and sometimes confusing) to the casual installer
1380 --disable-dependency-tracking speeds up one-time build
1381 --enable-dependency-tracking do not reject slow dependency extractors
1382 --enable-multilib build many library versions (default)
1383 --enable-version-specific-runtime-libs
1384 Specify that runtime libraries should be installed
1385 in a compiler-specific directory
1386 --enable-shared[=PKGS] build shared libraries [default=yes]
1387 --enable-static[=PKGS] build static libraries [default=yes]
1388 --enable-fast-install[=PKGS]
1389 optimize for fast installation [default=yes]
1390 --disable-libtool-lock avoid locking (might break parallel builds)
1392 Optional Packages:
1393 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1394 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1395 --with-pic try to use only PIC/non-PIC objects [default=use
1396 both]
1397 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1399 Some influential environment variables:
1400 CC C compiler command
1401 CFLAGS C compiler flags
1402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1403 nonstandard directory <lib dir>
1404 LIBS libraries to pass to the linker, e.g. -l<library>
1405 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1406 you have headers in a nonstandard directory <include dir>
1407 CXX C++ compiler command
1408 CXXFLAGS C++ compiler flags
1409 CPP C preprocessor
1410 CXXCPP C++ preprocessor
1412 Use these variables to override the choices made by `configure' or to help
1413 it to find libraries and programs with nonstandard names/locations.
1415 Report bugs to the package provider.
1416 _ACEOF
1417 ac_status=$?
1420 if test "$ac_init_help" = "recursive"; then
1421 # If there are subdirs, report their specific --help.
1422 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1423 test -d "$ac_dir" ||
1424 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1425 continue
1426 ac_builddir=.
1428 case "$ac_dir" in
1429 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1431 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1432 # A ".." for each directory in $ac_dir_suffix.
1433 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1434 case $ac_top_builddir_sub in
1435 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1436 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1437 esac ;;
1438 esac
1439 ac_abs_top_builddir=$ac_pwd
1440 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1441 # for backward compatibility:
1442 ac_top_builddir=$ac_top_build_prefix
1444 case $srcdir in
1445 .) # We are building in place.
1446 ac_srcdir=.
1447 ac_top_srcdir=$ac_top_builddir_sub
1448 ac_abs_top_srcdir=$ac_pwd ;;
1449 [\\/]* | ?:[\\/]* ) # Absolute name.
1450 ac_srcdir=$srcdir$ac_dir_suffix;
1451 ac_top_srcdir=$srcdir
1452 ac_abs_top_srcdir=$srcdir ;;
1453 *) # Relative name.
1454 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1455 ac_top_srcdir=$ac_top_build_prefix$srcdir
1456 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1457 esac
1458 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1460 cd "$ac_dir" || { ac_status=$?; continue; }
1461 # Check for guested configure.
1462 if test -f "$ac_srcdir/configure.gnu"; then
1463 echo &&
1464 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1465 elif test -f "$ac_srcdir/configure"; then
1466 echo &&
1467 $SHELL "$ac_srcdir/configure" --help=recursive
1468 else
1469 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1470 fi || ac_status=$?
1471 cd "$ac_pwd" || { ac_status=$?; break; }
1472 done
1475 test -n "$ac_init_help" && exit $ac_status
1476 if $ac_init_version; then
1477 cat <<\_ACEOF
1478 Intel MIC Offload Plugin configure 1.0
1479 generated by GNU Autoconf 2.64
1481 Copyright (C) 2009 Free Software Foundation, Inc.
1482 This configure script is free software; the Free Software Foundation
1483 gives unlimited permission to copy, distribute and modify it.
1484 _ACEOF
1485 exit
1488 ## ------------------------ ##
1489 ## Autoconf initialization. ##
1490 ## ------------------------ ##
1492 # ac_fn_c_try_compile LINENO
1493 # --------------------------
1494 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1495 ac_fn_c_try_compile ()
1497 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1498 rm -f conftest.$ac_objext
1499 if { { ac_try="$ac_compile"
1500 case "(($ac_try" in
1501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1502 *) ac_try_echo=$ac_try;;
1503 esac
1504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1505 $as_echo "$ac_try_echo"; } >&5
1506 (eval "$ac_compile") 2>conftest.err
1507 ac_status=$?
1508 if test -s conftest.err; then
1509 grep -v '^ *+' conftest.err >conftest.er1
1510 cat conftest.er1 >&5
1511 mv -f conftest.er1 conftest.err
1513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1514 test $ac_status = 0; } && {
1515 test -z "$ac_c_werror_flag" ||
1516 test ! -s conftest.err
1517 } && test -s conftest.$ac_objext; then :
1518 ac_retval=0
1519 else
1520 $as_echo "$as_me: failed program was:" >&5
1521 sed 's/^/| /' conftest.$ac_ext >&5
1523 ac_retval=1
1525 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1526 return $ac_retval
1528 } # ac_fn_c_try_compile
1530 # ac_fn_cxx_try_compile LINENO
1531 # ----------------------------
1532 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1533 ac_fn_cxx_try_compile ()
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 rm -f conftest.$ac_objext
1537 if { { ac_try="$ac_compile"
1538 case "(($ac_try" in
1539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1540 *) ac_try_echo=$ac_try;;
1541 esac
1542 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1543 $as_echo "$ac_try_echo"; } >&5
1544 (eval "$ac_compile") 2>conftest.err
1545 ac_status=$?
1546 if test -s conftest.err; then
1547 grep -v '^ *+' conftest.err >conftest.er1
1548 cat conftest.er1 >&5
1549 mv -f conftest.er1 conftest.err
1551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1552 test $ac_status = 0; } && {
1553 test -z "$ac_cxx_werror_flag" ||
1554 test ! -s conftest.err
1555 } && test -s conftest.$ac_objext; then :
1556 ac_retval=0
1557 else
1558 $as_echo "$as_me: failed program was:" >&5
1559 sed 's/^/| /' conftest.$ac_ext >&5
1561 ac_retval=1
1563 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1564 return $ac_retval
1566 } # ac_fn_cxx_try_compile
1568 # ac_fn_c_try_link LINENO
1569 # -----------------------
1570 # Try to link conftest.$ac_ext, and return whether this succeeded.
1571 ac_fn_c_try_link ()
1573 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1574 rm -f conftest.$ac_objext conftest$ac_exeext
1575 if { { ac_try="$ac_link"
1576 case "(($ac_try" in
1577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1578 *) ac_try_echo=$ac_try;;
1579 esac
1580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1581 $as_echo "$ac_try_echo"; } >&5
1582 (eval "$ac_link") 2>conftest.err
1583 ac_status=$?
1584 if test -s conftest.err; then
1585 grep -v '^ *+' conftest.err >conftest.er1
1586 cat conftest.er1 >&5
1587 mv -f conftest.er1 conftest.err
1589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1590 test $ac_status = 0; } && {
1591 test -z "$ac_c_werror_flag" ||
1592 test ! -s conftest.err
1593 } && test -s conftest$ac_exeext && {
1594 test "$cross_compiling" = yes ||
1595 $as_test_x conftest$ac_exeext
1596 }; then :
1597 ac_retval=0
1598 else
1599 $as_echo "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1602 ac_retval=1
1604 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1605 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1606 # interfere with the next link command; also delete a directory that is
1607 # left behind by Apple's compiler. We do this before executing the actions.
1608 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1609 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1610 return $ac_retval
1612 } # ac_fn_c_try_link
1614 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1615 # -------------------------------------------------------
1616 # Tests whether HEADER exists and can be compiled using the include files in
1617 # INCLUDES, setting the cache variable VAR accordingly.
1618 ac_fn_c_check_header_compile ()
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1622 $as_echo_n "checking for $2... " >&6; }
1623 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1624 $as_echo_n "(cached) " >&6
1625 else
1626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1627 /* end confdefs.h. */
1629 #include <$2>
1630 _ACEOF
1631 if ac_fn_c_try_compile "$LINENO"; then :
1632 eval "$3=yes"
1633 else
1634 eval "$3=no"
1636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1638 eval ac_res=\$$3
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1640 $as_echo "$ac_res" >&6; }
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1643 } # ac_fn_c_check_header_compile
1645 # ac_fn_c_try_cpp LINENO
1646 # ----------------------
1647 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1648 ac_fn_c_try_cpp ()
1650 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1651 if { { ac_try="$ac_cpp conftest.$ac_ext"
1652 case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655 esac
1656 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657 $as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } >/dev/null && {
1667 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 }; then :
1670 ac_retval=0
1671 else
1672 $as_echo "$as_me: failed program was:" >&5
1673 sed 's/^/| /' conftest.$ac_ext >&5
1675 ac_retval=1
1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678 return $ac_retval
1680 } # ac_fn_c_try_cpp
1682 # ac_fn_c_try_run LINENO
1683 # ----------------------
1684 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1685 # that executables *can* be run.
1686 ac_fn_c_try_run ()
1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1689 if { { ac_try="$ac_link"
1690 case "(($ac_try" in
1691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692 *) ac_try_echo=$ac_try;;
1693 esac
1694 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695 $as_echo "$ac_try_echo"; } >&5
1696 (eval "$ac_link") 2>&5
1697 ac_status=$?
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1700 { { case "(($ac_try" in
1701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1702 *) ac_try_echo=$ac_try;;
1703 esac
1704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1705 $as_echo "$ac_try_echo"; } >&5
1706 (eval "$ac_try") 2>&5
1707 ac_status=$?
1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; }; }; then :
1710 ac_retval=0
1711 else
1712 $as_echo "$as_me: program exited with status $ac_status" >&5
1713 $as_echo "$as_me: failed program was:" >&5
1714 sed 's/^/| /' conftest.$ac_ext >&5
1716 ac_retval=$ac_status
1718 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1719 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1720 return $ac_retval
1722 } # ac_fn_c_try_run
1724 # ac_fn_c_check_func LINENO FUNC VAR
1725 # ----------------------------------
1726 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1727 ac_fn_c_check_func ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1731 $as_echo_n "checking for $2... " >&6; }
1732 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1733 $as_echo_n "(cached) " >&6
1734 else
1735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1736 /* end confdefs.h. */
1737 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1739 #define $2 innocuous_$2
1741 /* System header to define __stub macros and hopefully few prototypes,
1742 which can conflict with char $2 (); below.
1743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1744 <limits.h> exists even on freestanding compilers. */
1746 #ifdef __STDC__
1747 # include <limits.h>
1748 #else
1749 # include <assert.h>
1750 #endif
1752 #undef $2
1754 /* Override any GCC internal prototype to avoid an error.
1755 Use char because int might match the return type of a GCC
1756 builtin and then its argument prototype would still apply. */
1757 #ifdef __cplusplus
1758 extern "C"
1759 #endif
1760 char $2 ();
1761 /* The GNU C library defines this for functions which it implements
1762 to always fail with ENOSYS. Some functions are actually named
1763 something starting with __ and the normal name is an alias. */
1764 #if defined __stub_$2 || defined __stub___$2
1765 choke me
1766 #endif
1769 main ()
1771 return $2 ();
1773 return 0;
1775 _ACEOF
1776 if ac_fn_c_try_link "$LINENO"; then :
1777 eval "$3=yes"
1778 else
1779 eval "$3=no"
1781 rm -f core conftest.err conftest.$ac_objext \
1782 conftest$ac_exeext conftest.$ac_ext
1784 eval ac_res=\$$3
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1786 $as_echo "$ac_res" >&6; }
1787 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1789 } # ac_fn_c_check_func
1791 # ac_fn_cxx_try_cpp LINENO
1792 # ------------------------
1793 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_cxx_try_cpp ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_cpp conftest.$ac_ext"
1798 case "(($ac_try" in
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1801 esac
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1805 ac_status=$?
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } >/dev/null && {
1813 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1814 test ! -s conftest.err
1815 }; then :
1816 ac_retval=0
1817 else
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1821 ac_retval=1
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 return $ac_retval
1826 } # ac_fn_cxx_try_cpp
1828 # ac_fn_cxx_try_link LINENO
1829 # -------------------------
1830 # Try to link conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_cxx_try_link ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext conftest$ac_exeext
1835 if { { ac_try="$ac_link"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_link") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_cxx_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest$ac_exeext && {
1854 test "$cross_compiling" = yes ||
1855 $as_test_x conftest$ac_exeext
1856 }; then :
1857 ac_retval=0
1858 else
1859 $as_echo "$as_me: failed program was:" >&5
1860 sed 's/^/| /' conftest.$ac_ext >&5
1862 ac_retval=1
1864 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1865 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1866 # interfere with the next link command; also delete a directory that is
1867 # left behind by Apple's compiler. We do this before executing the actions.
1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1870 return $ac_retval
1872 } # ac_fn_cxx_try_link
1873 cat >config.log <<_ACEOF
1874 This file contains any messages produced by compilers while
1875 running configure, to aid debugging if configure makes a mistake.
1877 It was created by Intel MIC Offload Plugin $as_me 1.0, which was
1878 generated by GNU Autoconf 2.64. Invocation command line was
1880 $ $0 $@
1882 _ACEOF
1883 exec 5>>config.log
1885 cat <<_ASUNAME
1886 ## --------- ##
1887 ## Platform. ##
1888 ## --------- ##
1890 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1891 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1892 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1893 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1894 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1896 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1897 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1899 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1900 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1901 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1902 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1903 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1904 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1905 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1907 _ASUNAME
1909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1910 for as_dir in $PATH
1912 IFS=$as_save_IFS
1913 test -z "$as_dir" && as_dir=.
1914 $as_echo "PATH: $as_dir"
1915 done
1916 IFS=$as_save_IFS
1918 } >&5
1920 cat >&5 <<_ACEOF
1923 ## ----------- ##
1924 ## Core tests. ##
1925 ## ----------- ##
1927 _ACEOF
1930 # Keep a trace of the command line.
1931 # Strip out --no-create and --no-recursion so they do not pile up.
1932 # Strip out --silent because we don't want to record it for future runs.
1933 # Also quote any args containing shell meta-characters.
1934 # Make two passes to allow for proper duplicate-argument suppression.
1935 ac_configure_args=
1936 ac_configure_args0=
1937 ac_configure_args1=
1938 ac_must_keep_next=false
1939 for ac_pass in 1 2
1941 for ac_arg
1943 case $ac_arg in
1944 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1946 | -silent | --silent | --silen | --sile | --sil)
1947 continue ;;
1948 *\'*)
1949 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1950 esac
1951 case $ac_pass in
1952 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1954 as_fn_append ac_configure_args1 " '$ac_arg'"
1955 if test $ac_must_keep_next = true; then
1956 ac_must_keep_next=false # Got value, back to normal.
1957 else
1958 case $ac_arg in
1959 *=* | --config-cache | -C | -disable-* | --disable-* \
1960 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1961 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1962 | -with-* | --with-* | -without-* | --without-* | --x)
1963 case "$ac_configure_args0 " in
1964 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1965 esac
1967 -* ) ac_must_keep_next=true ;;
1968 esac
1970 as_fn_append ac_configure_args " '$ac_arg'"
1972 esac
1973 done
1974 done
1975 { ac_configure_args0=; unset ac_configure_args0;}
1976 { ac_configure_args1=; unset ac_configure_args1;}
1978 # When interrupted or exit'd, cleanup temporary files, and complete
1979 # config.log. We remove comments because anyway the quotes in there
1980 # would cause problems or look ugly.
1981 # WARNING: Use '\'' to represent an apostrophe within the trap.
1982 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1983 trap 'exit_status=$?
1984 # Save into config.log some information that might help in debugging.
1986 echo
1988 cat <<\_ASBOX
1989 ## ---------------- ##
1990 ## Cache variables. ##
1991 ## ---------------- ##
1992 _ASBOX
1993 echo
1994 # The following way of writing the cache mishandles newlines in values,
1996 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1997 eval ac_val=\$$ac_var
1998 case $ac_val in #(
1999 *${as_nl}*)
2000 case $ac_var in #(
2001 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2002 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2003 esac
2004 case $ac_var in #(
2005 _ | IFS | as_nl) ;; #(
2006 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2007 *) { eval $ac_var=; unset $ac_var;} ;;
2008 esac ;;
2009 esac
2010 done
2011 (set) 2>&1 |
2012 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2013 *${as_nl}ac_space=\ *)
2014 sed -n \
2015 "s/'\''/'\''\\\\'\'''\''/g;
2016 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2017 ;; #(
2019 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2021 esac |
2022 sort
2024 echo
2026 cat <<\_ASBOX
2027 ## ----------------- ##
2028 ## Output variables. ##
2029 ## ----------------- ##
2030 _ASBOX
2031 echo
2032 for ac_var in $ac_subst_vars
2034 eval ac_val=\$$ac_var
2035 case $ac_val in
2036 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2037 esac
2038 $as_echo "$ac_var='\''$ac_val'\''"
2039 done | sort
2040 echo
2042 if test -n "$ac_subst_files"; then
2043 cat <<\_ASBOX
2044 ## ------------------- ##
2045 ## File substitutions. ##
2046 ## ------------------- ##
2047 _ASBOX
2048 echo
2049 for ac_var in $ac_subst_files
2051 eval ac_val=\$$ac_var
2052 case $ac_val in
2053 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2054 esac
2055 $as_echo "$ac_var='\''$ac_val'\''"
2056 done | sort
2057 echo
2060 if test -s confdefs.h; then
2061 cat <<\_ASBOX
2062 ## ----------- ##
2063 ## confdefs.h. ##
2064 ## ----------- ##
2065 _ASBOX
2066 echo
2067 cat confdefs.h
2068 echo
2070 test "$ac_signal" != 0 &&
2071 $as_echo "$as_me: caught signal $ac_signal"
2072 $as_echo "$as_me: exit $exit_status"
2073 } >&5
2074 rm -f core *.core core.conftest.* &&
2075 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2076 exit $exit_status
2078 for ac_signal in 1 2 13 15; do
2079 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2080 done
2081 ac_signal=0
2083 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2084 rm -f -r conftest* confdefs.h
2086 $as_echo "/* confdefs.h */" > confdefs.h
2088 # Predefined preprocessor variables.
2090 cat >>confdefs.h <<_ACEOF
2091 #define PACKAGE_NAME "$PACKAGE_NAME"
2092 _ACEOF
2094 cat >>confdefs.h <<_ACEOF
2095 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2096 _ACEOF
2098 cat >>confdefs.h <<_ACEOF
2099 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2100 _ACEOF
2102 cat >>confdefs.h <<_ACEOF
2103 #define PACKAGE_STRING "$PACKAGE_STRING"
2104 _ACEOF
2106 cat >>confdefs.h <<_ACEOF
2107 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2108 _ACEOF
2110 cat >>confdefs.h <<_ACEOF
2111 #define PACKAGE_URL "$PACKAGE_URL"
2112 _ACEOF
2115 # Let the site file select an alternate cache file if it wants to.
2116 # Prefer an explicitly selected file to automatically selected ones.
2117 ac_site_file1=NONE
2118 ac_site_file2=NONE
2119 if test -n "$CONFIG_SITE"; then
2120 ac_site_file1=$CONFIG_SITE
2121 elif test "x$prefix" != xNONE; then
2122 ac_site_file1=$prefix/share/config.site
2123 ac_site_file2=$prefix/etc/config.site
2124 else
2125 ac_site_file1=$ac_default_prefix/share/config.site
2126 ac_site_file2=$ac_default_prefix/etc/config.site
2128 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2130 test "x$ac_site_file" = xNONE && continue
2131 if test -r "$ac_site_file"; then
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2133 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2134 sed 's/^/| /' "$ac_site_file" >&5
2135 . "$ac_site_file"
2137 done
2139 if test -r "$cache_file"; then
2140 # Some versions of bash will fail to source /dev/null (special
2141 # files actually), so we avoid doing that.
2142 if test -f "$cache_file"; then
2143 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2144 $as_echo "$as_me: loading cache $cache_file" >&6;}
2145 case $cache_file in
2146 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2147 *) . "./$cache_file";;
2148 esac
2150 else
2151 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2152 $as_echo "$as_me: creating cache $cache_file" >&6;}
2153 >$cache_file
2156 # Check that the precious variables saved in the cache have kept the same
2157 # value.
2158 ac_cache_corrupted=false
2159 for ac_var in $ac_precious_vars; do
2160 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2161 eval ac_new_set=\$ac_env_${ac_var}_set
2162 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2163 eval ac_new_val=\$ac_env_${ac_var}_value
2164 case $ac_old_set,$ac_new_set in
2165 set,)
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2167 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2168 ac_cache_corrupted=: ;;
2169 ,set)
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2171 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2172 ac_cache_corrupted=: ;;
2173 ,);;
2175 if test "x$ac_old_val" != "x$ac_new_val"; then
2176 # differences in whitespace do not lead to failure.
2177 ac_old_val_w=`echo x $ac_old_val`
2178 ac_new_val_w=`echo x $ac_new_val`
2179 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2181 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2182 ac_cache_corrupted=:
2183 else
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2185 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2186 eval $ac_var=\$ac_old_val
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2189 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2190 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2191 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2192 fi;;
2193 esac
2194 # Pass precious variables to config.status.
2195 if test "$ac_new_set" = set; then
2196 case $ac_new_val in
2197 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2198 *) ac_arg=$ac_var=$ac_new_val ;;
2199 esac
2200 case " $ac_configure_args " in
2201 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2202 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2203 esac
2205 done
2206 if $ac_cache_corrupted; then
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2208 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2210 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2211 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2213 ## -------------------- ##
2214 ## Main body of script. ##
2215 ## -------------------- ##
2217 ac_ext=c
2218 ac_cpp='$CPP $CPPFLAGS'
2219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2228 ac_aux_dir=
2229 for ac_dir in ../.. "$srcdir"/../..; do
2230 for ac_t in install-sh install.sh shtool; do
2231 if test -f "$ac_dir/$ac_t"; then
2232 ac_aux_dir=$ac_dir
2233 ac_install_sh="$ac_aux_dir/$ac_t -c"
2234 break 2
2236 done
2237 done
2238 if test -z "$ac_aux_dir"; then
2239 as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2242 # These three variables are undocumented and unsupported,
2243 # and are intended to be withdrawn in a future Autoconf release.
2244 # They can cause serious problems if a builder's source tree is in a directory
2245 # whose full name contains unusual characters.
2246 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2247 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2248 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2252 # Make sure we can run config.sub.
2253 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2254 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2257 $as_echo_n "checking build system type... " >&6; }
2258 if test "${ac_cv_build+set}" = set; then :
2259 $as_echo_n "(cached) " >&6
2260 else
2261 ac_build_alias=$build_alias
2262 test "x$ac_build_alias" = x &&
2263 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2264 test "x$ac_build_alias" = x &&
2265 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2266 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2267 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2271 $as_echo "$ac_cv_build" >&6; }
2272 case $ac_cv_build in
2273 *-*-*) ;;
2274 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2275 esac
2276 build=$ac_cv_build
2277 ac_save_IFS=$IFS; IFS='-'
2278 set x $ac_cv_build
2279 shift
2280 build_cpu=$1
2281 build_vendor=$2
2282 shift; shift
2283 # Remember, the first character of IFS is used to create $*,
2284 # except with old shells:
2285 build_os=$*
2286 IFS=$ac_save_IFS
2287 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2291 $as_echo_n "checking host system type... " >&6; }
2292 if test "${ac_cv_host+set}" = set; then :
2293 $as_echo_n "(cached) " >&6
2294 else
2295 if test "x$host_alias" = x; then
2296 ac_cv_host=$ac_cv_build
2297 else
2298 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2299 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2304 $as_echo "$ac_cv_host" >&6; }
2305 case $ac_cv_host in
2306 *-*-*) ;;
2307 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2308 esac
2309 host=$ac_cv_host
2310 ac_save_IFS=$IFS; IFS='-'
2311 set x $ac_cv_host
2312 shift
2313 host_cpu=$1
2314 host_vendor=$2
2315 shift; shift
2316 # Remember, the first character of IFS is used to create $*,
2317 # except with old shells:
2318 host_os=$*
2319 IFS=$ac_save_IFS
2320 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2324 $as_echo_n "checking target system type... " >&6; }
2325 if test "${ac_cv_target+set}" = set; then :
2326 $as_echo_n "(cached) " >&6
2327 else
2328 if test "x$target_alias" = x; then
2329 ac_cv_target=$ac_cv_host
2330 else
2331 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2332 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2337 $as_echo "$ac_cv_target" >&6; }
2338 case $ac_cv_target in
2339 *-*-*) ;;
2340 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2341 esac
2342 target=$ac_cv_target
2343 ac_save_IFS=$IFS; IFS='-'
2344 set x $ac_cv_target
2345 shift
2346 target_cpu=$1
2347 target_vendor=$2
2348 shift; shift
2349 # Remember, the first character of IFS is used to create $*,
2350 # except with old shells:
2351 target_os=$*
2352 IFS=$ac_save_IFS
2353 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2356 # The aliases save the names the user supplied, while $host etc.
2357 # will get canonicalized.
2358 test -n "$target_alias" &&
2359 test "$program_prefix$program_suffix$program_transform_name" = \
2360 NONENONEs,x,x, &&
2361 program_prefix=${target_alias}-
2363 target_alias=${target_alias-$host_alias}
2366 am__api_version='1.11'
2368 # Find a good install program. We prefer a C program (faster),
2369 # so one script is as good as another. But avoid the broken or
2370 # incompatible versions:
2371 # SysV /etc/install, /usr/sbin/install
2372 # SunOS /usr/etc/install
2373 # IRIX /sbin/install
2374 # AIX /bin/install
2375 # AmigaOS /C/install, which installs bootblocks on floppy discs
2376 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2377 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2378 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2379 # OS/2's system install, which has a completely different semantic
2380 # ./install, which can be erroneously created by make from ./install.sh.
2381 # Reject install programs that cannot install multiple files.
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2383 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2384 if test -z "$INSTALL"; then
2385 if test "${ac_cv_path_install+set}" = set; then :
2386 $as_echo_n "(cached) " >&6
2387 else
2388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2389 for as_dir in $PATH
2391 IFS=$as_save_IFS
2392 test -z "$as_dir" && as_dir=.
2393 # Account for people who put trailing slashes in PATH elements.
2394 case $as_dir/ in #((
2395 ./ | .// | /[cC]/* | \
2396 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2397 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2398 /usr/ucb/* ) ;;
2400 # OSF1 and SCO ODT 3.0 have their own names for install.
2401 # Don't use installbsd from OSF since it installs stuff as root
2402 # by default.
2403 for ac_prog in ginstall scoinst install; do
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2406 if test $ac_prog = install &&
2407 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2408 # AIX install. It has an incompatible calling convention.
2410 elif test $ac_prog = install &&
2411 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2412 # program-specific install script used by HP pwplus--don't use.
2414 else
2415 rm -rf conftest.one conftest.two conftest.dir
2416 echo one > conftest.one
2417 echo two > conftest.two
2418 mkdir conftest.dir
2419 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2420 test -s conftest.one && test -s conftest.two &&
2421 test -s conftest.dir/conftest.one &&
2422 test -s conftest.dir/conftest.two
2423 then
2424 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2425 break 3
2429 done
2430 done
2432 esac
2434 done
2435 IFS=$as_save_IFS
2437 rm -rf conftest.one conftest.two conftest.dir
2440 if test "${ac_cv_path_install+set}" = set; then
2441 INSTALL=$ac_cv_path_install
2442 else
2443 # As a last resort, use the slow shell script. Don't cache a
2444 # value for INSTALL within a source directory, because that will
2445 # break other packages using the cache if that directory is
2446 # removed, or if the value is a relative name.
2447 INSTALL=$ac_install_sh
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2451 $as_echo "$INSTALL" >&6; }
2453 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2454 # It thinks the first close brace ends the variable substitution.
2455 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2457 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2459 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2462 $as_echo_n "checking whether build environment is sane... " >&6; }
2463 # Just in case
2464 sleep 1
2465 echo timestamp > conftest.file
2466 # Reject unsafe characters in $srcdir or the absolute working directory
2467 # name. Accept space and tab only in the latter.
2468 am_lf='
2470 case `pwd` in
2471 *[\\\"\#\$\&\'\`$am_lf]*)
2472 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2473 esac
2474 case $srcdir in
2475 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2476 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2477 esac
2479 # Do `set' in a subshell so we don't clobber the current shell's
2480 # arguments. Must try -L first in case configure is actually a
2481 # symlink; some systems play weird games with the mod time of symlinks
2482 # (eg FreeBSD returns the mod time of the symlink's containing
2483 # directory).
2484 if (
2485 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2486 if test "$*" = "X"; then
2487 # -L didn't work.
2488 set X `ls -t "$srcdir/configure" conftest.file`
2490 rm -f conftest.file
2491 if test "$*" != "X $srcdir/configure conftest.file" \
2492 && test "$*" != "X conftest.file $srcdir/configure"; then
2494 # If neither matched, then we have a broken ls. This can happen
2495 # if, for instance, CONFIG_SHELL is bash and it inherits a
2496 # broken ls alias from the environment. This has actually
2497 # happened. Such a system could not be considered "sane".
2498 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2499 alias in your environment" "$LINENO" 5
2502 test "$2" = conftest.file
2504 then
2505 # Ok.
2507 else
2508 as_fn_error "newly created file is older than distributed files!
2509 Check your system clock" "$LINENO" 5
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2512 $as_echo "yes" >&6; }
2513 test "$program_prefix" != NONE &&
2514 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2515 # Use a double $ so make ignores it.
2516 test "$program_suffix" != NONE &&
2517 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2518 # Double any \ or $.
2519 # By default was `s,x,x', remove it if useless.
2520 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2521 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2523 # expand $ac_aux_dir to an absolute path
2524 am_aux_dir=`cd $ac_aux_dir && pwd`
2526 if test x"${MISSING+set}" != xset; then
2527 case $am_aux_dir in
2528 *\ * | *\ *)
2529 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2531 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2532 esac
2534 # Use eval to expand $SHELL
2535 if eval "$MISSING --run true"; then
2536 am_missing_run="$MISSING --run "
2537 else
2538 am_missing_run=
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2540 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2543 if test x"${install_sh}" != xset; then
2544 case $am_aux_dir in
2545 *\ * | *\ *)
2546 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2548 install_sh="\${SHELL} $am_aux_dir/install-sh"
2549 esac
2552 # Installed binaries are usually stripped using `strip' when the user
2553 # run `make install-strip'. However `strip' might not be the right
2554 # tool to use in cross-compilation environments, therefore Automake
2555 # will honor the `STRIP' environment variable to overrule this program.
2556 if test "$cross_compiling" != no; then
2557 if test -n "$ac_tool_prefix"; then
2558 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2559 set dummy ${ac_tool_prefix}strip; ac_word=$2
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2561 $as_echo_n "checking for $ac_word... " >&6; }
2562 if test "${ac_cv_prog_STRIP+set}" = set; then :
2563 $as_echo_n "(cached) " >&6
2564 else
2565 if test -n "$STRIP"; then
2566 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2567 else
2568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2569 for as_dir in $PATH
2571 IFS=$as_save_IFS
2572 test -z "$as_dir" && as_dir=.
2573 for ac_exec_ext in '' $ac_executable_extensions; do
2574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2575 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2577 break 2
2579 done
2580 done
2581 IFS=$as_save_IFS
2585 STRIP=$ac_cv_prog_STRIP
2586 if test -n "$STRIP"; then
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2588 $as_echo "$STRIP" >&6; }
2589 else
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2591 $as_echo "no" >&6; }
2596 if test -z "$ac_cv_prog_STRIP"; then
2597 ac_ct_STRIP=$STRIP
2598 # Extract the first word of "strip", so it can be a program name with args.
2599 set dummy strip; ac_word=$2
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2601 $as_echo_n "checking for $ac_word... " >&6; }
2602 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2603 $as_echo_n "(cached) " >&6
2604 else
2605 if test -n "$ac_ct_STRIP"; then
2606 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2607 else
2608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609 for as_dir in $PATH
2611 IFS=$as_save_IFS
2612 test -z "$as_dir" && as_dir=.
2613 for ac_exec_ext in '' $ac_executable_extensions; do
2614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2615 ac_cv_prog_ac_ct_STRIP="strip"
2616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 break 2
2619 done
2620 done
2621 IFS=$as_save_IFS
2625 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2626 if test -n "$ac_ct_STRIP"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2628 $as_echo "$ac_ct_STRIP" >&6; }
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2631 $as_echo "no" >&6; }
2634 if test "x$ac_ct_STRIP" = x; then
2635 STRIP=":"
2636 else
2637 case $cross_compiling:$ac_tool_warned in
2638 yes:)
2639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2641 ac_tool_warned=yes ;;
2642 esac
2643 STRIP=$ac_ct_STRIP
2645 else
2646 STRIP="$ac_cv_prog_STRIP"
2650 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2653 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2654 if test -z "$MKDIR_P"; then
2655 if test "${ac_cv_path_mkdir+set}" = set; then :
2656 $as_echo_n "(cached) " >&6
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_prog in mkdir gmkdir; do
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2666 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2667 'mkdir (GNU coreutils) '* | \
2668 'mkdir (coreutils) '* | \
2669 'mkdir (fileutils) '4.1*)
2670 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2671 break 3;;
2672 esac
2673 done
2674 done
2675 done
2676 IFS=$as_save_IFS
2680 if test "${ac_cv_path_mkdir+set}" = set; then
2681 MKDIR_P="$ac_cv_path_mkdir -p"
2682 else
2683 # As a last resort, use the slow shell script. Don't cache a
2684 # value for MKDIR_P within a source directory, because that will
2685 # break other packages using the cache if that directory is
2686 # removed, or if the value is a relative name.
2687 test -d ./--version && rmdir ./--version
2688 MKDIR_P="$ac_install_sh -d"
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2692 $as_echo "$MKDIR_P" >&6; }
2694 mkdir_p="$MKDIR_P"
2695 case $mkdir_p in
2696 [\\/$]* | ?:[\\/]*) ;;
2697 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2698 esac
2700 for ac_prog in gawk mawk nawk awk
2702 # Extract the first word of "$ac_prog", so it can be a program name with args.
2703 set dummy $ac_prog; ac_word=$2
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2705 $as_echo_n "checking for $ac_word... " >&6; }
2706 if test "${ac_cv_prog_AWK+set}" = set; then :
2707 $as_echo_n "(cached) " >&6
2708 else
2709 if test -n "$AWK"; then
2710 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2711 else
2712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2713 for as_dir in $PATH
2715 IFS=$as_save_IFS
2716 test -z "$as_dir" && as_dir=.
2717 for ac_exec_ext in '' $ac_executable_extensions; do
2718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2719 ac_cv_prog_AWK="$ac_prog"
2720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2721 break 2
2723 done
2724 done
2725 IFS=$as_save_IFS
2729 AWK=$ac_cv_prog_AWK
2730 if test -n "$AWK"; then
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2732 $as_echo "$AWK" >&6; }
2733 else
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2735 $as_echo "no" >&6; }
2739 test -n "$AWK" && break
2740 done
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2743 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2744 set x ${MAKE-make}
2745 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2746 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2747 $as_echo_n "(cached) " >&6
2748 else
2749 cat >conftest.make <<\_ACEOF
2750 SHELL = /bin/sh
2751 all:
2752 @echo '@@@%%%=$(MAKE)=@@@%%%'
2753 _ACEOF
2754 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2755 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2756 *@@@%%%=?*=@@@%%%*)
2757 eval ac_cv_prog_make_${ac_make}_set=yes;;
2759 eval ac_cv_prog_make_${ac_make}_set=no;;
2760 esac
2761 rm -f conftest.make
2763 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2765 $as_echo "yes" >&6; }
2766 SET_MAKE=
2767 else
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2770 SET_MAKE="MAKE=${MAKE-make}"
2773 rm -rf .tst 2>/dev/null
2774 mkdir .tst 2>/dev/null
2775 if test -d .tst; then
2776 am__leading_dot=.
2777 else
2778 am__leading_dot=_
2780 rmdir .tst 2>/dev/null
2782 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2783 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2784 # is not polluted with repeated "-I."
2785 am__isrc=' -I$(srcdir)'
2786 # test to see if srcdir already configured
2787 if test -f $srcdir/config.status; then
2788 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2792 # test whether we have cygpath
2793 if test -z "$CYGPATH_W"; then
2794 if (cygpath --version) >/dev/null 2>/dev/null; then
2795 CYGPATH_W='cygpath -w'
2796 else
2797 CYGPATH_W=echo
2802 # Define the identity of the package.
2803 PACKAGE='libgomp-plugin-intelmic'
2804 VERSION='1.0'
2807 cat >>confdefs.h <<_ACEOF
2808 #define PACKAGE "$PACKAGE"
2809 _ACEOF
2812 cat >>confdefs.h <<_ACEOF
2813 #define VERSION "$VERSION"
2814 _ACEOF
2816 # Some tools Automake needs.
2818 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2821 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2824 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2827 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2830 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2832 # We need awk for the "check" target. The system "awk" is bad on
2833 # some platforms.
2834 # Always define AMTAR for backward compatibility. Yes, it's still used
2835 # in the wild :-( We should find a proper way to deprecate it ...
2836 AMTAR='$${TAR-tar}'
2838 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2847 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2848 # Check whether --enable-maintainer-mode was given.
2849 if test "${enable_maintainer_mode+set}" = set; then :
2850 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2851 else
2852 USE_MAINTAINER_MODE=no
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2856 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2857 if test $USE_MAINTAINER_MODE = yes; then
2858 MAINTAINER_MODE_TRUE=
2859 MAINTAINER_MODE_FALSE='#'
2860 else
2861 MAINTAINER_MODE_TRUE='#'
2862 MAINTAINER_MODE_FALSE=
2865 MAINT=$MAINTAINER_MODE_TRUE
2869 ac_ext=c
2870 ac_cpp='$CPP $CPPFLAGS'
2871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2874 if test -n "$ac_tool_prefix"; then
2875 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2876 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2878 $as_echo_n "checking for $ac_word... " >&6; }
2879 if test "${ac_cv_prog_CC+set}" = set; then :
2880 $as_echo_n "(cached) " >&6
2881 else
2882 if test -n "$CC"; then
2883 ac_cv_prog_CC="$CC" # Let the user override the test.
2884 else
2885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2886 for as_dir in $PATH
2888 IFS=$as_save_IFS
2889 test -z "$as_dir" && as_dir=.
2890 for ac_exec_ext in '' $ac_executable_extensions; do
2891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2892 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2894 break 2
2896 done
2897 done
2898 IFS=$as_save_IFS
2902 CC=$ac_cv_prog_CC
2903 if test -n "$CC"; then
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2905 $as_echo "$CC" >&6; }
2906 else
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2908 $as_echo "no" >&6; }
2913 if test -z "$ac_cv_prog_CC"; then
2914 ac_ct_CC=$CC
2915 # Extract the first word of "gcc", so it can be a program name with args.
2916 set dummy gcc; ac_word=$2
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 $as_echo_n "checking for $ac_word... " >&6; }
2919 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2921 else
2922 if test -n "$ac_ct_CC"; then
2923 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2928 IFS=$as_save_IFS
2929 test -z "$as_dir" && as_dir=.
2930 for ac_exec_ext in '' $ac_executable_extensions; do
2931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2932 ac_cv_prog_ac_ct_CC="gcc"
2933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2934 break 2
2936 done
2937 done
2938 IFS=$as_save_IFS
2942 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2943 if test -n "$ac_ct_CC"; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2945 $as_echo "$ac_ct_CC" >&6; }
2946 else
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2948 $as_echo "no" >&6; }
2951 if test "x$ac_ct_CC" = x; then
2952 CC=""
2953 else
2954 case $cross_compiling:$ac_tool_warned in
2955 yes:)
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2958 ac_tool_warned=yes ;;
2959 esac
2960 CC=$ac_ct_CC
2962 else
2963 CC="$ac_cv_prog_CC"
2966 if test -z "$CC"; then
2967 if test -n "$ac_tool_prefix"; then
2968 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2969 set dummy ${ac_tool_prefix}cc; ac_word=$2
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2971 $as_echo_n "checking for $ac_word... " >&6; }
2972 if test "${ac_cv_prog_CC+set}" = set; then :
2973 $as_echo_n "(cached) " >&6
2974 else
2975 if test -n "$CC"; then
2976 ac_cv_prog_CC="$CC" # Let the user override the test.
2977 else
2978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2979 for as_dir in $PATH
2981 IFS=$as_save_IFS
2982 test -z "$as_dir" && as_dir=.
2983 for ac_exec_ext in '' $ac_executable_extensions; do
2984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2985 ac_cv_prog_CC="${ac_tool_prefix}cc"
2986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 break 2
2989 done
2990 done
2991 IFS=$as_save_IFS
2995 CC=$ac_cv_prog_CC
2996 if test -n "$CC"; then
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2998 $as_echo "$CC" >&6; }
2999 else
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3001 $as_echo "no" >&6; }
3007 if test -z "$CC"; then
3008 # Extract the first word of "cc", so it can be a program name with args.
3009 set dummy cc; ac_word=$2
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3011 $as_echo_n "checking for $ac_word... " >&6; }
3012 if test "${ac_cv_prog_CC+set}" = set; then :
3013 $as_echo_n "(cached) " >&6
3014 else
3015 if test -n "$CC"; then
3016 ac_cv_prog_CC="$CC" # Let the user override the test.
3017 else
3018 ac_prog_rejected=no
3019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3020 for as_dir in $PATH
3022 IFS=$as_save_IFS
3023 test -z "$as_dir" && as_dir=.
3024 for ac_exec_ext in '' $ac_executable_extensions; do
3025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3026 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3027 ac_prog_rejected=yes
3028 continue
3030 ac_cv_prog_CC="cc"
3031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3034 done
3035 done
3036 IFS=$as_save_IFS
3038 if test $ac_prog_rejected = yes; then
3039 # We found a bogon in the path, so make sure we never use it.
3040 set dummy $ac_cv_prog_CC
3041 shift
3042 if test $# != 0; then
3043 # We chose a different compiler from the bogus one.
3044 # However, it has the same basename, so the bogon will be chosen
3045 # first if we set CC to just the basename; use the full file name.
3046 shift
3047 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3052 CC=$ac_cv_prog_CC
3053 if test -n "$CC"; then
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3055 $as_echo "$CC" >&6; }
3056 else
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3058 $as_echo "no" >&6; }
3063 if test -z "$CC"; then
3064 if test -n "$ac_tool_prefix"; then
3065 for ac_prog in cl.exe
3067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3070 $as_echo_n "checking for $ac_word... " >&6; }
3071 if test "${ac_cv_prog_CC+set}" = set; then :
3072 $as_echo_n "(cached) " >&6
3073 else
3074 if test -n "$CC"; then
3075 ac_cv_prog_CC="$CC" # Let the user override the test.
3076 else
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3080 IFS=$as_save_IFS
3081 test -z "$as_dir" && as_dir=.
3082 for ac_exec_ext in '' $ac_executable_extensions; do
3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3084 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 break 2
3088 done
3089 done
3090 IFS=$as_save_IFS
3094 CC=$ac_cv_prog_CC
3095 if test -n "$CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097 $as_echo "$CC" >&6; }
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3104 test -n "$CC" && break
3105 done
3107 if test -z "$CC"; then
3108 ac_ct_CC=$CC
3109 for ac_prog in cl.exe
3111 # Extract the first word of "$ac_prog", so it can be a program name with args.
3112 set dummy $ac_prog; ac_word=$2
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3114 $as_echo_n "checking for $ac_word... " >&6; }
3115 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3116 $as_echo_n "(cached) " >&6
3117 else
3118 if test -n "$ac_ct_CC"; then
3119 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3120 else
3121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3122 for as_dir in $PATH
3124 IFS=$as_save_IFS
3125 test -z "$as_dir" && as_dir=.
3126 for ac_exec_ext in '' $ac_executable_extensions; do
3127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3128 ac_cv_prog_ac_ct_CC="$ac_prog"
3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3130 break 2
3132 done
3133 done
3134 IFS=$as_save_IFS
3138 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3139 if test -n "$ac_ct_CC"; then
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3141 $as_echo "$ac_ct_CC" >&6; }
3142 else
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3148 test -n "$ac_ct_CC" && break
3149 done
3151 if test "x$ac_ct_CC" = x; then
3152 CC=""
3153 else
3154 case $cross_compiling:$ac_tool_warned in
3155 yes:)
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3158 ac_tool_warned=yes ;;
3159 esac
3160 CC=$ac_ct_CC
3167 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3169 as_fn_error "no acceptable C compiler found in \$PATH
3170 See \`config.log' for more details." "$LINENO" 5; }
3172 # Provide some information about the compiler.
3173 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3174 set X $ac_compile
3175 ac_compiler=$2
3176 for ac_option in --version -v -V -qversion; do
3177 { { ac_try="$ac_compiler $ac_option >&5"
3178 case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3181 esac
3182 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3183 $as_echo "$ac_try_echo"; } >&5
3184 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3185 ac_status=$?
3186 if test -s conftest.err; then
3187 sed '10a\
3188 ... rest of stderr output deleted ...
3189 10q' conftest.err >conftest.er1
3190 cat conftest.er1 >&5
3191 rm -f conftest.er1 conftest.err
3193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3194 test $ac_status = 0; }
3195 done
3197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3198 /* end confdefs.h. */
3201 main ()
3205 return 0;
3207 _ACEOF
3208 ac_clean_files_save=$ac_clean_files
3209 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3210 # Try to create an executable without -o first, disregard a.out.
3211 # It will help us diagnose broken compilers, and finding out an intuition
3212 # of exeext.
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3214 $as_echo_n "checking for C compiler default output file name... " >&6; }
3215 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3217 # The possible output files:
3218 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3220 ac_rmfiles=
3221 for ac_file in $ac_files
3223 case $ac_file in
3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3225 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3226 esac
3227 done
3228 rm -f $ac_rmfiles
3230 if { { ac_try="$ac_link_default"
3231 case "(($ac_try" in
3232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3233 *) ac_try_echo=$ac_try;;
3234 esac
3235 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3236 $as_echo "$ac_try_echo"; } >&5
3237 (eval "$ac_link_default") 2>&5
3238 ac_status=$?
3239 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3240 test $ac_status = 0; }; then :
3241 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3242 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3243 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3244 # so that the user can short-circuit this test for compilers unknown to
3245 # Autoconf.
3246 for ac_file in $ac_files ''
3248 test -f "$ac_file" || continue
3249 case $ac_file in
3250 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3252 [ab].out )
3253 # We found the default executable, but exeext='' is most
3254 # certainly right.
3255 break;;
3256 *.* )
3257 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3258 then :; else
3259 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3261 # We set ac_cv_exeext here because the later test for it is not
3262 # safe: cross compilers may not add the suffix if given an `-o'
3263 # argument, so we may need to know it at that point already.
3264 # Even if this section looks crufty: it has the advantage of
3265 # actually working.
3266 break;;
3268 break;;
3269 esac
3270 done
3271 test "$ac_cv_exeext" = no && ac_cv_exeext=
3273 else
3274 ac_file=''
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3277 $as_echo "$ac_file" >&6; }
3278 if test -z "$ac_file"; then :
3279 $as_echo "$as_me: failed program was:" >&5
3280 sed 's/^/| /' conftest.$ac_ext >&5
3282 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3284 { as_fn_set_status 77
3285 as_fn_error "C compiler cannot create executables
3286 See \`config.log' for more details." "$LINENO" 5; }; }
3288 ac_exeext=$ac_cv_exeext
3290 # Check that the compiler produces executables we can run. If not, either
3291 # the compiler is broken, or we cross compile.
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3293 $as_echo_n "checking whether the C compiler works... " >&6; }
3294 # If not cross compiling, check that we can run a simple program.
3295 if test "$cross_compiling" != yes; then
3296 if { ac_try='./$ac_file'
3297 { { case "(($ac_try" in
3298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3299 *) ac_try_echo=$ac_try;;
3300 esac
3301 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3302 $as_echo "$ac_try_echo"; } >&5
3303 (eval "$ac_try") 2>&5
3304 ac_status=$?
3305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3306 test $ac_status = 0; }; }; then
3307 cross_compiling=no
3308 else
3309 if test "$cross_compiling" = maybe; then
3310 cross_compiling=yes
3311 else
3312 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3313 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3314 as_fn_error "cannot run C compiled programs.
3315 If you meant to cross compile, use \`--host'.
3316 See \`config.log' for more details." "$LINENO" 5; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321 $as_echo "yes" >&6; }
3323 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3324 ac_clean_files=$ac_clean_files_save
3325 # Check that the compiler produces executables we can run. If not, either
3326 # the compiler is broken, or we cross compile.
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328 $as_echo_n "checking whether we are cross compiling... " >&6; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3330 $as_echo "$cross_compiling" >&6; }
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3333 $as_echo_n "checking for suffix of executables... " >&6; }
3334 if { { ac_try="$ac_link"
3335 case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338 esac
3339 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340 $as_echo "$ac_try_echo"; } >&5
3341 (eval "$ac_link") 2>&5
3342 ac_status=$?
3343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
3345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3346 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3347 # work properly (i.e., refer to `conftest.exe'), while it won't with
3348 # `rm'.
3349 for ac_file in conftest.exe conftest conftest.*; do
3350 test -f "$ac_file" || continue
3351 case $ac_file in
3352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3354 break;;
3355 * ) break;;
3356 esac
3357 done
3358 else
3359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3360 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3361 as_fn_error "cannot compute suffix of executables: cannot compile and link
3362 See \`config.log' for more details." "$LINENO" 5; }
3364 rm -f conftest$ac_cv_exeext
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3366 $as_echo "$ac_cv_exeext" >&6; }
3368 rm -f conftest.$ac_ext
3369 EXEEXT=$ac_cv_exeext
3370 ac_exeext=$EXEEXT
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3372 $as_echo_n "checking for suffix of object files... " >&6; }
3373 if test "${ac_cv_objext+set}" = set; then :
3374 $as_echo_n "(cached) " >&6
3375 else
3376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3377 /* end confdefs.h. */
3380 main ()
3384 return 0;
3386 _ACEOF
3387 rm -f conftest.o conftest.obj
3388 if { { ac_try="$ac_compile"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_compile") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; then :
3399 for ac_file in conftest.o conftest.obj conftest.*; do
3400 test -f "$ac_file" || continue;
3401 case $ac_file in
3402 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3403 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3404 break;;
3405 esac
3406 done
3407 else
3408 $as_echo "$as_me: failed program was:" >&5
3409 sed 's/^/| /' conftest.$ac_ext >&5
3411 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3412 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3413 as_fn_error "cannot compute suffix of object files: cannot compile
3414 See \`config.log' for more details." "$LINENO" 5; }
3416 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3419 $as_echo "$ac_cv_objext" >&6; }
3420 OBJEXT=$ac_cv_objext
3421 ac_objext=$OBJEXT
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3423 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3424 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3425 $as_echo_n "(cached) " >&6
3426 else
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3431 main ()
3433 #ifndef __GNUC__
3434 choke me
3435 #endif
3438 return 0;
3440 _ACEOF
3441 if ac_fn_c_try_compile "$LINENO"; then :
3442 ac_compiler_gnu=yes
3443 else
3444 ac_compiler_gnu=no
3446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3451 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3452 if test $ac_compiler_gnu = yes; then
3453 GCC=yes
3454 else
3455 GCC=
3457 ac_test_CFLAGS=${CFLAGS+set}
3458 ac_save_CFLAGS=$CFLAGS
3459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3460 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3461 if test "${ac_cv_prog_cc_g+set}" = set; then :
3462 $as_echo_n "(cached) " >&6
3463 else
3464 ac_save_c_werror_flag=$ac_c_werror_flag
3465 ac_c_werror_flag=yes
3466 ac_cv_prog_cc_g=no
3467 CFLAGS="-g"
3468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3469 /* end confdefs.h. */
3472 main ()
3476 return 0;
3478 _ACEOF
3479 if ac_fn_c_try_compile "$LINENO"; then :
3480 ac_cv_prog_cc_g=yes
3481 else
3482 CFLAGS=""
3483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3484 /* end confdefs.h. */
3487 main ()
3491 return 0;
3493 _ACEOF
3494 if ac_fn_c_try_compile "$LINENO"; then :
3496 else
3497 ac_c_werror_flag=$ac_save_c_werror_flag
3498 CFLAGS="-g"
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3503 main ()
3507 return 0;
3509 _ACEOF
3510 if ac_fn_c_try_compile "$LINENO"; then :
3511 ac_cv_prog_cc_g=yes
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3518 ac_c_werror_flag=$ac_save_c_werror_flag
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3521 $as_echo "$ac_cv_prog_cc_g" >&6; }
3522 if test "$ac_test_CFLAGS" = set; then
3523 CFLAGS=$ac_save_CFLAGS
3524 elif test $ac_cv_prog_cc_g = yes; then
3525 if test "$GCC" = yes; then
3526 CFLAGS="-g -O2"
3527 else
3528 CFLAGS="-g"
3530 else
3531 if test "$GCC" = yes; then
3532 CFLAGS="-O2"
3533 else
3534 CFLAGS=
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3538 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3539 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3541 else
3542 ac_cv_prog_cc_c89=no
3543 ac_save_CC=$CC
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3545 /* end confdefs.h. */
3546 #include <stdarg.h>
3547 #include <stdio.h>
3548 #include <sys/types.h>
3549 #include <sys/stat.h>
3550 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3551 struct buf { int x; };
3552 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3553 static char *e (p, i)
3554 char **p;
3555 int i;
3557 return p[i];
3559 static char *f (char * (*g) (char **, int), char **p, ...)
3561 char *s;
3562 va_list v;
3563 va_start (v,p);
3564 s = g (p, va_arg (v,int));
3565 va_end (v);
3566 return s;
3569 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3570 function prototypes and stuff, but not '\xHH' hex character constants.
3571 These don't provoke an error unfortunately, instead are silently treated
3572 as 'x'. The following induces an error, until -std is added to get
3573 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3574 array size at least. It's necessary to write '\x00'==0 to get something
3575 that's true only with -std. */
3576 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3578 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3579 inside strings and character constants. */
3580 #define FOO(x) 'x'
3581 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3583 int test (int i, double x);
3584 struct s1 {int (*f) (int a);};
3585 struct s2 {int (*f) (double a);};
3586 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3587 int argc;
3588 char **argv;
3590 main ()
3592 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3594 return 0;
3596 _ACEOF
3597 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3598 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3600 CC="$ac_save_CC $ac_arg"
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602 ac_cv_prog_cc_c89=$ac_arg
3604 rm -f core conftest.err conftest.$ac_objext
3605 test "x$ac_cv_prog_cc_c89" != "xno" && break
3606 done
3607 rm -f conftest.$ac_ext
3608 CC=$ac_save_CC
3611 # AC_CACHE_VAL
3612 case "x$ac_cv_prog_cc_c89" in
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3615 $as_echo "none needed" >&6; } ;;
3616 xno)
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3618 $as_echo "unsupported" >&6; } ;;
3620 CC="$CC $ac_cv_prog_cc_c89"
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3622 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3623 esac
3624 if test "x$ac_cv_prog_cc_c89" != xno; then :
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633 DEPDIR="${am__leading_dot}deps"
3635 ac_config_commands="$ac_config_commands depfiles"
3638 am_make=${MAKE-make}
3639 cat > confinc << 'END'
3640 am__doit:
3641 @echo this is the am__doit target
3642 .PHONY: am__doit
3644 # If we don't find an include directive, just comment out the code.
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3646 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3647 am__include="#"
3648 am__quote=
3649 _am_result=none
3650 # First try GNU make style include.
3651 echo "include confinc" > confmf
3652 # Ignore all kinds of additional output from `make'.
3653 case `$am_make -s -f confmf 2> /dev/null` in #(
3654 *the\ am__doit\ target*)
3655 am__include=include
3656 am__quote=
3657 _am_result=GNU
3659 esac
3660 # Now try BSD make style include.
3661 if test "$am__include" = "#"; then
3662 echo '.include "confinc"' > confmf
3663 case `$am_make -s -f confmf 2> /dev/null` in #(
3664 *the\ am__doit\ target*)
3665 am__include=.include
3666 am__quote="\""
3667 _am_result=BSD
3669 esac
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3674 $as_echo "$_am_result" >&6; }
3675 rm -f confinc confmf
3677 # Check whether --enable-dependency-tracking was given.
3678 if test "${enable_dependency_tracking+set}" = set; then :
3679 enableval=$enable_dependency_tracking;
3682 if test "x$enable_dependency_tracking" != xno; then
3683 am_depcomp="$ac_aux_dir/depcomp"
3684 AMDEPBACKSLASH='\'
3685 am__nodep='_no'
3687 if test "x$enable_dependency_tracking" != xno; then
3688 AMDEP_TRUE=
3689 AMDEP_FALSE='#'
3690 else
3691 AMDEP_TRUE='#'
3692 AMDEP_FALSE=
3697 depcc="$CC" am_compiler_list=
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3700 $as_echo_n "checking dependency style of $depcc... " >&6; }
3701 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3702 $as_echo_n "(cached) " >&6
3703 else
3704 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3705 # We make a subdir and do the tests there. Otherwise we can end up
3706 # making bogus files that we don't know about and never remove. For
3707 # instance it was reported that on HP-UX the gcc test will end up
3708 # making a dummy file named `D' -- because `-MD' means `put the output
3709 # in D'.
3710 rm -rf conftest.dir
3711 mkdir conftest.dir
3712 # Copy depcomp to subdir because otherwise we won't find it if we're
3713 # using a relative directory.
3714 cp "$am_depcomp" conftest.dir
3715 cd conftest.dir
3716 # We will build objects and dependencies in a subdirectory because
3717 # it helps to detect inapplicable dependency modes. For instance
3718 # both Tru64's cc and ICC support -MD to output dependencies as a
3719 # side effect of compilation, but ICC will put the dependencies in
3720 # the current directory while Tru64 will put them in the object
3721 # directory.
3722 mkdir sub
3724 am_cv_CC_dependencies_compiler_type=none
3725 if test "$am_compiler_list" = ""; then
3726 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3728 am__universal=false
3729 case " $depcc " in #(
3730 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3731 esac
3733 for depmode in $am_compiler_list; do
3734 # Setup a source with many dependencies, because some compilers
3735 # like to wrap large dependency lists on column 80 (with \), and
3736 # we should not choose a depcomp mode which is confused by this.
3738 # We need to recreate these files for each test, as the compiler may
3739 # overwrite some of them when testing with obscure command lines.
3740 # This happens at least with the AIX C compiler.
3741 : > sub/conftest.c
3742 for i in 1 2 3 4 5 6; do
3743 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3744 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3745 # Solaris 8's {/usr,}/bin/sh.
3746 touch sub/conftst$i.h
3747 done
3748 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3750 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3751 # mode. It turns out that the SunPro C++ compiler does not properly
3752 # handle `-M -o', and we need to detect this. Also, some Intel
3753 # versions had trouble with output in subdirs
3754 am__obj=sub/conftest.${OBJEXT-o}
3755 am__minus_obj="-o $am__obj"
3756 case $depmode in
3757 gcc)
3758 # This depmode causes a compiler race in universal mode.
3759 test "$am__universal" = false || continue
3761 nosideeffect)
3762 # after this tag, mechanisms are not by side-effect, so they'll
3763 # only be used when explicitly requested
3764 if test "x$enable_dependency_tracking" = xyes; then
3765 continue
3766 else
3767 break
3770 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3771 # This compiler won't grok `-c -o', but also, the minuso test has
3772 # not run yet. These depmodes are late enough in the game, and
3773 # so weak that their functioning should not be impacted.
3774 am__obj=conftest.${OBJEXT-o}
3775 am__minus_obj=
3777 none) break ;;
3778 esac
3779 if depmode=$depmode \
3780 source=sub/conftest.c object=$am__obj \
3781 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3782 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3783 >/dev/null 2>conftest.err &&
3784 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3785 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3786 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3787 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3788 # icc doesn't choke on unknown options, it will just issue warnings
3789 # or remarks (even with -Werror). So we grep stderr for any message
3790 # that says an option was ignored or not supported.
3791 # When given -MP, icc 7.0 and 7.1 complain thusly:
3792 # icc: Command line warning: ignoring option '-M'; no argument required
3793 # The diagnosis changed in icc 8.0:
3794 # icc: Command line remark: option '-MP' not supported
3795 if (grep 'ignoring option' conftest.err ||
3796 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3797 am_cv_CC_dependencies_compiler_type=$depmode
3798 break
3801 done
3803 cd ..
3804 rm -rf conftest.dir
3805 else
3806 am_cv_CC_dependencies_compiler_type=none
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3811 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3812 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3815 test "x$enable_dependency_tracking" != xno \
3816 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3817 am__fastdepCC_TRUE=
3818 am__fastdepCC_FALSE='#'
3819 else
3820 am__fastdepCC_TRUE='#'
3821 am__fastdepCC_FALSE=
3825 ac_ext=cpp
3826 ac_cpp='$CXXCPP $CPPFLAGS'
3827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3830 if test -z "$CXX"; then
3831 if test -n "$CCC"; then
3832 CXX=$CCC
3833 else
3834 if test -n "$ac_tool_prefix"; then
3835 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3837 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3838 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3840 $as_echo_n "checking for $ac_word... " >&6; }
3841 if test "${ac_cv_prog_CXX+set}" = set; then :
3842 $as_echo_n "(cached) " >&6
3843 else
3844 if test -n "$CXX"; then
3845 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3846 else
3847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848 for as_dir in $PATH
3850 IFS=$as_save_IFS
3851 test -z "$as_dir" && as_dir=.
3852 for ac_exec_ext in '' $ac_executable_extensions; do
3853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3854 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3856 break 2
3858 done
3859 done
3860 IFS=$as_save_IFS
3864 CXX=$ac_cv_prog_CXX
3865 if test -n "$CXX"; then
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3867 $as_echo "$CXX" >&6; }
3868 else
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3870 $as_echo "no" >&6; }
3874 test -n "$CXX" && break
3875 done
3877 if test -z "$CXX"; then
3878 ac_ct_CXX=$CXX
3879 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3881 # Extract the first word of "$ac_prog", so it can be a program name with args.
3882 set dummy $ac_prog; ac_word=$2
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3884 $as_echo_n "checking for $ac_word... " >&6; }
3885 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3886 $as_echo_n "(cached) " >&6
3887 else
3888 if test -n "$ac_ct_CXX"; then
3889 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3890 else
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3892 for as_dir in $PATH
3894 IFS=$as_save_IFS
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3898 ac_cv_prog_ac_ct_CXX="$ac_prog"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3900 break 2
3902 done
3903 done
3904 IFS=$as_save_IFS
3908 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3909 if test -n "$ac_ct_CXX"; then
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3911 $as_echo "$ac_ct_CXX" >&6; }
3912 else
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3914 $as_echo "no" >&6; }
3918 test -n "$ac_ct_CXX" && break
3919 done
3921 if test "x$ac_ct_CXX" = x; then
3922 CXX="g++"
3923 else
3924 case $cross_compiling:$ac_tool_warned in
3925 yes:)
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3927 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3928 ac_tool_warned=yes ;;
3929 esac
3930 CXX=$ac_ct_CXX
3936 # Provide some information about the compiler.
3937 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3938 set X $ac_compile
3939 ac_compiler=$2
3940 for ac_option in --version -v -V -qversion; do
3941 { { ac_try="$ac_compiler $ac_option >&5"
3942 case "(($ac_try" in
3943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3944 *) ac_try_echo=$ac_try;;
3945 esac
3946 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3947 $as_echo "$ac_try_echo"; } >&5
3948 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3949 ac_status=$?
3950 if test -s conftest.err; then
3951 sed '10a\
3952 ... rest of stderr output deleted ...
3953 10q' conftest.err >conftest.er1
3954 cat conftest.er1 >&5
3955 rm -f conftest.er1 conftest.err
3957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3958 test $ac_status = 0; }
3959 done
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3962 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3963 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3964 $as_echo_n "(cached) " >&6
3965 else
3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967 /* end confdefs.h. */
3970 main ()
3972 #ifndef __GNUC__
3973 choke me
3974 #endif
3977 return 0;
3979 _ACEOF
3980 if ac_fn_cxx_try_compile "$LINENO"; then :
3981 ac_compiler_gnu=yes
3982 else
3983 ac_compiler_gnu=no
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3990 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3991 if test $ac_compiler_gnu = yes; then
3992 GXX=yes
3993 else
3994 GXX=
3996 ac_test_CXXFLAGS=${CXXFLAGS+set}
3997 ac_save_CXXFLAGS=$CXXFLAGS
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3999 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4000 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4001 $as_echo_n "(cached) " >&6
4002 else
4003 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4004 ac_cxx_werror_flag=yes
4005 ac_cv_prog_cxx_g=no
4006 CXXFLAGS="-g"
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4011 main ()
4015 return 0;
4017 _ACEOF
4018 if ac_fn_cxx_try_compile "$LINENO"; then :
4019 ac_cv_prog_cxx_g=yes
4020 else
4021 CXXFLAGS=""
4022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4023 /* end confdefs.h. */
4026 main ()
4030 return 0;
4032 _ACEOF
4033 if ac_fn_cxx_try_compile "$LINENO"; then :
4035 else
4036 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4037 CXXFLAGS="-g"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4042 main ()
4046 return 0;
4048 _ACEOF
4049 if ac_fn_cxx_try_compile "$LINENO"; then :
4050 ac_cv_prog_cxx_g=yes
4052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4060 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4061 if test "$ac_test_CXXFLAGS" = set; then
4062 CXXFLAGS=$ac_save_CXXFLAGS
4063 elif test $ac_cv_prog_cxx_g = yes; then
4064 if test "$GXX" = yes; then
4065 CXXFLAGS="-g -O2"
4066 else
4067 CXXFLAGS="-g"
4069 else
4070 if test "$GXX" = yes; then
4071 CXXFLAGS="-O2"
4072 else
4073 CXXFLAGS=
4076 ac_ext=c
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4082 depcc="$CXX" am_compiler_list=
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4085 $as_echo_n "checking dependency style of $depcc... " >&6; }
4086 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4090 # We make a subdir and do the tests there. Otherwise we can end up
4091 # making bogus files that we don't know about and never remove. For
4092 # instance it was reported that on HP-UX the gcc test will end up
4093 # making a dummy file named `D' -- because `-MD' means `put the output
4094 # in D'.
4095 rm -rf conftest.dir
4096 mkdir conftest.dir
4097 # Copy depcomp to subdir because otherwise we won't find it if we're
4098 # using a relative directory.
4099 cp "$am_depcomp" conftest.dir
4100 cd conftest.dir
4101 # We will build objects and dependencies in a subdirectory because
4102 # it helps to detect inapplicable dependency modes. For instance
4103 # both Tru64's cc and ICC support -MD to output dependencies as a
4104 # side effect of compilation, but ICC will put the dependencies in
4105 # the current directory while Tru64 will put them in the object
4106 # directory.
4107 mkdir sub
4109 am_cv_CXX_dependencies_compiler_type=none
4110 if test "$am_compiler_list" = ""; then
4111 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4113 am__universal=false
4114 case " $depcc " in #(
4115 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4116 esac
4118 for depmode in $am_compiler_list; do
4119 # Setup a source with many dependencies, because some compilers
4120 # like to wrap large dependency lists on column 80 (with \), and
4121 # we should not choose a depcomp mode which is confused by this.
4123 # We need to recreate these files for each test, as the compiler may
4124 # overwrite some of them when testing with obscure command lines.
4125 # This happens at least with the AIX C compiler.
4126 : > sub/conftest.c
4127 for i in 1 2 3 4 5 6; do
4128 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4129 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4130 # Solaris 8's {/usr,}/bin/sh.
4131 touch sub/conftst$i.h
4132 done
4133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4135 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4136 # mode. It turns out that the SunPro C++ compiler does not properly
4137 # handle `-M -o', and we need to detect this. Also, some Intel
4138 # versions had trouble with output in subdirs
4139 am__obj=sub/conftest.${OBJEXT-o}
4140 am__minus_obj="-o $am__obj"
4141 case $depmode in
4142 gcc)
4143 # This depmode causes a compiler race in universal mode.
4144 test "$am__universal" = false || continue
4146 nosideeffect)
4147 # after this tag, mechanisms are not by side-effect, so they'll
4148 # only be used when explicitly requested
4149 if test "x$enable_dependency_tracking" = xyes; then
4150 continue
4151 else
4152 break
4155 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4156 # This compiler won't grok `-c -o', but also, the minuso test has
4157 # not run yet. These depmodes are late enough in the game, and
4158 # so weak that their functioning should not be impacted.
4159 am__obj=conftest.${OBJEXT-o}
4160 am__minus_obj=
4162 none) break ;;
4163 esac
4164 if depmode=$depmode \
4165 source=sub/conftest.c object=$am__obj \
4166 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4167 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4168 >/dev/null 2>conftest.err &&
4169 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4170 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4171 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4172 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4173 # icc doesn't choke on unknown options, it will just issue warnings
4174 # or remarks (even with -Werror). So we grep stderr for any message
4175 # that says an option was ignored or not supported.
4176 # When given -MP, icc 7.0 and 7.1 complain thusly:
4177 # icc: Command line warning: ignoring option '-M'; no argument required
4178 # The diagnosis changed in icc 8.0:
4179 # icc: Command line remark: option '-MP' not supported
4180 if (grep 'ignoring option' conftest.err ||
4181 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4182 am_cv_CXX_dependencies_compiler_type=$depmode
4183 break
4186 done
4188 cd ..
4189 rm -rf conftest.dir
4190 else
4191 am_cv_CXX_dependencies_compiler_type=none
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4196 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4197 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4200 test "x$enable_dependency_tracking" != xno \
4201 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4202 am__fastdepCXX_TRUE=
4203 am__fastdepCXX_FALSE='#'
4204 else
4205 am__fastdepCXX_TRUE='#'
4206 am__fastdepCXX_FALSE=
4210 ac_config_files="$ac_config_files Makefile"
4212 # Default to --enable-multilib
4213 # Check whether --enable-multilib was given.
4214 if test "${enable_multilib+set}" = set; then :
4215 enableval=$enable_multilib; case "$enableval" in
4216 yes) multilib=yes ;;
4217 no) multilib=no ;;
4218 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4219 esac
4220 else
4221 multilib=yes
4225 # We may get other options which we leave undocumented:
4226 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4227 # See config-ml.in if you want the gory details.
4229 if test "$srcdir" = "."; then
4230 if test "$with_target_subdir" != "."; then
4231 multi_basedir="$srcdir/$with_multisrctop../../.."
4232 else
4233 multi_basedir="$srcdir/$with_multisrctop../.."
4235 else
4236 multi_basedir="$srcdir/../.."
4240 # Even if the default multilib is not a cross compilation,
4241 # it may be that some of the other multilibs are.
4242 if test $cross_compiling = no && test $multilib = yes \
4243 && test "x${with_multisubdir}" != x ; then
4244 cross_compiling=maybe
4247 ac_config_commands="$ac_config_commands default-1"
4250 if test "${multilib}" = "yes"; then
4251 multilib_arg="--enable-multilib"
4252 else
4253 multilib_arg=
4256 # Make sure liboffloadmic is enabled
4257 case "$enable_liboffloadmic" in
4258 host | target)
4261 as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;;
4262 esac
4263 if test x"$enable_liboffloadmic" = xhost; then
4264 PLUGIN_HOST_TRUE=
4265 PLUGIN_HOST_FALSE='#'
4266 else
4267 PLUGIN_HOST_TRUE='#'
4268 PLUGIN_HOST_FALSE=
4272 # Get accel target and path to build or install tree of accel compiler
4273 accel_search_dir=
4274 accel_target=
4275 if test x"$enable_liboffloadmic" = xhost; then
4276 for accel in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
4277 accel_name=`echo $accel | sed 's/=.*//'`
4278 accel_dir=`echo $accel | grep '=' | sed 's/.*=//'`
4279 case "$accel_name" in
4280 *-intelmic-* | *-intelmicemul-*)
4281 accel_target=$accel_name
4282 accel_search_dir=$accel_dir
4284 esac
4285 done
4286 if test x"$accel_target" = x; then
4287 as_fn_error "--enable-offload-targets does not contain intelmic target" "$LINENO" 5
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4294 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4295 # Check whether --enable-version-specific-runtime-libs was given.
4296 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4297 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4298 yes) enable_version_specific_runtime_libs=yes ;;
4299 no) enable_version_specific_runtime_libs=no ;;
4300 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4301 esac
4302 else
4303 enable_version_specific_runtime_libs=no
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4307 $as_echo "$enable_version_specific_runtime_libs" >&6; }
4310 # Calculate toolexeclibdir.
4311 # Also toolexecdir, though it's only used in toolexeclibdir.
4312 case ${enable_version_specific_runtime_libs} in
4313 yes)
4314 # Need the gcc compiler version to know where to install libraries
4315 # and header files if --enable-version-specific-runtime-libs option
4316 # is selected.
4317 toolexecdir='$(libdir)/gcc/$(target_alias)'
4318 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4321 if test -n "$with_cross_host" &&
4322 test x"$with_cross_host" != x"no"; then
4323 # Install a library built with a cross compiler in tooldir, not libdir.
4324 toolexecdir='$(exec_prefix)/$(target_alias)'
4325 toolexeclibdir='$(toolexecdir)/lib'
4326 else
4327 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4328 toolexeclibdir='$(libdir)'
4330 multi_os_directory=`$CC -print-multi-os-directory`
4331 case $multi_os_directory in
4332 .) ;; # Avoid trailing /.
4333 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4334 esac
4336 esac
4338 enable_dlopen=yes
4342 case `pwd` in
4343 *\ * | *\ *)
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4345 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4346 esac
4350 macro_version='2.2.7a'
4351 macro_revision='1.3134'
4365 ltmain="$ac_aux_dir/ltmain.sh"
4367 # Backslashify metacharacters that are still active within
4368 # double-quoted strings.
4369 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4371 # Same as above, but do not quote variable references.
4372 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4374 # Sed substitution to delay expansion of an escaped shell variable in a
4375 # double_quote_subst'ed string.
4376 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4378 # Sed substitution to delay expansion of an escaped single quote.
4379 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4381 # Sed substitution to avoid accidental globbing in evaled expressions
4382 no_glob_subst='s/\*/\\\*/g'
4384 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4385 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4386 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4389 $as_echo_n "checking how to print strings... " >&6; }
4390 # Test print first, because it will be a builtin if present.
4391 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4392 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4393 ECHO='print -r --'
4394 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4395 ECHO='printf %s\n'
4396 else
4397 # Use this function as a fallback that always works.
4398 func_fallback_echo ()
4400 eval 'cat <<_LTECHO_EOF
4402 _LTECHO_EOF'
4404 ECHO='func_fallback_echo'
4407 # func_echo_all arg...
4408 # Invoke $ECHO with all args, space-separated.
4409 func_echo_all ()
4411 $ECHO ""
4414 case "$ECHO" in
4415 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4416 $as_echo "printf" >&6; } ;;
4417 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4418 $as_echo "print -r" >&6; } ;;
4419 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4420 $as_echo "cat" >&6; } ;;
4421 esac
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4437 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4438 if test "${ac_cv_path_SED+set}" = set; then :
4439 $as_echo_n "(cached) " >&6
4440 else
4441 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4442 for ac_i in 1 2 3 4 5 6 7; do
4443 ac_script="$ac_script$as_nl$ac_script"
4444 done
4445 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4446 { ac_script=; unset ac_script;}
4447 if test -z "$SED"; then
4448 ac_path_SED_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in sed gsed; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4458 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4459 # Check for GNU ac_path_SED and select it if it is found.
4460 # Check for GNU $ac_path_SED
4461 case `"$ac_path_SED" --version 2>&1` in
4462 *GNU*)
4463 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4465 ac_count=0
4466 $as_echo_n 0123456789 >"conftest.in"
4467 while :
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 $as_echo '' >> "conftest.nl"
4473 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 as_fn_arith $ac_count + 1 && ac_count=$as_val
4476 if test $ac_count -gt ${ac_path_SED_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_SED="$ac_path_SED"
4479 ac_path_SED_max=$ac_count
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4483 done
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485 esac
4487 $ac_path_SED_found && break 3
4488 done
4489 done
4490 done
4491 IFS=$as_save_IFS
4492 if test -z "$ac_cv_path_SED"; then
4493 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
4495 else
4496 ac_cv_path_SED=$SED
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4501 $as_echo "$ac_cv_path_SED" >&6; }
4502 SED="$ac_cv_path_SED"
4503 rm -f conftest.sed
4505 test -z "$SED" && SED=sed
4506 Xsed="$SED -e 1s/^X//"
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4519 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4520 if test "${ac_cv_path_GREP+set}" = set; then :
4521 $as_echo_n "(cached) " >&6
4522 else
4523 if test -z "$GREP"; then
4524 ac_path_GREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in grep ggrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4534 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4535 # Check for GNU ac_path_GREP and select it if it is found.
4536 # Check for GNU $ac_path_GREP
4537 case `"$ac_path_GREP" --version 2>&1` in
4538 *GNU*)
4539 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4541 ac_count=0
4542 $as_echo_n 0123456789 >"conftest.in"
4543 while :
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'GREP' >> "conftest.nl"
4549 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_GREP="$ac_path_GREP"
4555 ac_path_GREP_max=$ac_count
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4559 done
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561 esac
4563 $ac_path_GREP_found && break 3
4564 done
4565 done
4566 done
4567 IFS=$as_save_IFS
4568 if test -z "$ac_cv_path_GREP"; then
4569 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4571 else
4572 ac_cv_path_GREP=$GREP
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4577 $as_echo "$ac_cv_path_GREP" >&6; }
4578 GREP="$ac_cv_path_GREP"
4581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4582 $as_echo_n "checking for egrep... " >&6; }
4583 if test "${ac_cv_path_EGREP+set}" = set; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4587 then ac_cv_path_EGREP="$GREP -E"
4588 else
4589 if test -z "$EGREP"; then
4590 ac_path_EGREP_found=false
4591 # Loop through the user's path and test for each of PROGNAME-LIST
4592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4593 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4595 IFS=$as_save_IFS
4596 test -z "$as_dir" && as_dir=.
4597 for ac_prog in egrep; do
4598 for ac_exec_ext in '' $ac_executable_extensions; do
4599 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4600 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4601 # Check for GNU ac_path_EGREP and select it if it is found.
4602 # Check for GNU $ac_path_EGREP
4603 case `"$ac_path_EGREP" --version 2>&1` in
4604 *GNU*)
4605 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4607 ac_count=0
4608 $as_echo_n 0123456789 >"conftest.in"
4609 while :
4611 cat "conftest.in" "conftest.in" >"conftest.tmp"
4612 mv "conftest.tmp" "conftest.in"
4613 cp "conftest.in" "conftest.nl"
4614 $as_echo 'EGREP' >> "conftest.nl"
4615 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4616 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4617 as_fn_arith $ac_count + 1 && ac_count=$as_val
4618 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4619 # Best one so far, save it but keep looking for a better one
4620 ac_cv_path_EGREP="$ac_path_EGREP"
4621 ac_path_EGREP_max=$ac_count
4623 # 10*(2^10) chars as input seems more than enough
4624 test $ac_count -gt 10 && break
4625 done
4626 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4627 esac
4629 $ac_path_EGREP_found && break 3
4630 done
4631 done
4632 done
4633 IFS=$as_save_IFS
4634 if test -z "$ac_cv_path_EGREP"; then
4635 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4637 else
4638 ac_cv_path_EGREP=$EGREP
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4644 $as_echo "$ac_cv_path_EGREP" >&6; }
4645 EGREP="$ac_cv_path_EGREP"
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4649 $as_echo_n "checking for fgrep... " >&6; }
4650 if test "${ac_cv_path_FGREP+set}" = set; then :
4651 $as_echo_n "(cached) " >&6
4652 else
4653 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4654 then ac_cv_path_FGREP="$GREP -F"
4655 else
4656 if test -z "$FGREP"; then
4657 ac_path_FGREP_found=false
4658 # Loop through the user's path and test for each of PROGNAME-LIST
4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4662 IFS=$as_save_IFS
4663 test -z "$as_dir" && as_dir=.
4664 for ac_prog in fgrep; do
4665 for ac_exec_ext in '' $ac_executable_extensions; do
4666 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4667 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4668 # Check for GNU ac_path_FGREP and select it if it is found.
4669 # Check for GNU $ac_path_FGREP
4670 case `"$ac_path_FGREP" --version 2>&1` in
4671 *GNU*)
4672 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4674 ac_count=0
4675 $as_echo_n 0123456789 >"conftest.in"
4676 while :
4678 cat "conftest.in" "conftest.in" >"conftest.tmp"
4679 mv "conftest.tmp" "conftest.in"
4680 cp "conftest.in" "conftest.nl"
4681 $as_echo 'FGREP' >> "conftest.nl"
4682 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4684 as_fn_arith $ac_count + 1 && ac_count=$as_val
4685 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4686 # Best one so far, save it but keep looking for a better one
4687 ac_cv_path_FGREP="$ac_path_FGREP"
4688 ac_path_FGREP_max=$ac_count
4690 # 10*(2^10) chars as input seems more than enough
4691 test $ac_count -gt 10 && break
4692 done
4693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4694 esac
4696 $ac_path_FGREP_found && break 3
4697 done
4698 done
4699 done
4700 IFS=$as_save_IFS
4701 if test -z "$ac_cv_path_FGREP"; then
4702 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4704 else
4705 ac_cv_path_FGREP=$FGREP
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4711 $as_echo "$ac_cv_path_FGREP" >&6; }
4712 FGREP="$ac_cv_path_FGREP"
4715 test -z "$GREP" && GREP=grep
4735 # Check whether --with-gnu-ld was given.
4736 if test "${with_gnu_ld+set}" = set; then :
4737 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4738 else
4739 with_gnu_ld=no
4742 ac_prog=ld
4743 if test "$GCC" = yes; then
4744 # Check if gcc -print-prog-name=ld gives a path.
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4746 $as_echo_n "checking for ld used by $CC... " >&6; }
4747 case $host in
4748 *-*-mingw*)
4749 # gcc leaves a trailing carriage return which upsets mingw
4750 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4752 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4753 esac
4754 case $ac_prog in
4755 # Accept absolute paths.
4756 [\\/]* | ?:[\\/]*)
4757 re_direlt='/[^/][^/]*/\.\./'
4758 # Canonicalize the pathname of ld
4759 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4760 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4761 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4762 done
4763 test -z "$LD" && LD="$ac_prog"
4766 # If it fails, then pretend we aren't using GCC.
4767 ac_prog=ld
4770 # If it is relative, then search for the first ld in PATH.
4771 with_gnu_ld=unknown
4773 esac
4774 elif test "$with_gnu_ld" = yes; then
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4776 $as_echo_n "checking for GNU ld... " >&6; }
4777 else
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4779 $as_echo_n "checking for non-GNU ld... " >&6; }
4781 if test "${lt_cv_path_LD+set}" = set; then :
4782 $as_echo_n "(cached) " >&6
4783 else
4784 if test -z "$LD"; then
4785 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4786 for ac_dir in $PATH; do
4787 IFS="$lt_save_ifs"
4788 test -z "$ac_dir" && ac_dir=.
4789 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4790 lt_cv_path_LD="$ac_dir/$ac_prog"
4791 # Check to see if the program is GNU ld. I'd rather use --version,
4792 # but apparently some variants of GNU ld only accept -v.
4793 # Break only if it was the GNU/non-GNU ld that we prefer.
4794 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4795 *GNU* | *'with BFD'*)
4796 test "$with_gnu_ld" != no && break
4799 test "$with_gnu_ld" != yes && break
4801 esac
4803 done
4804 IFS="$lt_save_ifs"
4805 else
4806 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4810 LD="$lt_cv_path_LD"
4811 if test -n "$LD"; then
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4813 $as_echo "$LD" >&6; }
4814 else
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4816 $as_echo "no" >&6; }
4818 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4820 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4821 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4825 case `$LD -v 2>&1 </dev/null` in
4826 *GNU* | *'with BFD'*)
4827 lt_cv_prog_gnu_ld=yes
4830 lt_cv_prog_gnu_ld=no
4832 esac
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4835 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4836 with_gnu_ld=$lt_cv_prog_gnu_ld
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4847 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4848 if test "${lt_cv_path_NM+set}" = set; then :
4849 $as_echo_n "(cached) " >&6
4850 else
4851 if test -n "$NM"; then
4852 # Let the user override the test.
4853 lt_cv_path_NM="$NM"
4854 else
4855 lt_nm_to_check="${ac_tool_prefix}nm"
4856 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4857 lt_nm_to_check="$lt_nm_to_check nm"
4859 for lt_tmp_nm in $lt_nm_to_check; do
4860 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4861 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4862 IFS="$lt_save_ifs"
4863 test -z "$ac_dir" && ac_dir=.
4864 tmp_nm="$ac_dir/$lt_tmp_nm"
4865 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4866 # Check to see if the nm accepts a BSD-compat flag.
4867 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4868 # nm: unknown option "B" ignored
4869 # Tru64's nm complains that /dev/null is an invalid object file
4870 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4871 */dev/null* | *'Invalid file or object type'*)
4872 lt_cv_path_NM="$tmp_nm -B"
4873 break
4876 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4877 */dev/null*)
4878 lt_cv_path_NM="$tmp_nm -p"
4879 break
4882 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4883 continue # so that we can try to find one that supports BSD flags
4885 esac
4887 esac
4889 done
4890 IFS="$lt_save_ifs"
4891 done
4892 : ${lt_cv_path_NM=no}
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4896 $as_echo "$lt_cv_path_NM" >&6; }
4897 if test "$lt_cv_path_NM" != "no"; then
4898 NM="$lt_cv_path_NM"
4899 else
4900 # Didn't find any BSD compatible name lister, look for dumpbin.
4901 if test -n "$DUMPBIN"; then :
4902 # Let the user override the test.
4903 else
4904 if test -n "$ac_tool_prefix"; then
4905 for ac_prog in dumpbin "link -dump"
4907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4908 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4910 $as_echo_n "checking for $ac_word... " >&6; }
4911 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
4912 $as_echo_n "(cached) " >&6
4913 else
4914 if test -n "$DUMPBIN"; then
4915 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4916 else
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_exec_ext in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4924 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4926 break 2
4928 done
4929 done
4930 IFS=$as_save_IFS
4934 DUMPBIN=$ac_cv_prog_DUMPBIN
4935 if test -n "$DUMPBIN"; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4937 $as_echo "$DUMPBIN" >&6; }
4938 else
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4940 $as_echo "no" >&6; }
4944 test -n "$DUMPBIN" && break
4945 done
4947 if test -z "$DUMPBIN"; then
4948 ac_ct_DUMPBIN=$DUMPBIN
4949 for ac_prog in dumpbin "link -dump"
4951 # Extract the first word of "$ac_prog", so it can be a program name with args.
4952 set dummy $ac_prog; ac_word=$2
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954 $as_echo_n "checking for $ac_word... " >&6; }
4955 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test -n "$ac_ct_DUMPBIN"; then
4959 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4960 else
4961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4962 for as_dir in $PATH
4964 IFS=$as_save_IFS
4965 test -z "$as_dir" && as_dir=.
4966 for ac_exec_ext in '' $ac_executable_extensions; do
4967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4968 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4970 break 2
4972 done
4973 done
4974 IFS=$as_save_IFS
4978 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4979 if test -n "$ac_ct_DUMPBIN"; then
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4981 $as_echo "$ac_ct_DUMPBIN" >&6; }
4982 else
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4984 $as_echo "no" >&6; }
4988 test -n "$ac_ct_DUMPBIN" && break
4989 done
4991 if test "x$ac_ct_DUMPBIN" = x; then
4992 DUMPBIN=":"
4993 else
4994 case $cross_compiling:$ac_tool_warned in
4995 yes:)
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4997 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4998 ac_tool_warned=yes ;;
4999 esac
5000 DUMPBIN=$ac_ct_DUMPBIN
5004 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5005 *COFF*)
5006 DUMPBIN="$DUMPBIN -symbols"
5009 DUMPBIN=:
5011 esac
5014 if test "$DUMPBIN" != ":"; then
5015 NM="$DUMPBIN"
5018 test -z "$NM" && NM=nm
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5026 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5027 if test "${lt_cv_nm_interface+set}" = set; then :
5028 $as_echo_n "(cached) " >&6
5029 else
5030 lt_cv_nm_interface="BSD nm"
5031 echo "int some_variable = 0;" > conftest.$ac_ext
5032 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5033 (eval "$ac_compile" 2>conftest.err)
5034 cat conftest.err >&5
5035 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5036 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5037 cat conftest.err >&5
5038 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5039 cat conftest.out >&5
5040 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5041 lt_cv_nm_interface="MS dumpbin"
5043 rm -f conftest*
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5046 $as_echo "$lt_cv_nm_interface" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5049 $as_echo_n "checking whether ln -s works... " >&6; }
5050 LN_S=$as_ln_s
5051 if test "$LN_S" = "ln -s"; then
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5053 $as_echo "yes" >&6; }
5054 else
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5056 $as_echo "no, using $LN_S" >&6; }
5059 # find the maximum length of command line arguments
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5061 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5062 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5066 teststring="ABCD"
5068 case $build_os in
5069 msdosdjgpp*)
5070 # On DJGPP, this test can blow up pretty badly due to problems in libc
5071 # (any single argument exceeding 2000 bytes causes a buffer overrun
5072 # during glob expansion). Even if it were fixed, the result of this
5073 # check would be larger than it should be.
5074 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5077 gnu*)
5078 # Under GNU Hurd, this test is not required because there is
5079 # no limit to the length of command line arguments.
5080 # Libtool will interpret -1 as no limit whatsoever
5081 lt_cv_sys_max_cmd_len=-1;
5084 cygwin* | mingw* | cegcc*)
5085 # On Win9x/ME, this test blows up -- it succeeds, but takes
5086 # about 5 minutes as the teststring grows exponentially.
5087 # Worse, since 9x/ME are not pre-emptively multitasking,
5088 # you end up with a "frozen" computer, even though with patience
5089 # the test eventually succeeds (with a max line length of 256k).
5090 # Instead, let's just punt: use the minimum linelength reported by
5091 # all of the supported platforms: 8192 (on NT/2K/XP).
5092 lt_cv_sys_max_cmd_len=8192;
5095 mint*)
5096 # On MiNT this can take a long time and run out of memory.
5097 lt_cv_sys_max_cmd_len=8192;
5100 amigaos*)
5101 # On AmigaOS with pdksh, this test takes hours, literally.
5102 # So we just punt and use a minimum line length of 8192.
5103 lt_cv_sys_max_cmd_len=8192;
5106 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5107 # This has been around since 386BSD, at least. Likely further.
5108 if test -x /sbin/sysctl; then
5109 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5110 elif test -x /usr/sbin/sysctl; then
5111 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5112 else
5113 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5115 # And add a safety zone
5116 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5117 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5120 interix*)
5121 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5122 lt_cv_sys_max_cmd_len=196608
5125 osf*)
5126 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5127 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5128 # nice to cause kernel panics so lets avoid the loop below.
5129 # First set a reasonable default.
5130 lt_cv_sys_max_cmd_len=16384
5132 if test -x /sbin/sysconfig; then
5133 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5134 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5135 esac
5138 sco3.2v5*)
5139 lt_cv_sys_max_cmd_len=102400
5141 sysv5* | sco5v6* | sysv4.2uw2*)
5142 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5143 if test -n "$kargmax"; then
5144 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5145 else
5146 lt_cv_sys_max_cmd_len=32768
5150 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5151 if test -n "$lt_cv_sys_max_cmd_len"; then
5152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5153 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5154 else
5155 # Make teststring a little bigger before we do anything with it.
5156 # a 1K string should be a reasonable start.
5157 for i in 1 2 3 4 5 6 7 8 ; do
5158 teststring=$teststring$teststring
5159 done
5160 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5161 # If test is not a shell built-in, we'll probably end up computing a
5162 # maximum length that is only half of the actual maximum length, but
5163 # we can't tell.
5164 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5165 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5166 test $i != 17 # 1/2 MB should be enough
5168 i=`expr $i + 1`
5169 teststring=$teststring$teststring
5170 done
5171 # Only check the string length outside the loop.
5172 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5173 teststring=
5174 # Add a significant safety factor because C++ compilers can tack on
5175 # massive amounts of additional arguments before passing them to the
5176 # linker. It appears as though 1/2 is a usable value.
5177 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5180 esac
5184 if test -n $lt_cv_sys_max_cmd_len ; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5186 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5187 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5189 $as_echo "none" >&6; }
5191 max_cmd_len=$lt_cv_sys_max_cmd_len
5198 : ${CP="cp -f"}
5199 : ${MV="mv -f"}
5200 : ${RM="rm -f"}
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5203 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5204 # Try some XSI features
5205 xsi_shell=no
5206 ( _lt_dummy="a/b/c"
5207 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5208 = c,a/b,, \
5209 && eval 'test $(( 1 + 1 )) -eq 2 \
5210 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5211 && xsi_shell=yes
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5213 $as_echo "$xsi_shell" >&6; }
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5217 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5218 lt_shell_append=no
5219 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5220 >/dev/null 2>&1 \
5221 && lt_shell_append=yes
5222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5223 $as_echo "$lt_shell_append" >&6; }
5226 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5227 lt_unset=unset
5228 else
5229 lt_unset=false
5236 # test EBCDIC or ASCII
5237 case `echo X|tr X '\101'` in
5238 A) # ASCII based system
5239 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5240 lt_SP2NL='tr \040 \012'
5241 lt_NL2SP='tr \015\012 \040\040'
5243 *) # EBCDIC based system
5244 lt_SP2NL='tr \100 \n'
5245 lt_NL2SP='tr \r\n \100\100'
5247 esac
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5258 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5259 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5260 $as_echo_n "(cached) " >&6
5261 else
5262 lt_cv_ld_reload_flag='-r'
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5265 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5266 reload_flag=$lt_cv_ld_reload_flag
5267 case $reload_flag in
5268 "" | " "*) ;;
5269 *) reload_flag=" $reload_flag" ;;
5270 esac
5271 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5272 case $host_os in
5273 darwin*)
5274 if test "$GCC" = yes; then
5275 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5276 else
5277 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5280 esac
5290 if test -n "$ac_tool_prefix"; then
5291 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5292 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5294 $as_echo_n "checking for $ac_word... " >&6; }
5295 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 if test -n "$OBJDUMP"; then
5299 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5300 else
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in $PATH
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5312 done
5313 done
5314 IFS=$as_save_IFS
5318 OBJDUMP=$ac_cv_prog_OBJDUMP
5319 if test -n "$OBJDUMP"; then
5320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5321 $as_echo "$OBJDUMP" >&6; }
5322 else
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5324 $as_echo "no" >&6; }
5329 if test -z "$ac_cv_prog_OBJDUMP"; then
5330 ac_ct_OBJDUMP=$OBJDUMP
5331 # Extract the first word of "objdump", so it can be a program name with args.
5332 set dummy objdump; ac_word=$2
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5334 $as_echo_n "checking for $ac_word... " >&6; }
5335 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337 else
5338 if test -n "$ac_ct_OBJDUMP"; then
5339 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5340 else
5341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5342 for as_dir in $PATH
5344 IFS=$as_save_IFS
5345 test -z "$as_dir" && as_dir=.
5346 for ac_exec_ext in '' $ac_executable_extensions; do
5347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5348 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5350 break 2
5352 done
5353 done
5354 IFS=$as_save_IFS
5358 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5359 if test -n "$ac_ct_OBJDUMP"; then
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5361 $as_echo "$ac_ct_OBJDUMP" >&6; }
5362 else
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5364 $as_echo "no" >&6; }
5367 if test "x$ac_ct_OBJDUMP" = x; then
5368 OBJDUMP="false"
5369 else
5370 case $cross_compiling:$ac_tool_warned in
5371 yes:)
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5373 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5374 ac_tool_warned=yes ;;
5375 esac
5376 OBJDUMP=$ac_ct_OBJDUMP
5378 else
5379 OBJDUMP="$ac_cv_prog_OBJDUMP"
5382 test -z "$OBJDUMP" && OBJDUMP=objdump
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5393 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5394 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 lt_cv_file_magic_cmd='$MAGIC_CMD'
5398 lt_cv_file_magic_test_file=
5399 lt_cv_deplibs_check_method='unknown'
5400 # Need to set the preceding variable on all platforms that support
5401 # interlibrary dependencies.
5402 # 'none' -- dependencies not supported.
5403 # `unknown' -- same as none, but documents that we really don't know.
5404 # 'pass_all' -- all dependencies passed with no checks.
5405 # 'test_compile' -- check by making test program.
5406 # 'file_magic [[regex]]' -- check by looking for files in library path
5407 # which responds to the $file_magic_cmd with a given extended regex.
5408 # If you have `file' or equivalent on your system and you're not sure
5409 # whether `pass_all' will *always* work, you probably want this one.
5411 case $host_os in
5412 aix[4-9]*)
5413 lt_cv_deplibs_check_method=pass_all
5416 beos*)
5417 lt_cv_deplibs_check_method=pass_all
5420 bsdi[45]*)
5421 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5422 lt_cv_file_magic_cmd='/usr/bin/file -L'
5423 lt_cv_file_magic_test_file=/shlib/libc.so
5426 cygwin*)
5427 # func_win32_libid is a shell function defined in ltmain.sh
5428 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5429 lt_cv_file_magic_cmd='func_win32_libid'
5432 mingw* | pw32*)
5433 # Base MSYS/MinGW do not provide the 'file' command needed by
5434 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5435 # unless we find 'file', for example because we are cross-compiling.
5436 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5437 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5438 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5439 lt_cv_file_magic_cmd='func_win32_libid'
5440 else
5441 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5442 lt_cv_file_magic_cmd='$OBJDUMP -f'
5446 cegcc*)
5447 # use the weaker test based on 'objdump'. See mingw*.
5448 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5449 lt_cv_file_magic_cmd='$OBJDUMP -f'
5452 darwin* | rhapsody*)
5453 lt_cv_deplibs_check_method=pass_all
5456 freebsd* | dragonfly*)
5457 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5458 case $host_cpu in
5459 i*86 )
5460 # Not sure whether the presence of OpenBSD here was a mistake.
5461 # Let's accept both of them until this is cleared up.
5462 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5463 lt_cv_file_magic_cmd=/usr/bin/file
5464 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5466 esac
5467 else
5468 lt_cv_deplibs_check_method=pass_all
5472 gnu*)
5473 lt_cv_deplibs_check_method=pass_all
5476 haiku*)
5477 lt_cv_deplibs_check_method=pass_all
5480 hpux10.20* | hpux11*)
5481 lt_cv_file_magic_cmd=/usr/bin/file
5482 case $host_cpu in
5483 ia64*)
5484 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5485 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5487 hppa*64*)
5488 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]'
5489 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5492 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5493 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5495 esac
5498 interix[3-9]*)
5499 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5500 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5503 irix5* | irix6* | nonstopux*)
5504 case $LD in
5505 *-32|*"-32 ") libmagic=32-bit;;
5506 *-n32|*"-n32 ") libmagic=N32;;
5507 *-64|*"-64 ") libmagic=64-bit;;
5508 *) libmagic=never-match;;
5509 esac
5510 lt_cv_deplibs_check_method=pass_all
5513 # This must be Linux ELF.
5514 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5515 lt_cv_deplibs_check_method=pass_all
5518 netbsd*)
5519 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5520 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5521 else
5522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5526 newos6*)
5527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5528 lt_cv_file_magic_cmd=/usr/bin/file
5529 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5532 *nto* | *qnx*)
5533 lt_cv_deplibs_check_method=pass_all
5536 openbsd*)
5537 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5538 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5539 else
5540 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5544 osf3* | osf4* | osf5*)
5545 lt_cv_deplibs_check_method=pass_all
5548 rdos*)
5549 lt_cv_deplibs_check_method=pass_all
5552 solaris*)
5553 lt_cv_deplibs_check_method=pass_all
5556 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5557 lt_cv_deplibs_check_method=pass_all
5560 sysv4 | sysv4.3*)
5561 case $host_vendor in
5562 motorola)
5563 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]'
5564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5566 ncr)
5567 lt_cv_deplibs_check_method=pass_all
5569 sequent)
5570 lt_cv_file_magic_cmd='/bin/file'
5571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5573 sni)
5574 lt_cv_file_magic_cmd='/bin/file'
5575 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5576 lt_cv_file_magic_test_file=/lib/libc.so
5578 siemens)
5579 lt_cv_deplibs_check_method=pass_all
5582 lt_cv_deplibs_check_method=pass_all
5584 esac
5587 tpf*)
5588 lt_cv_deplibs_check_method=pass_all
5590 esac
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5594 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5595 file_magic_cmd=$lt_cv_file_magic_cmd
5596 deplibs_check_method=$lt_cv_deplibs_check_method
5597 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5610 if test -n "$ac_tool_prefix"; then
5611 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5612 set dummy ${ac_tool_prefix}ar; ac_word=$2
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5614 $as_echo_n "checking for $ac_word... " >&6; }
5615 if test "${ac_cv_prog_AR+set}" = set; then :
5616 $as_echo_n "(cached) " >&6
5617 else
5618 if test -n "$AR"; then
5619 ac_cv_prog_AR="$AR" # Let the user override the test.
5620 else
5621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5622 for as_dir in $PATH
5624 IFS=$as_save_IFS
5625 test -z "$as_dir" && as_dir=.
5626 for ac_exec_ext in '' $ac_executable_extensions; do
5627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5628 ac_cv_prog_AR="${ac_tool_prefix}ar"
5629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 break 2
5632 done
5633 done
5634 IFS=$as_save_IFS
5638 AR=$ac_cv_prog_AR
5639 if test -n "$AR"; then
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5641 $as_echo "$AR" >&6; }
5642 else
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5644 $as_echo "no" >&6; }
5649 if test -z "$ac_cv_prog_AR"; then
5650 ac_ct_AR=$AR
5651 # Extract the first word of "ar", so it can be a program name with args.
5652 set dummy ar; ac_word=$2
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5654 $as_echo_n "checking for $ac_word... " >&6; }
5655 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5656 $as_echo_n "(cached) " >&6
5657 else
5658 if test -n "$ac_ct_AR"; then
5659 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5660 else
5661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662 for as_dir in $PATH
5664 IFS=$as_save_IFS
5665 test -z "$as_dir" && as_dir=.
5666 for ac_exec_ext in '' $ac_executable_extensions; do
5667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5668 ac_cv_prog_ac_ct_AR="ar"
5669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 break 2
5672 done
5673 done
5674 IFS=$as_save_IFS
5678 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5679 if test -n "$ac_ct_AR"; then
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5681 $as_echo "$ac_ct_AR" >&6; }
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684 $as_echo "no" >&6; }
5687 if test "x$ac_ct_AR" = x; then
5688 AR="false"
5689 else
5690 case $cross_compiling:$ac_tool_warned in
5691 yes:)
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5693 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5694 ac_tool_warned=yes ;;
5695 esac
5696 AR=$ac_ct_AR
5698 else
5699 AR="$ac_cv_prog_AR"
5702 test -z "$AR" && AR=ar
5703 test -z "$AR_FLAGS" && AR_FLAGS=cru
5715 if test -n "$ac_tool_prefix"; then
5716 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5717 set dummy ${ac_tool_prefix}strip; ac_word=$2
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5719 $as_echo_n "checking for $ac_word... " >&6; }
5720 if test "${ac_cv_prog_STRIP+set}" = set; then :
5721 $as_echo_n "(cached) " >&6
5722 else
5723 if test -n "$STRIP"; then
5724 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5725 else
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for ac_exec_ext in '' $ac_executable_extensions; do
5732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5733 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 break 2
5737 done
5738 done
5739 IFS=$as_save_IFS
5743 STRIP=$ac_cv_prog_STRIP
5744 if test -n "$STRIP"; then
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5746 $as_echo "$STRIP" >&6; }
5747 else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5749 $as_echo "no" >&6; }
5754 if test -z "$ac_cv_prog_STRIP"; then
5755 ac_ct_STRIP=$STRIP
5756 # Extract the first word of "strip", so it can be a program name with args.
5757 set dummy strip; ac_word=$2
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5759 $as_echo_n "checking for $ac_word... " >&6; }
5760 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
5761 $as_echo_n "(cached) " >&6
5762 else
5763 if test -n "$ac_ct_STRIP"; then
5764 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5765 else
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH
5769 IFS=$as_save_IFS
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5773 ac_cv_prog_ac_ct_STRIP="strip"
5774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5775 break 2
5777 done
5778 done
5779 IFS=$as_save_IFS
5783 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5784 if test -n "$ac_ct_STRIP"; then
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5786 $as_echo "$ac_ct_STRIP" >&6; }
5787 else
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5789 $as_echo "no" >&6; }
5792 if test "x$ac_ct_STRIP" = x; then
5793 STRIP=":"
5794 else
5795 case $cross_compiling:$ac_tool_warned in
5796 yes:)
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5799 ac_tool_warned=yes ;;
5800 esac
5801 STRIP=$ac_ct_STRIP
5803 else
5804 STRIP="$ac_cv_prog_STRIP"
5807 test -z "$STRIP" && STRIP=:
5814 if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5816 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818 $as_echo_n "checking for $ac_word... " >&6; }
5819 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 if test -n "$RANLIB"; then
5823 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
5831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5832 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5836 done
5837 done
5838 IFS=$as_save_IFS
5842 RANLIB=$ac_cv_prog_RANLIB
5843 if test -n "$RANLIB"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5845 $as_echo "$RANLIB" >&6; }
5846 else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848 $as_echo "no" >&6; }
5853 if test -z "$ac_cv_prog_RANLIB"; then
5854 ac_ct_RANLIB=$RANLIB
5855 # Extract the first word of "ranlib", so it can be a program name with args.
5856 set dummy ranlib; ac_word=$2
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858 $as_echo_n "checking for $ac_word... " >&6; }
5859 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5860 $as_echo_n "(cached) " >&6
5861 else
5862 if test -n "$ac_ct_RANLIB"; then
5863 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5864 else
5865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866 for as_dir in $PATH
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
5871 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5872 ac_cv_prog_ac_ct_RANLIB="ranlib"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5876 done
5877 done
5878 IFS=$as_save_IFS
5882 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5883 if test -n "$ac_ct_RANLIB"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5885 $as_echo "$ac_ct_RANLIB" >&6; }
5886 else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888 $as_echo "no" >&6; }
5891 if test "x$ac_ct_RANLIB" = x; then
5892 RANLIB=":"
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895 yes:)
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898 ac_tool_warned=yes ;;
5899 esac
5900 RANLIB=$ac_ct_RANLIB
5902 else
5903 RANLIB="$ac_cv_prog_RANLIB"
5906 test -z "$RANLIB" && RANLIB=:
5913 # Determine commands to create old-style static archives.
5914 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5915 old_postinstall_cmds='chmod 644 $oldlib'
5916 old_postuninstall_cmds=
5918 if test -n "$RANLIB"; then
5919 case $host_os in
5920 openbsd*)
5921 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5924 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5926 esac
5927 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5930 case $host_os in
5931 darwin*)
5932 lock_old_archive_extraction=yes ;;
5934 lock_old_archive_extraction=no ;;
5935 esac
5975 # If no C compiler was specified, use CC.
5976 LTCC=${LTCC-"$CC"}
5978 # If no C compiler flags were specified, use CFLAGS.
5979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5981 # Allow CC to be a program name with arguments.
5982 compiler=$CC
5985 # Check for command to grab the raw symbol name followed by C symbol from nm.
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5987 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5988 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
5989 $as_echo_n "(cached) " >&6
5990 else
5992 # These are sane defaults that work on at least a few old systems.
5993 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5995 # Character class describing NM global symbol codes.
5996 symcode='[BCDEGRST]'
5998 # Regexp to match symbols that can be accessed directly from C.
5999 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6001 # Define system-specific variables.
6002 case $host_os in
6003 aix*)
6004 symcode='[BCDT]'
6006 cygwin* | mingw* | pw32* | cegcc*)
6007 symcode='[ABCDGISTW]'
6009 hpux*)
6010 if test "$host_cpu" = ia64; then
6011 symcode='[ABCDEGRST]'
6014 irix* | nonstopux*)
6015 symcode='[BCDEGRST]'
6017 osf*)
6018 symcode='[BCDEGQRST]'
6020 solaris*)
6021 symcode='[BDRT]'
6023 sco3.2v5*)
6024 symcode='[DT]'
6026 sysv4.2uw2*)
6027 symcode='[DT]'
6029 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6030 symcode='[ABDT]'
6032 sysv4)
6033 symcode='[DFNSTU]'
6035 esac
6037 # If we're using GNU nm, then use its standard symbol codes.
6038 case `$NM -V 2>&1` in
6039 *GNU* | *'with BFD'*)
6040 symcode='[ABCDGIRSTW]' ;;
6041 esac
6043 # Transform an extracted symbol line into a proper C declaration.
6044 # Some systems (esp. on ia64) link data and code symbols differently,
6045 # so use this general approach.
6046 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6048 # Transform an extracted symbol line into symbol name and symbol address
6049 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6050 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'"
6052 # Handle CRLF in mingw tool chain
6053 opt_cr=
6054 case $build_os in
6055 mingw*)
6056 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6058 esac
6060 # Try without a prefix underscore, then with it.
6061 for ac_symprfx in "" "_"; do
6063 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6064 symxfrm="\\1 $ac_symprfx\\2 \\2"
6066 # Write the raw and C identifiers.
6067 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6068 # Fake it for dumpbin and say T for any non-static function
6069 # and D for any global variable.
6070 # Also find C++ and __fastcall symbols from MSVC++,
6071 # which start with @ or ?.
6072 lt_cv_sys_global_symbol_pipe="$AWK '"\
6073 " {last_section=section; section=\$ 3};"\
6074 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6075 " \$ 0!~/External *\|/{next};"\
6076 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6077 " {if(hide[section]) next};"\
6078 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6079 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6080 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6081 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6082 " ' prfx=^$ac_symprfx"
6083 else
6084 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6087 # Check to see that the pipe works correctly.
6088 pipe_works=no
6090 rm -f conftest*
6091 cat > conftest.$ac_ext <<_LT_EOF
6092 #ifdef __cplusplus
6093 extern "C" {
6094 #endif
6095 char nm_test_var;
6096 void nm_test_func(void);
6097 void nm_test_func(void){}
6098 #ifdef __cplusplus
6100 #endif
6101 int main(){nm_test_var='a';nm_test_func();return(0);}
6102 _LT_EOF
6104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6105 (eval $ac_compile) 2>&5
6106 ac_status=$?
6107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6108 test $ac_status = 0; }; then
6109 # Now try to grab the symbols.
6110 nlist=conftest.nm
6111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6112 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6113 ac_status=$?
6114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6115 test $ac_status = 0; } && test -s "$nlist"; then
6116 # Try sorting and uniquifying the output.
6117 if sort "$nlist" | uniq > "$nlist"T; then
6118 mv -f "$nlist"T "$nlist"
6119 else
6120 rm -f "$nlist"T
6123 # Make sure that we snagged all the symbols we need.
6124 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6125 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6126 cat <<_LT_EOF > conftest.$ac_ext
6127 #ifdef __cplusplus
6128 extern "C" {
6129 #endif
6131 _LT_EOF
6132 # Now generate the symbol file.
6133 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6135 cat <<_LT_EOF >> conftest.$ac_ext
6137 /* The mapping between symbol names and symbols. */
6138 const struct {
6139 const char *name;
6140 void *address;
6142 lt__PROGRAM__LTX_preloaded_symbols[] =
6144 { "@PROGRAM@", (void *) 0 },
6145 _LT_EOF
6146 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6147 cat <<\_LT_EOF >> conftest.$ac_ext
6148 {0, (void *) 0}
6151 /* This works around a problem in FreeBSD linker */
6152 #ifdef FREEBSD_WORKAROUND
6153 static const void *lt_preloaded_setup() {
6154 return lt__PROGRAM__LTX_preloaded_symbols;
6156 #endif
6158 #ifdef __cplusplus
6160 #endif
6161 _LT_EOF
6162 # Now try linking the two files.
6163 mv conftest.$ac_objext conftstm.$ac_objext
6164 lt_save_LIBS="$LIBS"
6165 lt_save_CFLAGS="$CFLAGS"
6166 LIBS="conftstm.$ac_objext"
6167 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6169 (eval $ac_link) 2>&5
6170 ac_status=$?
6171 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6172 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6173 pipe_works=yes
6175 LIBS="$lt_save_LIBS"
6176 CFLAGS="$lt_save_CFLAGS"
6177 else
6178 echo "cannot find nm_test_func in $nlist" >&5
6180 else
6181 echo "cannot find nm_test_var in $nlist" >&5
6183 else
6184 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6186 else
6187 echo "$progname: failed program was:" >&5
6188 cat conftest.$ac_ext >&5
6190 rm -rf conftest* conftst*
6192 # Do not use the global_symbol_pipe unless it works.
6193 if test "$pipe_works" = yes; then
6194 break
6195 else
6196 lt_cv_sys_global_symbol_pipe=
6198 done
6202 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6203 lt_cv_sys_global_symbol_to_cdecl=
6205 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6207 $as_echo "failed" >&6; }
6208 else
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6210 $as_echo "ok" >&6; }
6235 # Check whether --enable-libtool-lock was given.
6236 if test "${enable_libtool_lock+set}" = set; then :
6237 enableval=$enable_libtool_lock;
6240 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6242 # Some flags need to be propagated to the compiler or linker for good
6243 # libtool support.
6244 case $host in
6245 ia64-*-hpux*)
6246 # Find out which ABI we are using.
6247 echo 'int i;' > conftest.$ac_ext
6248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6249 (eval $ac_compile) 2>&5
6250 ac_status=$?
6251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6252 test $ac_status = 0; }; then
6253 case `/usr/bin/file conftest.$ac_objext` in
6254 *ELF-32*)
6255 HPUX_IA64_MODE="32"
6257 *ELF-64*)
6258 HPUX_IA64_MODE="64"
6260 esac
6262 rm -rf conftest*
6264 *-*-irix6*)
6265 # Find out which ABI we are using.
6266 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6267 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6268 (eval $ac_compile) 2>&5
6269 ac_status=$?
6270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6271 test $ac_status = 0; }; then
6272 if test "$lt_cv_prog_gnu_ld" = yes; then
6273 case `/usr/bin/file conftest.$ac_objext` in
6274 *32-bit*)
6275 LD="${LD-ld} -melf32bsmip"
6277 *N32*)
6278 LD="${LD-ld} -melf32bmipn32"
6280 *64-bit*)
6281 LD="${LD-ld} -melf64bmip"
6283 esac
6284 else
6285 case `/usr/bin/file conftest.$ac_objext` in
6286 *32-bit*)
6287 LD="${LD-ld} -32"
6289 *N32*)
6290 LD="${LD-ld} -n32"
6292 *64-bit*)
6293 LD="${LD-ld} -64"
6295 esac
6298 rm -rf conftest*
6301 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6302 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6303 # Find out which ABI we are using.
6304 echo 'int i;' > conftest.$ac_ext
6305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6306 (eval $ac_compile) 2>&5
6307 ac_status=$?
6308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6309 test $ac_status = 0; }; then
6310 case `/usr/bin/file conftest.o` in
6311 *32-bit*)
6312 case $host in
6313 x86_64-*kfreebsd*-gnu)
6314 LD="${LD-ld} -m elf_i386_fbsd"
6316 x86_64-*linux*)
6317 case `/usr/bin/file conftest.o` in
6318 *x86-64*)
6319 LD="${LD-ld} -m elf32_x86_64"
6322 LD="${LD-ld} -m elf_i386"
6324 esac
6326 powerpc64le-*linux*)
6327 LD="${LD-ld} -m elf32lppclinux"
6329 powerpc64-*linux*)
6330 LD="${LD-ld} -m elf32ppclinux"
6332 s390x-*linux*)
6333 LD="${LD-ld} -m elf_s390"
6335 sparc64-*linux*)
6336 LD="${LD-ld} -m elf32_sparc"
6338 esac
6340 *64-bit*)
6341 case $host in
6342 x86_64-*kfreebsd*-gnu)
6343 LD="${LD-ld} -m elf_x86_64_fbsd"
6345 x86_64-*linux*)
6346 LD="${LD-ld} -m elf_x86_64"
6348 powerpcle-*linux*)
6349 LD="${LD-ld} -m elf64lppc"
6351 powerpc-*linux*)
6352 LD="${LD-ld} -m elf64ppc"
6354 s390*-*linux*|s390*-*tpf*)
6355 LD="${LD-ld} -m elf64_s390"
6357 sparc*-*linux*)
6358 LD="${LD-ld} -m elf64_sparc"
6360 esac
6362 esac
6364 rm -rf conftest*
6367 *-*-sco3.2v5*)
6368 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6369 SAVE_CFLAGS="$CFLAGS"
6370 CFLAGS="$CFLAGS -belf"
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6372 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6373 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 ac_ext=c
6377 ac_cpp='$CPP $CPPFLAGS'
6378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6383 /* end confdefs.h. */
6386 main ()
6390 return 0;
6392 _ACEOF
6393 if ac_fn_c_try_link "$LINENO"; then :
6394 lt_cv_cc_needs_belf=yes
6395 else
6396 lt_cv_cc_needs_belf=no
6398 rm -f core conftest.err conftest.$ac_objext \
6399 conftest$ac_exeext conftest.$ac_ext
6400 ac_ext=c
6401 ac_cpp='$CPP $CPPFLAGS'
6402 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6403 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6404 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6408 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6409 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6410 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6411 CFLAGS="$SAVE_CFLAGS"
6414 sparc*-*solaris*)
6415 # Find out which ABI we are using.
6416 echo 'int i;' > conftest.$ac_ext
6417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6418 (eval $ac_compile) 2>&5
6419 ac_status=$?
6420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6421 test $ac_status = 0; }; then
6422 case `/usr/bin/file conftest.o` in
6423 *64-bit*)
6424 case $lt_cv_prog_gnu_ld in
6425 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6427 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6428 LD="${LD-ld} -64"
6431 esac
6433 esac
6435 rm -rf conftest*
6437 esac
6439 need_locks="$enable_libtool_lock"
6442 case $host_os in
6443 rhapsody* | darwin*)
6444 if test -n "$ac_tool_prefix"; then
6445 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6446 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6448 $as_echo_n "checking for $ac_word... " >&6; }
6449 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
6450 $as_echo_n "(cached) " >&6
6451 else
6452 if test -n "$DSYMUTIL"; then
6453 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6454 else
6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6456 for as_dir in $PATH
6458 IFS=$as_save_IFS
6459 test -z "$as_dir" && as_dir=.
6460 for ac_exec_ext in '' $ac_executable_extensions; do
6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6462 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6464 break 2
6466 done
6467 done
6468 IFS=$as_save_IFS
6472 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6473 if test -n "$DSYMUTIL"; then
6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6475 $as_echo "$DSYMUTIL" >&6; }
6476 else
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6478 $as_echo "no" >&6; }
6483 if test -z "$ac_cv_prog_DSYMUTIL"; then
6484 ac_ct_DSYMUTIL=$DSYMUTIL
6485 # Extract the first word of "dsymutil", so it can be a program name with args.
6486 set dummy dsymutil; ac_word=$2
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488 $as_echo_n "checking for $ac_word... " >&6; }
6489 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
6490 $as_echo_n "(cached) " >&6
6491 else
6492 if test -n "$ac_ct_DSYMUTIL"; then
6493 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6494 else
6495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6496 for as_dir in $PATH
6498 IFS=$as_save_IFS
6499 test -z "$as_dir" && as_dir=.
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6502 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6504 break 2
6506 done
6507 done
6508 IFS=$as_save_IFS
6512 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6513 if test -n "$ac_ct_DSYMUTIL"; then
6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6515 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6516 else
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 $as_echo "no" >&6; }
6521 if test "x$ac_ct_DSYMUTIL" = x; then
6522 DSYMUTIL=":"
6523 else
6524 case $cross_compiling:$ac_tool_warned in
6525 yes:)
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6527 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6528 ac_tool_warned=yes ;;
6529 esac
6530 DSYMUTIL=$ac_ct_DSYMUTIL
6532 else
6533 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6536 if test -n "$ac_tool_prefix"; then
6537 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6538 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6543 else
6544 if test -n "$NMEDIT"; then
6545 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6546 else
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6548 for as_dir in $PATH
6550 IFS=$as_save_IFS
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6556 break 2
6558 done
6559 done
6560 IFS=$as_save_IFS
6564 NMEDIT=$ac_cv_prog_NMEDIT
6565 if test -n "$NMEDIT"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6567 $as_echo "$NMEDIT" >&6; }
6568 else
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6575 if test -z "$ac_cv_prog_NMEDIT"; then
6576 ac_ct_NMEDIT=$NMEDIT
6577 # Extract the first word of "nmedit", so it can be a program name with args.
6578 set dummy nmedit; ac_word=$2
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6580 $as_echo_n "checking for $ac_word... " >&6; }
6581 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
6582 $as_echo_n "(cached) " >&6
6583 else
6584 if test -n "$ac_ct_NMEDIT"; then
6585 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6586 else
6587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588 for as_dir in $PATH
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6594 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6596 break 2
6598 done
6599 done
6600 IFS=$as_save_IFS
6604 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6605 if test -n "$ac_ct_NMEDIT"; then
6606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6607 $as_echo "$ac_ct_NMEDIT" >&6; }
6608 else
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 $as_echo "no" >&6; }
6613 if test "x$ac_ct_NMEDIT" = x; then
6614 NMEDIT=":"
6615 else
6616 case $cross_compiling:$ac_tool_warned in
6617 yes:)
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620 ac_tool_warned=yes ;;
6621 esac
6622 NMEDIT=$ac_ct_NMEDIT
6624 else
6625 NMEDIT="$ac_cv_prog_NMEDIT"
6628 if test -n "$ac_tool_prefix"; then
6629 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6630 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if test "${ac_cv_prog_LIPO+set}" = set; then :
6634 $as_echo_n "(cached) " >&6
6635 else
6636 if test -n "$LIPO"; then
6637 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6642 IFS=$as_save_IFS
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6648 break 2
6650 done
6651 done
6652 IFS=$as_save_IFS
6656 LIPO=$ac_cv_prog_LIPO
6657 if test -n "$LIPO"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6659 $as_echo "$LIPO" >&6; }
6660 else
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6667 if test -z "$ac_cv_prog_LIPO"; then
6668 ac_ct_LIPO=$LIPO
6669 # Extract the first word of "lipo", so it can be a program name with args.
6670 set dummy lipo; ac_word=$2
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6672 $as_echo_n "checking for $ac_word... " >&6; }
6673 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 if test -n "$ac_ct_LIPO"; then
6677 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6678 else
6679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6680 for as_dir in $PATH
6682 IFS=$as_save_IFS
6683 test -z "$as_dir" && as_dir=.
6684 for ac_exec_ext in '' $ac_executable_extensions; do
6685 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6686 ac_cv_prog_ac_ct_LIPO="lipo"
6687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 break 2
6690 done
6691 done
6692 IFS=$as_save_IFS
6696 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6697 if test -n "$ac_ct_LIPO"; then
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6699 $as_echo "$ac_ct_LIPO" >&6; }
6700 else
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6702 $as_echo "no" >&6; }
6705 if test "x$ac_ct_LIPO" = x; then
6706 LIPO=":"
6707 else
6708 case $cross_compiling:$ac_tool_warned in
6709 yes:)
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6712 ac_tool_warned=yes ;;
6713 esac
6714 LIPO=$ac_ct_LIPO
6716 else
6717 LIPO="$ac_cv_prog_LIPO"
6720 if test -n "$ac_tool_prefix"; then
6721 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6722 set dummy ${ac_tool_prefix}otool; ac_word=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if test "${ac_cv_prog_OTOOL+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6727 else
6728 if test -n "$OTOOL"; then
6729 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6730 else
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6732 for as_dir in $PATH
6734 IFS=$as_save_IFS
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6740 break 2
6742 done
6743 done
6744 IFS=$as_save_IFS
6748 OTOOL=$ac_cv_prog_OTOOL
6749 if test -n "$OTOOL"; then
6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6751 $as_echo "$OTOOL" >&6; }
6752 else
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6754 $as_echo "no" >&6; }
6759 if test -z "$ac_cv_prog_OTOOL"; then
6760 ac_ct_OTOOL=$OTOOL
6761 # Extract the first word of "otool", so it can be a program name with args.
6762 set dummy otool; ac_word=$2
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6764 $as_echo_n "checking for $ac_word... " >&6; }
6765 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
6766 $as_echo_n "(cached) " >&6
6767 else
6768 if test -n "$ac_ct_OTOOL"; then
6769 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6770 else
6771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772 for as_dir in $PATH
6774 IFS=$as_save_IFS
6775 test -z "$as_dir" && as_dir=.
6776 for ac_exec_ext in '' $ac_executable_extensions; do
6777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6778 ac_cv_prog_ac_ct_OTOOL="otool"
6779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6780 break 2
6782 done
6783 done
6784 IFS=$as_save_IFS
6788 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6789 if test -n "$ac_ct_OTOOL"; then
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6791 $as_echo "$ac_ct_OTOOL" >&6; }
6792 else
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 $as_echo "no" >&6; }
6797 if test "x$ac_ct_OTOOL" = x; then
6798 OTOOL=":"
6799 else
6800 case $cross_compiling:$ac_tool_warned in
6801 yes:)
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6804 ac_tool_warned=yes ;;
6805 esac
6806 OTOOL=$ac_ct_OTOOL
6808 else
6809 OTOOL="$ac_cv_prog_OTOOL"
6812 if test -n "$ac_tool_prefix"; then
6813 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6814 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6816 $as_echo_n "checking for $ac_word... " >&6; }
6817 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
6818 $as_echo_n "(cached) " >&6
6819 else
6820 if test -n "$OTOOL64"; then
6821 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6822 else
6823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6824 for as_dir in $PATH
6826 IFS=$as_save_IFS
6827 test -z "$as_dir" && as_dir=.
6828 for ac_exec_ext in '' $ac_executable_extensions; do
6829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6830 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6832 break 2
6834 done
6835 done
6836 IFS=$as_save_IFS
6840 OTOOL64=$ac_cv_prog_OTOOL64
6841 if test -n "$OTOOL64"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6843 $as_echo "$OTOOL64" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6851 if test -z "$ac_cv_prog_OTOOL64"; then
6852 ac_ct_OTOOL64=$OTOOL64
6853 # Extract the first word of "otool64", so it can be a program name with args.
6854 set dummy otool64; ac_word=$2
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6856 $as_echo_n "checking for $ac_word... " >&6; }
6857 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
6858 $as_echo_n "(cached) " >&6
6859 else
6860 if test -n "$ac_ct_OTOOL64"; then
6861 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6862 else
6863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6864 for as_dir in $PATH
6866 IFS=$as_save_IFS
6867 test -z "$as_dir" && as_dir=.
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_prog_ac_ct_OTOOL64="otool64"
6871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 break 2
6874 done
6875 done
6876 IFS=$as_save_IFS
6880 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6881 if test -n "$ac_ct_OTOOL64"; then
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6883 $as_echo "$ac_ct_OTOOL64" >&6; }
6884 else
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6886 $as_echo "no" >&6; }
6889 if test "x$ac_ct_OTOOL64" = x; then
6890 OTOOL64=":"
6891 else
6892 case $cross_compiling:$ac_tool_warned in
6893 yes:)
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6896 ac_tool_warned=yes ;;
6897 esac
6898 OTOOL64=$ac_ct_OTOOL64
6900 else
6901 OTOOL64="$ac_cv_prog_OTOOL64"
6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6931 $as_echo_n "checking for -single_module linker flag... " >&6; }
6932 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
6933 $as_echo_n "(cached) " >&6
6934 else
6935 lt_cv_apple_cc_single_mod=no
6936 if test -z "${LT_MULTI_MODULE}"; then
6937 # By default we will add the -single_module flag. You can override
6938 # by either setting the environment variable LT_MULTI_MODULE
6939 # non-empty at configure time, or by adding -multi_module to the
6940 # link flags.
6941 rm -rf libconftest.dylib*
6942 echo "int foo(void){return 1;}" > conftest.c
6943 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6944 -dynamiclib -Wl,-single_module conftest.c" >&5
6945 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6946 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6947 _lt_result=$?
6948 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6949 lt_cv_apple_cc_single_mod=yes
6950 else
6951 cat conftest.err >&5
6953 rm -rf libconftest.dylib*
6954 rm -f conftest.*
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6958 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6960 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6961 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 lt_cv_ld_exported_symbols_list=no
6965 save_LDFLAGS=$LDFLAGS
6966 echo "_main" > conftest.sym
6967 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6969 /* end confdefs.h. */
6972 main ()
6976 return 0;
6978 _ACEOF
6979 if ac_fn_c_try_link "$LINENO"; then :
6980 lt_cv_ld_exported_symbols_list=yes
6981 else
6982 lt_cv_ld_exported_symbols_list=no
6984 rm -f core conftest.err conftest.$ac_objext \
6985 conftest$ac_exeext conftest.$ac_ext
6986 LDFLAGS="$save_LDFLAGS"
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
6990 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
6992 $as_echo_n "checking for -force_load linker flag... " >&6; }
6993 if test "${lt_cv_ld_force_load+set}" = set; then :
6994 $as_echo_n "(cached) " >&6
6995 else
6996 lt_cv_ld_force_load=no
6997 cat > conftest.c << _LT_EOF
6998 int forced_loaded() { return 2;}
6999 _LT_EOF
7000 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7001 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7002 echo "$AR cru libconftest.a conftest.o" >&5
7003 $AR cru libconftest.a conftest.o 2>&5
7004 cat > conftest.c << _LT_EOF
7005 int main() { return 0;}
7006 _LT_EOF
7007 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7008 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7009 _lt_result=$?
7010 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7011 lt_cv_ld_force_load=yes
7012 else
7013 cat conftest.err >&5
7015 rm -f conftest.err libconftest.a conftest conftest.c
7016 rm -rf conftest.dSYM
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7020 $as_echo "$lt_cv_ld_force_load" >&6; }
7021 case $host_os in
7022 rhapsody* | darwin1.[012])
7023 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7024 darwin1.*)
7025 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7026 darwin*) # darwin 5.x on
7027 # if running on 10.5 or later, the deployment target defaults
7028 # to the OS version, if on x86, and 10.4, the deployment
7029 # target defaults to 10.4. Don't you love it?
7030 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7031 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7032 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7033 10.[012][,.]*)
7034 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7035 10.*)
7036 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7037 esac
7039 esac
7040 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7041 _lt_dar_single_mod='$single_module'
7043 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7044 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7045 else
7046 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7048 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7049 _lt_dsymutil='~$DSYMUTIL $lib || :'
7050 else
7051 _lt_dsymutil=
7054 esac
7056 ac_ext=c
7057 ac_cpp='$CPP $CPPFLAGS'
7058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7062 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7063 # On Suns, sometimes $CPP names a directory.
7064 if test -n "$CPP" && test -d "$CPP"; then
7065 CPP=
7067 if test -z "$CPP"; then
7068 if test "${ac_cv_prog_CPP+set}" = set; then :
7069 $as_echo_n "(cached) " >&6
7070 else
7071 # Double quotes because CPP needs to be expanded
7072 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7074 ac_preproc_ok=false
7075 for ac_c_preproc_warn_flag in '' yes
7077 # Use a header file that comes with gcc, so configuring glibc
7078 # with a fresh cross-compiler works.
7079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7080 # <limits.h> exists even on freestanding compilers.
7081 # On the NeXT, cc -E runs the code through the compiler's parser,
7082 # not just through cpp. "Syntax error" is here to catch this case.
7083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7084 /* end confdefs.h. */
7085 #ifdef __STDC__
7086 # include <limits.h>
7087 #else
7088 # include <assert.h>
7089 #endif
7090 Syntax error
7091 _ACEOF
7092 if ac_fn_c_try_cpp "$LINENO"; then :
7094 else
7095 # Broken: fails on valid input.
7096 continue
7098 rm -f conftest.err conftest.$ac_ext
7100 # OK, works on sane cases. Now check whether nonexistent headers
7101 # can be detected and how.
7102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7103 /* end confdefs.h. */
7104 #include <ac_nonexistent.h>
7105 _ACEOF
7106 if ac_fn_c_try_cpp "$LINENO"; then :
7107 # Broken: success on invalid input.
7108 continue
7109 else
7110 # Passes both tests.
7111 ac_preproc_ok=:
7112 break
7114 rm -f conftest.err conftest.$ac_ext
7116 done
7117 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7118 rm -f conftest.err conftest.$ac_ext
7119 if $ac_preproc_ok; then :
7120 break
7123 done
7124 ac_cv_prog_CPP=$CPP
7127 CPP=$ac_cv_prog_CPP
7128 else
7129 ac_cv_prog_CPP=$CPP
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7132 $as_echo "$CPP" >&6; }
7133 ac_preproc_ok=false
7134 for ac_c_preproc_warn_flag in '' yes
7136 # Use a header file that comes with gcc, so configuring glibc
7137 # with a fresh cross-compiler works.
7138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7139 # <limits.h> exists even on freestanding compilers.
7140 # On the NeXT, cc -E runs the code through the compiler's parser,
7141 # not just through cpp. "Syntax error" is here to catch this case.
7142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7143 /* end confdefs.h. */
7144 #ifdef __STDC__
7145 # include <limits.h>
7146 #else
7147 # include <assert.h>
7148 #endif
7149 Syntax error
7150 _ACEOF
7151 if ac_fn_c_try_cpp "$LINENO"; then :
7153 else
7154 # Broken: fails on valid input.
7155 continue
7157 rm -f conftest.err conftest.$ac_ext
7159 # OK, works on sane cases. Now check whether nonexistent headers
7160 # can be detected and how.
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7162 /* end confdefs.h. */
7163 #include <ac_nonexistent.h>
7164 _ACEOF
7165 if ac_fn_c_try_cpp "$LINENO"; then :
7166 # Broken: success on invalid input.
7167 continue
7168 else
7169 # Passes both tests.
7170 ac_preproc_ok=:
7171 break
7173 rm -f conftest.err conftest.$ac_ext
7175 done
7176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7177 rm -f conftest.err conftest.$ac_ext
7178 if $ac_preproc_ok; then :
7180 else
7181 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7183 as_fn_error "C preprocessor \"$CPP\" fails sanity check
7184 See \`config.log' for more details." "$LINENO" 5; }
7187 ac_ext=c
7188 ac_cpp='$CPP $CPPFLAGS'
7189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7195 $as_echo_n "checking for ANSI C header files... " >&6; }
7196 if test "${ac_cv_header_stdc+set}" = set; then :
7197 $as_echo_n "(cached) " >&6
7198 else
7199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7201 #include <stdlib.h>
7202 #include <stdarg.h>
7203 #include <string.h>
7204 #include <float.h>
7207 main ()
7211 return 0;
7213 _ACEOF
7214 if ac_fn_c_try_compile "$LINENO"; then :
7215 ac_cv_header_stdc=yes
7216 else
7217 ac_cv_header_stdc=no
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7221 if test $ac_cv_header_stdc = yes; then
7222 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7224 /* end confdefs.h. */
7225 #include <string.h>
7227 _ACEOF
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229 $EGREP "memchr" >/dev/null 2>&1; then :
7231 else
7232 ac_cv_header_stdc=no
7234 rm -f conftest*
7238 if test $ac_cv_header_stdc = yes; then
7239 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7242 #include <stdlib.h>
7244 _ACEOF
7245 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7246 $EGREP "free" >/dev/null 2>&1; then :
7248 else
7249 ac_cv_header_stdc=no
7251 rm -f conftest*
7255 if test $ac_cv_header_stdc = yes; then
7256 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7257 if test "$cross_compiling" = yes; then :
7259 else
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 #include <ctype.h>
7263 #include <stdlib.h>
7264 #if ((' ' & 0x0FF) == 0x020)
7265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7267 #else
7268 # define ISLOWER(c) \
7269 (('a' <= (c) && (c) <= 'i') \
7270 || ('j' <= (c) && (c) <= 'r') \
7271 || ('s' <= (c) && (c) <= 'z'))
7272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7273 #endif
7275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7277 main ()
7279 int i;
7280 for (i = 0; i < 256; i++)
7281 if (XOR (islower (i), ISLOWER (i))
7282 || toupper (i) != TOUPPER (i))
7283 return 2;
7284 return 0;
7286 _ACEOF
7287 if ac_fn_c_try_run "$LINENO"; then :
7289 else
7290 ac_cv_header_stdc=no
7292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7293 conftest.$ac_objext conftest.beam conftest.$ac_ext
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7299 $as_echo "$ac_cv_header_stdc" >&6; }
7300 if test $ac_cv_header_stdc = yes; then
7302 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7306 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7308 inttypes.h stdint.h unistd.h
7309 do :
7310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7311 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7313 eval as_val=\$$as_ac_Header
7314 if test "x$as_val" = x""yes; then :
7315 cat >>confdefs.h <<_ACEOF
7316 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7317 _ACEOF
7321 done
7324 for ac_header in dlfcn.h
7325 do :
7326 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7328 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7329 cat >>confdefs.h <<_ACEOF
7330 #define HAVE_DLFCN_H 1
7331 _ACEOF
7335 done
7342 # Set options
7347 enable_win32_dll=no
7350 # Check whether --enable-shared was given.
7351 if test "${enable_shared+set}" = set; then :
7352 enableval=$enable_shared; p=${PACKAGE-default}
7353 case $enableval in
7354 yes) enable_shared=yes ;;
7355 no) enable_shared=no ;;
7357 enable_shared=no
7358 # Look at the argument we got. We use all the common list separators.
7359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7360 for pkg in $enableval; do
7361 IFS="$lt_save_ifs"
7362 if test "X$pkg" = "X$p"; then
7363 enable_shared=yes
7365 done
7366 IFS="$lt_save_ifs"
7368 esac
7369 else
7370 enable_shared=yes
7381 # Check whether --enable-static was given.
7382 if test "${enable_static+set}" = set; then :
7383 enableval=$enable_static; p=${PACKAGE-default}
7384 case $enableval in
7385 yes) enable_static=yes ;;
7386 no) enable_static=no ;;
7388 enable_static=no
7389 # Look at the argument we got. We use all the common list separators.
7390 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7391 for pkg in $enableval; do
7392 IFS="$lt_save_ifs"
7393 if test "X$pkg" = "X$p"; then
7394 enable_static=yes
7396 done
7397 IFS="$lt_save_ifs"
7399 esac
7400 else
7401 enable_static=yes
7413 # Check whether --with-pic was given.
7414 if test "${with_pic+set}" = set; then :
7415 withval=$with_pic; pic_mode="$withval"
7416 else
7417 pic_mode=default
7421 test -z "$pic_mode" && pic_mode=default
7429 # Check whether --enable-fast-install was given.
7430 if test "${enable_fast_install+set}" = set; then :
7431 enableval=$enable_fast_install; p=${PACKAGE-default}
7432 case $enableval in
7433 yes) enable_fast_install=yes ;;
7434 no) enable_fast_install=no ;;
7436 enable_fast_install=no
7437 # Look at the argument we got. We use all the common list separators.
7438 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7439 for pkg in $enableval; do
7440 IFS="$lt_save_ifs"
7441 if test "X$pkg" = "X$p"; then
7442 enable_fast_install=yes
7444 done
7445 IFS="$lt_save_ifs"
7447 esac
7448 else
7449 enable_fast_install=yes
7462 # This can be used to rebuild libtool when needed
7463 LIBTOOL_DEPS="$ltmain"
7465 # Always use our own libtool.
7466 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7493 test -z "$LN_S" && LN_S="ln -s"
7508 if test -n "${ZSH_VERSION+set}" ; then
7509 setopt NO_GLOB_SUBST
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7513 $as_echo_n "checking for objdir... " >&6; }
7514 if test "${lt_cv_objdir+set}" = set; then :
7515 $as_echo_n "(cached) " >&6
7516 else
7517 rm -f .libs 2>/dev/null
7518 mkdir .libs 2>/dev/null
7519 if test -d .libs; then
7520 lt_cv_objdir=.libs
7521 else
7522 # MS-DOS does not allow filenames that begin with a dot.
7523 lt_cv_objdir=_libs
7525 rmdir .libs 2>/dev/null
7527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7528 $as_echo "$lt_cv_objdir" >&6; }
7529 objdir=$lt_cv_objdir
7535 cat >>confdefs.h <<_ACEOF
7536 #define LT_OBJDIR "$lt_cv_objdir/"
7537 _ACEOF
7542 case $host_os in
7543 aix3*)
7544 # AIX sometimes has problems with the GCC collect2 program. For some
7545 # reason, if we set the COLLECT_NAMES environment variable, the problems
7546 # vanish in a puff of smoke.
7547 if test "X${COLLECT_NAMES+set}" != Xset; then
7548 COLLECT_NAMES=
7549 export COLLECT_NAMES
7552 esac
7554 # Global variables:
7555 ofile=libtool
7556 can_build_shared=yes
7558 # All known linkers require a `.a' archive for static linking (except MSVC,
7559 # which needs '.lib').
7560 libext=a
7562 with_gnu_ld="$lt_cv_prog_gnu_ld"
7564 old_CC="$CC"
7565 old_CFLAGS="$CFLAGS"
7567 # Set sane defaults for various variables
7568 test -z "$CC" && CC=cc
7569 test -z "$LTCC" && LTCC=$CC
7570 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7571 test -z "$LD" && LD=ld
7572 test -z "$ac_objext" && ac_objext=o
7574 for cc_temp in $compiler""; do
7575 case $cc_temp in
7576 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7577 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7578 \-*) ;;
7579 *) break;;
7580 esac
7581 done
7582 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7585 # Only perform the check for file, if the check method requires it
7586 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7587 case $deplibs_check_method in
7588 file_magic*)
7589 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7591 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7592 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7593 $as_echo_n "(cached) " >&6
7594 else
7595 case $MAGIC_CMD in
7596 [\\/*] | ?:[\\/]*)
7597 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7600 lt_save_MAGIC_CMD="$MAGIC_CMD"
7601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7602 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7603 for ac_dir in $ac_dummy; do
7604 IFS="$lt_save_ifs"
7605 test -z "$ac_dir" && ac_dir=.
7606 if test -f $ac_dir/${ac_tool_prefix}file; then
7607 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7608 if test -n "$file_magic_test_file"; then
7609 case $deplibs_check_method in
7610 "file_magic "*)
7611 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7613 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7614 $EGREP "$file_magic_regex" > /dev/null; then
7616 else
7617 cat <<_LT_EOF 1>&2
7619 *** Warning: the command libtool uses to detect shared libraries,
7620 *** $file_magic_cmd, produces output that libtool cannot recognize.
7621 *** The result is that libtool may fail to recognize shared libraries
7622 *** as such. This will affect the creation of libtool libraries that
7623 *** depend on shared libraries, but programs linked with such libtool
7624 *** libraries will work regardless of this problem. Nevertheless, you
7625 *** may want to report the problem to your system manager and/or to
7626 *** bug-libtool@gnu.org
7628 _LT_EOF
7629 fi ;;
7630 esac
7632 break
7634 done
7635 IFS="$lt_save_ifs"
7636 MAGIC_CMD="$lt_save_MAGIC_CMD"
7638 esac
7641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7642 if test -n "$MAGIC_CMD"; then
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7644 $as_echo "$MAGIC_CMD" >&6; }
7645 else
7646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7647 $as_echo "no" >&6; }
7654 if test -z "$lt_cv_path_MAGIC_CMD"; then
7655 if test -n "$ac_tool_prefix"; then
7656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7657 $as_echo_n "checking for file... " >&6; }
7658 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7659 $as_echo_n "(cached) " >&6
7660 else
7661 case $MAGIC_CMD in
7662 [\\/*] | ?:[\\/]*)
7663 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7666 lt_save_MAGIC_CMD="$MAGIC_CMD"
7667 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7668 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7669 for ac_dir in $ac_dummy; do
7670 IFS="$lt_save_ifs"
7671 test -z "$ac_dir" && ac_dir=.
7672 if test -f $ac_dir/file; then
7673 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7674 if test -n "$file_magic_test_file"; then
7675 case $deplibs_check_method in
7676 "file_magic "*)
7677 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7679 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7680 $EGREP "$file_magic_regex" > /dev/null; then
7682 else
7683 cat <<_LT_EOF 1>&2
7685 *** Warning: the command libtool uses to detect shared libraries,
7686 *** $file_magic_cmd, produces output that libtool cannot recognize.
7687 *** The result is that libtool may fail to recognize shared libraries
7688 *** as such. This will affect the creation of libtool libraries that
7689 *** depend on shared libraries, but programs linked with such libtool
7690 *** libraries will work regardless of this problem. Nevertheless, you
7691 *** may want to report the problem to your system manager and/or to
7692 *** bug-libtool@gnu.org
7694 _LT_EOF
7695 fi ;;
7696 esac
7698 break
7700 done
7701 IFS="$lt_save_ifs"
7702 MAGIC_CMD="$lt_save_MAGIC_CMD"
7704 esac
7707 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7708 if test -n "$MAGIC_CMD"; then
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7710 $as_echo "$MAGIC_CMD" >&6; }
7711 else
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7713 $as_echo "no" >&6; }
7717 else
7718 MAGIC_CMD=:
7724 esac
7726 # Use C for the default configuration in the libtool script
7728 lt_save_CC="$CC"
7729 ac_ext=c
7730 ac_cpp='$CPP $CPPFLAGS'
7731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7736 # Source file extension for C test sources.
7737 ac_ext=c
7739 # Object file extension for compiled C test sources.
7740 objext=o
7741 objext=$objext
7743 # Code to be used in simple compile tests
7744 lt_simple_compile_test_code="int some_variable = 0;"
7746 # Code to be used in simple link tests
7747 lt_simple_link_test_code='int main(){return(0);}'
7755 # If no C compiler was specified, use CC.
7756 LTCC=${LTCC-"$CC"}
7758 # If no C compiler flags were specified, use CFLAGS.
7759 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7761 # Allow CC to be a program name with arguments.
7762 compiler=$CC
7764 # Save the default compiler, since it gets overwritten when the other
7765 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7766 compiler_DEFAULT=$CC
7768 # save warnings/boilerplate of simple test code
7769 ac_outfile=conftest.$ac_objext
7770 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7771 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7772 _lt_compiler_boilerplate=`cat conftest.err`
7773 $RM conftest*
7775 ac_outfile=conftest.$ac_objext
7776 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7777 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7778 _lt_linker_boilerplate=`cat conftest.err`
7779 $RM -r conftest*
7782 ## CAVEAT EMPTOR:
7783 ## There is no encapsulation within the following macros, do not change
7784 ## the running order or otherwise move them around unless you know exactly
7785 ## what you are doing...
7786 if test -n "$compiler"; then
7788 lt_prog_compiler_no_builtin_flag=
7790 if test "$GCC" = yes; then
7791 case $cc_basename in
7792 nvcc*)
7793 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7795 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7796 esac
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7799 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7800 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 lt_cv_prog_compiler_rtti_exceptions=no
7804 ac_outfile=conftest.$ac_objext
7805 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7806 lt_compiler_flag="-fno-rtti -fno-exceptions"
7807 # Insert the option either (1) after the last *FLAGS variable, or
7808 # (2) before a word containing "conftest.", or (3) at the end.
7809 # Note that $ac_compile itself does not contain backslashes and begins
7810 # with a dollar sign (not a hyphen), so the echo should work correctly.
7811 # The option is referenced via a variable to avoid confusing sed.
7812 lt_compile=`echo "$ac_compile" | $SED \
7813 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7815 -e 's:$: $lt_compiler_flag:'`
7816 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7817 (eval "$lt_compile" 2>conftest.err)
7818 ac_status=$?
7819 cat conftest.err >&5
7820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7821 if (exit $ac_status) && test -s "$ac_outfile"; then
7822 # The compiler can only warn and ignore the option if not recognized
7823 # So say no if there are warnings other than the usual output.
7824 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7826 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7827 lt_cv_prog_compiler_rtti_exceptions=yes
7830 $RM conftest*
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7834 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7836 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7837 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7838 else
7849 lt_prog_compiler_wl=
7850 lt_prog_compiler_pic=
7851 lt_prog_compiler_static=
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7854 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7856 if test "$GCC" = yes; then
7857 lt_prog_compiler_wl='-Wl,'
7858 lt_prog_compiler_static='-static'
7860 case $host_os in
7861 aix*)
7862 # All AIX code is PIC.
7863 if test "$host_cpu" = ia64; then
7864 # AIX 5 now supports IA64 processor
7865 lt_prog_compiler_static='-Bstatic'
7867 lt_prog_compiler_pic='-fPIC'
7870 amigaos*)
7871 case $host_cpu in
7872 powerpc)
7873 # see comment about AmigaOS4 .so support
7874 lt_prog_compiler_pic='-fPIC'
7876 m68k)
7877 # FIXME: we need at least 68020 code to build shared libraries, but
7878 # adding the `-m68020' flag to GCC prevents building anything better,
7879 # like `-m68040'.
7880 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7882 esac
7885 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7886 # PIC is the default for these OSes.
7889 mingw* | cygwin* | pw32* | os2* | cegcc*)
7890 # This hack is so that the source file can tell whether it is being
7891 # built for inclusion in a dll (and should export symbols for example).
7892 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7893 # (--disable-auto-import) libraries
7894 lt_prog_compiler_pic='-DDLL_EXPORT'
7897 darwin* | rhapsody*)
7898 # PIC is the default on this platform
7899 # Common symbols not allowed in MH_DYLIB files
7900 lt_prog_compiler_pic='-fno-common'
7903 haiku*)
7904 # PIC is the default for Haiku.
7905 # The "-static" flag exists, but is broken.
7906 lt_prog_compiler_static=
7909 hpux*)
7910 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7911 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7912 # sets the default TLS model and affects inlining.
7913 case $host_cpu in
7914 hppa*64*)
7915 # +Z the default
7918 lt_prog_compiler_pic='-fPIC'
7920 esac
7923 interix[3-9]*)
7924 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7925 # Instead, we relocate shared libraries at runtime.
7928 msdosdjgpp*)
7929 # Just because we use GCC doesn't mean we suddenly get shared libraries
7930 # on systems that don't support them.
7931 lt_prog_compiler_can_build_shared=no
7932 enable_shared=no
7935 *nto* | *qnx*)
7936 # QNX uses GNU C++, but need to define -shared option too, otherwise
7937 # it will coredump.
7938 lt_prog_compiler_pic='-fPIC -shared'
7941 sysv4*MP*)
7942 if test -d /usr/nec; then
7943 lt_prog_compiler_pic=-Kconform_pic
7948 lt_prog_compiler_pic='-fPIC'
7950 esac
7952 case $cc_basename in
7953 nvcc*) # Cuda Compiler Driver 2.2
7954 lt_prog_compiler_wl='-Xlinker '
7955 lt_prog_compiler_pic='-Xcompiler -fPIC'
7957 esac
7958 else
7959 # PORTME Check for flag to pass linker flags through the system compiler.
7960 case $host_os in
7961 aix*)
7962 lt_prog_compiler_wl='-Wl,'
7963 if test "$host_cpu" = ia64; then
7964 # AIX 5 now supports IA64 processor
7965 lt_prog_compiler_static='-Bstatic'
7966 else
7967 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7971 mingw* | cygwin* | pw32* | os2* | cegcc*)
7972 # This hack is so that the source file can tell whether it is being
7973 # built for inclusion in a dll (and should export symbols for example).
7974 lt_prog_compiler_pic='-DDLL_EXPORT'
7977 hpux9* | hpux10* | hpux11*)
7978 lt_prog_compiler_wl='-Wl,'
7979 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7980 # not for PA HP-UX.
7981 case $host_cpu in
7982 hppa*64*|ia64*)
7983 # +Z the default
7986 lt_prog_compiler_pic='+Z'
7988 esac
7989 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7990 lt_prog_compiler_static='${wl}-a ${wl}archive'
7993 irix5* | irix6* | nonstopux*)
7994 lt_prog_compiler_wl='-Wl,'
7995 # PIC (with -KPIC) is the default.
7996 lt_prog_compiler_static='-non_shared'
7999 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8000 case $cc_basename in
8001 # old Intel for x86_64 which still supported -KPIC.
8002 ecc*)
8003 lt_prog_compiler_wl='-Wl,'
8004 lt_prog_compiler_pic='-KPIC'
8005 lt_prog_compiler_static='-static'
8007 # icc used to be incompatible with GCC.
8008 # ICC 10 doesn't accept -KPIC any more.
8009 icc* | ifort*)
8010 lt_prog_compiler_wl='-Wl,'
8011 lt_prog_compiler_pic='-fPIC'
8012 lt_prog_compiler_static='-static'
8014 # Lahey Fortran 8.1.
8015 lf95*)
8016 lt_prog_compiler_wl='-Wl,'
8017 lt_prog_compiler_pic='--shared'
8018 lt_prog_compiler_static='--static'
8020 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8021 # Portland Group compilers (*not* the Pentium gcc compiler,
8022 # which looks to be a dead project)
8023 lt_prog_compiler_wl='-Wl,'
8024 lt_prog_compiler_pic='-fpic'
8025 lt_prog_compiler_static='-Bstatic'
8027 ccc*)
8028 lt_prog_compiler_wl='-Wl,'
8029 # All Alpha code is PIC.
8030 lt_prog_compiler_static='-non_shared'
8032 xl* | bgxl* | bgf* | mpixl*)
8033 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8034 lt_prog_compiler_wl='-Wl,'
8035 lt_prog_compiler_pic='-qpic'
8036 lt_prog_compiler_static='-qstaticlink'
8039 case `$CC -V 2>&1 | sed 5q` in
8040 *Sun\ F* | *Sun*Fortran*)
8041 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8042 lt_prog_compiler_pic='-KPIC'
8043 lt_prog_compiler_static='-Bstatic'
8044 lt_prog_compiler_wl=''
8046 *Sun\ C*)
8047 # Sun C 5.9
8048 lt_prog_compiler_pic='-KPIC'
8049 lt_prog_compiler_static='-Bstatic'
8050 lt_prog_compiler_wl='-Wl,'
8052 esac
8054 esac
8057 newsos6)
8058 lt_prog_compiler_pic='-KPIC'
8059 lt_prog_compiler_static='-Bstatic'
8062 *nto* | *qnx*)
8063 # QNX uses GNU C++, but need to define -shared option too, otherwise
8064 # it will coredump.
8065 lt_prog_compiler_pic='-fPIC -shared'
8068 osf3* | osf4* | osf5*)
8069 lt_prog_compiler_wl='-Wl,'
8070 # All OSF/1 code is PIC.
8071 lt_prog_compiler_static='-non_shared'
8074 rdos*)
8075 lt_prog_compiler_static='-non_shared'
8078 solaris*)
8079 lt_prog_compiler_pic='-KPIC'
8080 lt_prog_compiler_static='-Bstatic'
8081 case $cc_basename in
8082 f77* | f90* | f95*)
8083 lt_prog_compiler_wl='-Qoption ld ';;
8085 lt_prog_compiler_wl='-Wl,';;
8086 esac
8089 sunos4*)
8090 lt_prog_compiler_wl='-Qoption ld '
8091 lt_prog_compiler_pic='-PIC'
8092 lt_prog_compiler_static='-Bstatic'
8095 sysv4 | sysv4.2uw2* | sysv4.3*)
8096 lt_prog_compiler_wl='-Wl,'
8097 lt_prog_compiler_pic='-KPIC'
8098 lt_prog_compiler_static='-Bstatic'
8101 sysv4*MP*)
8102 if test -d /usr/nec ;then
8103 lt_prog_compiler_pic='-Kconform_pic'
8104 lt_prog_compiler_static='-Bstatic'
8108 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8109 lt_prog_compiler_wl='-Wl,'
8110 lt_prog_compiler_pic='-KPIC'
8111 lt_prog_compiler_static='-Bstatic'
8114 unicos*)
8115 lt_prog_compiler_wl='-Wl,'
8116 lt_prog_compiler_can_build_shared=no
8119 uts4*)
8120 lt_prog_compiler_pic='-pic'
8121 lt_prog_compiler_static='-Bstatic'
8125 lt_prog_compiler_can_build_shared=no
8127 esac
8130 case $host_os in
8131 # For platforms which do not support PIC, -DPIC is meaningless:
8132 *djgpp*)
8133 lt_prog_compiler_pic=
8136 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8138 esac
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8140 $as_echo "$lt_prog_compiler_pic" >&6; }
8148 # Check to make sure the PIC flag actually works.
8150 if test -n "$lt_prog_compiler_pic"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8152 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8153 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 lt_cv_prog_compiler_pic_works=no
8157 ac_outfile=conftest.$ac_objext
8158 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8159 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8160 # Insert the option either (1) after the last *FLAGS variable, or
8161 # (2) before a word containing "conftest.", or (3) at the end.
8162 # Note that $ac_compile itself does not contain backslashes and begins
8163 # with a dollar sign (not a hyphen), so the echo should work correctly.
8164 # The option is referenced via a variable to avoid confusing sed.
8165 lt_compile=`echo "$ac_compile" | $SED \
8166 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8167 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8168 -e 's:$: $lt_compiler_flag:'`
8169 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8170 (eval "$lt_compile" 2>conftest.err)
8171 ac_status=$?
8172 cat conftest.err >&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 if (exit $ac_status) && test -s "$ac_outfile"; then
8175 # The compiler can only warn and ignore the option if not recognized
8176 # So say no if there are warnings other than the usual output.
8177 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8178 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8179 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8180 lt_cv_prog_compiler_pic_works=yes
8183 $RM conftest*
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8187 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8189 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8190 case $lt_prog_compiler_pic in
8191 "" | " "*) ;;
8192 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8193 esac
8194 else
8195 lt_prog_compiler_pic=
8196 lt_prog_compiler_can_build_shared=no
8207 # Check to make sure the static flag actually works.
8209 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8211 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8212 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 lt_cv_prog_compiler_static_works=no
8216 save_LDFLAGS="$LDFLAGS"
8217 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8218 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8219 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8220 # The linker can only warn and ignore the option if not recognized
8221 # So say no if there are warnings
8222 if test -s conftest.err; then
8223 # Append any errors to the config.log.
8224 cat conftest.err 1>&5
8225 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8226 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8227 if diff conftest.exp conftest.er2 >/dev/null; then
8228 lt_cv_prog_compiler_static_works=yes
8230 else
8231 lt_cv_prog_compiler_static_works=yes
8234 $RM -r conftest*
8235 LDFLAGS="$save_LDFLAGS"
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8239 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8241 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8243 else
8244 lt_prog_compiler_static=
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8254 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8255 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8257 else
8258 lt_cv_prog_compiler_c_o=no
8259 $RM -r conftest 2>/dev/null
8260 mkdir conftest
8261 cd conftest
8262 mkdir out
8263 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8265 lt_compiler_flag="-o out/conftest2.$ac_objext"
8266 # Insert the option either (1) after the last *FLAGS variable, or
8267 # (2) before a word containing "conftest.", or (3) at the end.
8268 # Note that $ac_compile itself does not contain backslashes and begins
8269 # with a dollar sign (not a hyphen), so the echo should work correctly.
8270 lt_compile=`echo "$ac_compile" | $SED \
8271 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8272 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8273 -e 's:$: $lt_compiler_flag:'`
8274 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8275 (eval "$lt_compile" 2>out/conftest.err)
8276 ac_status=$?
8277 cat out/conftest.err >&5
8278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8279 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8280 then
8281 # The compiler can only warn and ignore the option if not recognized
8282 # So say no if there are warnings
8283 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8284 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8285 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8286 lt_cv_prog_compiler_c_o=yes
8289 chmod u+w . 2>&5
8290 $RM conftest*
8291 # SGI C++ compiler will create directory out/ii_files/ for
8292 # template instantiation
8293 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8294 $RM out/* && rmdir out
8295 cd ..
8296 $RM -r conftest
8297 $RM conftest*
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8301 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8309 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8310 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8311 $as_echo_n "(cached) " >&6
8312 else
8313 lt_cv_prog_compiler_c_o=no
8314 $RM -r conftest 2>/dev/null
8315 mkdir conftest
8316 cd conftest
8317 mkdir out
8318 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8320 lt_compiler_flag="-o out/conftest2.$ac_objext"
8321 # Insert the option either (1) after the last *FLAGS variable, or
8322 # (2) before a word containing "conftest.", or (3) at the end.
8323 # Note that $ac_compile itself does not contain backslashes and begins
8324 # with a dollar sign (not a hyphen), so the echo should work correctly.
8325 lt_compile=`echo "$ac_compile" | $SED \
8326 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8327 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8328 -e 's:$: $lt_compiler_flag:'`
8329 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8330 (eval "$lt_compile" 2>out/conftest.err)
8331 ac_status=$?
8332 cat out/conftest.err >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8335 then
8336 # The compiler can only warn and ignore the option if not recognized
8337 # So say no if there are warnings
8338 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8339 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8340 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8341 lt_cv_prog_compiler_c_o=yes
8344 chmod u+w . 2>&5
8345 $RM conftest*
8346 # SGI C++ compiler will create directory out/ii_files/ for
8347 # template instantiation
8348 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8349 $RM out/* && rmdir out
8350 cd ..
8351 $RM -r conftest
8352 $RM conftest*
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8356 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8361 hard_links="nottested"
8362 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8363 # do not overwrite the value of need_locks provided by the user
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8365 $as_echo_n "checking if we can lock with hard links... " >&6; }
8366 hard_links=yes
8367 $RM conftest*
8368 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8369 touch conftest.a
8370 ln conftest.a conftest.b 2>&5 || hard_links=no
8371 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8373 $as_echo "$hard_links" >&6; }
8374 if test "$hard_links" = no; then
8375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8376 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8377 need_locks=warn
8379 else
8380 need_locks=no
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8389 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8391 runpath_var=
8392 allow_undefined_flag=
8393 always_export_symbols=no
8394 archive_cmds=
8395 archive_expsym_cmds=
8396 compiler_needs_object=no
8397 enable_shared_with_static_runtimes=no
8398 export_dynamic_flag_spec=
8399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8400 hardcode_automatic=no
8401 hardcode_direct=no
8402 hardcode_direct_absolute=no
8403 hardcode_libdir_flag_spec=
8404 hardcode_libdir_flag_spec_ld=
8405 hardcode_libdir_separator=
8406 hardcode_minus_L=no
8407 hardcode_shlibpath_var=unsupported
8408 inherit_rpath=no
8409 link_all_deplibs=unknown
8410 module_cmds=
8411 module_expsym_cmds=
8412 old_archive_from_new_cmds=
8413 old_archive_from_expsyms_cmds=
8414 thread_safe_flag_spec=
8415 whole_archive_flag_spec=
8416 # include_expsyms should be a list of space-separated symbols to be *always*
8417 # included in the symbol list
8418 include_expsyms=
8419 # exclude_expsyms can be an extended regexp of symbols to exclude
8420 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8421 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8422 # as well as any symbol that contains `d'.
8423 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8424 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8425 # platforms (ab)use it in PIC code, but their linkers get confused if
8426 # the symbol is explicitly referenced. Since portable code cannot
8427 # rely on this symbol name, it's probably fine to never include it in
8428 # preloaded symbol tables.
8429 # Exclude shared library initialization/finalization symbols.
8430 extract_expsyms_cmds=
8432 case $host_os in
8433 cygwin* | mingw* | pw32* | cegcc*)
8434 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8435 # When not using gcc, we currently assume that we are using
8436 # Microsoft Visual C++.
8437 if test "$GCC" != yes; then
8438 with_gnu_ld=no
8441 interix*)
8442 # we just hope/assume this is gcc and not c89 (= MSVC++)
8443 with_gnu_ld=yes
8445 openbsd*)
8446 with_gnu_ld=no
8448 esac
8450 ld_shlibs=yes
8452 # On some targets, GNU ld is compatible enough with the native linker
8453 # that we're better off using the native interface for both.
8454 lt_use_gnu_ld_interface=no
8455 if test "$with_gnu_ld" = yes; then
8456 case $host_os in
8457 aix*)
8458 # The AIX port of GNU ld has always aspired to compatibility
8459 # with the native linker. However, as the warning in the GNU ld
8460 # block says, versions before 2.19.5* couldn't really create working
8461 # shared libraries, regardless of the interface used.
8462 case `$LD -v 2>&1` in
8463 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8464 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8465 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8467 lt_use_gnu_ld_interface=yes
8469 esac
8472 lt_use_gnu_ld_interface=yes
8474 esac
8477 if test "$lt_use_gnu_ld_interface" = yes; then
8478 # If archive_cmds runs LD, not CC, wlarc should be empty
8479 wlarc='${wl}'
8481 # Set some defaults for GNU ld with shared library support. These
8482 # are reset later if shared libraries are not supported. Putting them
8483 # here allows them to be overridden if necessary.
8484 runpath_var=LD_RUN_PATH
8485 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8486 export_dynamic_flag_spec='${wl}--export-dynamic'
8487 # ancient GNU ld didn't support --whole-archive et. al.
8488 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8489 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8490 else
8491 whole_archive_flag_spec=
8493 supports_anon_versioning=no
8494 case `$LD -v 2>&1` in
8495 *GNU\ gold*) supports_anon_versioning=yes ;;
8496 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8497 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8498 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8499 *\ 2.11.*) ;; # other 2.11 versions
8500 *) supports_anon_versioning=yes ;;
8501 esac
8503 # See if GNU ld supports shared libraries.
8504 case $host_os in
8505 aix[3-9]*)
8506 # On AIX/PPC, the GNU linker is very broken
8507 if test "$host_cpu" != ia64; then
8508 ld_shlibs=no
8509 cat <<_LT_EOF 1>&2
8511 *** Warning: the GNU linker, at least up to release 2.19, is reported
8512 *** to be unable to reliably create shared libraries on AIX.
8513 *** Therefore, libtool is disabling shared libraries support. If you
8514 *** really care for shared libraries, you may want to install binutils
8515 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8516 *** You will then need to restart the configuration process.
8518 _LT_EOF
8522 amigaos*)
8523 case $host_cpu in
8524 powerpc)
8525 # see comment about AmigaOS4 .so support
8526 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8527 archive_expsym_cmds=''
8529 m68k)
8530 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)'
8531 hardcode_libdir_flag_spec='-L$libdir'
8532 hardcode_minus_L=yes
8534 esac
8537 beos*)
8538 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8539 allow_undefined_flag=unsupported
8540 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8541 # support --undefined. This deserves some investigation. FIXME
8542 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8543 else
8544 ld_shlibs=no
8548 cygwin* | mingw* | pw32* | cegcc*)
8549 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8550 # as there is no search path for DLLs.
8551 hardcode_libdir_flag_spec='-L$libdir'
8552 export_dynamic_flag_spec='${wl}--export-all-symbols'
8553 allow_undefined_flag=unsupported
8554 always_export_symbols=no
8555 enable_shared_with_static_runtimes=yes
8556 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8558 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8559 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8560 # If the export-symbols file already is a .def file (1st line
8561 # is EXPORTS), use it as is; otherwise, prepend...
8562 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8563 cp $export_symbols $output_objdir/$soname.def;
8564 else
8565 echo EXPORTS > $output_objdir/$soname.def;
8566 cat $export_symbols >> $output_objdir/$soname.def;
8568 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8569 else
8570 ld_shlibs=no
8574 haiku*)
8575 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8576 link_all_deplibs=yes
8579 interix[3-9]*)
8580 hardcode_direct=no
8581 hardcode_shlibpath_var=no
8582 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8583 export_dynamic_flag_spec='${wl}-E'
8584 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8585 # Instead, shared libraries are loaded at an image base (0x10000000 by
8586 # default) and relocated if they conflict, which is a slow very memory
8587 # consuming and fragmenting process. To avoid this, we pick a random,
8588 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8589 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8590 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8591 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'
8594 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8595 tmp_diet=no
8596 if test "$host_os" = linux-dietlibc; then
8597 case $cc_basename in
8598 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8599 esac
8601 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8602 && test "$tmp_diet" = no
8603 then
8604 tmp_addflag=' $pic_flag'
8605 tmp_sharedflag='-shared'
8606 case $cc_basename,$host_cpu in
8607 pgcc*) # Portland Group C compiler
8608 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'
8609 tmp_addflag=' $pic_flag'
8611 pgf77* | pgf90* | pgf95* | pgfortran*)
8612 # Portland Group f77 and f90 compilers
8613 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'
8614 tmp_addflag=' $pic_flag -Mnomain' ;;
8615 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8616 tmp_addflag=' -i_dynamic' ;;
8617 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8618 tmp_addflag=' -i_dynamic -nofor_main' ;;
8619 ifc* | ifort*) # Intel Fortran compiler
8620 tmp_addflag=' -nofor_main' ;;
8621 lf95*) # Lahey Fortran 8.1
8622 whole_archive_flag_spec=
8623 tmp_sharedflag='--shared' ;;
8624 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8625 tmp_sharedflag='-qmkshrobj'
8626 tmp_addflag= ;;
8627 nvcc*) # Cuda Compiler Driver 2.2
8628 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'
8629 compiler_needs_object=yes
8631 esac
8632 case `$CC -V 2>&1 | sed 5q` in
8633 *Sun\ C*) # Sun C 5.9
8634 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'
8635 compiler_needs_object=yes
8636 tmp_sharedflag='-G' ;;
8637 *Sun\ F*) # Sun Fortran 8.3
8638 tmp_sharedflag='-G' ;;
8639 esac
8640 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642 if test "x$supports_anon_versioning" = xyes; then
8643 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8644 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8645 echo "local: *; };" >> $output_objdir/$libname.ver~
8646 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8649 case $cc_basename in
8650 xlf* | bgf* | bgxlf* | mpixlf*)
8651 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8652 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8653 hardcode_libdir_flag_spec=
8654 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8655 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8656 if test "x$supports_anon_versioning" = xyes; then
8657 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8658 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8659 echo "local: *; };" >> $output_objdir/$libname.ver~
8660 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8663 esac
8664 else
8665 ld_shlibs=no
8669 netbsd*)
8670 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8671 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8672 wlarc=
8673 else
8674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8679 solaris*)
8680 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8681 ld_shlibs=no
8682 cat <<_LT_EOF 1>&2
8684 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8685 *** create shared libraries on Solaris systems. Therefore, libtool
8686 *** is disabling shared libraries support. We urge you to upgrade GNU
8687 *** binutils to release 2.9.1 or newer. Another option is to modify
8688 *** your PATH or compiler configuration so that the native linker is
8689 *** used, and then restart.
8691 _LT_EOF
8692 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8694 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8695 else
8696 ld_shlibs=no
8700 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8701 case `$LD -v 2>&1` in
8702 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8703 ld_shlibs=no
8704 cat <<_LT_EOF 1>&2
8706 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8707 *** reliably create shared libraries on SCO systems. Therefore, libtool
8708 *** is disabling shared libraries support. We urge you to upgrade GNU
8709 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8710 *** your PATH or compiler configuration so that the native linker is
8711 *** used, and then restart.
8713 _LT_EOF
8716 # For security reasons, it is highly recommended that you always
8717 # use absolute paths for naming shared libraries, and exclude the
8718 # DT_RUNPATH tag from executables and libraries. But doing so
8719 # requires that you compile everything twice, which is a pain.
8720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8722 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8723 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8724 else
8725 ld_shlibs=no
8728 esac
8731 sunos4*)
8732 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8733 wlarc=
8734 hardcode_direct=yes
8735 hardcode_shlibpath_var=no
8739 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8740 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8742 else
8743 ld_shlibs=no
8746 esac
8748 if test "$ld_shlibs" = no; then
8749 runpath_var=
8750 hardcode_libdir_flag_spec=
8751 export_dynamic_flag_spec=
8752 whole_archive_flag_spec=
8754 else
8755 # PORTME fill in a description of your system's linker (not GNU ld)
8756 case $host_os in
8757 aix3*)
8758 allow_undefined_flag=unsupported
8759 always_export_symbols=yes
8760 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'
8761 # Note: this linker hardcodes the directories in LIBPATH if there
8762 # are no directories specified by -L.
8763 hardcode_minus_L=yes
8764 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8765 # Neither direct hardcoding nor static linking is supported with a
8766 # broken collect2.
8767 hardcode_direct=unsupported
8771 aix[4-9]*)
8772 if test "$host_cpu" = ia64; then
8773 # On IA64, the linker does run time linking by default, so we don't
8774 # have to do anything special.
8775 aix_use_runtimelinking=no
8776 exp_sym_flag='-Bexport'
8777 no_entry_flag=""
8778 else
8779 # If we're using GNU nm, then we don't want the "-C" option.
8780 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8781 # Also, AIX nm treats weak defined symbols like other global
8782 # defined symbols, whereas GNU nm marks them as "W".
8783 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8784 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'
8785 else
8786 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'
8788 aix_use_runtimelinking=no
8790 # Test if we are trying to use run time linking or normal
8791 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8792 # need to do runtime linking.
8793 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8794 for ld_flag in $LDFLAGS; do
8795 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8796 aix_use_runtimelinking=yes
8797 break
8799 done
8801 esac
8803 exp_sym_flag='-bexport'
8804 no_entry_flag='-bnoentry'
8807 # When large executables or shared objects are built, AIX ld can
8808 # have problems creating the table of contents. If linking a library
8809 # or program results in "error TOC overflow" add -mminimal-toc to
8810 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8811 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8813 archive_cmds=''
8814 hardcode_direct=yes
8815 hardcode_direct_absolute=yes
8816 hardcode_libdir_separator=':'
8817 link_all_deplibs=yes
8818 file_list_spec='${wl}-f,'
8820 if test "$GCC" = yes; then
8821 case $host_os in aix4.[012]|aix4.[012].*)
8822 # We only want to do this on AIX 4.2 and lower, the check
8823 # below for broken collect2 doesn't work under 4.3+
8824 collect2name=`${CC} -print-prog-name=collect2`
8825 if test -f "$collect2name" &&
8826 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8827 then
8828 # We have reworked collect2
8830 else
8831 # We have old collect2
8832 hardcode_direct=unsupported
8833 # It fails to find uninstalled libraries when the uninstalled
8834 # path is not listed in the libpath. Setting hardcode_minus_L
8835 # to unsupported forces relinking
8836 hardcode_minus_L=yes
8837 hardcode_libdir_flag_spec='-L$libdir'
8838 hardcode_libdir_separator=
8841 esac
8842 shared_flag='-shared'
8843 if test "$aix_use_runtimelinking" = yes; then
8844 shared_flag="$shared_flag "'${wl}-G'
8846 else
8847 # not using gcc
8848 if test "$host_cpu" = ia64; then
8849 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8850 # chokes on -Wl,-G. The following line is correct:
8851 shared_flag='-G'
8852 else
8853 if test "$aix_use_runtimelinking" = yes; then
8854 shared_flag='${wl}-G'
8855 else
8856 shared_flag='${wl}-bM:SRE'
8861 export_dynamic_flag_spec='${wl}-bexpall'
8862 # It seems that -bexpall does not export symbols beginning with
8863 # underscore (_), so it is better to generate a list of symbols to export.
8864 always_export_symbols=yes
8865 if test "$aix_use_runtimelinking" = yes; then
8866 # Warning - without using the other runtime loading flags (-brtl),
8867 # -berok will link without error, but may produce a broken library.
8868 allow_undefined_flag='-berok'
8869 # Determine the default libpath from the value encoded in an
8870 # empty executable.
8871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8872 /* end confdefs.h. */
8875 main ()
8879 return 0;
8881 _ACEOF
8882 if ac_fn_c_try_link "$LINENO"; then :
8884 lt_aix_libpath_sed='
8885 /Import File Strings/,/^$/ {
8886 /^0/ {
8887 s/^0 *\(.*\)$/\1/
8891 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8892 # Check for a 64-bit object if we didn't find anything.
8893 if test -z "$aix_libpath"; then
8894 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8897 rm -f core conftest.err conftest.$ac_objext \
8898 conftest$ac_exeext conftest.$ac_ext
8899 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8901 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8902 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"
8903 else
8904 if test "$host_cpu" = ia64; then
8905 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8906 allow_undefined_flag="-z nodefs"
8907 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"
8908 else
8909 # Determine the default libpath from the value encoded in an
8910 # empty executable.
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8915 main ()
8919 return 0;
8921 _ACEOF
8922 if ac_fn_c_try_link "$LINENO"; then :
8924 lt_aix_libpath_sed='
8925 /Import File Strings/,/^$/ {
8926 /^0/ {
8927 s/^0 *\(.*\)$/\1/
8931 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8932 # Check for a 64-bit object if we didn't find anything.
8933 if test -z "$aix_libpath"; then
8934 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8937 rm -f core conftest.err conftest.$ac_objext \
8938 conftest$ac_exeext conftest.$ac_ext
8939 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8941 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8942 # Warning - without using the other run time loading flags,
8943 # -berok will link without error, but may produce a broken library.
8944 no_undefined_flag=' ${wl}-bernotok'
8945 allow_undefined_flag=' ${wl}-berok'
8946 if test "$with_gnu_ld" = yes; then
8947 # We only use this code for GNU lds that support --whole-archive.
8948 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
8949 else
8950 # Exported symbols can be pulled into shared objects from archives
8951 whole_archive_flag_spec='$convenience'
8953 archive_cmds_need_lc=yes
8954 # This is similar to how AIX traditionally builds its shared libraries.
8955 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'
8960 amigaos*)
8961 case $host_cpu in
8962 powerpc)
8963 # see comment about AmigaOS4 .so support
8964 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8965 archive_expsym_cmds=''
8967 m68k)
8968 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)'
8969 hardcode_libdir_flag_spec='-L$libdir'
8970 hardcode_minus_L=yes
8972 esac
8975 bsdi[45]*)
8976 export_dynamic_flag_spec=-rdynamic
8979 cygwin* | mingw* | pw32* | cegcc*)
8980 # When not using gcc, we currently assume that we are using
8981 # Microsoft Visual C++.
8982 # hardcode_libdir_flag_spec is actually meaningless, as there is
8983 # no search path for DLLs.
8984 hardcode_libdir_flag_spec=' '
8985 allow_undefined_flag=unsupported
8986 # Tell ltmain to make .lib files, not .a files.
8987 libext=lib
8988 # Tell ltmain to make .dll files, not .so files.
8989 shrext_cmds=".dll"
8990 # FIXME: Setting linknames here is a bad hack.
8991 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
8992 # The linker will automatically build a .lib file if we build a DLL.
8993 old_archive_from_new_cmds='true'
8994 # FIXME: Should let the user specify the lib program.
8995 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8996 fix_srcfile_path='`cygpath -w "$srcfile"`'
8997 enable_shared_with_static_runtimes=yes
9000 darwin* | rhapsody*)
9003 archive_cmds_need_lc=no
9004 hardcode_direct=no
9005 hardcode_automatic=yes
9006 hardcode_shlibpath_var=unsupported
9007 if test "$lt_cv_ld_force_load" = "yes"; then
9008 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\"`'
9009 else
9010 whole_archive_flag_spec=''
9012 link_all_deplibs=yes
9013 allow_undefined_flag="$_lt_dar_allow_undefined"
9014 case $cc_basename in
9015 ifort*) _lt_dar_can_shared=yes ;;
9016 *) _lt_dar_can_shared=$GCC ;;
9017 esac
9018 if test "$_lt_dar_can_shared" = "yes"; then
9019 output_verbose_link_cmd=func_echo_all
9020 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9021 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9022 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}"
9023 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}"
9025 else
9026 ld_shlibs=no
9031 dgux*)
9032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9033 hardcode_libdir_flag_spec='-L$libdir'
9034 hardcode_shlibpath_var=no
9037 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9038 # support. Future versions do this automatically, but an explicit c++rt0.o
9039 # does not break anything, and helps significantly (at the cost of a little
9040 # extra space).
9041 freebsd2.2*)
9042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9043 hardcode_libdir_flag_spec='-R$libdir'
9044 hardcode_direct=yes
9045 hardcode_shlibpath_var=no
9048 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9049 freebsd2.*)
9050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9051 hardcode_direct=yes
9052 hardcode_minus_L=yes
9053 hardcode_shlibpath_var=no
9056 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9057 freebsd* | dragonfly*)
9058 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9059 hardcode_libdir_flag_spec='-R$libdir'
9060 hardcode_direct=yes
9061 hardcode_shlibpath_var=no
9064 hpux9*)
9065 if test "$GCC" = yes; then
9066 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'
9067 else
9068 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'
9070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9071 hardcode_libdir_separator=:
9072 hardcode_direct=yes
9074 # hardcode_minus_L: Not really in the search PATH,
9075 # but as the default location of the library.
9076 hardcode_minus_L=yes
9077 export_dynamic_flag_spec='${wl}-E'
9080 hpux10*)
9081 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9082 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9083 else
9084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9086 if test "$with_gnu_ld" = no; then
9087 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9088 hardcode_libdir_flag_spec_ld='+b $libdir'
9089 hardcode_libdir_separator=:
9090 hardcode_direct=yes
9091 hardcode_direct_absolute=yes
9092 export_dynamic_flag_spec='${wl}-E'
9093 # hardcode_minus_L: Not really in the search PATH,
9094 # but as the default location of the library.
9095 hardcode_minus_L=yes
9099 hpux11*)
9100 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9101 case $host_cpu in
9102 hppa*64*)
9103 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9105 ia64*)
9106 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9109 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9111 esac
9112 else
9113 case $host_cpu in
9114 hppa*64*)
9115 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9117 ia64*)
9118 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9122 # Older versions of the 11.00 compiler do not understand -b yet
9123 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9125 $as_echo_n "checking if $CC understands -b... " >&6; }
9126 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9127 $as_echo_n "(cached) " >&6
9128 else
9129 lt_cv_prog_compiler__b=no
9130 save_LDFLAGS="$LDFLAGS"
9131 LDFLAGS="$LDFLAGS -b"
9132 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9133 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9134 # The linker can only warn and ignore the option if not recognized
9135 # So say no if there are warnings
9136 if test -s conftest.err; then
9137 # Append any errors to the config.log.
9138 cat conftest.err 1>&5
9139 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9140 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9141 if diff conftest.exp conftest.er2 >/dev/null; then
9142 lt_cv_prog_compiler__b=yes
9144 else
9145 lt_cv_prog_compiler__b=yes
9148 $RM -r conftest*
9149 LDFLAGS="$save_LDFLAGS"
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9153 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9155 if test x"$lt_cv_prog_compiler__b" = xyes; then
9156 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9157 else
9158 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9162 esac
9164 if test "$with_gnu_ld" = no; then
9165 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9166 hardcode_libdir_separator=:
9168 case $host_cpu in
9169 hppa*64*|ia64*)
9170 hardcode_direct=no
9171 hardcode_shlibpath_var=no
9174 hardcode_direct=yes
9175 hardcode_direct_absolute=yes
9176 export_dynamic_flag_spec='${wl}-E'
9178 # hardcode_minus_L: Not really in the search PATH,
9179 # but as the default location of the library.
9180 hardcode_minus_L=yes
9182 esac
9186 irix5* | irix6* | nonstopux*)
9187 if test "$GCC" = yes; then
9188 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'
9189 # Try to use the -exported_symbol ld option, if it does not
9190 # work, assume that -exports_file does not work either and
9191 # implicitly export all symbols.
9192 save_LDFLAGS="$LDFLAGS"
9193 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9195 /* end confdefs.h. */
9196 int foo(void) {}
9197 _ACEOF
9198 if ac_fn_c_try_link "$LINENO"; then :
9199 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'
9202 rm -f core conftest.err conftest.$ac_objext \
9203 conftest$ac_exeext conftest.$ac_ext
9204 LDFLAGS="$save_LDFLAGS"
9205 else
9206 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'
9207 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'
9209 archive_cmds_need_lc='no'
9210 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9211 hardcode_libdir_separator=:
9212 inherit_rpath=yes
9213 link_all_deplibs=yes
9216 netbsd*)
9217 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9218 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9219 else
9220 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9222 hardcode_libdir_flag_spec='-R$libdir'
9223 hardcode_direct=yes
9224 hardcode_shlibpath_var=no
9227 newsos6)
9228 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9229 hardcode_direct=yes
9230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9231 hardcode_libdir_separator=:
9232 hardcode_shlibpath_var=no
9235 *nto* | *qnx*)
9238 openbsd*)
9239 if test -f /usr/libexec/ld.so; then
9240 hardcode_direct=yes
9241 hardcode_shlibpath_var=no
9242 hardcode_direct_absolute=yes
9243 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9244 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9245 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9246 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9247 export_dynamic_flag_spec='${wl}-E'
9248 else
9249 case $host_os in
9250 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9251 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9252 hardcode_libdir_flag_spec='-R$libdir'
9255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9256 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9258 esac
9260 else
9261 ld_shlibs=no
9265 os2*)
9266 hardcode_libdir_flag_spec='-L$libdir'
9267 hardcode_minus_L=yes
9268 allow_undefined_flag=unsupported
9269 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'
9270 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9273 osf3*)
9274 if test "$GCC" = yes; then
9275 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9276 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'
9277 else
9278 allow_undefined_flag=' -expect_unresolved \*'
9279 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'
9281 archive_cmds_need_lc='no'
9282 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9283 hardcode_libdir_separator=:
9286 osf4* | osf5*) # as osf3* with the addition of -msym flag
9287 if test "$GCC" = yes; then
9288 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9289 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'
9290 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9291 else
9292 allow_undefined_flag=' -expect_unresolved \*'
9293 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'
9294 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~
9295 $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'
9297 # Both c and cxx compiler support -rpath directly
9298 hardcode_libdir_flag_spec='-rpath $libdir'
9300 archive_cmds_need_lc='no'
9301 hardcode_libdir_separator=:
9304 solaris*)
9305 no_undefined_flag=' -z defs'
9306 if test "$GCC" = yes; then
9307 wlarc='${wl}'
9308 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9309 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9310 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9311 else
9312 case `$CC -V 2>&1` in
9313 *"Compilers 5.0"*)
9314 wlarc=''
9315 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9316 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9317 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9320 wlarc='${wl}'
9321 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9322 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9323 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9325 esac
9327 hardcode_libdir_flag_spec='-R$libdir'
9328 hardcode_shlibpath_var=no
9329 case $host_os in
9330 solaris2.[0-5] | solaris2.[0-5].*) ;;
9332 # The compiler driver will combine and reorder linker options,
9333 # but understands `-z linker_flag'. GCC discards it without `$wl',
9334 # but is careful enough not to reorder.
9335 # Supported since Solaris 2.6 (maybe 2.5.1?)
9336 if test "$GCC" = yes; then
9337 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9338 else
9339 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9342 esac
9343 link_all_deplibs=yes
9346 sunos4*)
9347 if test "x$host_vendor" = xsequent; then
9348 # Use $CC to link under sequent, because it throws in some extra .o
9349 # files that make .init and .fini sections work.
9350 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9351 else
9352 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9354 hardcode_libdir_flag_spec='-L$libdir'
9355 hardcode_direct=yes
9356 hardcode_minus_L=yes
9357 hardcode_shlibpath_var=no
9360 sysv4)
9361 case $host_vendor in
9362 sni)
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_direct=yes # is this really true???
9366 siemens)
9367 ## LD is ld it makes a PLAMLIB
9368 ## CC just makes a GrossModule.
9369 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9370 reload_cmds='$CC -r -o $output$reload_objs'
9371 hardcode_direct=no
9373 motorola)
9374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9377 esac
9378 runpath_var='LD_RUN_PATH'
9379 hardcode_shlibpath_var=no
9382 sysv4.3*)
9383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384 hardcode_shlibpath_var=no
9385 export_dynamic_flag_spec='-Bexport'
9388 sysv4*MP*)
9389 if test -d /usr/nec; then
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_shlibpath_var=no
9392 runpath_var=LD_RUN_PATH
9393 hardcode_runpath_var=yes
9394 ld_shlibs=yes
9398 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9399 no_undefined_flag='${wl}-z,text'
9400 archive_cmds_need_lc=no
9401 hardcode_shlibpath_var=no
9402 runpath_var='LD_RUN_PATH'
9404 if test "$GCC" = yes; then
9405 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9407 else
9408 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9409 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9413 sysv5* | sco3.2v5* | sco5v6*)
9414 # Note: We can NOT use -z defs as we might desire, because we do not
9415 # link with -lc, and that would cause any symbols used from libc to
9416 # always be unresolved, which means just about no library would
9417 # ever link correctly. If we're not using GNU ld we use -z text
9418 # though, which does catch some bad symbols but isn't as heavy-handed
9419 # as -z defs.
9420 no_undefined_flag='${wl}-z,text'
9421 allow_undefined_flag='${wl}-z,nodefs'
9422 archive_cmds_need_lc=no
9423 hardcode_shlibpath_var=no
9424 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9425 hardcode_libdir_separator=':'
9426 link_all_deplibs=yes
9427 export_dynamic_flag_spec='${wl}-Bexport'
9428 runpath_var='LD_RUN_PATH'
9430 if test "$GCC" = yes; then
9431 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9432 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9433 else
9434 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9435 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9439 uts4*)
9440 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9441 hardcode_libdir_flag_spec='-L$libdir'
9442 hardcode_shlibpath_var=no
9446 ld_shlibs=no
9448 esac
9450 if test x$host_vendor = xsni; then
9451 case $host in
9452 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9453 export_dynamic_flag_spec='${wl}-Blargedynsym'
9455 esac
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9460 $as_echo "$ld_shlibs" >&6; }
9461 test "$ld_shlibs" = no && can_build_shared=no
9463 with_gnu_ld=$with_gnu_ld
9480 # Do we need to explicitly link libc?
9482 case "x$archive_cmds_need_lc" in
9483 x|xyes)
9484 # Assume -lc should be added
9485 archive_cmds_need_lc=yes
9487 if test "$enable_shared" = yes && test "$GCC" = yes; then
9488 case $archive_cmds in
9489 *'~'*)
9490 # FIXME: we may have to deal with multi-command sequences.
9492 '$CC '*)
9493 # Test whether the compiler implicitly links with -lc since on some
9494 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9495 # to ld, don't add -lc before -lgcc.
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9497 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9498 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9499 $as_echo_n "(cached) " >&6
9500 else
9501 $RM conftest*
9502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9505 (eval $ac_compile) 2>&5
9506 ac_status=$?
9507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9508 test $ac_status = 0; } 2>conftest.err; then
9509 soname=conftest
9510 lib=conftest
9511 libobjs=conftest.$ac_objext
9512 deplibs=
9513 wl=$lt_prog_compiler_wl
9514 pic_flag=$lt_prog_compiler_pic
9515 compiler_flags=-v
9516 linker_flags=-v
9517 verstring=
9518 output_objdir=.
9519 libname=conftest
9520 lt_save_allow_undefined_flag=$allow_undefined_flag
9521 allow_undefined_flag=
9522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9523 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9524 ac_status=$?
9525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9526 test $ac_status = 0; }
9527 then
9528 lt_cv_archive_cmds_need_lc=no
9529 else
9530 lt_cv_archive_cmds_need_lc=yes
9532 allow_undefined_flag=$lt_save_allow_undefined_flag
9533 else
9534 cat conftest.err 1>&5
9536 $RM conftest*
9539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9540 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9541 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9543 esac
9546 esac
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9705 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9707 if test "$GCC" = yes; then
9708 case $host_os in
9709 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9710 *) lt_awk_arg="/^libraries:/" ;;
9711 esac
9712 case $host_os in
9713 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9714 *) lt_sed_strip_eq="s,=/,/,g" ;;
9715 esac
9716 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9717 case $lt_search_path_spec in
9718 *\;*)
9719 # if the path contains ";" then we assume it to be the separator
9720 # otherwise default to the standard path separator (i.e. ":") - it is
9721 # assumed that no part of a normal pathname contains ";" but that should
9722 # okay in the real world where ";" in dirpaths is itself problematic.
9723 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9726 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9728 esac
9729 # Ok, now we have the path, separated by spaces, we can step through it
9730 # and add multilib dir if necessary.
9731 lt_tmp_lt_search_path_spec=
9732 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9733 for lt_sys_path in $lt_search_path_spec; do
9734 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9735 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9736 else
9737 test -d "$lt_sys_path" && \
9738 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9740 done
9741 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9742 BEGIN {RS=" "; FS="/|\n";} {
9743 lt_foo="";
9744 lt_count=0;
9745 for (lt_i = NF; lt_i > 0; lt_i--) {
9746 if ($lt_i != "" && $lt_i != ".") {
9747 if ($lt_i == "..") {
9748 lt_count++;
9749 } else {
9750 if (lt_count == 0) {
9751 lt_foo="/" $lt_i lt_foo;
9752 } else {
9753 lt_count--;
9758 if (lt_foo != "") { lt_freq[lt_foo]++; }
9759 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9761 # AWK program above erroneously prepends '/' to C:/dos/paths
9762 # for these hosts.
9763 case $host_os in
9764 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9765 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9766 esac
9767 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9768 else
9769 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9771 library_names_spec=
9772 libname_spec='lib$name'
9773 soname_spec=
9774 shrext_cmds=".so"
9775 postinstall_cmds=
9776 postuninstall_cmds=
9777 finish_cmds=
9778 finish_eval=
9779 shlibpath_var=
9780 shlibpath_overrides_runpath=unknown
9781 version_type=none
9782 dynamic_linker="$host_os ld.so"
9783 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9784 need_lib_prefix=unknown
9785 hardcode_into_libs=no
9787 # when you set need_version to no, make sure it does not cause -set_version
9788 # flags to be left without arguments
9789 need_version=unknown
9791 case $host_os in
9792 aix3*)
9793 version_type=linux
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9795 shlibpath_var=LIBPATH
9797 # AIX 3 has no versioning support, so we append a major version to the name.
9798 soname_spec='${libname}${release}${shared_ext}$major'
9801 aix[4-9]*)
9802 version_type=linux
9803 need_lib_prefix=no
9804 need_version=no
9805 hardcode_into_libs=yes
9806 if test "$host_cpu" = ia64; then
9807 # AIX 5 supports IA64
9808 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9809 shlibpath_var=LD_LIBRARY_PATH
9810 else
9811 # With GCC up to 2.95.x, collect2 would create an import file
9812 # for dependence libraries. The import file would start with
9813 # the line `#! .'. This would cause the generated library to
9814 # depend on `.', always an invalid library. This was fixed in
9815 # development snapshots of GCC prior to 3.0.
9816 case $host_os in
9817 aix4 | aix4.[01] | aix4.[01].*)
9818 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9819 echo ' yes '
9820 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9822 else
9823 can_build_shared=no
9826 esac
9827 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9828 # soname into executable. Probably we can add versioning support to
9829 # collect2, so additional links can be useful in future.
9830 if test "$aix_use_runtimelinking" = yes; then
9831 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9832 # instead of lib<name>.a to let people know that these are not
9833 # typical AIX shared libraries.
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9835 else
9836 # We preserve .a as extension for shared libraries through AIX4.2
9837 # and later when we are not doing run time linking.
9838 library_names_spec='${libname}${release}.a $libname.a'
9839 soname_spec='${libname}${release}${shared_ext}$major'
9841 shlibpath_var=LIBPATH
9845 amigaos*)
9846 case $host_cpu in
9847 powerpc)
9848 # Since July 2007 AmigaOS4 officially supports .so libraries.
9849 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9852 m68k)
9853 library_names_spec='$libname.ixlibrary $libname.a'
9854 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9855 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'
9857 esac
9860 beos*)
9861 library_names_spec='${libname}${shared_ext}'
9862 dynamic_linker="$host_os ld.so"
9863 shlibpath_var=LIBRARY_PATH
9866 bsdi[45]*)
9867 version_type=linux
9868 need_version=no
9869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9870 soname_spec='${libname}${release}${shared_ext}$major'
9871 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9872 shlibpath_var=LD_LIBRARY_PATH
9873 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9874 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9875 # the default ld.so.conf also contains /usr/contrib/lib and
9876 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9877 # libtool to hard-code these into programs
9880 cygwin* | mingw* | pw32* | cegcc*)
9881 version_type=windows
9882 shrext_cmds=".dll"
9883 need_version=no
9884 need_lib_prefix=no
9886 case $GCC,$host_os in
9887 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
9888 library_names_spec='$libname.dll.a'
9889 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9890 postinstall_cmds='base_file=`basename \${file}`~
9891 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9892 dldir=$destdir/`dirname \$dlpath`~
9893 test -d \$dldir || mkdir -p \$dldir~
9894 $install_prog $dir/$dlname \$dldir/$dlname~
9895 chmod a+x \$dldir/$dlname~
9896 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9897 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9899 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9900 dlpath=$dir/\$dldll~
9901 $RM \$dlpath'
9902 shlibpath_overrides_runpath=yes
9904 case $host_os in
9905 cygwin*)
9906 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9907 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9909 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
9911 mingw* | cegcc*)
9912 # MinGW DLLs use traditional 'lib' prefix
9913 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9915 pw32*)
9916 # pw32 DLLs use 'pw' prefix rather than 'lib'
9917 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9919 esac
9923 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9925 esac
9926 dynamic_linker='Win32 ld.exe'
9927 # FIXME: first we should search . and the directory the executable is in
9928 shlibpath_var=PATH
9931 darwin* | rhapsody*)
9932 dynamic_linker="$host_os dyld"
9933 version_type=darwin
9934 need_lib_prefix=no
9935 need_version=no
9936 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9937 soname_spec='${libname}${release}${major}$shared_ext'
9938 shlibpath_overrides_runpath=yes
9939 shlibpath_var=DYLD_LIBRARY_PATH
9940 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9942 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9943 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9946 dgux*)
9947 version_type=linux
9948 need_lib_prefix=no
9949 need_version=no
9950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9951 soname_spec='${libname}${release}${shared_ext}$major'
9952 shlibpath_var=LD_LIBRARY_PATH
9955 freebsd* | dragonfly*)
9956 # DragonFly does not have aout. When/if they implement a new
9957 # versioning mechanism, adjust this.
9958 if test -x /usr/bin/objformat; then
9959 objformat=`/usr/bin/objformat`
9960 else
9961 case $host_os in
9962 freebsd[23].*) objformat=aout ;;
9963 *) objformat=elf ;;
9964 esac
9966 version_type=freebsd-$objformat
9967 case $version_type in
9968 freebsd-elf*)
9969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9970 need_version=no
9971 need_lib_prefix=no
9973 freebsd-*)
9974 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9975 need_version=yes
9977 esac
9978 shlibpath_var=LD_LIBRARY_PATH
9979 case $host_os in
9980 freebsd2.*)
9981 shlibpath_overrides_runpath=yes
9983 freebsd3.[01]* | freebsdelf3.[01]*)
9984 shlibpath_overrides_runpath=yes
9985 hardcode_into_libs=yes
9987 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9988 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9989 shlibpath_overrides_runpath=no
9990 hardcode_into_libs=yes
9992 *) # from 4.6 on, and DragonFly
9993 shlibpath_overrides_runpath=yes
9994 hardcode_into_libs=yes
9996 esac
9999 gnu*)
10000 version_type=linux
10001 need_lib_prefix=no
10002 need_version=no
10003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10004 soname_spec='${libname}${release}${shared_ext}$major'
10005 shlibpath_var=LD_LIBRARY_PATH
10006 hardcode_into_libs=yes
10009 haiku*)
10010 version_type=linux
10011 need_lib_prefix=no
10012 need_version=no
10013 dynamic_linker="$host_os runtime_loader"
10014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10015 soname_spec='${libname}${release}${shared_ext}$major'
10016 shlibpath_var=LIBRARY_PATH
10017 shlibpath_overrides_runpath=yes
10018 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10019 hardcode_into_libs=yes
10022 hpux9* | hpux10* | hpux11*)
10023 # Give a soname corresponding to the major version so that dld.sl refuses to
10024 # link against other versions.
10025 version_type=sunos
10026 need_lib_prefix=no
10027 need_version=no
10028 case $host_cpu in
10029 ia64*)
10030 shrext_cmds='.so'
10031 hardcode_into_libs=yes
10032 dynamic_linker="$host_os dld.so"
10033 shlibpath_var=LD_LIBRARY_PATH
10034 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10036 soname_spec='${libname}${release}${shared_ext}$major'
10037 if test "X$HPUX_IA64_MODE" = X32; then
10038 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10039 else
10040 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10042 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10044 hppa*64*)
10045 shrext_cmds='.sl'
10046 hardcode_into_libs=yes
10047 dynamic_linker="$host_os dld.sl"
10048 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10049 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10051 soname_spec='${libname}${release}${shared_ext}$major'
10052 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10053 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10056 shrext_cmds='.sl'
10057 dynamic_linker="$host_os dld.sl"
10058 shlibpath_var=SHLIB_PATH
10059 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10061 soname_spec='${libname}${release}${shared_ext}$major'
10063 esac
10064 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10065 postinstall_cmds='chmod 555 $lib'
10066 # or fails outright, so override atomically:
10067 install_override_mode=555
10070 interix[3-9]*)
10071 version_type=linux
10072 need_lib_prefix=no
10073 need_version=no
10074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10075 soname_spec='${libname}${release}${shared_ext}$major'
10076 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10077 shlibpath_var=LD_LIBRARY_PATH
10078 shlibpath_overrides_runpath=no
10079 hardcode_into_libs=yes
10082 irix5* | irix6* | nonstopux*)
10083 case $host_os in
10084 nonstopux*) version_type=nonstopux ;;
10086 if test "$lt_cv_prog_gnu_ld" = yes; then
10087 version_type=linux
10088 else
10089 version_type=irix
10090 fi ;;
10091 esac
10092 need_lib_prefix=no
10093 need_version=no
10094 soname_spec='${libname}${release}${shared_ext}$major'
10095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10096 case $host_os in
10097 irix5* | nonstopux*)
10098 libsuff= shlibsuff=
10101 case $LD in # libtool.m4 will add one of these switches to LD
10102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10103 libsuff= shlibsuff= libmagic=32-bit;;
10104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10105 libsuff=32 shlibsuff=N32 libmagic=N32;;
10106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10108 *) libsuff= shlibsuff= libmagic=never-match;;
10109 esac
10111 esac
10112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10113 shlibpath_overrides_runpath=no
10114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10116 hardcode_into_libs=yes
10119 # No shared lib support for Linux oldld, aout, or coff.
10120 linux*oldld* | linux*aout* | linux*coff*)
10121 dynamic_linker=no
10124 # This must be Linux ELF.
10125 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10126 version_type=linux
10127 need_lib_prefix=no
10128 need_version=no
10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10130 soname_spec='${libname}${release}${shared_ext}$major'
10131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10132 shlibpath_var=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath=no
10135 # Some binutils ld are patched to set DT_RUNPATH
10136 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10137 $as_echo_n "(cached) " >&6
10138 else
10139 lt_cv_shlibpath_overrides_runpath=no
10140 save_LDFLAGS=$LDFLAGS
10141 save_libdir=$libdir
10142 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10143 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10145 /* end confdefs.h. */
10148 main ()
10152 return 0;
10154 _ACEOF
10155 if ac_fn_c_try_link "$LINENO"; then :
10156 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10157 lt_cv_shlibpath_overrides_runpath=yes
10160 rm -f core conftest.err conftest.$ac_objext \
10161 conftest$ac_exeext conftest.$ac_ext
10162 LDFLAGS=$save_LDFLAGS
10163 libdir=$save_libdir
10167 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10169 # This implies no fast_install, which is unacceptable.
10170 # Some rework will be needed to allow for fast_install
10171 # before this can be enabled.
10172 hardcode_into_libs=yes
10174 # Append ld.so.conf contents to the search path
10175 if test -f /etc/ld.so.conf; then
10176 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' ' '`
10177 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10180 # We used to test for /lib/ld.so.1 and disable shared libraries on
10181 # powerpc, because MkLinux only supported shared libraries with the
10182 # GNU dynamic linker. Since this was broken with cross compilers,
10183 # most powerpc-linux boxes support dynamic linking these days and
10184 # people can always --disable-shared, the test was removed, and we
10185 # assume the GNU/Linux dynamic linker is in use.
10186 dynamic_linker='GNU/Linux ld.so'
10189 netbsd*)
10190 version_type=sunos
10191 need_lib_prefix=no
10192 need_version=no
10193 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10195 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10196 dynamic_linker='NetBSD (a.out) ld.so'
10197 else
10198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10199 soname_spec='${libname}${release}${shared_ext}$major'
10200 dynamic_linker='NetBSD ld.elf_so'
10202 shlibpath_var=LD_LIBRARY_PATH
10203 shlibpath_overrides_runpath=yes
10204 hardcode_into_libs=yes
10207 newsos6)
10208 version_type=linux
10209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10210 shlibpath_var=LD_LIBRARY_PATH
10211 shlibpath_overrides_runpath=yes
10214 *nto* | *qnx*)
10215 version_type=qnx
10216 need_lib_prefix=no
10217 need_version=no
10218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219 soname_spec='${libname}${release}${shared_ext}$major'
10220 shlibpath_var=LD_LIBRARY_PATH
10221 shlibpath_overrides_runpath=no
10222 hardcode_into_libs=yes
10223 dynamic_linker='ldqnx.so'
10226 openbsd*)
10227 version_type=sunos
10228 sys_lib_dlsearch_path_spec="/usr/lib"
10229 need_lib_prefix=no
10230 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10231 case $host_os in
10232 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10233 *) need_version=no ;;
10234 esac
10235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10236 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10237 shlibpath_var=LD_LIBRARY_PATH
10238 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10239 case $host_os in
10240 openbsd2.[89] | openbsd2.[89].*)
10241 shlibpath_overrides_runpath=no
10244 shlibpath_overrides_runpath=yes
10246 esac
10247 else
10248 shlibpath_overrides_runpath=yes
10252 os2*)
10253 libname_spec='$name'
10254 shrext_cmds=".dll"
10255 need_lib_prefix=no
10256 library_names_spec='$libname${shared_ext} $libname.a'
10257 dynamic_linker='OS/2 ld.exe'
10258 shlibpath_var=LIBPATH
10261 osf3* | osf4* | osf5*)
10262 version_type=osf
10263 need_lib_prefix=no
10264 need_version=no
10265 soname_spec='${libname}${release}${shared_ext}$major'
10266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10267 shlibpath_var=LD_LIBRARY_PATH
10268 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10269 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10272 rdos*)
10273 dynamic_linker=no
10276 solaris*)
10277 version_type=linux
10278 need_lib_prefix=no
10279 need_version=no
10280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281 soname_spec='${libname}${release}${shared_ext}$major'
10282 shlibpath_var=LD_LIBRARY_PATH
10283 shlibpath_overrides_runpath=yes
10284 hardcode_into_libs=yes
10285 # ldd complains unless libraries are executable
10286 postinstall_cmds='chmod +x $lib'
10289 sunos4*)
10290 version_type=sunos
10291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10292 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10293 shlibpath_var=LD_LIBRARY_PATH
10294 shlibpath_overrides_runpath=yes
10295 if test "$with_gnu_ld" = yes; then
10296 need_lib_prefix=no
10298 need_version=yes
10301 sysv4 | sysv4.3*)
10302 version_type=linux
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LD_LIBRARY_PATH
10306 case $host_vendor in
10307 sni)
10308 shlibpath_overrides_runpath=no
10309 need_lib_prefix=no
10310 runpath_var=LD_RUN_PATH
10312 siemens)
10313 need_lib_prefix=no
10315 motorola)
10316 need_lib_prefix=no
10317 need_version=no
10318 shlibpath_overrides_runpath=no
10319 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10321 esac
10324 sysv4*MP*)
10325 if test -d /usr/nec ;then
10326 version_type=linux
10327 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10328 soname_spec='$libname${shared_ext}.$major'
10329 shlibpath_var=LD_LIBRARY_PATH
10333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10334 version_type=freebsd-elf
10335 need_lib_prefix=no
10336 need_version=no
10337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10338 soname_spec='${libname}${release}${shared_ext}$major'
10339 shlibpath_var=LD_LIBRARY_PATH
10340 shlibpath_overrides_runpath=yes
10341 hardcode_into_libs=yes
10342 if test "$with_gnu_ld" = yes; then
10343 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10344 else
10345 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10346 case $host_os in
10347 sco3.2v5*)
10348 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10350 esac
10352 sys_lib_dlsearch_path_spec='/usr/lib'
10355 tpf*)
10356 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10357 version_type=linux
10358 need_lib_prefix=no
10359 need_version=no
10360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10361 shlibpath_var=LD_LIBRARY_PATH
10362 shlibpath_overrides_runpath=no
10363 hardcode_into_libs=yes
10366 uts4*)
10367 version_type=linux
10368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10369 soname_spec='${libname}${release}${shared_ext}$major'
10370 shlibpath_var=LD_LIBRARY_PATH
10374 dynamic_linker=no
10376 esac
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10378 $as_echo "$dynamic_linker" >&6; }
10379 test "$dynamic_linker" = no && can_build_shared=no
10381 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10382 if test "$GCC" = yes; then
10383 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10386 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10387 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10389 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10390 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10485 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10486 hardcode_action=
10487 if test -n "$hardcode_libdir_flag_spec" ||
10488 test -n "$runpath_var" ||
10489 test "X$hardcode_automatic" = "Xyes" ; then
10491 # We can hardcode non-existent directories.
10492 if test "$hardcode_direct" != no &&
10493 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10494 # have to relink, otherwise we might link with an installed library
10495 # when we should be linking with a yet-to-be-installed one
10496 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10497 test "$hardcode_minus_L" != no; then
10498 # Linking always hardcodes the temporary library directory.
10499 hardcode_action=relink
10500 else
10501 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10502 hardcode_action=immediate
10504 else
10505 # We cannot hardcode anything, or else we can only hardcode existing
10506 # directories.
10507 hardcode_action=unsupported
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10510 $as_echo "$hardcode_action" >&6; }
10512 if test "$hardcode_action" = relink ||
10513 test "$inherit_rpath" = yes; then
10514 # Fast installation is not supported
10515 enable_fast_install=no
10516 elif test "$shlibpath_overrides_runpath" = yes ||
10517 test "$enable_shared" = no; then
10518 # Fast installation is not necessary
10519 enable_fast_install=needless
10527 if test "x$enable_dlopen" != xyes; then
10528 enable_dlopen=unknown
10529 enable_dlopen_self=unknown
10530 enable_dlopen_self_static=unknown
10531 else
10532 lt_cv_dlopen=no
10533 lt_cv_dlopen_libs=
10535 case $host_os in
10536 beos*)
10537 lt_cv_dlopen="load_add_on"
10538 lt_cv_dlopen_libs=
10539 lt_cv_dlopen_self=yes
10542 mingw* | pw32* | cegcc*)
10543 lt_cv_dlopen="LoadLibrary"
10544 lt_cv_dlopen_libs=
10547 cygwin*)
10548 lt_cv_dlopen="dlopen"
10549 lt_cv_dlopen_libs=
10552 darwin*)
10553 # if libdl is installed we need to link against it
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10555 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10556 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10557 $as_echo_n "(cached) " >&6
10558 else
10559 ac_check_lib_save_LIBS=$LIBS
10560 LIBS="-ldl $LIBS"
10561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10562 /* end confdefs.h. */
10564 /* Override any GCC internal prototype to avoid an error.
10565 Use char because int might match the return type of a GCC
10566 builtin and then its argument prototype would still apply. */
10567 #ifdef __cplusplus
10568 extern "C"
10569 #endif
10570 char dlopen ();
10572 main ()
10574 return dlopen ();
10576 return 0;
10578 _ACEOF
10579 if ac_fn_c_try_link "$LINENO"; then :
10580 ac_cv_lib_dl_dlopen=yes
10581 else
10582 ac_cv_lib_dl_dlopen=no
10584 rm -f core conftest.err conftest.$ac_objext \
10585 conftest$ac_exeext conftest.$ac_ext
10586 LIBS=$ac_check_lib_save_LIBS
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10589 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10590 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10591 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10592 else
10594 lt_cv_dlopen="dyld"
10595 lt_cv_dlopen_libs=
10596 lt_cv_dlopen_self=yes
10603 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10604 if test "x$ac_cv_func_shl_load" = x""yes; then :
10605 lt_cv_dlopen="shl_load"
10606 else
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10608 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10609 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10610 $as_echo_n "(cached) " >&6
10611 else
10612 ac_check_lib_save_LIBS=$LIBS
10613 LIBS="-ldld $LIBS"
10614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10615 /* end confdefs.h. */
10617 /* Override any GCC internal prototype to avoid an error.
10618 Use char because int might match the return type of a GCC
10619 builtin and then its argument prototype would still apply. */
10620 #ifdef __cplusplus
10621 extern "C"
10622 #endif
10623 char shl_load ();
10625 main ()
10627 return shl_load ();
10629 return 0;
10631 _ACEOF
10632 if ac_fn_c_try_link "$LINENO"; then :
10633 ac_cv_lib_dld_shl_load=yes
10634 else
10635 ac_cv_lib_dld_shl_load=no
10637 rm -f core conftest.err conftest.$ac_objext \
10638 conftest$ac_exeext conftest.$ac_ext
10639 LIBS=$ac_check_lib_save_LIBS
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10642 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10643 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10644 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10645 else
10646 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10647 if test "x$ac_cv_func_dlopen" = x""yes; then :
10648 lt_cv_dlopen="dlopen"
10649 else
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10651 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10653 $as_echo_n "(cached) " >&6
10654 else
10655 ac_check_lib_save_LIBS=$LIBS
10656 LIBS="-ldl $LIBS"
10657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10658 /* end confdefs.h. */
10660 /* Override any GCC internal prototype to avoid an error.
10661 Use char because int might match the return type of a GCC
10662 builtin and then its argument prototype would still apply. */
10663 #ifdef __cplusplus
10664 extern "C"
10665 #endif
10666 char dlopen ();
10668 main ()
10670 return dlopen ();
10672 return 0;
10674 _ACEOF
10675 if ac_fn_c_try_link "$LINENO"; then :
10676 ac_cv_lib_dl_dlopen=yes
10677 else
10678 ac_cv_lib_dl_dlopen=no
10680 rm -f core conftest.err conftest.$ac_objext \
10681 conftest$ac_exeext conftest.$ac_ext
10682 LIBS=$ac_check_lib_save_LIBS
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10685 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10686 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10687 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10688 else
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10690 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10691 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10692 $as_echo_n "(cached) " >&6
10693 else
10694 ac_check_lib_save_LIBS=$LIBS
10695 LIBS="-lsvld $LIBS"
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10699 /* Override any GCC internal prototype to avoid an error.
10700 Use char because int might match the return type of a GCC
10701 builtin and then its argument prototype would still apply. */
10702 #ifdef __cplusplus
10703 extern "C"
10704 #endif
10705 char dlopen ();
10707 main ()
10709 return dlopen ();
10711 return 0;
10713 _ACEOF
10714 if ac_fn_c_try_link "$LINENO"; then :
10715 ac_cv_lib_svld_dlopen=yes
10716 else
10717 ac_cv_lib_svld_dlopen=no
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LIBS=$ac_check_lib_save_LIBS
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10724 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10725 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
10726 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10727 else
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10729 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10730 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
10731 $as_echo_n "(cached) " >&6
10732 else
10733 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-ldld $LIBS"
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10736 /* end confdefs.h. */
10738 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */
10741 #ifdef __cplusplus
10742 extern "C"
10743 #endif
10744 char dld_link ();
10746 main ()
10748 return dld_link ();
10750 return 0;
10752 _ACEOF
10753 if ac_fn_c_try_link "$LINENO"; then :
10754 ac_cv_lib_dld_dld_link=yes
10755 else
10756 ac_cv_lib_dld_dld_link=no
10758 rm -f core conftest.err conftest.$ac_objext \
10759 conftest$ac_exeext conftest.$ac_ext
10760 LIBS=$ac_check_lib_save_LIBS
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10763 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10764 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
10765 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10784 esac
10786 if test "x$lt_cv_dlopen" != xno; then
10787 enable_dlopen=yes
10788 else
10789 enable_dlopen=no
10792 case $lt_cv_dlopen in
10793 dlopen)
10794 save_CPPFLAGS="$CPPFLAGS"
10795 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10797 save_LDFLAGS="$LDFLAGS"
10798 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10800 save_LIBS="$LIBS"
10801 LIBS="$lt_cv_dlopen_libs $LIBS"
10803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
10804 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10805 if test "${lt_cv_dlopen_self+set}" = set; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 if test "$cross_compiling" = yes; then :
10809 lt_cv_dlopen_self=cross
10810 else
10811 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10812 lt_status=$lt_dlunknown
10813 cat > conftest.$ac_ext <<_LT_EOF
10814 #line 10814 "configure"
10815 #include "confdefs.h"
10817 #if HAVE_DLFCN_H
10818 #include <dlfcn.h>
10819 #endif
10821 #include <stdio.h>
10823 #ifdef RTLD_GLOBAL
10824 # define LT_DLGLOBAL RTLD_GLOBAL
10825 #else
10826 # ifdef DL_GLOBAL
10827 # define LT_DLGLOBAL DL_GLOBAL
10828 # else
10829 # define LT_DLGLOBAL 0
10830 # endif
10831 #endif
10833 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10834 find out it does not work in some platform. */
10835 #ifndef LT_DLLAZY_OR_NOW
10836 # ifdef RTLD_LAZY
10837 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10838 # else
10839 # ifdef DL_LAZY
10840 # define LT_DLLAZY_OR_NOW DL_LAZY
10841 # else
10842 # ifdef RTLD_NOW
10843 # define LT_DLLAZY_OR_NOW RTLD_NOW
10844 # else
10845 # ifdef DL_NOW
10846 # define LT_DLLAZY_OR_NOW DL_NOW
10847 # else
10848 # define LT_DLLAZY_OR_NOW 0
10849 # endif
10850 # endif
10851 # endif
10852 # endif
10853 #endif
10855 /* When -fvisbility=hidden is used, assume the code has been annotated
10856 correspondingly for the symbols needed. */
10857 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10858 void fnord () __attribute__((visibility("default")));
10859 #endif
10861 void fnord () { int i=42; }
10862 int main ()
10864 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10865 int status = $lt_dlunknown;
10867 if (self)
10869 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10870 else
10872 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10873 else puts (dlerror ());
10875 /* dlclose (self); */
10877 else
10878 puts (dlerror ());
10880 return status;
10882 _LT_EOF
10883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10884 (eval $ac_link) 2>&5
10885 ac_status=$?
10886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10887 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10888 (./conftest; exit; ) >&5 2>/dev/null
10889 lt_status=$?
10890 case x$lt_status in
10891 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10892 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10893 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10894 esac
10895 else :
10896 # compilation failed
10897 lt_cv_dlopen_self=no
10900 rm -fr conftest*
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10905 $as_echo "$lt_cv_dlopen_self" >&6; }
10907 if test "x$lt_cv_dlopen_self" = xyes; then
10908 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10910 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10911 if test "${lt_cv_dlopen_self_static+set}" = set; then :
10912 $as_echo_n "(cached) " >&6
10913 else
10914 if test "$cross_compiling" = yes; then :
10915 lt_cv_dlopen_self_static=cross
10916 else
10917 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10918 lt_status=$lt_dlunknown
10919 cat > conftest.$ac_ext <<_LT_EOF
10920 #line 10920 "configure"
10921 #include "confdefs.h"
10923 #if HAVE_DLFCN_H
10924 #include <dlfcn.h>
10925 #endif
10927 #include <stdio.h>
10929 #ifdef RTLD_GLOBAL
10930 # define LT_DLGLOBAL RTLD_GLOBAL
10931 #else
10932 # ifdef DL_GLOBAL
10933 # define LT_DLGLOBAL DL_GLOBAL
10934 # else
10935 # define LT_DLGLOBAL 0
10936 # endif
10937 #endif
10939 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10940 find out it does not work in some platform. */
10941 #ifndef LT_DLLAZY_OR_NOW
10942 # ifdef RTLD_LAZY
10943 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10944 # else
10945 # ifdef DL_LAZY
10946 # define LT_DLLAZY_OR_NOW DL_LAZY
10947 # else
10948 # ifdef RTLD_NOW
10949 # define LT_DLLAZY_OR_NOW RTLD_NOW
10950 # else
10951 # ifdef DL_NOW
10952 # define LT_DLLAZY_OR_NOW DL_NOW
10953 # else
10954 # define LT_DLLAZY_OR_NOW 0
10955 # endif
10956 # endif
10957 # endif
10958 # endif
10959 #endif
10961 /* When -fvisbility=hidden is used, assume the code has been annotated
10962 correspondingly for the symbols needed. */
10963 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
10964 void fnord () __attribute__((visibility("default")));
10965 #endif
10967 void fnord () { int i=42; }
10968 int main ()
10970 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10971 int status = $lt_dlunknown;
10973 if (self)
10975 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10976 else
10978 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10979 else puts (dlerror ());
10981 /* dlclose (self); */
10983 else
10984 puts (dlerror ());
10986 return status;
10988 _LT_EOF
10989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10990 (eval $ac_link) 2>&5
10991 ac_status=$?
10992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10993 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10994 (./conftest; exit; ) >&5 2>/dev/null
10995 lt_status=$?
10996 case x$lt_status in
10997 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10998 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10999 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11000 esac
11001 else :
11002 # compilation failed
11003 lt_cv_dlopen_self_static=no
11006 rm -fr conftest*
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11011 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11014 CPPFLAGS="$save_CPPFLAGS"
11015 LDFLAGS="$save_LDFLAGS"
11016 LIBS="$save_LIBS"
11018 esac
11020 case $lt_cv_dlopen_self in
11021 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11022 *) enable_dlopen_self=unknown ;;
11023 esac
11025 case $lt_cv_dlopen_self_static in
11026 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11027 *) enable_dlopen_self_static=unknown ;;
11028 esac
11047 striplib=
11048 old_striplib=
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11050 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11051 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11052 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11053 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11055 $as_echo "yes" >&6; }
11056 else
11057 # FIXME - insert some real tests, host_os isn't really good enough
11058 case $host_os in
11059 darwin*)
11060 if test -n "$STRIP" ; then
11061 striplib="$STRIP -x"
11062 old_striplib="$STRIP -S"
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11064 $as_echo "yes" >&6; }
11065 else
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 $as_echo "no" >&6; }
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11072 $as_echo "no" >&6; }
11074 esac
11088 # Report which library types will actually be built
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11090 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11092 $as_echo "$can_build_shared" >&6; }
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11095 $as_echo_n "checking whether to build shared libraries... " >&6; }
11096 test "$can_build_shared" = "no" && enable_shared=no
11098 # On AIX, shared libraries and static libraries use the same namespace, and
11099 # are all built from PIC.
11100 case $host_os in
11101 aix3*)
11102 test "$enable_shared" = yes && enable_static=no
11103 if test -n "$RANLIB"; then
11104 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11105 postinstall_cmds='$RANLIB $lib'
11109 aix[4-9]*)
11110 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11111 test "$enable_shared" = yes && enable_static=no
11114 esac
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11116 $as_echo "$enable_shared" >&6; }
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11119 $as_echo_n "checking whether to build static libraries... " >&6; }
11120 # Make sure either enable_shared or enable_static is yes.
11121 test "$enable_shared" = yes || enable_static=yes
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11123 $as_echo "$enable_static" >&6; }
11129 ac_ext=c
11130 ac_cpp='$CPP $CPPFLAGS'
11131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11135 CC="$lt_save_CC"
11137 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11138 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11139 (test "X$CXX" != "Xg++"))) ; then
11140 ac_ext=cpp
11141 ac_cpp='$CXXCPP $CPPFLAGS'
11142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11146 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11147 if test -z "$CXXCPP"; then
11148 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 # Double quotes because CXXCPP needs to be expanded
11152 for CXXCPP in "$CXX -E" "/lib/cpp"
11154 ac_preproc_ok=false
11155 for ac_cxx_preproc_warn_flag in '' yes
11157 # Use a header file that comes with gcc, so configuring glibc
11158 # with a fresh cross-compiler works.
11159 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11160 # <limits.h> exists even on freestanding compilers.
11161 # On the NeXT, cc -E runs the code through the compiler's parser,
11162 # not just through cpp. "Syntax error" is here to catch this case.
11163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11164 /* end confdefs.h. */
11165 #ifdef __STDC__
11166 # include <limits.h>
11167 #else
11168 # include <assert.h>
11169 #endif
11170 Syntax error
11171 _ACEOF
11172 if ac_fn_cxx_try_cpp "$LINENO"; then :
11174 else
11175 # Broken: fails on valid input.
11176 continue
11178 rm -f conftest.err conftest.$ac_ext
11180 # OK, works on sane cases. Now check whether nonexistent headers
11181 # can be detected and how.
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184 #include <ac_nonexistent.h>
11185 _ACEOF
11186 if ac_fn_cxx_try_cpp "$LINENO"; then :
11187 # Broken: success on invalid input.
11188 continue
11189 else
11190 # Passes both tests.
11191 ac_preproc_ok=:
11192 break
11194 rm -f conftest.err conftest.$ac_ext
11196 done
11197 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11198 rm -f conftest.err conftest.$ac_ext
11199 if $ac_preproc_ok; then :
11200 break
11203 done
11204 ac_cv_prog_CXXCPP=$CXXCPP
11207 CXXCPP=$ac_cv_prog_CXXCPP
11208 else
11209 ac_cv_prog_CXXCPP=$CXXCPP
11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11212 $as_echo "$CXXCPP" >&6; }
11213 ac_preproc_ok=false
11214 for ac_cxx_preproc_warn_flag in '' yes
11216 # Use a header file that comes with gcc, so configuring glibc
11217 # with a fresh cross-compiler works.
11218 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11219 # <limits.h> exists even on freestanding compilers.
11220 # On the NeXT, cc -E runs the code through the compiler's parser,
11221 # not just through cpp. "Syntax error" is here to catch this case.
11222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11223 /* end confdefs.h. */
11224 #ifdef __STDC__
11225 # include <limits.h>
11226 #else
11227 # include <assert.h>
11228 #endif
11229 Syntax error
11230 _ACEOF
11231 if ac_fn_cxx_try_cpp "$LINENO"; then :
11233 else
11234 # Broken: fails on valid input.
11235 continue
11237 rm -f conftest.err conftest.$ac_ext
11239 # OK, works on sane cases. Now check whether nonexistent headers
11240 # can be detected and how.
11241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11242 /* end confdefs.h. */
11243 #include <ac_nonexistent.h>
11244 _ACEOF
11245 if ac_fn_cxx_try_cpp "$LINENO"; then :
11246 # Broken: success on invalid input.
11247 continue
11248 else
11249 # Passes both tests.
11250 ac_preproc_ok=:
11251 break
11253 rm -f conftest.err conftest.$ac_ext
11255 done
11256 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11257 rm -f conftest.err conftest.$ac_ext
11258 if $ac_preproc_ok; then :
11260 else
11261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11263 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11264 See \`config.log' for more details." "$LINENO" 5; }
11267 ac_ext=c
11268 ac_cpp='$CPP $CPPFLAGS'
11269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11273 else
11274 _lt_caught_CXX_error=yes
11277 ac_ext=cpp
11278 ac_cpp='$CXXCPP $CPPFLAGS'
11279 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11280 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11281 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11283 archive_cmds_need_lc_CXX=no
11284 allow_undefined_flag_CXX=
11285 always_export_symbols_CXX=no
11286 archive_expsym_cmds_CXX=
11287 compiler_needs_object_CXX=no
11288 export_dynamic_flag_spec_CXX=
11289 hardcode_direct_CXX=no
11290 hardcode_direct_absolute_CXX=no
11291 hardcode_libdir_flag_spec_CXX=
11292 hardcode_libdir_flag_spec_ld_CXX=
11293 hardcode_libdir_separator_CXX=
11294 hardcode_minus_L_CXX=no
11295 hardcode_shlibpath_var_CXX=unsupported
11296 hardcode_automatic_CXX=no
11297 inherit_rpath_CXX=no
11298 module_cmds_CXX=
11299 module_expsym_cmds_CXX=
11300 link_all_deplibs_CXX=unknown
11301 old_archive_cmds_CXX=$old_archive_cmds
11302 reload_flag_CXX=$reload_flag
11303 reload_cmds_CXX=$reload_cmds
11304 no_undefined_flag_CXX=
11305 whole_archive_flag_spec_CXX=
11306 enable_shared_with_static_runtimes_CXX=no
11308 # Source file extension for C++ test sources.
11309 ac_ext=cpp
11311 # Object file extension for compiled C++ test sources.
11312 objext=o
11313 objext_CXX=$objext
11315 # No sense in running all these tests if we already determined that
11316 # the CXX compiler isn't working. Some variables (like enable_shared)
11317 # are currently assumed to apply to all compilers on this platform,
11318 # and will be corrupted by setting them based on a non-working compiler.
11319 if test "$_lt_caught_CXX_error" != yes; then
11320 # Code to be used in simple compile tests
11321 lt_simple_compile_test_code="int some_variable = 0;"
11323 # Code to be used in simple link tests
11324 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11326 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11333 # If no C compiler was specified, use CC.
11334 LTCC=${LTCC-"$CC"}
11336 # If no C compiler flags were specified, use CFLAGS.
11337 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11339 # Allow CC to be a program name with arguments.
11340 compiler=$CC
11343 # save warnings/boilerplate of simple test code
11344 ac_outfile=conftest.$ac_objext
11345 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11346 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11347 _lt_compiler_boilerplate=`cat conftest.err`
11348 $RM conftest*
11350 ac_outfile=conftest.$ac_objext
11351 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11352 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11353 _lt_linker_boilerplate=`cat conftest.err`
11354 $RM -r conftest*
11357 # Allow CC to be a program name with arguments.
11358 lt_save_CC=$CC
11359 lt_save_LD=$LD
11360 lt_save_GCC=$GCC
11361 GCC=$GXX
11362 lt_save_with_gnu_ld=$with_gnu_ld
11363 lt_save_path_LD=$lt_cv_path_LD
11364 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11365 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11366 else
11367 $as_unset lt_cv_prog_gnu_ld
11369 if test -n "${lt_cv_path_LDCXX+set}"; then
11370 lt_cv_path_LD=$lt_cv_path_LDCXX
11371 else
11372 $as_unset lt_cv_path_LD
11374 test -z "${LDCXX+set}" || LD=$LDCXX
11375 CC=${CXX-"c++"}
11376 compiler=$CC
11377 compiler_CXX=$CC
11378 for cc_temp in $compiler""; do
11379 case $cc_temp in
11380 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11381 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11382 \-*) ;;
11383 *) break;;
11384 esac
11385 done
11386 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11389 if test -n "$compiler"; then
11390 # We don't want -fno-exception when compiling C++ code, so set the
11391 # no_builtin_flag separately
11392 if test "$GXX" = yes; then
11393 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11394 else
11395 lt_prog_compiler_no_builtin_flag_CXX=
11398 if test "$GXX" = yes; then
11399 # Set up default GNU C++ configuration
11403 # Check whether --with-gnu-ld was given.
11404 if test "${with_gnu_ld+set}" = set; then :
11405 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11406 else
11407 with_gnu_ld=no
11410 ac_prog=ld
11411 if test "$GCC" = yes; then
11412 # Check if gcc -print-prog-name=ld gives a path.
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11414 $as_echo_n "checking for ld used by $CC... " >&6; }
11415 case $host in
11416 *-*-mingw*)
11417 # gcc leaves a trailing carriage return which upsets mingw
11418 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11420 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11421 esac
11422 case $ac_prog in
11423 # Accept absolute paths.
11424 [\\/]* | ?:[\\/]*)
11425 re_direlt='/[^/][^/]*/\.\./'
11426 # Canonicalize the pathname of ld
11427 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11428 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11429 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11430 done
11431 test -z "$LD" && LD="$ac_prog"
11434 # If it fails, then pretend we aren't using GCC.
11435 ac_prog=ld
11438 # If it is relative, then search for the first ld in PATH.
11439 with_gnu_ld=unknown
11441 esac
11442 elif test "$with_gnu_ld" = yes; then
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11444 $as_echo_n "checking for GNU ld... " >&6; }
11445 else
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11447 $as_echo_n "checking for non-GNU ld... " >&6; }
11449 if test "${lt_cv_path_LD+set}" = set; then :
11450 $as_echo_n "(cached) " >&6
11451 else
11452 if test -z "$LD"; then
11453 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11454 for ac_dir in $PATH; do
11455 IFS="$lt_save_ifs"
11456 test -z "$ac_dir" && ac_dir=.
11457 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11458 lt_cv_path_LD="$ac_dir/$ac_prog"
11459 # Check to see if the program is GNU ld. I'd rather use --version,
11460 # but apparently some variants of GNU ld only accept -v.
11461 # Break only if it was the GNU/non-GNU ld that we prefer.
11462 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11463 *GNU* | *'with BFD'*)
11464 test "$with_gnu_ld" != no && break
11467 test "$with_gnu_ld" != yes && break
11469 esac
11471 done
11472 IFS="$lt_save_ifs"
11473 else
11474 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11478 LD="$lt_cv_path_LD"
11479 if test -n "$LD"; then
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11481 $as_echo "$LD" >&6; }
11482 else
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11484 $as_echo "no" >&6; }
11486 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11488 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11489 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11490 $as_echo_n "(cached) " >&6
11491 else
11492 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11493 case `$LD -v 2>&1 </dev/null` in
11494 *GNU* | *'with BFD'*)
11495 lt_cv_prog_gnu_ld=yes
11498 lt_cv_prog_gnu_ld=no
11500 esac
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11503 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11504 with_gnu_ld=$lt_cv_prog_gnu_ld
11512 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11513 # archiving commands below assume that GNU ld is being used.
11514 if test "$with_gnu_ld" = yes; then
11515 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11516 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11518 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11519 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11521 # If archive_cmds runs LD, not CC, wlarc should be empty
11522 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11523 # investigate it a little bit more. (MM)
11524 wlarc='${wl}'
11526 # ancient GNU ld didn't support --whole-archive et. al.
11527 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11528 $GREP 'no-whole-archive' > /dev/null; then
11529 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11530 else
11531 whole_archive_flag_spec_CXX=
11533 else
11534 with_gnu_ld=no
11535 wlarc=
11537 # A generic and very simple default shared library creation
11538 # command for GNU C++ for the case where it uses the native
11539 # linker, instead of GNU ld. If possible, this setting should
11540 # overridden to take advantage of the native linker features on
11541 # the platform it is being used on.
11542 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11545 # Commands to make compiler produce verbose output that lists
11546 # what "hidden" libraries, object files and flags are used when
11547 # linking a shared library.
11548 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11550 else
11551 GXX=no
11552 with_gnu_ld=no
11553 wlarc=
11556 # PORTME: fill in a description of your system's C++ link characteristics
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11558 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11559 ld_shlibs_CXX=yes
11560 case $host_os in
11561 aix3*)
11562 # FIXME: insert proper C++ library support
11563 ld_shlibs_CXX=no
11565 aix[4-9]*)
11566 if test "$host_cpu" = ia64; then
11567 # On IA64, the linker does run time linking by default, so we don't
11568 # have to do anything special.
11569 aix_use_runtimelinking=no
11570 exp_sym_flag='-Bexport'
11571 no_entry_flag=""
11572 else
11573 aix_use_runtimelinking=no
11575 # Test if we are trying to use run time linking or normal
11576 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11577 # need to do runtime linking.
11578 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11579 for ld_flag in $LDFLAGS; do
11580 case $ld_flag in
11581 *-brtl*)
11582 aix_use_runtimelinking=yes
11583 break
11585 esac
11586 done
11588 esac
11590 exp_sym_flag='-bexport'
11591 no_entry_flag='-bnoentry'
11594 # When large executables or shared objects are built, AIX ld can
11595 # have problems creating the table of contents. If linking a library
11596 # or program results in "error TOC overflow" add -mminimal-toc to
11597 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11598 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11600 archive_cmds_CXX=''
11601 hardcode_direct_CXX=yes
11602 hardcode_direct_absolute_CXX=yes
11603 hardcode_libdir_separator_CXX=':'
11604 link_all_deplibs_CXX=yes
11605 file_list_spec_CXX='${wl}-f,'
11607 if test "$GXX" = yes; then
11608 case $host_os in aix4.[012]|aix4.[012].*)
11609 # We only want to do this on AIX 4.2 and lower, the check
11610 # below for broken collect2 doesn't work under 4.3+
11611 collect2name=`${CC} -print-prog-name=collect2`
11612 if test -f "$collect2name" &&
11613 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11614 then
11615 # We have reworked collect2
11617 else
11618 # We have old collect2
11619 hardcode_direct_CXX=unsupported
11620 # It fails to find uninstalled libraries when the uninstalled
11621 # path is not listed in the libpath. Setting hardcode_minus_L
11622 # to unsupported forces relinking
11623 hardcode_minus_L_CXX=yes
11624 hardcode_libdir_flag_spec_CXX='-L$libdir'
11625 hardcode_libdir_separator_CXX=
11627 esac
11628 shared_flag='-shared'
11629 if test "$aix_use_runtimelinking" = yes; then
11630 shared_flag="$shared_flag "'${wl}-G'
11632 else
11633 # not using gcc
11634 if test "$host_cpu" = ia64; then
11635 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11636 # chokes on -Wl,-G. The following line is correct:
11637 shared_flag='-G'
11638 else
11639 if test "$aix_use_runtimelinking" = yes; then
11640 shared_flag='${wl}-G'
11641 else
11642 shared_flag='${wl}-bM:SRE'
11647 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11648 # It seems that -bexpall does not export symbols beginning with
11649 # underscore (_), so it is better to generate a list of symbols to
11650 # export.
11651 always_export_symbols_CXX=yes
11652 if test "$aix_use_runtimelinking" = yes; then
11653 # Warning - without using the other runtime loading flags (-brtl),
11654 # -berok will link without error, but may produce a broken library.
11655 allow_undefined_flag_CXX='-berok'
11656 # Determine the default libpath from the value encoded in an empty
11657 # executable.
11658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659 /* end confdefs.h. */
11662 main ()
11666 return 0;
11668 _ACEOF
11669 if ac_fn_cxx_try_link "$LINENO"; then :
11671 lt_aix_libpath_sed='
11672 /Import File Strings/,/^$/ {
11673 /^0/ {
11674 s/^0 *\(.*\)$/\1/
11678 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11679 # Check for a 64-bit object if we didn't find anything.
11680 if test -z "$aix_libpath"; then
11681 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11684 rm -f core conftest.err conftest.$ac_objext \
11685 conftest$ac_exeext conftest.$ac_ext
11686 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11688 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11690 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"
11691 else
11692 if test "$host_cpu" = ia64; then
11693 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11694 allow_undefined_flag_CXX="-z nodefs"
11695 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"
11696 else
11697 # Determine the default libpath from the value encoded in an
11698 # empty executable.
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11700 /* end confdefs.h. */
11703 main ()
11707 return 0;
11709 _ACEOF
11710 if ac_fn_cxx_try_link "$LINENO"; then :
11712 lt_aix_libpath_sed='
11713 /Import File Strings/,/^$/ {
11714 /^0/ {
11715 s/^0 *\(.*\)$/\1/
11719 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11720 # Check for a 64-bit object if we didn't find anything.
11721 if test -z "$aix_libpath"; then
11722 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11725 rm -f core conftest.err conftest.$ac_objext \
11726 conftest$ac_exeext conftest.$ac_ext
11727 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11729 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11730 # Warning - without using the other run time loading flags,
11731 # -berok will link without error, but may produce a broken library.
11732 no_undefined_flag_CXX=' ${wl}-bernotok'
11733 allow_undefined_flag_CXX=' ${wl}-berok'
11734 if test "$with_gnu_ld" = yes; then
11735 # We only use this code for GNU lds that support --whole-archive.
11736 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11737 else
11738 # Exported symbols can be pulled into shared objects from archives
11739 whole_archive_flag_spec_CXX='$convenience'
11741 archive_cmds_need_lc_CXX=yes
11742 # This is similar to how AIX traditionally builds its shared
11743 # libraries.
11744 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'
11749 beos*)
11750 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
11751 allow_undefined_flag_CXX=unsupported
11752 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11753 # support --undefined. This deserves some investigation. FIXME
11754 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11755 else
11756 ld_shlibs_CXX=no
11760 chorus*)
11761 case $cc_basename in
11763 # FIXME: insert proper C++ library support
11764 ld_shlibs_CXX=no
11766 esac
11769 cygwin* | mingw* | pw32* | cegcc*)
11770 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11771 # as there is no search path for DLLs.
11772 hardcode_libdir_flag_spec_CXX='-L$libdir'
11773 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
11774 allow_undefined_flag_CXX=unsupported
11775 always_export_symbols_CXX=no
11776 enable_shared_with_static_runtimes_CXX=yes
11778 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
11779 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'
11780 # If the export-symbols file already is a .def file (1st line
11781 # is EXPORTS), use it as is; otherwise, prepend...
11782 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11783 cp $export_symbols $output_objdir/$soname.def;
11784 else
11785 echo EXPORTS > $output_objdir/$soname.def;
11786 cat $export_symbols >> $output_objdir/$soname.def;
11788 $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'
11789 else
11790 ld_shlibs_CXX=no
11793 darwin* | rhapsody*)
11796 archive_cmds_need_lc_CXX=no
11797 hardcode_direct_CXX=no
11798 hardcode_automatic_CXX=yes
11799 hardcode_shlibpath_var_CXX=unsupported
11800 if test "$lt_cv_ld_force_load" = "yes"; then
11801 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\"`'
11802 else
11803 whole_archive_flag_spec_CXX=''
11805 link_all_deplibs_CXX=yes
11806 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11807 case $cc_basename in
11808 ifort*) _lt_dar_can_shared=yes ;;
11809 *) _lt_dar_can_shared=$GCC ;;
11810 esac
11811 if test "$_lt_dar_can_shared" = "yes"; then
11812 output_verbose_link_cmd=func_echo_all
11813 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}"
11814 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11815 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}"
11816 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}"
11817 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11818 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}"
11819 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}"
11822 else
11823 ld_shlibs_CXX=no
11828 dgux*)
11829 case $cc_basename in
11830 ec++*)
11831 # FIXME: insert proper C++ library support
11832 ld_shlibs_CXX=no
11834 ghcx*)
11835 # Green Hills C++ Compiler
11836 # FIXME: insert proper C++ library support
11837 ld_shlibs_CXX=no
11840 # FIXME: insert proper C++ library support
11841 ld_shlibs_CXX=no
11843 esac
11846 freebsd2.*)
11847 # C++ shared libraries reported to be fairly broken before
11848 # switch to ELF
11849 ld_shlibs_CXX=no
11852 freebsd-elf*)
11853 archive_cmds_need_lc_CXX=no
11856 freebsd* | dragonfly*)
11857 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11858 # conventions
11859 ld_shlibs_CXX=yes
11862 gnu*)
11865 haiku*)
11866 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11867 link_all_deplibs_CXX=yes
11870 hpux9*)
11871 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11872 hardcode_libdir_separator_CXX=:
11873 export_dynamic_flag_spec_CXX='${wl}-E'
11874 hardcode_direct_CXX=yes
11875 hardcode_minus_L_CXX=yes # Not in the search PATH,
11876 # but as the default
11877 # location of the library.
11879 case $cc_basename in
11880 CC*)
11881 # FIXME: insert proper C++ library support
11882 ld_shlibs_CXX=no
11884 aCC*)
11885 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'
11886 # Commands to make compiler produce verbose output that lists
11887 # what "hidden" libraries, object files and flags are used when
11888 # linking a shared library.
11890 # There doesn't appear to be a way to prevent this compiler from
11891 # explicitly linking system object files so we need to strip them
11892 # from the output so that they don't get included in the library
11893 # dependencies.
11894 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"'
11897 if test "$GXX" = yes; then
11898 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'
11899 else
11900 # FIXME: insert proper C++ library support
11901 ld_shlibs_CXX=no
11904 esac
11907 hpux10*|hpux11*)
11908 if test $with_gnu_ld = no; then
11909 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11910 hardcode_libdir_separator_CXX=:
11912 case $host_cpu in
11913 hppa*64*|ia64*)
11916 export_dynamic_flag_spec_CXX='${wl}-E'
11918 esac
11920 case $host_cpu in
11921 hppa*64*|ia64*)
11922 hardcode_direct_CXX=no
11923 hardcode_shlibpath_var_CXX=no
11926 hardcode_direct_CXX=yes
11927 hardcode_direct_absolute_CXX=yes
11928 hardcode_minus_L_CXX=yes # Not in the search PATH,
11929 # but as the default
11930 # location of the library.
11932 esac
11934 case $cc_basename in
11935 CC*)
11936 # FIXME: insert proper C++ library support
11937 ld_shlibs_CXX=no
11939 aCC*)
11940 case $host_cpu in
11941 hppa*64*)
11942 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11944 ia64*)
11945 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11948 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11950 esac
11951 # Commands to make compiler produce verbose output that lists
11952 # what "hidden" libraries, object files and flags are used when
11953 # linking a shared library.
11955 # There doesn't appear to be a way to prevent this compiler from
11956 # explicitly linking system object files so we need to strip them
11957 # from the output so that they don't get included in the library
11958 # dependencies.
11959 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"'
11962 if test "$GXX" = yes; then
11963 if test $with_gnu_ld = no; then
11964 case $host_cpu in
11965 hppa*64*)
11966 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11968 ia64*)
11969 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11972 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'
11974 esac
11976 else
11977 # FIXME: insert proper C++ library support
11978 ld_shlibs_CXX=no
11981 esac
11984 interix[3-9]*)
11985 hardcode_direct_CXX=no
11986 hardcode_shlibpath_var_CXX=no
11987 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11988 export_dynamic_flag_spec_CXX='${wl}-E'
11989 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11990 # Instead, shared libraries are loaded at an image base (0x10000000 by
11991 # default) and relocated if they conflict, which is a slow very memory
11992 # consuming and fragmenting process. To avoid this, we pick a random,
11993 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11994 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11995 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'
11996 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'
11998 irix5* | irix6*)
11999 case $cc_basename in
12000 CC*)
12001 # SGI C++
12002 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'
12004 # Archives containing C++ object files must be created using
12005 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12006 # necessary to make sure instantiated templates are included
12007 # in the archive.
12008 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12011 if test "$GXX" = yes; then
12012 if test "$with_gnu_ld" = no; then
12013 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'
12014 else
12015 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'
12018 link_all_deplibs_CXX=yes
12020 esac
12021 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12022 hardcode_libdir_separator_CXX=:
12023 inherit_rpath_CXX=yes
12026 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12027 case $cc_basename in
12028 KCC*)
12029 # Kuck and Associates, Inc. (KAI) C++ Compiler
12031 # KCC will only create a shared library if the output file
12032 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12033 # to its proper name (with version) after linking.
12034 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'
12035 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'
12036 # Commands to make compiler produce verbose output that lists
12037 # what "hidden" libraries, object files and flags are used when
12038 # linking a shared library.
12040 # There doesn't appear to be a way to prevent this compiler from
12041 # explicitly linking system object files so we need to strip them
12042 # from the output so that they don't get included in the library
12043 # dependencies.
12044 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"'
12046 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12047 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12049 # Archives containing C++ object files must be created using
12050 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12051 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12053 icpc* | ecpc* )
12054 # Intel C++
12055 with_gnu_ld=yes
12056 # version 8.0 and above of icpc choke on multiply defined symbols
12057 # if we add $predep_objects and $postdep_objects, however 7.1 and
12058 # earlier do not add the objects themselves.
12059 case `$CC -V 2>&1` in
12060 *"Version 7."*)
12061 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12062 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'
12064 *) # Version 8.0 or newer
12065 tmp_idyn=
12066 case $host_cpu in
12067 ia64*) tmp_idyn=' -i_dynamic';;
12068 esac
12069 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12070 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'
12072 esac
12073 archive_cmds_need_lc_CXX=no
12074 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12075 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12076 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12078 pgCC* | pgcpp*)
12079 # Portland Group C++ compiler
12080 case `$CC -V` in
12081 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12082 prelink_cmds_CXX='tpldir=Template.dir~
12083 rm -rf $tpldir~
12084 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12085 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12086 old_archive_cmds_CXX='tpldir=Template.dir~
12087 rm -rf $tpldir~
12088 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12089 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12090 $RANLIB $oldlib'
12091 archive_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 -o $lib'
12095 archive_expsym_cmds_CXX='tpldir=Template.dir~
12096 rm -rf $tpldir~
12097 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12098 $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'
12100 *) # Version 6 and above use weak symbols
12101 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12102 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'
12104 esac
12106 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12107 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12108 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'
12110 cxx*)
12111 # Compaq C++
12112 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12113 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'
12115 runpath_var=LD_RUN_PATH
12116 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12117 hardcode_libdir_separator_CXX=:
12119 # Commands to make compiler produce verbose output that lists
12120 # what "hidden" libraries, object files and flags are used when
12121 # linking a shared library.
12123 # There doesn't appear to be a way to prevent this compiler from
12124 # explicitly linking system object files so we need to strip them
12125 # from the output so that they don't get included in the library
12126 # dependencies.
12127 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'
12129 xl* | mpixl* | bgxl*)
12130 # IBM XL 8.0 on PPC, with GNU ld
12131 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12132 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12133 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12134 if test "x$supports_anon_versioning" = xyes; then
12135 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12136 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12137 echo "local: *; };" >> $output_objdir/$libname.ver~
12138 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12142 case `$CC -V 2>&1 | sed 5q` in
12143 *Sun\ C*)
12144 # Sun C++ 5.9
12145 no_undefined_flag_CXX=' -zdefs'
12146 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12147 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'
12148 hardcode_libdir_flag_spec_CXX='-R$libdir'
12149 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'
12150 compiler_needs_object_CXX=yes
12152 # Not sure whether something based on
12153 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12154 # would be better.
12155 output_verbose_link_cmd='func_echo_all'
12157 # Archives containing C++ object files must be created using
12158 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12159 # necessary to make sure instantiated templates are included
12160 # in the archive.
12161 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12163 esac
12165 esac
12168 lynxos*)
12169 # FIXME: insert proper C++ library support
12170 ld_shlibs_CXX=no
12173 m88k*)
12174 # FIXME: insert proper C++ library support
12175 ld_shlibs_CXX=no
12178 mvs*)
12179 case $cc_basename in
12180 cxx*)
12181 # FIXME: insert proper C++ library support
12182 ld_shlibs_CXX=no
12185 # FIXME: insert proper C++ library support
12186 ld_shlibs_CXX=no
12188 esac
12191 netbsd*)
12192 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12193 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12194 wlarc=
12195 hardcode_libdir_flag_spec_CXX='-R$libdir'
12196 hardcode_direct_CXX=yes
12197 hardcode_shlibpath_var_CXX=no
12199 # Workaround some broken pre-1.5 toolchains
12200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12203 *nto* | *qnx*)
12204 ld_shlibs_CXX=yes
12207 openbsd2*)
12208 # C++ shared libraries are fairly broken
12209 ld_shlibs_CXX=no
12212 openbsd*)
12213 if test -f /usr/libexec/ld.so; then
12214 hardcode_direct_CXX=yes
12215 hardcode_shlibpath_var_CXX=no
12216 hardcode_direct_absolute_CXX=yes
12217 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12218 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12219 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12220 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12221 export_dynamic_flag_spec_CXX='${wl}-E'
12222 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12224 output_verbose_link_cmd=func_echo_all
12225 else
12226 ld_shlibs_CXX=no
12230 osf3* | osf4* | osf5*)
12231 case $cc_basename in
12232 KCC*)
12233 # Kuck and Associates, Inc. (KAI) C++ Compiler
12235 # KCC will only create a shared library if the output file
12236 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12237 # to its proper name (with version) after linking.
12238 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'
12240 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12241 hardcode_libdir_separator_CXX=:
12243 # Archives containing C++ object files must be created using
12244 # the KAI C++ compiler.
12245 case $host in
12246 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12247 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12248 esac
12250 RCC*)
12251 # Rational C++ 2.4.1
12252 # FIXME: insert proper C++ library support
12253 ld_shlibs_CXX=no
12255 cxx*)
12256 case $host in
12257 osf3*)
12258 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12259 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'
12260 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12263 allow_undefined_flag_CXX=' -expect_unresolved \*'
12264 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'
12265 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12266 echo "-hidden">> $lib.exp~
12267 $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~
12268 $RM $lib.exp'
12269 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12271 esac
12273 hardcode_libdir_separator_CXX=:
12275 # Commands to make compiler produce verbose output that lists
12276 # what "hidden" libraries, object files and flags are used when
12277 # linking a shared library.
12279 # There doesn't appear to be a way to prevent this compiler from
12280 # explicitly linking system object files so we need to strip them
12281 # from the output so that they don't get included in the library
12282 # dependencies.
12283 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"'
12286 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12287 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12288 case $host in
12289 osf3*)
12290 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'
12293 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'
12295 esac
12297 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12298 hardcode_libdir_separator_CXX=:
12300 # Commands to make compiler produce verbose output that lists
12301 # what "hidden" libraries, object files and flags are used when
12302 # linking a shared library.
12303 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12305 else
12306 # FIXME: insert proper C++ library support
12307 ld_shlibs_CXX=no
12310 esac
12313 psos*)
12314 # FIXME: insert proper C++ library support
12315 ld_shlibs_CXX=no
12318 sunos4*)
12319 case $cc_basename in
12320 CC*)
12321 # Sun C++ 4.x
12322 # FIXME: insert proper C++ library support
12323 ld_shlibs_CXX=no
12325 lcc*)
12326 # Lucid
12327 # FIXME: insert proper C++ library support
12328 ld_shlibs_CXX=no
12331 # FIXME: insert proper C++ library support
12332 ld_shlibs_CXX=no
12334 esac
12337 solaris*)
12338 case $cc_basename in
12339 CC*)
12340 # Sun C++ 4.2, 5.x and Centerline C++
12341 archive_cmds_need_lc_CXX=yes
12342 no_undefined_flag_CXX=' -zdefs'
12343 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12344 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12345 $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'
12347 hardcode_libdir_flag_spec_CXX='-R$libdir'
12348 hardcode_shlibpath_var_CXX=no
12349 case $host_os in
12350 solaris2.[0-5] | solaris2.[0-5].*) ;;
12352 # The compiler driver will combine and reorder linker options,
12353 # but understands `-z linker_flag'.
12354 # Supported since Solaris 2.6 (maybe 2.5.1?)
12355 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12357 esac
12358 link_all_deplibs_CXX=yes
12360 output_verbose_link_cmd='func_echo_all'
12362 # Archives containing C++ object files must be created using
12363 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12364 # necessary to make sure instantiated templates are included
12365 # in the archive.
12366 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12368 gcx*)
12369 # Green Hills C++ Compiler
12370 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12372 # The C++ compiler must be used to create the archive.
12373 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12376 # GNU C++ compiler with Solaris linker
12377 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12378 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12379 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12380 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12381 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12382 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12384 # Commands to make compiler produce verbose output that lists
12385 # what "hidden" libraries, object files and flags are used when
12386 # linking a shared library.
12387 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12388 else
12389 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12390 # platform.
12391 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12392 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12393 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12395 # Commands to make compiler produce verbose output that lists
12396 # what "hidden" libraries, object files and flags are used when
12397 # linking a shared library.
12398 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12401 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12402 case $host_os in
12403 solaris2.[0-5] | solaris2.[0-5].*) ;;
12405 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12407 esac
12410 esac
12413 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12414 no_undefined_flag_CXX='${wl}-z,text'
12415 archive_cmds_need_lc_CXX=no
12416 hardcode_shlibpath_var_CXX=no
12417 runpath_var='LD_RUN_PATH'
12419 case $cc_basename in
12420 CC*)
12421 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12422 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12425 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12426 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12428 esac
12431 sysv5* | sco3.2v5* | sco5v6*)
12432 # Note: We can NOT use -z defs as we might desire, because we do not
12433 # link with -lc, and that would cause any symbols used from libc to
12434 # always be unresolved, which means just about no library would
12435 # ever link correctly. If we're not using GNU ld we use -z text
12436 # though, which does catch some bad symbols but isn't as heavy-handed
12437 # as -z defs.
12438 no_undefined_flag_CXX='${wl}-z,text'
12439 allow_undefined_flag_CXX='${wl}-z,nodefs'
12440 archive_cmds_need_lc_CXX=no
12441 hardcode_shlibpath_var_CXX=no
12442 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12443 hardcode_libdir_separator_CXX=':'
12444 link_all_deplibs_CXX=yes
12445 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12446 runpath_var='LD_RUN_PATH'
12448 case $cc_basename in
12449 CC*)
12450 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12451 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12452 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12453 '"$old_archive_cmds_CXX"
12454 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12455 '"$reload_cmds_CXX"
12458 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12459 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12461 esac
12464 tandem*)
12465 case $cc_basename in
12466 NCC*)
12467 # NonStop-UX NCC 3.20
12468 # FIXME: insert proper C++ library support
12469 ld_shlibs_CXX=no
12472 # FIXME: insert proper C++ library support
12473 ld_shlibs_CXX=no
12475 esac
12478 vxworks*)
12479 # FIXME: insert proper C++ library support
12480 ld_shlibs_CXX=no
12484 # FIXME: insert proper C++ library support
12485 ld_shlibs_CXX=no
12487 esac
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12490 $as_echo "$ld_shlibs_CXX" >&6; }
12491 test "$ld_shlibs_CXX" = no && can_build_shared=no
12493 GCC_CXX="$GXX"
12494 LD_CXX="$LD"
12496 ## CAVEAT EMPTOR:
12497 ## There is no encapsulation within the following macros, do not change
12498 ## the running order or otherwise move them around unless you know exactly
12499 ## what you are doing...
12500 # Dependencies to place before and after the object being linked:
12501 predep_objects_CXX=
12502 postdep_objects_CXX=
12503 predeps_CXX=
12504 postdeps_CXX=
12505 compiler_lib_search_path_CXX=
12507 cat > conftest.$ac_ext <<_LT_EOF
12508 class Foo
12510 public:
12511 Foo (void) { a = 0; }
12512 private:
12513 int a;
12515 _LT_EOF
12517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12518 (eval $ac_compile) 2>&5
12519 ac_status=$?
12520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12521 test $ac_status = 0; }; then
12522 # Parse the compiler output and extract the necessary
12523 # objects, libraries and library flags.
12525 # Sentinel used to keep track of whether or not we are before
12526 # the conftest object file.
12527 pre_test_object_deps_done=no
12529 for p in `eval "$output_verbose_link_cmd"`; do
12530 case $p in
12532 -L* | -R* | -l*)
12533 # Some compilers place space between "-{L,R}" and the path.
12534 # Remove the space.
12535 if test $p = "-L" ||
12536 test $p = "-R"; then
12537 prev=$p
12538 continue
12539 else
12540 prev=
12543 if test "$pre_test_object_deps_done" = no; then
12544 case $p in
12545 -L* | -R*)
12546 # Internal compiler library paths should come after those
12547 # provided the user. The postdeps already come after the
12548 # user supplied libs so there is no need to process them.
12549 if test -z "$compiler_lib_search_path_CXX"; then
12550 compiler_lib_search_path_CXX="${prev}${p}"
12551 else
12552 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12555 # The "-l" case would never come before the object being
12556 # linked, so don't bother handling this case.
12557 esac
12558 else
12559 if test -z "$postdeps_CXX"; then
12560 postdeps_CXX="${prev}${p}"
12561 else
12562 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12567 *.$objext)
12568 # This assumes that the test object file only shows up
12569 # once in the compiler output.
12570 if test "$p" = "conftest.$objext"; then
12571 pre_test_object_deps_done=yes
12572 continue
12575 if test "$pre_test_object_deps_done" = no; then
12576 if test -z "$predep_objects_CXX"; then
12577 predep_objects_CXX="$p"
12578 else
12579 predep_objects_CXX="$predep_objects_CXX $p"
12581 else
12582 if test -z "$postdep_objects_CXX"; then
12583 postdep_objects_CXX="$p"
12584 else
12585 postdep_objects_CXX="$postdep_objects_CXX $p"
12590 *) ;; # Ignore the rest.
12592 esac
12593 done
12595 # Clean up.
12596 rm -f a.out a.exe
12597 else
12598 echo "libtool.m4: error: problem compiling CXX test program"
12601 $RM -f confest.$objext
12603 # PORTME: override above test on systems where it is broken
12604 case $host_os in
12605 interix[3-9]*)
12606 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12607 # hack all around it, let's just trust "g++" to DTRT.
12608 predep_objects_CXX=
12609 postdep_objects_CXX=
12610 postdeps_CXX=
12613 linux*)
12614 case `$CC -V 2>&1 | sed 5q` in
12615 *Sun\ C*)
12616 # Sun C++ 5.9
12618 # The more standards-conforming stlport4 library is
12619 # incompatible with the Cstd library. Avoid specifying
12620 # it if it's in CXXFLAGS. Ignore libCrun as
12621 # -library=stlport4 depends on it.
12622 case " $CXX $CXXFLAGS " in
12623 *" -library=stlport4 "*)
12624 solaris_use_stlport4=yes
12626 esac
12628 if test "$solaris_use_stlport4" != yes; then
12629 postdeps_CXX='-library=Cstd -library=Crun'
12632 esac
12635 solaris*)
12636 case $cc_basename in
12637 CC*)
12638 # The more standards-conforming stlport4 library is
12639 # incompatible with the Cstd library. Avoid specifying
12640 # it if it's in CXXFLAGS. Ignore libCrun as
12641 # -library=stlport4 depends on it.
12642 case " $CXX $CXXFLAGS " in
12643 *" -library=stlport4 "*)
12644 solaris_use_stlport4=yes
12646 esac
12648 # Adding this requires a known-good setup of shared libraries for
12649 # Sun compiler versions before 5.6, else PIC objects from an old
12650 # archive will be linked into the output, leading to subtle bugs.
12651 if test "$solaris_use_stlport4" != yes; then
12652 postdeps_CXX='-library=Cstd -library=Crun'
12655 esac
12657 esac
12660 case " $postdeps_CXX " in
12661 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12662 esac
12663 compiler_lib_search_dirs_CXX=
12664 if test -n "${compiler_lib_search_path_CXX}"; then
12665 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12698 lt_prog_compiler_wl_CXX=
12699 lt_prog_compiler_pic_CXX=
12700 lt_prog_compiler_static_CXX=
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12703 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12705 # C++ specific cases for pic, static, wl, etc.
12706 if test "$GXX" = yes; then
12707 lt_prog_compiler_wl_CXX='-Wl,'
12708 lt_prog_compiler_static_CXX='-static'
12710 case $host_os in
12711 aix*)
12712 # All AIX code is PIC.
12713 if test "$host_cpu" = ia64; then
12714 # AIX 5 now supports IA64 processor
12715 lt_prog_compiler_static_CXX='-Bstatic'
12717 lt_prog_compiler_pic_CXX='-fPIC'
12720 amigaos*)
12721 case $host_cpu in
12722 powerpc)
12723 # see comment about AmigaOS4 .so support
12724 lt_prog_compiler_pic_CXX='-fPIC'
12726 m68k)
12727 # FIXME: we need at least 68020 code to build shared libraries, but
12728 # adding the `-m68020' flag to GCC prevents building anything better,
12729 # like `-m68040'.
12730 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12732 esac
12735 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12736 # PIC is the default for these OSes.
12738 mingw* | cygwin* | os2* | pw32* | cegcc*)
12739 # This hack is so that the source file can tell whether it is being
12740 # built for inclusion in a dll (and should export symbols for example).
12741 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12742 # (--disable-auto-import) libraries
12743 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12745 darwin* | rhapsody*)
12746 # PIC is the default on this platform
12747 # Common symbols not allowed in MH_DYLIB files
12748 lt_prog_compiler_pic_CXX='-fno-common'
12750 *djgpp*)
12751 # DJGPP does not support shared libraries at all
12752 lt_prog_compiler_pic_CXX=
12754 haiku*)
12755 # PIC is the default for Haiku.
12756 # The "-static" flag exists, but is broken.
12757 lt_prog_compiler_static_CXX=
12759 interix[3-9]*)
12760 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12761 # Instead, we relocate shared libraries at runtime.
12763 sysv4*MP*)
12764 if test -d /usr/nec; then
12765 lt_prog_compiler_pic_CXX=-Kconform_pic
12768 hpux*)
12769 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12770 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12771 # sets the default TLS model and affects inlining.
12772 case $host_cpu in
12773 hppa*64*)
12776 lt_prog_compiler_pic_CXX='-fPIC'
12778 esac
12780 *qnx* | *nto*)
12781 # QNX uses GNU C++, but need to define -shared option too, otherwise
12782 # it will coredump.
12783 lt_prog_compiler_pic_CXX='-fPIC -shared'
12786 lt_prog_compiler_pic_CXX='-fPIC'
12788 esac
12789 else
12790 case $host_os in
12791 aix[4-9]*)
12792 # All AIX code is PIC.
12793 if test "$host_cpu" = ia64; then
12794 # AIX 5 now supports IA64 processor
12795 lt_prog_compiler_static_CXX='-Bstatic'
12796 else
12797 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12800 chorus*)
12801 case $cc_basename in
12802 cxch68*)
12803 # Green Hills C++ Compiler
12804 # _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"
12806 esac
12808 dgux*)
12809 case $cc_basename in
12810 ec++*)
12811 lt_prog_compiler_pic_CXX='-KPIC'
12813 ghcx*)
12814 # Green Hills C++ Compiler
12815 lt_prog_compiler_pic_CXX='-pic'
12819 esac
12821 freebsd* | dragonfly*)
12822 # FreeBSD uses GNU C++
12824 hpux9* | hpux10* | hpux11*)
12825 case $cc_basename in
12826 CC*)
12827 lt_prog_compiler_wl_CXX='-Wl,'
12828 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12829 if test "$host_cpu" != ia64; then
12830 lt_prog_compiler_pic_CXX='+Z'
12833 aCC*)
12834 lt_prog_compiler_wl_CXX='-Wl,'
12835 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12836 case $host_cpu in
12837 hppa*64*|ia64*)
12838 # +Z the default
12841 lt_prog_compiler_pic_CXX='+Z'
12843 esac
12847 esac
12849 interix*)
12850 # This is c89, which is MS Visual C++ (no shared libs)
12851 # Anyone wants to do a port?
12853 irix5* | irix6* | nonstopux*)
12854 case $cc_basename in
12855 CC*)
12856 lt_prog_compiler_wl_CXX='-Wl,'
12857 lt_prog_compiler_static_CXX='-non_shared'
12858 # CC pic flag -KPIC is the default.
12862 esac
12864 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12865 case $cc_basename in
12866 KCC*)
12867 # KAI C++ Compiler
12868 lt_prog_compiler_wl_CXX='--backend -Wl,'
12869 lt_prog_compiler_pic_CXX='-fPIC'
12871 ecpc* )
12872 # old Intel C++ for x86_64 which still supported -KPIC.
12873 lt_prog_compiler_wl_CXX='-Wl,'
12874 lt_prog_compiler_pic_CXX='-KPIC'
12875 lt_prog_compiler_static_CXX='-static'
12877 icpc* )
12878 # Intel C++, used to be incompatible with GCC.
12879 # ICC 10 doesn't accept -KPIC any more.
12880 lt_prog_compiler_wl_CXX='-Wl,'
12881 lt_prog_compiler_pic_CXX='-fPIC'
12882 lt_prog_compiler_static_CXX='-static'
12884 pgCC* | pgcpp*)
12885 # Portland Group C++ compiler
12886 lt_prog_compiler_wl_CXX='-Wl,'
12887 lt_prog_compiler_pic_CXX='-fpic'
12888 lt_prog_compiler_static_CXX='-Bstatic'
12890 cxx*)
12891 # Compaq C++
12892 # Make sure the PIC flag is empty. It appears that all Alpha
12893 # Linux and Compaq Tru64 Unix objects are PIC.
12894 lt_prog_compiler_pic_CXX=
12895 lt_prog_compiler_static_CXX='-non_shared'
12897 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
12898 # IBM XL 8.0, 9.0 on PPC and BlueGene
12899 lt_prog_compiler_wl_CXX='-Wl,'
12900 lt_prog_compiler_pic_CXX='-qpic'
12901 lt_prog_compiler_static_CXX='-qstaticlink'
12904 case `$CC -V 2>&1 | sed 5q` in
12905 *Sun\ C*)
12906 # Sun C++ 5.9
12907 lt_prog_compiler_pic_CXX='-KPIC'
12908 lt_prog_compiler_static_CXX='-Bstatic'
12909 lt_prog_compiler_wl_CXX='-Qoption ld '
12911 esac
12913 esac
12915 lynxos*)
12917 m88k*)
12919 mvs*)
12920 case $cc_basename in
12921 cxx*)
12922 lt_prog_compiler_pic_CXX='-W c,exportall'
12926 esac
12928 netbsd*)
12930 *qnx* | *nto*)
12931 # QNX uses GNU C++, but need to define -shared option too, otherwise
12932 # it will coredump.
12933 lt_prog_compiler_pic_CXX='-fPIC -shared'
12935 osf3* | osf4* | osf5*)
12936 case $cc_basename in
12937 KCC*)
12938 lt_prog_compiler_wl_CXX='--backend -Wl,'
12940 RCC*)
12941 # Rational C++ 2.4.1
12942 lt_prog_compiler_pic_CXX='-pic'
12944 cxx*)
12945 # Digital/Compaq C++
12946 lt_prog_compiler_wl_CXX='-Wl,'
12947 # Make sure the PIC flag is empty. It appears that all Alpha
12948 # Linux and Compaq Tru64 Unix objects are PIC.
12949 lt_prog_compiler_pic_CXX=
12950 lt_prog_compiler_static_CXX='-non_shared'
12954 esac
12956 psos*)
12958 solaris*)
12959 case $cc_basename in
12960 CC*)
12961 # Sun C++ 4.2, 5.x and Centerline C++
12962 lt_prog_compiler_pic_CXX='-KPIC'
12963 lt_prog_compiler_static_CXX='-Bstatic'
12964 lt_prog_compiler_wl_CXX='-Qoption ld '
12966 gcx*)
12967 # Green Hills C++ Compiler
12968 lt_prog_compiler_pic_CXX='-PIC'
12972 esac
12974 sunos4*)
12975 case $cc_basename in
12976 CC*)
12977 # Sun C++ 4.x
12978 lt_prog_compiler_pic_CXX='-pic'
12979 lt_prog_compiler_static_CXX='-Bstatic'
12981 lcc*)
12982 # Lucid
12983 lt_prog_compiler_pic_CXX='-pic'
12987 esac
12989 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12990 case $cc_basename in
12991 CC*)
12992 lt_prog_compiler_wl_CXX='-Wl,'
12993 lt_prog_compiler_pic_CXX='-KPIC'
12994 lt_prog_compiler_static_CXX='-Bstatic'
12996 esac
12998 tandem*)
12999 case $cc_basename in
13000 NCC*)
13001 # NonStop-UX NCC 3.20
13002 lt_prog_compiler_pic_CXX='-KPIC'
13006 esac
13008 vxworks*)
13011 lt_prog_compiler_can_build_shared_CXX=no
13013 esac
13016 case $host_os in
13017 # For platforms which do not support PIC, -DPIC is meaningless:
13018 *djgpp*)
13019 lt_prog_compiler_pic_CXX=
13022 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13024 esac
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13026 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13031 # Check to make sure the PIC flag actually works.
13033 if test -n "$lt_prog_compiler_pic_CXX"; then
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13035 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13036 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13037 $as_echo_n "(cached) " >&6
13038 else
13039 lt_cv_prog_compiler_pic_works_CXX=no
13040 ac_outfile=conftest.$ac_objext
13041 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13042 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13043 # Insert the option either (1) after the last *FLAGS variable, or
13044 # (2) before a word containing "conftest.", or (3) at the end.
13045 # Note that $ac_compile itself does not contain backslashes and begins
13046 # with a dollar sign (not a hyphen), so the echo should work correctly.
13047 # The option is referenced via a variable to avoid confusing sed.
13048 lt_compile=`echo "$ac_compile" | $SED \
13049 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13050 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13051 -e 's:$: $lt_compiler_flag:'`
13052 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13053 (eval "$lt_compile" 2>conftest.err)
13054 ac_status=$?
13055 cat conftest.err >&5
13056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13057 if (exit $ac_status) && test -s "$ac_outfile"; then
13058 # The compiler can only warn and ignore the option if not recognized
13059 # So say no if there are warnings other than the usual output.
13060 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13061 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13062 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13063 lt_cv_prog_compiler_pic_works_CXX=yes
13066 $RM conftest*
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13070 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13072 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13073 case $lt_prog_compiler_pic_CXX in
13074 "" | " "*) ;;
13075 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13076 esac
13077 else
13078 lt_prog_compiler_pic_CXX=
13079 lt_prog_compiler_can_build_shared_CXX=no
13087 # Check to make sure the static flag actually works.
13089 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13091 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13092 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13093 $as_echo_n "(cached) " >&6
13094 else
13095 lt_cv_prog_compiler_static_works_CXX=no
13096 save_LDFLAGS="$LDFLAGS"
13097 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13098 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13099 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13100 # The linker can only warn and ignore the option if not recognized
13101 # So say no if there are warnings
13102 if test -s conftest.err; then
13103 # Append any errors to the config.log.
13104 cat conftest.err 1>&5
13105 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13106 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13107 if diff conftest.exp conftest.er2 >/dev/null; then
13108 lt_cv_prog_compiler_static_works_CXX=yes
13110 else
13111 lt_cv_prog_compiler_static_works_CXX=yes
13114 $RM -r conftest*
13115 LDFLAGS="$save_LDFLAGS"
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13119 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13121 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13123 else
13124 lt_prog_compiler_static_CXX=
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13131 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13132 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13133 $as_echo_n "(cached) " >&6
13134 else
13135 lt_cv_prog_compiler_c_o_CXX=no
13136 $RM -r conftest 2>/dev/null
13137 mkdir conftest
13138 cd conftest
13139 mkdir out
13140 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13142 lt_compiler_flag="-o out/conftest2.$ac_objext"
13143 # Insert the option either (1) after the last *FLAGS variable, or
13144 # (2) before a word containing "conftest.", or (3) at the end.
13145 # Note that $ac_compile itself does not contain backslashes and begins
13146 # with a dollar sign (not a hyphen), so the echo should work correctly.
13147 lt_compile=`echo "$ac_compile" | $SED \
13148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13150 -e 's:$: $lt_compiler_flag:'`
13151 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13152 (eval "$lt_compile" 2>out/conftest.err)
13153 ac_status=$?
13154 cat out/conftest.err >&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13157 then
13158 # The compiler can only warn and ignore the option if not recognized
13159 # So say no if there are warnings
13160 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13161 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13162 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13163 lt_cv_prog_compiler_c_o_CXX=yes
13166 chmod u+w . 2>&5
13167 $RM conftest*
13168 # SGI C++ compiler will create directory out/ii_files/ for
13169 # template instantiation
13170 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13171 $RM out/* && rmdir out
13172 cd ..
13173 $RM -r conftest
13174 $RM conftest*
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13178 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13184 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13185 $as_echo_n "(cached) " >&6
13186 else
13187 lt_cv_prog_compiler_c_o_CXX=no
13188 $RM -r conftest 2>/dev/null
13189 mkdir conftest
13190 cd conftest
13191 mkdir out
13192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13194 lt_compiler_flag="-o out/conftest2.$ac_objext"
13195 # Insert the option either (1) after the last *FLAGS variable, or
13196 # (2) before a word containing "conftest.", or (3) at the end.
13197 # Note that $ac_compile itself does not contain backslashes and begins
13198 # with a dollar sign (not a hyphen), so the echo should work correctly.
13199 lt_compile=`echo "$ac_compile" | $SED \
13200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13202 -e 's:$: $lt_compiler_flag:'`
13203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13204 (eval "$lt_compile" 2>out/conftest.err)
13205 ac_status=$?
13206 cat out/conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13209 then
13210 # The compiler can only warn and ignore the option if not recognized
13211 # So say no if there are warnings
13212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13215 lt_cv_prog_compiler_c_o_CXX=yes
13218 chmod u+w . 2>&5
13219 $RM conftest*
13220 # SGI C++ compiler will create directory out/ii_files/ for
13221 # template instantiation
13222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13223 $RM out/* && rmdir out
13224 cd ..
13225 $RM -r conftest
13226 $RM conftest*
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13230 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13235 hard_links="nottested"
13236 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13237 # do not overwrite the value of need_locks provided by the user
13238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13239 $as_echo_n "checking if we can lock with hard links... " >&6; }
13240 hard_links=yes
13241 $RM conftest*
13242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13243 touch conftest.a
13244 ln conftest.a conftest.b 2>&5 || hard_links=no
13245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13247 $as_echo "$hard_links" >&6; }
13248 if test "$hard_links" = no; then
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13250 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13251 need_locks=warn
13253 else
13254 need_locks=no
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13260 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13262 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13263 case $host_os in
13264 aix[4-9]*)
13265 # If we're using GNU nm, then we don't want the "-C" option.
13266 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13267 # Also, AIX nm treats weak defined symbols like other global defined
13268 # symbols, whereas GNU nm marks them as "W".
13269 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13270 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'
13271 else
13272 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'
13275 pw32*)
13276 export_symbols_cmds_CXX="$ltdll_cmds"
13278 cygwin* | mingw* | cegcc*)
13279 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'
13282 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13284 esac
13285 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13288 $as_echo "$ld_shlibs_CXX" >&6; }
13289 test "$ld_shlibs_CXX" = no && can_build_shared=no
13291 with_gnu_ld_CXX=$with_gnu_ld
13299 # Do we need to explicitly link libc?
13301 case "x$archive_cmds_need_lc_CXX" in
13302 x|xyes)
13303 # Assume -lc should be added
13304 archive_cmds_need_lc_CXX=yes
13306 if test "$enable_shared" = yes && test "$GCC" = yes; then
13307 case $archive_cmds_CXX in
13308 *'~'*)
13309 # FIXME: we may have to deal with multi-command sequences.
13311 '$CC '*)
13312 # Test whether the compiler implicitly links with -lc since on some
13313 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13314 # to ld, don't add -lc before -lgcc.
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13316 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13317 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13318 $as_echo_n "(cached) " >&6
13319 else
13320 $RM conftest*
13321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13324 (eval $ac_compile) 2>&5
13325 ac_status=$?
13326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13327 test $ac_status = 0; } 2>conftest.err; then
13328 soname=conftest
13329 lib=conftest
13330 libobjs=conftest.$ac_objext
13331 deplibs=
13332 wl=$lt_prog_compiler_wl_CXX
13333 pic_flag=$lt_prog_compiler_pic_CXX
13334 compiler_flags=-v
13335 linker_flags=-v
13336 verstring=
13337 output_objdir=.
13338 libname=conftest
13339 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13340 allow_undefined_flag_CXX=
13341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13342 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13343 ac_status=$?
13344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13345 test $ac_status = 0; }
13346 then
13347 lt_cv_archive_cmds_need_lc_CXX=no
13348 else
13349 lt_cv_archive_cmds_need_lc_CXX=yes
13351 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13352 else
13353 cat conftest.err 1>&5
13355 $RM conftest*
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13359 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13360 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13362 esac
13365 esac
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13431 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13433 library_names_spec=
13434 libname_spec='lib$name'
13435 soname_spec=
13436 shrext_cmds=".so"
13437 postinstall_cmds=
13438 postuninstall_cmds=
13439 finish_cmds=
13440 finish_eval=
13441 shlibpath_var=
13442 shlibpath_overrides_runpath=unknown
13443 version_type=none
13444 dynamic_linker="$host_os ld.so"
13445 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13446 need_lib_prefix=unknown
13447 hardcode_into_libs=no
13449 # when you set need_version to no, make sure it does not cause -set_version
13450 # flags to be left without arguments
13451 need_version=unknown
13453 case $host_os in
13454 aix3*)
13455 version_type=linux
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13457 shlibpath_var=LIBPATH
13459 # AIX 3 has no versioning support, so we append a major version to the name.
13460 soname_spec='${libname}${release}${shared_ext}$major'
13463 aix[4-9]*)
13464 version_type=linux
13465 need_lib_prefix=no
13466 need_version=no
13467 hardcode_into_libs=yes
13468 if test "$host_cpu" = ia64; then
13469 # AIX 5 supports IA64
13470 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13471 shlibpath_var=LD_LIBRARY_PATH
13472 else
13473 # With GCC up to 2.95.x, collect2 would create an import file
13474 # for dependence libraries. The import file would start with
13475 # the line `#! .'. This would cause the generated library to
13476 # depend on `.', always an invalid library. This was fixed in
13477 # development snapshots of GCC prior to 3.0.
13478 case $host_os in
13479 aix4 | aix4.[01] | aix4.[01].*)
13480 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13481 echo ' yes '
13482 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13484 else
13485 can_build_shared=no
13488 esac
13489 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13490 # soname into executable. Probably we can add versioning support to
13491 # collect2, so additional links can be useful in future.
13492 if test "$aix_use_runtimelinking" = yes; then
13493 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13494 # instead of lib<name>.a to let people know that these are not
13495 # typical AIX shared libraries.
13496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13497 else
13498 # We preserve .a as extension for shared libraries through AIX4.2
13499 # and later when we are not doing run time linking.
13500 library_names_spec='${libname}${release}.a $libname.a'
13501 soname_spec='${libname}${release}${shared_ext}$major'
13503 shlibpath_var=LIBPATH
13507 amigaos*)
13508 case $host_cpu in
13509 powerpc)
13510 # Since July 2007 AmigaOS4 officially supports .so libraries.
13511 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13514 m68k)
13515 library_names_spec='$libname.ixlibrary $libname.a'
13516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13517 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'
13519 esac
13522 beos*)
13523 library_names_spec='${libname}${shared_ext}'
13524 dynamic_linker="$host_os ld.so"
13525 shlibpath_var=LIBRARY_PATH
13528 bsdi[45]*)
13529 version_type=linux
13530 need_version=no
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13532 soname_spec='${libname}${release}${shared_ext}$major'
13533 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13534 shlibpath_var=LD_LIBRARY_PATH
13535 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13536 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13537 # the default ld.so.conf also contains /usr/contrib/lib and
13538 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13539 # libtool to hard-code these into programs
13542 cygwin* | mingw* | pw32* | cegcc*)
13543 version_type=windows
13544 shrext_cmds=".dll"
13545 need_version=no
13546 need_lib_prefix=no
13548 case $GCC,$host_os in
13549 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13550 library_names_spec='$libname.dll.a'
13551 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13552 postinstall_cmds='base_file=`basename \${file}`~
13553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13554 dldir=$destdir/`dirname \$dlpath`~
13555 test -d \$dldir || mkdir -p \$dldir~
13556 $install_prog $dir/$dlname \$dldir/$dlname~
13557 chmod a+x \$dldir/$dlname~
13558 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13559 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13561 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13562 dlpath=$dir/\$dldll~
13563 $RM \$dlpath'
13564 shlibpath_overrides_runpath=yes
13566 case $host_os in
13567 cygwin*)
13568 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13569 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13572 mingw* | cegcc*)
13573 # MinGW DLLs use traditional 'lib' prefix
13574 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13576 pw32*)
13577 # pw32 DLLs use 'pw' prefix rather than 'lib'
13578 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13580 esac
13584 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13586 esac
13587 dynamic_linker='Win32 ld.exe'
13588 # FIXME: first we should search . and the directory the executable is in
13589 shlibpath_var=PATH
13592 darwin* | rhapsody*)
13593 dynamic_linker="$host_os dyld"
13594 version_type=darwin
13595 need_lib_prefix=no
13596 need_version=no
13597 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13598 soname_spec='${libname}${release}${major}$shared_ext'
13599 shlibpath_overrides_runpath=yes
13600 shlibpath_var=DYLD_LIBRARY_PATH
13601 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13603 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13606 dgux*)
13607 version_type=linux
13608 need_lib_prefix=no
13609 need_version=no
13610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13611 soname_spec='${libname}${release}${shared_ext}$major'
13612 shlibpath_var=LD_LIBRARY_PATH
13615 freebsd* | dragonfly*)
13616 # DragonFly does not have aout. When/if they implement a new
13617 # versioning mechanism, adjust this.
13618 if test -x /usr/bin/objformat; then
13619 objformat=`/usr/bin/objformat`
13620 else
13621 case $host_os in
13622 freebsd[23].*) objformat=aout ;;
13623 *) objformat=elf ;;
13624 esac
13626 version_type=freebsd-$objformat
13627 case $version_type in
13628 freebsd-elf*)
13629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13630 need_version=no
13631 need_lib_prefix=no
13633 freebsd-*)
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13635 need_version=yes
13637 esac
13638 shlibpath_var=LD_LIBRARY_PATH
13639 case $host_os in
13640 freebsd2.*)
13641 shlibpath_overrides_runpath=yes
13643 freebsd3.[01]* | freebsdelf3.[01]*)
13644 shlibpath_overrides_runpath=yes
13645 hardcode_into_libs=yes
13647 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13648 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13649 shlibpath_overrides_runpath=no
13650 hardcode_into_libs=yes
13652 *) # from 4.6 on, and DragonFly
13653 shlibpath_overrides_runpath=yes
13654 hardcode_into_libs=yes
13656 esac
13659 gnu*)
13660 version_type=linux
13661 need_lib_prefix=no
13662 need_version=no
13663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13664 soname_spec='${libname}${release}${shared_ext}$major'
13665 shlibpath_var=LD_LIBRARY_PATH
13666 hardcode_into_libs=yes
13669 haiku*)
13670 version_type=linux
13671 need_lib_prefix=no
13672 need_version=no
13673 dynamic_linker="$host_os runtime_loader"
13674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13675 soname_spec='${libname}${release}${shared_ext}$major'
13676 shlibpath_var=LIBRARY_PATH
13677 shlibpath_overrides_runpath=yes
13678 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13679 hardcode_into_libs=yes
13682 hpux9* | hpux10* | hpux11*)
13683 # Give a soname corresponding to the major version so that dld.sl refuses to
13684 # link against other versions.
13685 version_type=sunos
13686 need_lib_prefix=no
13687 need_version=no
13688 case $host_cpu in
13689 ia64*)
13690 shrext_cmds='.so'
13691 hardcode_into_libs=yes
13692 dynamic_linker="$host_os dld.so"
13693 shlibpath_var=LD_LIBRARY_PATH
13694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13696 soname_spec='${libname}${release}${shared_ext}$major'
13697 if test "X$HPUX_IA64_MODE" = X32; then
13698 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13699 else
13700 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13702 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13704 hppa*64*)
13705 shrext_cmds='.sl'
13706 hardcode_into_libs=yes
13707 dynamic_linker="$host_os dld.sl"
13708 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13709 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13711 soname_spec='${libname}${release}${shared_ext}$major'
13712 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13713 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13716 shrext_cmds='.sl'
13717 dynamic_linker="$host_os dld.sl"
13718 shlibpath_var=SHLIB_PATH
13719 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13721 soname_spec='${libname}${release}${shared_ext}$major'
13723 esac
13724 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13725 postinstall_cmds='chmod 555 $lib'
13726 # or fails outright, so override atomically:
13727 install_override_mode=555
13730 interix[3-9]*)
13731 version_type=linux
13732 need_lib_prefix=no
13733 need_version=no
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13735 soname_spec='${libname}${release}${shared_ext}$major'
13736 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13737 shlibpath_var=LD_LIBRARY_PATH
13738 shlibpath_overrides_runpath=no
13739 hardcode_into_libs=yes
13742 irix5* | irix6* | nonstopux*)
13743 case $host_os in
13744 nonstopux*) version_type=nonstopux ;;
13746 if test "$lt_cv_prog_gnu_ld" = yes; then
13747 version_type=linux
13748 else
13749 version_type=irix
13750 fi ;;
13751 esac
13752 need_lib_prefix=no
13753 need_version=no
13754 soname_spec='${libname}${release}${shared_ext}$major'
13755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13756 case $host_os in
13757 irix5* | nonstopux*)
13758 libsuff= shlibsuff=
13761 case $LD in # libtool.m4 will add one of these switches to LD
13762 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13763 libsuff= shlibsuff= libmagic=32-bit;;
13764 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13765 libsuff=32 shlibsuff=N32 libmagic=N32;;
13766 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13767 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13768 *) libsuff= shlibsuff= libmagic=never-match;;
13769 esac
13771 esac
13772 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13773 shlibpath_overrides_runpath=no
13774 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13775 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13776 hardcode_into_libs=yes
13779 # No shared lib support for Linux oldld, aout, or coff.
13780 linux*oldld* | linux*aout* | linux*coff*)
13781 dynamic_linker=no
13784 # This must be Linux ELF.
13785 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13786 version_type=linux
13787 need_lib_prefix=no
13788 need_version=no
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790 soname_spec='${libname}${release}${shared_ext}$major'
13791 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13792 shlibpath_var=LD_LIBRARY_PATH
13793 shlibpath_overrides_runpath=no
13795 # Some binutils ld are patched to set DT_RUNPATH
13796 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
13797 $as_echo_n "(cached) " >&6
13798 else
13799 lt_cv_shlibpath_overrides_runpath=no
13800 save_LDFLAGS=$LDFLAGS
13801 save_libdir=$libdir
13802 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
13803 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
13804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13805 /* end confdefs.h. */
13808 main ()
13812 return 0;
13814 _ACEOF
13815 if ac_fn_cxx_try_link "$LINENO"; then :
13816 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13817 lt_cv_shlibpath_overrides_runpath=yes
13820 rm -f core conftest.err conftest.$ac_objext \
13821 conftest$ac_exeext conftest.$ac_ext
13822 LDFLAGS=$save_LDFLAGS
13823 libdir=$save_libdir
13827 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13829 # This implies no fast_install, which is unacceptable.
13830 # Some rework will be needed to allow for fast_install
13831 # before this can be enabled.
13832 hardcode_into_libs=yes
13834 # Append ld.so.conf contents to the search path
13835 if test -f /etc/ld.so.conf; then
13836 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' ' '`
13837 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13840 # We used to test for /lib/ld.so.1 and disable shared libraries on
13841 # powerpc, because MkLinux only supported shared libraries with the
13842 # GNU dynamic linker. Since this was broken with cross compilers,
13843 # most powerpc-linux boxes support dynamic linking these days and
13844 # people can always --disable-shared, the test was removed, and we
13845 # assume the GNU/Linux dynamic linker is in use.
13846 dynamic_linker='GNU/Linux ld.so'
13849 netbsd*)
13850 version_type=sunos
13851 need_lib_prefix=no
13852 need_version=no
13853 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13856 dynamic_linker='NetBSD (a.out) ld.so'
13857 else
13858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13859 soname_spec='${libname}${release}${shared_ext}$major'
13860 dynamic_linker='NetBSD ld.elf_so'
13862 shlibpath_var=LD_LIBRARY_PATH
13863 shlibpath_overrides_runpath=yes
13864 hardcode_into_libs=yes
13867 newsos6)
13868 version_type=linux
13869 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13870 shlibpath_var=LD_LIBRARY_PATH
13871 shlibpath_overrides_runpath=yes
13874 *nto* | *qnx*)
13875 version_type=qnx
13876 need_lib_prefix=no
13877 need_version=no
13878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13879 soname_spec='${libname}${release}${shared_ext}$major'
13880 shlibpath_var=LD_LIBRARY_PATH
13881 shlibpath_overrides_runpath=no
13882 hardcode_into_libs=yes
13883 dynamic_linker='ldqnx.so'
13886 openbsd*)
13887 version_type=sunos
13888 sys_lib_dlsearch_path_spec="/usr/lib"
13889 need_lib_prefix=no
13890 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13891 case $host_os in
13892 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13893 *) need_version=no ;;
13894 esac
13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13896 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13897 shlibpath_var=LD_LIBRARY_PATH
13898 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13899 case $host_os in
13900 openbsd2.[89] | openbsd2.[89].*)
13901 shlibpath_overrides_runpath=no
13904 shlibpath_overrides_runpath=yes
13906 esac
13907 else
13908 shlibpath_overrides_runpath=yes
13912 os2*)
13913 libname_spec='$name'
13914 shrext_cmds=".dll"
13915 need_lib_prefix=no
13916 library_names_spec='$libname${shared_ext} $libname.a'
13917 dynamic_linker='OS/2 ld.exe'
13918 shlibpath_var=LIBPATH
13921 osf3* | osf4* | osf5*)
13922 version_type=osf
13923 need_lib_prefix=no
13924 need_version=no
13925 soname_spec='${libname}${release}${shared_ext}$major'
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13927 shlibpath_var=LD_LIBRARY_PATH
13928 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13929 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13932 rdos*)
13933 dynamic_linker=no
13936 solaris*)
13937 version_type=linux
13938 need_lib_prefix=no
13939 need_version=no
13940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13941 soname_spec='${libname}${release}${shared_ext}$major'
13942 shlibpath_var=LD_LIBRARY_PATH
13943 shlibpath_overrides_runpath=yes
13944 hardcode_into_libs=yes
13945 # ldd complains unless libraries are executable
13946 postinstall_cmds='chmod +x $lib'
13949 sunos4*)
13950 version_type=sunos
13951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13952 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13953 shlibpath_var=LD_LIBRARY_PATH
13954 shlibpath_overrides_runpath=yes
13955 if test "$with_gnu_ld" = yes; then
13956 need_lib_prefix=no
13958 need_version=yes
13961 sysv4 | sysv4.3*)
13962 version_type=linux
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 shlibpath_var=LD_LIBRARY_PATH
13966 case $host_vendor in
13967 sni)
13968 shlibpath_overrides_runpath=no
13969 need_lib_prefix=no
13970 runpath_var=LD_RUN_PATH
13972 siemens)
13973 need_lib_prefix=no
13975 motorola)
13976 need_lib_prefix=no
13977 need_version=no
13978 shlibpath_overrides_runpath=no
13979 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13981 esac
13984 sysv4*MP*)
13985 if test -d /usr/nec ;then
13986 version_type=linux
13987 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13988 soname_spec='$libname${shared_ext}.$major'
13989 shlibpath_var=LD_LIBRARY_PATH
13993 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13994 version_type=freebsd-elf
13995 need_lib_prefix=no
13996 need_version=no
13997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13998 soname_spec='${libname}${release}${shared_ext}$major'
13999 shlibpath_var=LD_LIBRARY_PATH
14000 shlibpath_overrides_runpath=yes
14001 hardcode_into_libs=yes
14002 if test "$with_gnu_ld" = yes; then
14003 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14004 else
14005 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14006 case $host_os in
14007 sco3.2v5*)
14008 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14010 esac
14012 sys_lib_dlsearch_path_spec='/usr/lib'
14015 tpf*)
14016 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14017 version_type=linux
14018 need_lib_prefix=no
14019 need_version=no
14020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14021 shlibpath_var=LD_LIBRARY_PATH
14022 shlibpath_overrides_runpath=no
14023 hardcode_into_libs=yes
14026 uts4*)
14027 version_type=linux
14028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14029 soname_spec='${libname}${release}${shared_ext}$major'
14030 shlibpath_var=LD_LIBRARY_PATH
14034 dynamic_linker=no
14036 esac
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14038 $as_echo "$dynamic_linker" >&6; }
14039 test "$dynamic_linker" = no && can_build_shared=no
14041 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14042 if test "$GCC" = yes; then
14043 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14046 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14047 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14049 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14050 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14091 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14092 hardcode_action_CXX=
14093 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14094 test -n "$runpath_var_CXX" ||
14095 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14097 # We can hardcode non-existent directories.
14098 if test "$hardcode_direct_CXX" != no &&
14099 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14100 # have to relink, otherwise we might link with an installed library
14101 # when we should be linking with a yet-to-be-installed one
14102 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14103 test "$hardcode_minus_L_CXX" != no; then
14104 # Linking always hardcodes the temporary library directory.
14105 hardcode_action_CXX=relink
14106 else
14107 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14108 hardcode_action_CXX=immediate
14110 else
14111 # We cannot hardcode anything, or else we can only hardcode existing
14112 # directories.
14113 hardcode_action_CXX=unsupported
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14116 $as_echo "$hardcode_action_CXX" >&6; }
14118 if test "$hardcode_action_CXX" = relink ||
14119 test "$inherit_rpath_CXX" = yes; then
14120 # Fast installation is not supported
14121 enable_fast_install=no
14122 elif test "$shlibpath_overrides_runpath" = yes ||
14123 test "$enable_shared" = no; then
14124 # Fast installation is not necessary
14125 enable_fast_install=needless
14134 fi # test -n "$compiler"
14136 CC=$lt_save_CC
14137 LDCXX=$LD
14138 LD=$lt_save_LD
14139 GCC=$lt_save_GCC
14140 with_gnu_ld=$lt_save_with_gnu_ld
14141 lt_cv_path_LDCXX=$lt_cv_path_LD
14142 lt_cv_path_LD=$lt_save_path_LD
14143 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14144 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14145 fi # test "$_lt_caught_CXX_error" != yes
14147 ac_ext=c
14148 ac_cpp='$CPP $CPPFLAGS'
14149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14165 ac_config_commands="$ac_config_commands libtool"
14170 # Only expand once:
14173 # Forbid libtool to hardcode RPATH, because we want to be able to specify
14174 # library search directory using LD_LIBRARY_PATH
14175 hardcode_into_libs=no
14179 # Must be last
14180 cat >confcache <<\_ACEOF
14181 # This file is a shell script that caches the results of configure
14182 # tests run on this system so they can be shared between configure
14183 # scripts and configure runs, see configure's option --config-cache.
14184 # It is not useful on other systems. If it contains results you don't
14185 # want to keep, you may remove or edit it.
14187 # config.status only pays attention to the cache file if you give it
14188 # the --recheck option to rerun configure.
14190 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14191 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14192 # following values.
14194 _ACEOF
14196 # The following way of writing the cache mishandles newlines in values,
14197 # but we know of no workaround that is simple, portable, and efficient.
14198 # So, we kill variables containing newlines.
14199 # Ultrix sh set writes to stderr and can't be redirected directly,
14200 # and sets the high bit in the cache file unless we assign to the vars.
14202 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14203 eval ac_val=\$$ac_var
14204 case $ac_val in #(
14205 *${as_nl}*)
14206 case $ac_var in #(
14207 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14208 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14209 esac
14210 case $ac_var in #(
14211 _ | IFS | as_nl) ;; #(
14212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14213 *) { eval $ac_var=; unset $ac_var;} ;;
14214 esac ;;
14215 esac
14216 done
14218 (set) 2>&1 |
14219 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14220 *${as_nl}ac_space=\ *)
14221 # `set' does not quote correctly, so add quotes: double-quote
14222 # substitution turns \\\\ into \\, and sed turns \\ into \.
14223 sed -n \
14224 "s/'/'\\\\''/g;
14225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14226 ;; #(
14228 # `set' quotes correctly as required by POSIX, so do not add quotes.
14229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14231 esac |
14232 sort
14234 sed '
14235 /^ac_cv_env_/b end
14236 t clear
14237 :clear
14238 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14239 t end
14240 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14241 :end' >>confcache
14242 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14243 if test -w "$cache_file"; then
14244 test "x$cache_file" != "x/dev/null" &&
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14246 $as_echo "$as_me: updating cache $cache_file" >&6;}
14247 cat confcache >$cache_file
14248 else
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14250 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14253 rm -f confcache
14255 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14256 # Let make expand exec_prefix.
14257 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14259 # Transform confdefs.h into DEFS.
14260 # Protect against shell expansion while executing Makefile rules.
14261 # Protect against Makefile macro expansion.
14263 # If the first sed substitution is executed (which looks for macros that
14264 # take arguments), then branch to the quote section. Otherwise,
14265 # look for a macro that doesn't take arguments.
14266 ac_script='
14267 :mline
14268 /\\$/{
14270 s,\\\n,,
14271 b mline
14273 t clear
14274 :clear
14275 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14276 t quote
14277 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14278 t quote
14279 b any
14280 :quote
14281 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14282 s/\[/\\&/g
14283 s/\]/\\&/g
14284 s/\$/$$/g
14286 :any
14289 s/^\n//
14290 s/\n/ /g
14294 DEFS=`sed -n "$ac_script" confdefs.h`
14297 ac_libobjs=
14298 ac_ltlibobjs=
14299 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14300 # 1. Remove the extension, and $U if already installed.
14301 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14302 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14303 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14304 # will be set to the directory where LIBOBJS objects are built.
14305 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14306 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14307 done
14308 LIBOBJS=$ac_libobjs
14310 LTLIBOBJS=$ac_ltlibobjs
14313 if test -n "$EXEEXT"; then
14314 am__EXEEXT_TRUE=
14315 am__EXEEXT_FALSE='#'
14316 else
14317 am__EXEEXT_TRUE='#'
14318 am__EXEEXT_FALSE=
14321 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14322 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14325 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14326 as_fn_error "conditional \"AMDEP\" was never defined.
14327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14329 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14330 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14333 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14334 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14335 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14337 if test -z "${PLUGIN_HOST_TRUE}" && test -z "${PLUGIN_HOST_FALSE}"; then
14338 as_fn_error "conditional \"PLUGIN_HOST\" was never defined.
14339 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14342 : ${CONFIG_STATUS=./config.status}
14343 ac_write_fail=0
14344 ac_clean_files_save=$ac_clean_files
14345 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14347 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14348 as_write_fail=0
14349 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14350 #! $SHELL
14351 # Generated by $as_me.
14352 # Run this file to recreate the current configuration.
14353 # Compiler output produced by configure, useful for debugging
14354 # configure, is in config.log if it exists.
14356 debug=false
14357 ac_cs_recheck=false
14358 ac_cs_silent=false
14360 SHELL=\${CONFIG_SHELL-$SHELL}
14361 export SHELL
14362 _ASEOF
14363 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14364 ## -------------------- ##
14365 ## M4sh Initialization. ##
14366 ## -------------------- ##
14368 # Be more Bourne compatible
14369 DUALCASE=1; export DUALCASE # for MKS sh
14370 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14371 emulate sh
14372 NULLCMD=:
14373 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14374 # is contrary to our usage. Disable this feature.
14375 alias -g '${1+"$@"}'='"$@"'
14376 setopt NO_GLOB_SUBST
14377 else
14378 case `(set -o) 2>/dev/null` in #(
14379 *posix*) :
14380 set -o posix ;; #(
14381 *) :
14383 esac
14387 as_nl='
14389 export as_nl
14390 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14391 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14392 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14393 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14394 # Prefer a ksh shell builtin over an external printf program on Solaris,
14395 # but without wasting forks for bash or zsh.
14396 if test -z "$BASH_VERSION$ZSH_VERSION" \
14397 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14398 as_echo='print -r --'
14399 as_echo_n='print -rn --'
14400 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14401 as_echo='printf %s\n'
14402 as_echo_n='printf %s'
14403 else
14404 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14405 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14406 as_echo_n='/usr/ucb/echo -n'
14407 else
14408 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14409 as_echo_n_body='eval
14410 arg=$1;
14411 case $arg in #(
14412 *"$as_nl"*)
14413 expr "X$arg" : "X\\(.*\\)$as_nl";
14414 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14415 esac;
14416 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14418 export as_echo_n_body
14419 as_echo_n='sh -c $as_echo_n_body as_echo'
14421 export as_echo_body
14422 as_echo='sh -c $as_echo_body as_echo'
14425 # The user is always right.
14426 if test "${PATH_SEPARATOR+set}" != set; then
14427 PATH_SEPARATOR=:
14428 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14429 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14430 PATH_SEPARATOR=';'
14435 # IFS
14436 # We need space, tab and new line, in precisely that order. Quoting is
14437 # there to prevent editors from complaining about space-tab.
14438 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14439 # splitting by setting IFS to empty value.)
14440 IFS=" "" $as_nl"
14442 # Find who we are. Look in the path if we contain no directory separator.
14443 case $0 in #((
14444 *[\\/]* ) as_myself=$0 ;;
14445 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14446 for as_dir in $PATH
14448 IFS=$as_save_IFS
14449 test -z "$as_dir" && as_dir=.
14450 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14451 done
14452 IFS=$as_save_IFS
14455 esac
14456 # We did not find ourselves, most probably we were run as `sh COMMAND'
14457 # in which case we are not to be found in the path.
14458 if test "x$as_myself" = x; then
14459 as_myself=$0
14461 if test ! -f "$as_myself"; then
14462 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14463 exit 1
14466 # Unset variables that we do not need and which cause bugs (e.g. in
14467 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14468 # suppresses any "Segmentation fault" message there. '((' could
14469 # trigger a bug in pdksh 5.2.14.
14470 for as_var in BASH_ENV ENV MAIL MAILPATH
14471 do eval test x\${$as_var+set} = xset \
14472 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14473 done
14474 PS1='$ '
14475 PS2='> '
14476 PS4='+ '
14478 # NLS nuisances.
14479 LC_ALL=C
14480 export LC_ALL
14481 LANGUAGE=C
14482 export LANGUAGE
14484 # CDPATH.
14485 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14488 # as_fn_error ERROR [LINENO LOG_FD]
14489 # ---------------------------------
14490 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14491 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14492 # script with status $?, using 1 if that was 0.
14493 as_fn_error ()
14495 as_status=$?; test $as_status -eq 0 && as_status=1
14496 if test "$3"; then
14497 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14498 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14500 $as_echo "$as_me: error: $1" >&2
14501 as_fn_exit $as_status
14502 } # as_fn_error
14505 # as_fn_set_status STATUS
14506 # -----------------------
14507 # Set $? to STATUS, without forking.
14508 as_fn_set_status ()
14510 return $1
14511 } # as_fn_set_status
14513 # as_fn_exit STATUS
14514 # -----------------
14515 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14516 as_fn_exit ()
14518 set +e
14519 as_fn_set_status $1
14520 exit $1
14521 } # as_fn_exit
14523 # as_fn_unset VAR
14524 # ---------------
14525 # Portably unset VAR.
14526 as_fn_unset ()
14528 { eval $1=; unset $1;}
14530 as_unset=as_fn_unset
14531 # as_fn_append VAR VALUE
14532 # ----------------------
14533 # Append the text in VALUE to the end of the definition contained in VAR. Take
14534 # advantage of any shell optimizations that allow amortized linear growth over
14535 # repeated appends, instead of the typical quadratic growth present in naive
14536 # implementations.
14537 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14538 eval 'as_fn_append ()
14540 eval $1+=\$2
14542 else
14543 as_fn_append ()
14545 eval $1=\$$1\$2
14547 fi # as_fn_append
14549 # as_fn_arith ARG...
14550 # ------------------
14551 # Perform arithmetic evaluation on the ARGs, and store the result in the
14552 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14553 # must be portable across $(()) and expr.
14554 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14555 eval 'as_fn_arith ()
14557 as_val=$(( $* ))
14559 else
14560 as_fn_arith ()
14562 as_val=`expr "$@" || test $? -eq 1`
14564 fi # as_fn_arith
14567 if expr a : '\(a\)' >/dev/null 2>&1 &&
14568 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14569 as_expr=expr
14570 else
14571 as_expr=false
14574 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14575 as_basename=basename
14576 else
14577 as_basename=false
14580 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14581 as_dirname=dirname
14582 else
14583 as_dirname=false
14586 as_me=`$as_basename -- "$0" ||
14587 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14588 X"$0" : 'X\(//\)$' \| \
14589 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14590 $as_echo X/"$0" |
14591 sed '/^.*\/\([^/][^/]*\)\/*$/{
14592 s//\1/
14595 /^X\/\(\/\/\)$/{
14596 s//\1/
14599 /^X\/\(\/\).*/{
14600 s//\1/
14603 s/.*/./; q'`
14605 # Avoid depending upon Character Ranges.
14606 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14607 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14608 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14609 as_cr_digits='0123456789'
14610 as_cr_alnum=$as_cr_Letters$as_cr_digits
14612 ECHO_C= ECHO_N= ECHO_T=
14613 case `echo -n x` in #(((((
14614 -n*)
14615 case `echo 'xy\c'` in
14616 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14617 xy) ECHO_C='\c';;
14618 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14619 ECHO_T=' ';;
14620 esac;;
14622 ECHO_N='-n';;
14623 esac
14625 rm -f conf$$ conf$$.exe conf$$.file
14626 if test -d conf$$.dir; then
14627 rm -f conf$$.dir/conf$$.file
14628 else
14629 rm -f conf$$.dir
14630 mkdir conf$$.dir 2>/dev/null
14632 if (echo >conf$$.file) 2>/dev/null; then
14633 if ln -s conf$$.file conf$$ 2>/dev/null; then
14634 as_ln_s='ln -s'
14635 # ... but there are two gotchas:
14636 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14637 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14638 # In both cases, we have to default to `cp -p'.
14639 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14640 as_ln_s='cp -p'
14641 elif ln conf$$.file conf$$ 2>/dev/null; then
14642 as_ln_s=ln
14643 else
14644 as_ln_s='cp -p'
14646 else
14647 as_ln_s='cp -p'
14649 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14650 rmdir conf$$.dir 2>/dev/null
14653 # as_fn_mkdir_p
14654 # -------------
14655 # Create "$as_dir" as a directory, including parents if necessary.
14656 as_fn_mkdir_p ()
14659 case $as_dir in #(
14660 -*) as_dir=./$as_dir;;
14661 esac
14662 test -d "$as_dir" || eval $as_mkdir_p || {
14663 as_dirs=
14664 while :; do
14665 case $as_dir in #(
14666 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14667 *) as_qdir=$as_dir;;
14668 esac
14669 as_dirs="'$as_qdir' $as_dirs"
14670 as_dir=`$as_dirname -- "$as_dir" ||
14671 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14672 X"$as_dir" : 'X\(//\)[^/]' \| \
14673 X"$as_dir" : 'X\(//\)$' \| \
14674 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14675 $as_echo X"$as_dir" |
14676 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14677 s//\1/
14680 /^X\(\/\/\)[^/].*/{
14681 s//\1/
14684 /^X\(\/\/\)$/{
14685 s//\1/
14688 /^X\(\/\).*/{
14689 s//\1/
14692 s/.*/./; q'`
14693 test -d "$as_dir" && break
14694 done
14695 test -z "$as_dirs" || eval "mkdir $as_dirs"
14696 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14699 } # as_fn_mkdir_p
14700 if mkdir -p . 2>/dev/null; then
14701 as_mkdir_p='mkdir -p "$as_dir"'
14702 else
14703 test -d ./-p && rmdir ./-p
14704 as_mkdir_p=false
14707 if test -x / >/dev/null 2>&1; then
14708 as_test_x='test -x'
14709 else
14710 if ls -dL / >/dev/null 2>&1; then
14711 as_ls_L_option=L
14712 else
14713 as_ls_L_option=
14715 as_test_x='
14716 eval sh -c '\''
14717 if test -d "$1"; then
14718 test -d "$1/.";
14719 else
14720 case $1 in #(
14721 -*)set "./$1";;
14722 esac;
14723 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
14724 ???[sx]*):;;*)false;;esac;fi
14725 '\'' sh
14728 as_executable_p=$as_test_x
14730 # Sed expression to map a string onto a valid CPP name.
14731 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14733 # Sed expression to map a string onto a valid variable name.
14734 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14737 exec 6>&1
14738 ## ----------------------------------- ##
14739 ## Main body of $CONFIG_STATUS script. ##
14740 ## ----------------------------------- ##
14741 _ASEOF
14742 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14745 # Save the log message, to keep $0 and so on meaningful, and to
14746 # report actual input values of CONFIG_FILES etc. instead of their
14747 # values after options handling.
14748 ac_log="
14749 This file was extended by Intel MIC Offload Plugin $as_me 1.0, which was
14750 generated by GNU Autoconf 2.64. Invocation command line was
14752 CONFIG_FILES = $CONFIG_FILES
14753 CONFIG_HEADERS = $CONFIG_HEADERS
14754 CONFIG_LINKS = $CONFIG_LINKS
14755 CONFIG_COMMANDS = $CONFIG_COMMANDS
14756 $ $0 $@
14758 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14761 _ACEOF
14763 case $ac_config_files in *"
14764 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14765 esac
14769 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14770 # Files that config.status was made for.
14771 config_files="$ac_config_files"
14772 config_commands="$ac_config_commands"
14774 _ACEOF
14776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14777 ac_cs_usage="\
14778 \`$as_me' instantiates files and other configuration actions
14779 from templates according to the current configuration. Unless the files
14780 and actions are specified as TAGs, all are instantiated by default.
14782 Usage: $0 [OPTION]... [TAG]...
14784 -h, --help print this help, then exit
14785 -V, --version print version number and configuration settings, then exit
14786 -q, --quiet, --silent
14787 do not print progress messages
14788 -d, --debug don't remove temporary files
14789 --recheck update $as_me by reconfiguring in the same conditions
14790 --file=FILE[:TEMPLATE]
14791 instantiate the configuration file FILE
14793 Configuration files:
14794 $config_files
14796 Configuration commands:
14797 $config_commands
14799 Report bugs to the package provider."
14801 _ACEOF
14802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14803 ac_cs_version="\\
14804 Intel MIC Offload Plugin config.status 1.0
14805 configured by $0, generated by GNU Autoconf 2.64,
14806 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14808 Copyright (C) 2009 Free Software Foundation, Inc.
14809 This config.status script is free software; the Free Software Foundation
14810 gives unlimited permission to copy, distribute and modify it."
14812 ac_pwd='$ac_pwd'
14813 srcdir='$srcdir'
14814 INSTALL='$INSTALL'
14815 MKDIR_P='$MKDIR_P'
14816 AWK='$AWK'
14817 test -n "\$AWK" || AWK=awk
14818 _ACEOF
14820 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14821 # The default lists apply if the user does not specify any file.
14822 ac_need_defaults=:
14823 while test $# != 0
14825 case $1 in
14826 --*=*)
14827 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14828 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14829 ac_shift=:
14832 ac_option=$1
14833 ac_optarg=$2
14834 ac_shift=shift
14836 esac
14838 case $ac_option in
14839 # Handling of the options.
14840 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14841 ac_cs_recheck=: ;;
14842 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14843 $as_echo "$ac_cs_version"; exit ;;
14844 --debug | --debu | --deb | --de | --d | -d )
14845 debug=: ;;
14846 --file | --fil | --fi | --f )
14847 $ac_shift
14848 case $ac_optarg in
14849 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14850 esac
14851 as_fn_append CONFIG_FILES " '$ac_optarg'"
14852 ac_need_defaults=false;;
14853 --he | --h | --help | --hel | -h )
14854 $as_echo "$ac_cs_usage"; exit ;;
14855 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14856 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14857 ac_cs_silent=: ;;
14859 # This is an error.
14860 -*) as_fn_error "unrecognized option: \`$1'
14861 Try \`$0 --help' for more information." ;;
14863 *) as_fn_append ac_config_targets " $1"
14864 ac_need_defaults=false ;;
14866 esac
14867 shift
14868 done
14870 ac_configure_extra_args=
14872 if $ac_cs_silent; then
14873 exec 6>/dev/null
14874 ac_configure_extra_args="$ac_configure_extra_args --silent"
14877 _ACEOF
14878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14879 if \$ac_cs_recheck; then
14880 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14881 shift
14882 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14883 CONFIG_SHELL='$SHELL'
14884 export CONFIG_SHELL
14885 exec "\$@"
14888 _ACEOF
14889 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14890 exec 5>>config.log
14892 echo
14893 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14894 ## Running $as_me. ##
14895 _ASBOX
14896 $as_echo "$ac_log"
14897 } >&5
14899 _ACEOF
14900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14902 # INIT-COMMANDS
14904 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
14906 srcdir="$srcdir"
14907 host="$host"
14908 target="$target"
14909 with_multisubdir="$with_multisubdir"
14910 with_multisrctop="$with_multisrctop"
14911 with_target_subdir="$with_target_subdir"
14912 ac_configure_args="${multilib_arg} ${ac_configure_args}"
14913 multi_basedir="$multi_basedir"
14914 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
14915 CC="$CC"
14916 CXX="$CXX"
14917 GFORTRAN="$GFORTRAN"
14918 GCJ="$GCJ"
14921 # The HP-UX ksh and POSIX shell print the target directory to stdout
14922 # if CDPATH is set.
14923 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14925 sed_quote_subst='$sed_quote_subst'
14926 double_quote_subst='$double_quote_subst'
14927 delay_variable_subst='$delay_variable_subst'
14928 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
14929 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
14930 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
14931 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
14932 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
14933 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
14934 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
14935 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
14936 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
14937 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
14938 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
14939 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
14940 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
14941 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
14942 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
14943 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
14944 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
14945 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
14946 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
14947 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
14948 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
14949 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
14950 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
14951 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
14952 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
14953 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
14954 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
14955 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
14956 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
14957 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
14958 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
14959 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
14960 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
14961 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
14962 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
14963 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
14964 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
14965 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
14966 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
14967 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
14968 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
14969 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
14970 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
14971 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
14972 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
14973 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
14974 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
14975 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
14976 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"`'
14977 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
14978 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
14979 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
14980 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
14981 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
14982 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
14983 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
14984 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
14985 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
14986 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
14987 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
14988 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
14989 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
14990 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
14991 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
14992 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
14993 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
14994 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
14995 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
14996 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
14997 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
14998 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
14999 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15000 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15001 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15002 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15003 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15004 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15005 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15006 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15007 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15008 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15009 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15010 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15011 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15012 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15013 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15014 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15015 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15016 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15017 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15018 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15019 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15020 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15021 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15022 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15023 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15024 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15025 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15026 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15027 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15028 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15029 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15030 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15031 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15032 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15033 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15034 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15035 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15036 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15037 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15038 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15039 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15040 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15041 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15042 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15043 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15044 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15045 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15046 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15047 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15048 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15049 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15050 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15051 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15052 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15053 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15054 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15055 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15056 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15057 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15058 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15059 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15060 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15061 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15062 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15063 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15064 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15065 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15066 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15067 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15068 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15069 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15070 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15071 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15072 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15073 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15074 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15075 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15076 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15077 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15078 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15079 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15080 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15081 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15082 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15083 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15084 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15085 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15086 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15087 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15088 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15089 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15090 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15091 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15092 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15093 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15094 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15095 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15096 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15097 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15098 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15099 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15100 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15101 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15102 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15104 LTCC='$LTCC'
15105 LTCFLAGS='$LTCFLAGS'
15106 compiler='$compiler_DEFAULT'
15108 # A function that is used when there is no print builtin or printf.
15109 func_fallback_echo ()
15111 eval 'cat <<_LTECHO_EOF
15113 _LTECHO_EOF'
15116 # Quote evaled strings.
15117 for var in SHELL \
15118 ECHO \
15119 SED \
15120 GREP \
15121 EGREP \
15122 FGREP \
15123 LD \
15124 NM \
15125 LN_S \
15126 lt_SP2NL \
15127 lt_NL2SP \
15128 reload_flag \
15129 OBJDUMP \
15130 deplibs_check_method \
15131 file_magic_cmd \
15132 AR \
15133 AR_FLAGS \
15134 STRIP \
15135 RANLIB \
15136 CC \
15137 CFLAGS \
15138 compiler \
15139 lt_cv_sys_global_symbol_pipe \
15140 lt_cv_sys_global_symbol_to_cdecl \
15141 lt_cv_sys_global_symbol_to_c_name_address \
15142 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15143 lt_prog_compiler_no_builtin_flag \
15144 lt_prog_compiler_wl \
15145 lt_prog_compiler_pic \
15146 lt_prog_compiler_static \
15147 lt_cv_prog_compiler_c_o \
15148 need_locks \
15149 DSYMUTIL \
15150 NMEDIT \
15151 LIPO \
15152 OTOOL \
15153 OTOOL64 \
15154 shrext_cmds \
15155 export_dynamic_flag_spec \
15156 whole_archive_flag_spec \
15157 compiler_needs_object \
15158 with_gnu_ld \
15159 allow_undefined_flag \
15160 no_undefined_flag \
15161 hardcode_libdir_flag_spec \
15162 hardcode_libdir_flag_spec_ld \
15163 hardcode_libdir_separator \
15164 fix_srcfile_path \
15165 exclude_expsyms \
15166 include_expsyms \
15167 file_list_spec \
15168 variables_saved_for_relink \
15169 libname_spec \
15170 library_names_spec \
15171 soname_spec \
15172 install_override_mode \
15173 finish_eval \
15174 old_striplib \
15175 striplib \
15176 compiler_lib_search_dirs \
15177 predep_objects \
15178 postdep_objects \
15179 predeps \
15180 postdeps \
15181 compiler_lib_search_path \
15182 LD_CXX \
15183 reload_flag_CXX \
15184 compiler_CXX \
15185 lt_prog_compiler_no_builtin_flag_CXX \
15186 lt_prog_compiler_wl_CXX \
15187 lt_prog_compiler_pic_CXX \
15188 lt_prog_compiler_static_CXX \
15189 lt_cv_prog_compiler_c_o_CXX \
15190 export_dynamic_flag_spec_CXX \
15191 whole_archive_flag_spec_CXX \
15192 compiler_needs_object_CXX \
15193 with_gnu_ld_CXX \
15194 allow_undefined_flag_CXX \
15195 no_undefined_flag_CXX \
15196 hardcode_libdir_flag_spec_CXX \
15197 hardcode_libdir_flag_spec_ld_CXX \
15198 hardcode_libdir_separator_CXX \
15199 fix_srcfile_path_CXX \
15200 exclude_expsyms_CXX \
15201 include_expsyms_CXX \
15202 file_list_spec_CXX \
15203 compiler_lib_search_dirs_CXX \
15204 predep_objects_CXX \
15205 postdep_objects_CXX \
15206 predeps_CXX \
15207 postdeps_CXX \
15208 compiler_lib_search_path_CXX; do
15209 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15210 *[\\\\\\\`\\"\\\$]*)
15211 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15214 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15216 esac
15217 done
15219 # Double-quote double-evaled strings.
15220 for var in reload_cmds \
15221 old_postinstall_cmds \
15222 old_postuninstall_cmds \
15223 old_archive_cmds \
15224 extract_expsyms_cmds \
15225 old_archive_from_new_cmds \
15226 old_archive_from_expsyms_cmds \
15227 archive_cmds \
15228 archive_expsym_cmds \
15229 module_cmds \
15230 module_expsym_cmds \
15231 export_symbols_cmds \
15232 prelink_cmds \
15233 postinstall_cmds \
15234 postuninstall_cmds \
15235 finish_cmds \
15236 sys_lib_search_path_spec \
15237 sys_lib_dlsearch_path_spec \
15238 reload_cmds_CXX \
15239 old_archive_cmds_CXX \
15240 old_archive_from_new_cmds_CXX \
15241 old_archive_from_expsyms_cmds_CXX \
15242 archive_cmds_CXX \
15243 archive_expsym_cmds_CXX \
15244 module_cmds_CXX \
15245 module_expsym_cmds_CXX \
15246 export_symbols_cmds_CXX \
15247 prelink_cmds_CXX; do
15248 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15249 *[\\\\\\\`\\"\\\$]*)
15250 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15253 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15255 esac
15256 done
15258 ac_aux_dir='$ac_aux_dir'
15259 xsi_shell='$xsi_shell'
15260 lt_shell_append='$lt_shell_append'
15262 # See if we are running on zsh, and set the options which allow our
15263 # commands through without removal of \ escapes INIT.
15264 if test -n "\${ZSH_VERSION+set}" ; then
15265 setopt NO_GLOB_SUBST
15269 PACKAGE='$PACKAGE'
15270 VERSION='$VERSION'
15271 TIMESTAMP='$TIMESTAMP'
15272 RM='$RM'
15273 ofile='$ofile'
15280 _ACEOF
15282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15284 # Handling of arguments.
15285 for ac_config_target in $ac_config_targets
15287 case $ac_config_target in
15288 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15289 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15290 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15291 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15293 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15294 esac
15295 done
15298 # If the user did not use the arguments to specify the items to instantiate,
15299 # then the envvar interface is used. Set only those that are not.
15300 # We use the long form for the default assignment because of an extremely
15301 # bizarre bug on SunOS 4.1.3.
15302 if $ac_need_defaults; then
15303 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15304 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15307 # Have a temporary directory for convenience. Make it in the build tree
15308 # simply because there is no reason against having it here, and in addition,
15309 # creating and moving files from /tmp can sometimes cause problems.
15310 # Hook for its removal unless debugging.
15311 # Note that there is a small window in which the directory will not be cleaned:
15312 # after its creation but before its name has been assigned to `$tmp'.
15313 $debug ||
15315 tmp=
15316 trap 'exit_status=$?
15317 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15319 trap 'as_fn_exit 1' 1 2 13 15
15321 # Create a (secure) tmp directory for tmp files.
15324 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15325 test -n "$tmp" && test -d "$tmp"
15326 } ||
15328 tmp=./conf$$-$RANDOM
15329 (umask 077 && mkdir "$tmp")
15330 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15332 # Set up the scripts for CONFIG_FILES section.
15333 # No need to generate them if there are no CONFIG_FILES.
15334 # This happens for instance with `./config.status config.h'.
15335 if test -n "$CONFIG_FILES"; then
15338 ac_cr=`echo X | tr X '\015'`
15339 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15340 # But we know of no other shell where ac_cr would be empty at this
15341 # point, so we can use a bashism as a fallback.
15342 if test "x$ac_cr" = x; then
15343 eval ac_cr=\$\'\\r\'
15345 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15347 ac_cs_awk_cr='\r'
15348 else
15349 ac_cs_awk_cr=$ac_cr
15352 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15353 _ACEOF
15357 echo "cat >conf$$subs.awk <<_ACEOF" &&
15358 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15359 echo "_ACEOF"
15360 } >conf$$subs.sh ||
15361 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15362 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15363 ac_delim='%!_!# '
15364 for ac_last_try in false false false false false :; do
15365 . ./conf$$subs.sh ||
15366 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15368 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15369 if test $ac_delim_n = $ac_delim_num; then
15370 break
15371 elif $ac_last_try; then
15372 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15373 else
15374 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15376 done
15377 rm -f conf$$subs.sh
15379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15380 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15381 _ACEOF
15382 sed -n '
15384 s/^/S["/; s/!.*/"]=/
15387 s/^[^!]*!//
15388 :repl
15389 t repl
15390 s/'"$ac_delim"'$//
15391 t delim
15394 s/\(.\{148\}\).*/\1/
15395 t more1
15396 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15399 b repl
15400 :more1
15401 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15404 s/.\{148\}//
15405 t nl
15406 :delim
15408 s/\(.\{148\}\).*/\1/
15409 t more2
15410 s/["\\]/\\&/g; s/^/"/; s/$/"/
15413 :more2
15414 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15417 s/.\{148\}//
15418 t delim
15419 ' <conf$$subs.awk | sed '
15420 /^[^""]/{
15422 s/\n//
15424 ' >>$CONFIG_STATUS || ac_write_fail=1
15425 rm -f conf$$subs.awk
15426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15427 _ACAWK
15428 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15429 for (key in S) S_is_set[key] = 1
15430 FS = "\a"
15434 line = $ 0
15435 nfields = split(line, field, "@")
15436 substed = 0
15437 len = length(field[1])
15438 for (i = 2; i < nfields; i++) {
15439 key = field[i]
15440 keylen = length(key)
15441 if (S_is_set[key]) {
15442 value = S[key]
15443 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15444 len += length(value) + length(field[++i])
15445 substed = 1
15446 } else
15447 len += 1 + keylen
15450 print line
15453 _ACAWK
15454 _ACEOF
15455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15456 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15457 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15458 else
15460 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15461 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15462 _ACEOF
15464 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15465 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15466 # trailing colons and then remove the whole line if VPATH becomes empty
15467 # (actually we leave an empty line to preserve line numbers).
15468 if test "x$srcdir" = x.; then
15469 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15470 s/:*\$(srcdir):*/:/
15471 s/:*\${srcdir}:*/:/
15472 s/:*@srcdir@:*/:/
15473 s/^\([^=]*=[ ]*\):*/\1/
15474 s/:*$//
15475 s/^[^=]*=[ ]*$//
15479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15480 fi # test -n "$CONFIG_FILES"
15483 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15484 shift
15485 for ac_tag
15487 case $ac_tag in
15488 :[FHLC]) ac_mode=$ac_tag; continue;;
15489 esac
15490 case $ac_mode$ac_tag in
15491 :[FHL]*:*);;
15492 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15493 :[FH]-) ac_tag=-:-;;
15494 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15495 esac
15496 ac_save_IFS=$IFS
15497 IFS=:
15498 set x $ac_tag
15499 IFS=$ac_save_IFS
15500 shift
15501 ac_file=$1
15502 shift
15504 case $ac_mode in
15505 :L) ac_source=$1;;
15506 :[FH])
15507 ac_file_inputs=
15508 for ac_f
15510 case $ac_f in
15511 -) ac_f="$tmp/stdin";;
15512 *) # Look for the file first in the build tree, then in the source tree
15513 # (if the path is not absolute). The absolute path cannot be DOS-style,
15514 # because $ac_f cannot contain `:'.
15515 test -f "$ac_f" ||
15516 case $ac_f in
15517 [\\/$]*) false;;
15518 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15519 esac ||
15520 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15521 esac
15522 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15523 as_fn_append ac_file_inputs " '$ac_f'"
15524 done
15526 # Let's still pretend it is `configure' which instantiates (i.e., don't
15527 # use $as_me), people would be surprised to read:
15528 # /* config.h. Generated by config.status. */
15529 configure_input='Generated from '`
15530 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15531 `' by configure.'
15532 if test x"$ac_file" != x-; then
15533 configure_input="$ac_file. $configure_input"
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15535 $as_echo "$as_me: creating $ac_file" >&6;}
15537 # Neutralize special characters interpreted by sed in replacement strings.
15538 case $configure_input in #(
15539 *\&* | *\|* | *\\* )
15540 ac_sed_conf_input=`$as_echo "$configure_input" |
15541 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15542 *) ac_sed_conf_input=$configure_input;;
15543 esac
15545 case $ac_tag in
15546 *:-:* | *:-) cat >"$tmp/stdin" \
15547 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15548 esac
15550 esac
15552 ac_dir=`$as_dirname -- "$ac_file" ||
15553 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15554 X"$ac_file" : 'X\(//\)[^/]' \| \
15555 X"$ac_file" : 'X\(//\)$' \| \
15556 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15557 $as_echo X"$ac_file" |
15558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15559 s//\1/
15562 /^X\(\/\/\)[^/].*/{
15563 s//\1/
15566 /^X\(\/\/\)$/{
15567 s//\1/
15570 /^X\(\/\).*/{
15571 s//\1/
15574 s/.*/./; q'`
15575 as_dir="$ac_dir"; as_fn_mkdir_p
15576 ac_builddir=.
15578 case "$ac_dir" in
15579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15582 # A ".." for each directory in $ac_dir_suffix.
15583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15584 case $ac_top_builddir_sub in
15585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15587 esac ;;
15588 esac
15589 ac_abs_top_builddir=$ac_pwd
15590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15591 # for backward compatibility:
15592 ac_top_builddir=$ac_top_build_prefix
15594 case $srcdir in
15595 .) # We are building in place.
15596 ac_srcdir=.
15597 ac_top_srcdir=$ac_top_builddir_sub
15598 ac_abs_top_srcdir=$ac_pwd ;;
15599 [\\/]* | ?:[\\/]* ) # Absolute name.
15600 ac_srcdir=$srcdir$ac_dir_suffix;
15601 ac_top_srcdir=$srcdir
15602 ac_abs_top_srcdir=$srcdir ;;
15603 *) # Relative name.
15604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15605 ac_top_srcdir=$ac_top_build_prefix$srcdir
15606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15607 esac
15608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15611 case $ac_mode in
15614 # CONFIG_FILE
15617 case $INSTALL in
15618 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15619 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15620 esac
15621 ac_MKDIR_P=$MKDIR_P
15622 case $MKDIR_P in
15623 [\\/$]* | ?:[\\/]* ) ;;
15624 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15625 esac
15626 _ACEOF
15628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15629 # If the template does not know about datarootdir, expand it.
15630 # FIXME: This hack should be removed a few years after 2.60.
15631 ac_datarootdir_hack=; ac_datarootdir_seen=
15632 ac_sed_dataroot='
15633 /datarootdir/ {
15637 /@datadir@/p
15638 /@docdir@/p
15639 /@infodir@/p
15640 /@localedir@/p
15641 /@mandir@/p'
15642 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15643 *datarootdir*) ac_datarootdir_seen=yes;;
15644 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15646 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15647 _ACEOF
15648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15649 ac_datarootdir_hack='
15650 s&@datadir@&$datadir&g
15651 s&@docdir@&$docdir&g
15652 s&@infodir@&$infodir&g
15653 s&@localedir@&$localedir&g
15654 s&@mandir@&$mandir&g
15655 s&\\\${datarootdir}&$datarootdir&g' ;;
15656 esac
15657 _ACEOF
15659 # Neutralize VPATH when `$srcdir' = `.'.
15660 # Shell code in configure.ac might set extrasub.
15661 # FIXME: do we really want to maintain this feature?
15662 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15663 ac_sed_extra="$ac_vpsub
15664 $extrasub
15665 _ACEOF
15666 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15668 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15669 s|@configure_input@|$ac_sed_conf_input|;t t
15670 s&@top_builddir@&$ac_top_builddir_sub&;t t
15671 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15672 s&@srcdir@&$ac_srcdir&;t t
15673 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15674 s&@top_srcdir@&$ac_top_srcdir&;t t
15675 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15676 s&@builddir@&$ac_builddir&;t t
15677 s&@abs_builddir@&$ac_abs_builddir&;t t
15678 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15679 s&@INSTALL@&$ac_INSTALL&;t t
15680 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15681 $ac_datarootdir_hack
15683 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15684 || as_fn_error "could not create $ac_file" "$LINENO" 5
15686 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15687 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15688 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15690 which seems to be undefined. Please make sure it is defined." >&5
15691 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15692 which seems to be undefined. Please make sure it is defined." >&2;}
15694 rm -f "$tmp/stdin"
15695 case $ac_file in
15696 -) cat "$tmp/out" && rm -f "$tmp/out";;
15697 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15698 esac \
15699 || as_fn_error "could not create $ac_file" "$LINENO" 5
15703 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
15704 $as_echo "$as_me: executing $ac_file commands" >&6;}
15706 esac
15709 case $ac_file$ac_mode in
15710 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
15711 # Autoconf 2.62 quotes --file arguments for eval, but not when files
15712 # are listed without --file. Let's play safe and only enable the eval
15713 # if we detect the quoting.
15714 case $CONFIG_FILES in
15715 *\'*) eval set x "$CONFIG_FILES" ;;
15716 *) set x $CONFIG_FILES ;;
15717 esac
15718 shift
15719 for mf
15721 # Strip MF so we end up with the name of the file.
15722 mf=`echo "$mf" | sed -e 's/:.*$//'`
15723 # Check whether this is an Automake generated Makefile or not.
15724 # We used to match only the files named `Makefile.in', but
15725 # some people rename them; so instead we look at the file content.
15726 # Grep'ing the first line is not enough: some people post-process
15727 # each Makefile.in and add a new line on top of each file to say so.
15728 # Grep'ing the whole file is not good either: AIX grep has a line
15729 # limit of 2048, but all sed's we know have understand at least 4000.
15730 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
15731 dirpart=`$as_dirname -- "$mf" ||
15732 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15733 X"$mf" : 'X\(//\)[^/]' \| \
15734 X"$mf" : 'X\(//\)$' \| \
15735 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
15736 $as_echo X"$mf" |
15737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15738 s//\1/
15741 /^X\(\/\/\)[^/].*/{
15742 s//\1/
15745 /^X\(\/\/\)$/{
15746 s//\1/
15749 /^X\(\/\).*/{
15750 s//\1/
15753 s/.*/./; q'`
15754 else
15755 continue
15757 # Extract the definition of DEPDIR, am__include, and am__quote
15758 # from the Makefile without running `make'.
15759 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
15760 test -z "$DEPDIR" && continue
15761 am__include=`sed -n 's/^am__include = //p' < "$mf"`
15762 test -z "am__include" && continue
15763 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
15764 # When using ansi2knr, U may be empty or an underscore; expand it
15765 U=`sed -n 's/^U = //p' < "$mf"`
15766 # Find all dependency output files, they are included files with
15767 # $(DEPDIR) in their names. We invoke sed twice because it is the
15768 # simplest approach to changing $(DEPDIR) to its actual value in the
15769 # expansion.
15770 for file in `sed -n "
15771 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
15772 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
15773 # Make sure the directory exists.
15774 test -f "$dirpart/$file" && continue
15775 fdir=`$as_dirname -- "$file" ||
15776 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15777 X"$file" : 'X\(//\)[^/]' \| \
15778 X"$file" : 'X\(//\)$' \| \
15779 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
15780 $as_echo X"$file" |
15781 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15782 s//\1/
15785 /^X\(\/\/\)[^/].*/{
15786 s//\1/
15789 /^X\(\/\/\)$/{
15790 s//\1/
15793 /^X\(\/\).*/{
15794 s//\1/
15797 s/.*/./; q'`
15798 as_dir=$dirpart/$fdir; as_fn_mkdir_p
15799 # echo "creating $dirpart/$file"
15800 echo '# dummy' > "$dirpart/$file"
15801 done
15802 done
15805 "default-1":C)
15806 # Only add multilib support code if we just rebuilt the top-level
15807 # Makefile.
15808 case " $CONFIG_FILES " in
15809 *" Makefile "*)
15810 ac_file=Makefile . ${multi_basedir}/config-ml.in
15812 esac ;;
15813 "libtool":C)
15815 # See if we are running on zsh, and set the options which allow our
15816 # commands through without removal of \ escapes.
15817 if test -n "${ZSH_VERSION+set}" ; then
15818 setopt NO_GLOB_SUBST
15821 cfgfile="${ofile}T"
15822 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
15823 $RM "$cfgfile"
15825 cat <<_LT_EOF >> "$cfgfile"
15826 #! $SHELL
15828 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15829 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
15830 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15831 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15833 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
15834 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
15835 # Written by Gordon Matzigkeit, 1996
15837 # This file is part of GNU Libtool.
15839 # GNU Libtool is free software; you can redistribute it and/or
15840 # modify it under the terms of the GNU General Public License as
15841 # published by the Free Software Foundation; either version 2 of
15842 # the License, or (at your option) any later version.
15844 # As a special exception to the GNU General Public License,
15845 # if you distribute this file as part of a program or library that
15846 # is built using GNU Libtool, you may include this file under the
15847 # same distribution terms that you use for the rest of that program.
15849 # GNU Libtool is distributed in the hope that it will be useful,
15850 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15851 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15852 # GNU General Public License for more details.
15854 # You should have received a copy of the GNU General Public License
15855 # along with GNU Libtool; see the file COPYING. If not, a copy
15856 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
15857 # obtained by writing to the Free Software Foundation, Inc.,
15858 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15861 # The names of the tagged configurations supported by this script.
15862 available_tags="CXX "
15864 # ### BEGIN LIBTOOL CONFIG
15866 # Which release of libtool.m4 was used?
15867 macro_version=$macro_version
15868 macro_revision=$macro_revision
15870 # Whether or not to build shared libraries.
15871 build_libtool_libs=$enable_shared
15873 # Whether or not to build static libraries.
15874 build_old_libs=$enable_static
15876 # What type of objects to build.
15877 pic_mode=$pic_mode
15879 # Whether or not to optimize for fast installation.
15880 fast_install=$enable_fast_install
15882 # Shell to use when invoking shell scripts.
15883 SHELL=$lt_SHELL
15885 # An echo program that protects backslashes.
15886 ECHO=$lt_ECHO
15888 # The host system.
15889 host_alias=$host_alias
15890 host=$host
15891 host_os=$host_os
15893 # The build system.
15894 build_alias=$build_alias
15895 build=$build
15896 build_os=$build_os
15898 # A sed program that does not truncate output.
15899 SED=$lt_SED
15901 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15902 Xsed="\$SED -e 1s/^X//"
15904 # A grep program that handles long lines.
15905 GREP=$lt_GREP
15907 # An ERE matcher.
15908 EGREP=$lt_EGREP
15910 # A literal string matcher.
15911 FGREP=$lt_FGREP
15913 # A BSD- or MS-compatible name lister.
15914 NM=$lt_NM
15916 # Whether we need soft or hard links.
15917 LN_S=$lt_LN_S
15919 # What is the maximum length of a command?
15920 max_cmd_len=$max_cmd_len
15922 # Object file suffix (normally "o").
15923 objext=$ac_objext
15925 # Executable file suffix (normally "").
15926 exeext=$exeext
15928 # whether the shell understands "unset".
15929 lt_unset=$lt_unset
15931 # turn spaces into newlines.
15932 SP2NL=$lt_lt_SP2NL
15934 # turn newlines into spaces.
15935 NL2SP=$lt_lt_NL2SP
15937 # An object symbol dumper.
15938 OBJDUMP=$lt_OBJDUMP
15940 # Method to check whether dependent libraries are shared objects.
15941 deplibs_check_method=$lt_deplibs_check_method
15943 # Command to use when deplibs_check_method == "file_magic".
15944 file_magic_cmd=$lt_file_magic_cmd
15946 # The archiver.
15947 AR=$lt_AR
15948 AR_FLAGS=$lt_AR_FLAGS
15950 # A symbol stripping program.
15951 STRIP=$lt_STRIP
15953 # Commands used to install an old-style archive.
15954 RANLIB=$lt_RANLIB
15955 old_postinstall_cmds=$lt_old_postinstall_cmds
15956 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15958 # Whether to use a lock for old archive extraction.
15959 lock_old_archive_extraction=$lock_old_archive_extraction
15961 # A C compiler.
15962 LTCC=$lt_CC
15964 # LTCC compiler flags.
15965 LTCFLAGS=$lt_CFLAGS
15967 # Take the output of nm and produce a listing of raw symbols and C names.
15968 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15970 # Transform the output of nm in a proper C declaration.
15971 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15973 # Transform the output of nm in a C name address pair.
15974 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15976 # Transform the output of nm in a C name address pair when lib prefix is needed.
15977 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
15979 # The name of the directory that contains temporary libtool files.
15980 objdir=$objdir
15982 # Used to examine libraries when file_magic_cmd begins with "file".
15983 MAGIC_CMD=$MAGIC_CMD
15985 # Must we lock files when doing compilation?
15986 need_locks=$lt_need_locks
15988 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
15989 DSYMUTIL=$lt_DSYMUTIL
15991 # Tool to change global to local symbols on Mac OS X.
15992 NMEDIT=$lt_NMEDIT
15994 # Tool to manipulate fat objects and archives on Mac OS X.
15995 LIPO=$lt_LIPO
15997 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
15998 OTOOL=$lt_OTOOL
16000 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16001 OTOOL64=$lt_OTOOL64
16003 # Old archive suffix (normally "a").
16004 libext=$libext
16006 # Shared library suffix (normally ".so").
16007 shrext_cmds=$lt_shrext_cmds
16009 # The commands to extract the exported symbol list from a shared archive.
16010 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16012 # Variables whose values should be saved in libtool wrapper scripts and
16013 # restored at link time.
16014 variables_saved_for_relink=$lt_variables_saved_for_relink
16016 # Do we need the "lib" prefix for modules?
16017 need_lib_prefix=$need_lib_prefix
16019 # Do we need a version for libraries?
16020 need_version=$need_version
16022 # Library versioning type.
16023 version_type=$version_type
16025 # Shared library runtime path variable.
16026 runpath_var=$runpath_var
16028 # Shared library path variable.
16029 shlibpath_var=$shlibpath_var
16031 # Is shlibpath searched before the hard-coded library search path?
16032 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16034 # Format of library name prefix.
16035 libname_spec=$lt_libname_spec
16037 # List of archive names. First name is the real one, the rest are links.
16038 # The last name is the one that the linker finds with -lNAME
16039 library_names_spec=$lt_library_names_spec
16041 # The coded name of the library, if different from the real name.
16042 soname_spec=$lt_soname_spec
16044 # Permission mode override for installation of shared libraries.
16045 install_override_mode=$lt_install_override_mode
16047 # Command to use after installation of a shared archive.
16048 postinstall_cmds=$lt_postinstall_cmds
16050 # Command to use after uninstallation of a shared archive.
16051 postuninstall_cmds=$lt_postuninstall_cmds
16053 # Commands used to finish a libtool library installation in a directory.
16054 finish_cmds=$lt_finish_cmds
16056 # As "finish_cmds", except a single script fragment to be evaled but
16057 # not shown.
16058 finish_eval=$lt_finish_eval
16060 # Whether we should hardcode library paths into libraries.
16061 hardcode_into_libs=$hardcode_into_libs
16063 # Compile-time system search path for libraries.
16064 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16066 # Run-time system search path for libraries.
16067 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16069 # Whether dlopen is supported.
16070 dlopen_support=$enable_dlopen
16072 # Whether dlopen of programs is supported.
16073 dlopen_self=$enable_dlopen_self
16075 # Whether dlopen of statically linked programs is supported.
16076 dlopen_self_static=$enable_dlopen_self_static
16078 # Commands to strip libraries.
16079 old_striplib=$lt_old_striplib
16080 striplib=$lt_striplib
16083 # The linker used to build libraries.
16084 LD=$lt_LD
16086 # How to create reloadable object files.
16087 reload_flag=$lt_reload_flag
16088 reload_cmds=$lt_reload_cmds
16090 # Commands used to build an old-style archive.
16091 old_archive_cmds=$lt_old_archive_cmds
16093 # A language specific compiler.
16094 CC=$lt_compiler
16096 # Is the compiler the GNU compiler?
16097 with_gcc=$GCC
16099 # Compiler flag to turn off builtin functions.
16100 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16102 # How to pass a linker flag through the compiler.
16103 wl=$lt_lt_prog_compiler_wl
16105 # Additional compiler flags for building library objects.
16106 pic_flag=$lt_lt_prog_compiler_pic
16108 # Compiler flag to prevent dynamic linking.
16109 link_static_flag=$lt_lt_prog_compiler_static
16111 # Does compiler simultaneously support -c and -o options?
16112 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16114 # Whether or not to add -lc for building shared libraries.
16115 build_libtool_need_lc=$archive_cmds_need_lc
16117 # Whether or not to disallow shared libs when runtime libs are static.
16118 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16120 # Compiler flag to allow reflexive dlopens.
16121 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16123 # Compiler flag to generate shared objects directly from archives.
16124 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16126 # Whether the compiler copes with passing no objects directly.
16127 compiler_needs_object=$lt_compiler_needs_object
16129 # Create an old-style archive from a shared archive.
16130 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16132 # Create a temporary old-style archive to link instead of a shared archive.
16133 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16135 # Commands used to build a shared archive.
16136 archive_cmds=$lt_archive_cmds
16137 archive_expsym_cmds=$lt_archive_expsym_cmds
16139 # Commands used to build a loadable module if different from building
16140 # a shared archive.
16141 module_cmds=$lt_module_cmds
16142 module_expsym_cmds=$lt_module_expsym_cmds
16144 # Whether we are building with GNU ld or not.
16145 with_gnu_ld=$lt_with_gnu_ld
16147 # Flag that allows shared libraries with undefined symbols to be built.
16148 allow_undefined_flag=$lt_allow_undefined_flag
16150 # Flag that enforces no undefined symbols.
16151 no_undefined_flag=$lt_no_undefined_flag
16153 # Flag to hardcode \$libdir into a binary during linking.
16154 # This must work even if \$libdir does not exist
16155 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16157 # If ld is used when linking, flag to hardcode \$libdir into a binary
16158 # during linking. This must work even if \$libdir does not exist.
16159 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16161 # Whether we need a single "-rpath" flag with a separated argument.
16162 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16164 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16165 # DIR into the resulting binary.
16166 hardcode_direct=$hardcode_direct
16168 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16169 # DIR into the resulting binary and the resulting library dependency is
16170 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16171 # library is relocated.
16172 hardcode_direct_absolute=$hardcode_direct_absolute
16174 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16175 # into the resulting binary.
16176 hardcode_minus_L=$hardcode_minus_L
16178 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16179 # into the resulting binary.
16180 hardcode_shlibpath_var=$hardcode_shlibpath_var
16182 # Set to "yes" if building a shared library automatically hardcodes DIR
16183 # into the library and all subsequent libraries and executables linked
16184 # against it.
16185 hardcode_automatic=$hardcode_automatic
16187 # Set to yes if linker adds runtime paths of dependent libraries
16188 # to runtime path list.
16189 inherit_rpath=$inherit_rpath
16191 # Whether libtool must link a program against all its dependency libraries.
16192 link_all_deplibs=$link_all_deplibs
16194 # Fix the shell variable \$srcfile for the compiler.
16195 fix_srcfile_path=$lt_fix_srcfile_path
16197 # Set to "yes" if exported symbols are required.
16198 always_export_symbols=$always_export_symbols
16200 # The commands to list exported symbols.
16201 export_symbols_cmds=$lt_export_symbols_cmds
16203 # Symbols that should not be listed in the preloaded symbols.
16204 exclude_expsyms=$lt_exclude_expsyms
16206 # Symbols that must always be exported.
16207 include_expsyms=$lt_include_expsyms
16209 # Commands necessary for linking programs (against libraries) with templates.
16210 prelink_cmds=$lt_prelink_cmds
16212 # Specify filename containing input files.
16213 file_list_spec=$lt_file_list_spec
16215 # How to hardcode a shared library path into an executable.
16216 hardcode_action=$hardcode_action
16218 # The directories searched by this compiler when creating a shared library.
16219 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16221 # Dependencies to place before and after the objects being linked to
16222 # create a shared library.
16223 predep_objects=$lt_predep_objects
16224 postdep_objects=$lt_postdep_objects
16225 predeps=$lt_predeps
16226 postdeps=$lt_postdeps
16228 # The library search path used internally by the compiler when linking
16229 # a shared library.
16230 compiler_lib_search_path=$lt_compiler_lib_search_path
16232 # ### END LIBTOOL CONFIG
16234 _LT_EOF
16236 case $host_os in
16237 aix3*)
16238 cat <<\_LT_EOF >> "$cfgfile"
16239 # AIX sometimes has problems with the GCC collect2 program. For some
16240 # reason, if we set the COLLECT_NAMES environment variable, the problems
16241 # vanish in a puff of smoke.
16242 if test "X${COLLECT_NAMES+set}" != Xset; then
16243 COLLECT_NAMES=
16244 export COLLECT_NAMES
16246 _LT_EOF
16248 esac
16251 ltmain="$ac_aux_dir/ltmain.sh"
16254 # We use sed instead of cat because bash on DJGPP gets confused if
16255 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16256 # text mode, it properly converts lines to CR/LF. This bash problem
16257 # is reportedly fixed, but why not run on old versions too?
16258 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16259 || (rm -f "$cfgfile"; exit 1)
16261 case $xsi_shell in
16262 yes)
16263 cat << \_LT_EOF >> "$cfgfile"
16265 # func_dirname file append nondir_replacement
16266 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16267 # otherwise set result to NONDIR_REPLACEMENT.
16268 func_dirname ()
16270 case ${1} in
16271 */*) func_dirname_result="${1%/*}${2}" ;;
16272 * ) func_dirname_result="${3}" ;;
16273 esac
16276 # func_basename file
16277 func_basename ()
16279 func_basename_result="${1##*/}"
16282 # func_dirname_and_basename file append nondir_replacement
16283 # perform func_basename and func_dirname in a single function
16284 # call:
16285 # dirname: Compute the dirname of FILE. If nonempty,
16286 # add APPEND to the result, otherwise set result
16287 # to NONDIR_REPLACEMENT.
16288 # value returned in "$func_dirname_result"
16289 # basename: Compute filename of FILE.
16290 # value retuned in "$func_basename_result"
16291 # Implementation must be kept synchronized with func_dirname
16292 # and func_basename. For efficiency, we do not delegate to
16293 # those functions but instead duplicate the functionality here.
16294 func_dirname_and_basename ()
16296 case ${1} in
16297 */*) func_dirname_result="${1%/*}${2}" ;;
16298 * ) func_dirname_result="${3}" ;;
16299 esac
16300 func_basename_result="${1##*/}"
16303 # func_stripname prefix suffix name
16304 # strip PREFIX and SUFFIX off of NAME.
16305 # PREFIX and SUFFIX must not contain globbing or regex special
16306 # characters, hashes, percent signs, but SUFFIX may contain a leading
16307 # dot (in which case that matches only a dot).
16308 func_stripname ()
16310 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16311 # positional parameters, so assign one to ordinary parameter first.
16312 func_stripname_result=${3}
16313 func_stripname_result=${func_stripname_result#"${1}"}
16314 func_stripname_result=${func_stripname_result%"${2}"}
16317 # func_opt_split
16318 func_opt_split ()
16320 func_opt_split_opt=${1%%=*}
16321 func_opt_split_arg=${1#*=}
16324 # func_lo2o object
16325 func_lo2o ()
16327 case ${1} in
16328 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16329 *) func_lo2o_result=${1} ;;
16330 esac
16333 # func_xform libobj-or-source
16334 func_xform ()
16336 func_xform_result=${1%.*}.lo
16339 # func_arith arithmetic-term...
16340 func_arith ()
16342 func_arith_result=$(( $* ))
16345 # func_len string
16346 # STRING may not start with a hyphen.
16347 func_len ()
16349 func_len_result=${#1}
16352 _LT_EOF
16354 *) # Bourne compatible functions.
16355 cat << \_LT_EOF >> "$cfgfile"
16357 # func_dirname file append nondir_replacement
16358 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16359 # otherwise set result to NONDIR_REPLACEMENT.
16360 func_dirname ()
16362 # Extract subdirectory from the argument.
16363 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16364 if test "X$func_dirname_result" = "X${1}"; then
16365 func_dirname_result="${3}"
16366 else
16367 func_dirname_result="$func_dirname_result${2}"
16371 # func_basename file
16372 func_basename ()
16374 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16378 # func_stripname prefix suffix name
16379 # strip PREFIX and SUFFIX off of NAME.
16380 # PREFIX and SUFFIX must not contain globbing or regex special
16381 # characters, hashes, percent signs, but SUFFIX may contain a leading
16382 # dot (in which case that matches only a dot).
16383 # func_strip_suffix prefix name
16384 func_stripname ()
16386 case ${2} in
16387 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16388 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16389 esac
16392 # sed scripts:
16393 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16394 my_sed_long_arg='1s/^-[^=]*=//'
16396 # func_opt_split
16397 func_opt_split ()
16399 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16400 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16403 # func_lo2o object
16404 func_lo2o ()
16406 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16409 # func_xform libobj-or-source
16410 func_xform ()
16412 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16415 # func_arith arithmetic-term...
16416 func_arith ()
16418 func_arith_result=`expr "$@"`
16421 # func_len string
16422 # STRING may not start with a hyphen.
16423 func_len ()
16425 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16428 _LT_EOF
16429 esac
16431 case $lt_shell_append in
16432 yes)
16433 cat << \_LT_EOF >> "$cfgfile"
16435 # func_append var value
16436 # Append VALUE to the end of shell variable VAR.
16437 func_append ()
16439 eval "$1+=\$2"
16441 _LT_EOF
16444 cat << \_LT_EOF >> "$cfgfile"
16446 # func_append var value
16447 # Append VALUE to the end of shell variable VAR.
16448 func_append ()
16450 eval "$1=\$$1\$2"
16453 _LT_EOF
16455 esac
16458 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16459 || (rm -f "$cfgfile"; exit 1)
16461 mv -f "$cfgfile" "$ofile" ||
16462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16463 chmod +x "$ofile"
16466 cat <<_LT_EOF >> "$ofile"
16468 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16470 # The linker used to build libraries.
16471 LD=$lt_LD_CXX
16473 # How to create reloadable object files.
16474 reload_flag=$lt_reload_flag_CXX
16475 reload_cmds=$lt_reload_cmds_CXX
16477 # Commands used to build an old-style archive.
16478 old_archive_cmds=$lt_old_archive_cmds_CXX
16480 # A language specific compiler.
16481 CC=$lt_compiler_CXX
16483 # Is the compiler the GNU compiler?
16484 with_gcc=$GCC_CXX
16486 # Compiler flag to turn off builtin functions.
16487 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16489 # How to pass a linker flag through the compiler.
16490 wl=$lt_lt_prog_compiler_wl_CXX
16492 # Additional compiler flags for building library objects.
16493 pic_flag=$lt_lt_prog_compiler_pic_CXX
16495 # Compiler flag to prevent dynamic linking.
16496 link_static_flag=$lt_lt_prog_compiler_static_CXX
16498 # Does compiler simultaneously support -c and -o options?
16499 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16501 # Whether or not to add -lc for building shared libraries.
16502 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16504 # Whether or not to disallow shared libs when runtime libs are static.
16505 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16507 # Compiler flag to allow reflexive dlopens.
16508 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16510 # Compiler flag to generate shared objects directly from archives.
16511 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16513 # Whether the compiler copes with passing no objects directly.
16514 compiler_needs_object=$lt_compiler_needs_object_CXX
16516 # Create an old-style archive from a shared archive.
16517 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16519 # Create a temporary old-style archive to link instead of a shared archive.
16520 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16522 # Commands used to build a shared archive.
16523 archive_cmds=$lt_archive_cmds_CXX
16524 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16526 # Commands used to build a loadable module if different from building
16527 # a shared archive.
16528 module_cmds=$lt_module_cmds_CXX
16529 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16531 # Whether we are building with GNU ld or not.
16532 with_gnu_ld=$lt_with_gnu_ld_CXX
16534 # Flag that allows shared libraries with undefined symbols to be built.
16535 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16537 # Flag that enforces no undefined symbols.
16538 no_undefined_flag=$lt_no_undefined_flag_CXX
16540 # Flag to hardcode \$libdir into a binary during linking.
16541 # This must work even if \$libdir does not exist
16542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16544 # If ld is used when linking, flag to hardcode \$libdir into a binary
16545 # during linking. This must work even if \$libdir does not exist.
16546 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16548 # Whether we need a single "-rpath" flag with a separated argument.
16549 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16551 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16552 # DIR into the resulting binary.
16553 hardcode_direct=$hardcode_direct_CXX
16555 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16556 # DIR into the resulting binary and the resulting library dependency is
16557 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16558 # library is relocated.
16559 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16561 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16562 # into the resulting binary.
16563 hardcode_minus_L=$hardcode_minus_L_CXX
16565 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16566 # into the resulting binary.
16567 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16569 # Set to "yes" if building a shared library automatically hardcodes DIR
16570 # into the library and all subsequent libraries and executables linked
16571 # against it.
16572 hardcode_automatic=$hardcode_automatic_CXX
16574 # Set to yes if linker adds runtime paths of dependent libraries
16575 # to runtime path list.
16576 inherit_rpath=$inherit_rpath_CXX
16578 # Whether libtool must link a program against all its dependency libraries.
16579 link_all_deplibs=$link_all_deplibs_CXX
16581 # Fix the shell variable \$srcfile for the compiler.
16582 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16584 # Set to "yes" if exported symbols are required.
16585 always_export_symbols=$always_export_symbols_CXX
16587 # The commands to list exported symbols.
16588 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16590 # Symbols that should not be listed in the preloaded symbols.
16591 exclude_expsyms=$lt_exclude_expsyms_CXX
16593 # Symbols that must always be exported.
16594 include_expsyms=$lt_include_expsyms_CXX
16596 # Commands necessary for linking programs (against libraries) with templates.
16597 prelink_cmds=$lt_prelink_cmds_CXX
16599 # Specify filename containing input files.
16600 file_list_spec=$lt_file_list_spec_CXX
16602 # How to hardcode a shared library path into an executable.
16603 hardcode_action=$hardcode_action_CXX
16605 # The directories searched by this compiler when creating a shared library.
16606 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16608 # Dependencies to place before and after the objects being linked to
16609 # create a shared library.
16610 predep_objects=$lt_predep_objects_CXX
16611 postdep_objects=$lt_postdep_objects_CXX
16612 predeps=$lt_predeps_CXX
16613 postdeps=$lt_postdeps_CXX
16615 # The library search path used internally by the compiler when linking
16616 # a shared library.
16617 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16619 # ### END LIBTOOL TAG CONFIG: CXX
16620 _LT_EOF
16624 esac
16625 done # for ac_tag
16628 as_fn_exit 0
16629 _ACEOF
16630 ac_clean_files=$ac_clean_files_save
16632 test $ac_write_fail = 0 ||
16633 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16636 # configure is writing to config.log, and then calls config.status.
16637 # config.status does its own redirection, appending to config.log.
16638 # Unfortunately, on DOS this fails, as config.log is still kept open
16639 # by configure, so config.status won't be able to write to it; its
16640 # output is simply discarded. So we exec the FD to /dev/null,
16641 # effectively closing config.log, so it can be properly (re)opened and
16642 # appended to by config.status. When coming back to configure, we
16643 # need to make the FD available again.
16644 if test "$no_create" != yes; then
16645 ac_cs_success=:
16646 ac_config_status_args=
16647 test "$silent" = yes &&
16648 ac_config_status_args="$ac_config_status_args --quiet"
16649 exec 5>/dev/null
16650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16651 exec 5>>config.log
16652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16653 # would make configure fail if this is the last instruction.
16654 $ac_cs_success || as_fn_exit $?
16656 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16658 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}