* constexpr.c (use_new_call): Remove #define.
[official-gcc.git] / libmpx / configure
blobaeaa483935245f84eb9d18813b64840146c50201
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for package-unused version-unused.
5 # Report bugs to <libmpx>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #((
93 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
97 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done
101 IFS=$as_save_IFS
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108 as_myself=$0
110 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
150 esac
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166 else
167 exitcode=1; echo positional parameters were not saved.
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180 PATH=/empty FPATH=/empty; export PATH FPATH
181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183 if (eval "$as_required") 2>/dev/null; then :
184 as_have_required=yes
185 else
186 as_have_required=no
188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
190 else
191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
195 IFS=$as_save_IFS
196 test -z "$as_dir" && as_dir=.
197 as_found=:
198 case $as_dir in #(
200 for as_base in sh bash ksh sh5; do
201 # Try only shells that exist, to save several forks.
202 as_shell=$as_dir/$as_base
203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 CONFIG_SHELL=$as_shell as_have_required=yes
206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 break 2
210 done;;
211 esac
212 as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216 CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
221 if test "x$CONFIG_SHELL" != x; then :
222 # We cannot yet assume a decent shell, so we have to provide a
223 # neutralization value for shells without unset; and this also
224 # works around shells that cannot unset nonexistent variables.
225 BASH_ENV=/dev/null
226 ENV=/dev/null
227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228 export CONFIG_SHELL
229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238 else
239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libmpx about your
240 $0: system, including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
244 exit 1
248 SHELL=${CONFIG_SHELL-/bin/sh}
249 export SHELL
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
257 # as_fn_unset VAR
258 # ---------------
259 # Portably unset VAR.
260 as_fn_unset ()
262 { eval $1=; unset $1;}
264 as_unset=as_fn_unset
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
269 as_fn_set_status ()
271 return $1
272 } # as_fn_set_status
274 # as_fn_exit STATUS
275 # -----------------
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277 as_fn_exit ()
279 set +e
280 as_fn_set_status $1
281 exit $1
282 } # as_fn_exit
284 # as_fn_mkdir_p
285 # -------------
286 # Create "$as_dir" as a directory, including parents if necessary.
287 as_fn_mkdir_p ()
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
315 /^X\(\/\/\)$/{
316 s//\1/
319 /^X\(\/\).*/{
320 s//\1/
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
330 } # as_fn_mkdir_p
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
336 # implementations.
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
340 eval $1+=\$2
342 else
343 as_fn_append ()
345 eval $1=\$$1\$2
347 fi # as_fn_append
349 # as_fn_arith ARG...
350 # ------------------
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
357 as_val=$(( $* ))
359 else
360 as_fn_arith ()
362 as_val=`expr "$@" || test $? -eq 1`
364 fi # as_fn_arith
367 # as_fn_error ERROR [LINENO LOG_FD]
368 # ---------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with status $?, using 1 if that was 0.
372 as_fn_error ()
374 as_status=$?; test $as_status -eq 0 && as_status=1
375 if test "$3"; then
376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379 $as_echo "$as_me: error: $1" >&2
380 as_fn_exit $as_status
381 } # as_fn_error
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
385 as_expr=expr
386 else
387 as_expr=false
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 as_basename=basename
392 else
393 as_basename=false
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398 else
399 as_dirname=false
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406 $as_echo X/"$0" |
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
408 s//\1/
411 /^X\/\(\/\/\)$/{
412 s//\1/
415 /^X\/\(\/\).*/{
416 s//\1/
419 s/.*/./; q'`
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
442 :lineno
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
455 . "./$as_me.lineno"
456 # Exit status is that of the last command.
457 exit
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
462 -n*)
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
468 esac;;
470 ECHO_N='-n';;
471 esac
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
476 else
477 rm -f conf$$.dir
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s='ln -s'
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
492 as_ln_s='cp -p'
494 else
495 as_ln_s='cp -p'
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
502 else
503 test -d ./-p && rmdir ./-p
504 as_mkdir_p=false
507 if test -x / >/dev/null 2>&1; then
508 as_test_x='test -x'
509 else
510 if ls -dL / >/dev/null 2>&1; then
511 as_ls_L_option=L
512 else
513 as_ls_L_option=
515 as_test_x='
516 eval sh -c '\''
517 if test -d "$1"; then
518 test -d "$1/.";
519 else
520 case $1 in #(
521 -*)set "./$1";;
522 esac;
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
525 '\'' sh
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536 SHELL=${CONFIG_SHELL-/bin/sh}
539 exec 7<&0 </dev/null 6>&1
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
547 # Initializations.
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
558 # Identity of this package.
559 PACKAGE_NAME='package-unused'
560 PACKAGE_TARNAME='package-unused'
561 PACKAGE_VERSION='version-unused'
562 PACKAGE_STRING='package-unused version-unused'
563 PACKAGE_BUGREPORT='libmpx'
564 PACKAGE_URL=''
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #ifdef STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # ifdef HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #ifdef HAVE_STRING_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #ifdef HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #ifdef HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
602 ac_subst_vars='am__EXEEXT_FALSE
603 am__EXEEXT_TRUE
604 LTLIBOBJS
605 LIBOBJS
606 XCFLAGS
607 enable_static
608 enable_shared
609 CXXCPP
610 OTOOL64
611 OTOOL
612 LIPO
613 NMEDIT
614 DSYMUTIL
615 OBJDUMP
616 LN_S
618 ac_ct_DUMPBIN
619 DUMPBIN
621 FGREP
623 LIBTOOL
624 MPX_AS_SUPPORTED_FALSE
625 MPX_AS_SUPPORTED_TRUE
626 RANLIB
629 CCASFLAGS
630 CCAS
631 ac_ct_CXX
632 CXXFLAGS
634 toolexeclibdir
635 toolexecdir
636 EGREP
637 GREP
639 OBJEXT
640 EXEEXT
641 ac_ct_CC
642 CPPFLAGS
643 LDFLAGS
644 CFLAGS
646 MAINT
647 MAINTAINER_MODE_FALSE
648 MAINTAINER_MODE_TRUE
649 multi_basedir
650 am__untar
651 am__tar
652 AMTAR
653 am__leading_dot
654 SET_MAKE
656 mkdir_p
657 MKDIR_P
658 INSTALL_STRIP_PROGRAM
659 STRIP
660 install_sh
661 MAKEINFO
662 AUTOHEADER
663 AUTOMAKE
664 AUTOCONF
665 ACLOCAL
666 VERSION
667 PACKAGE
668 CYGPATH_W
669 am__isrc
670 INSTALL_DATA
671 INSTALL_SCRIPT
672 INSTALL_PROGRAM
673 link_mpx
674 link_libmpx
675 LIBMPX_SUPPORTED_FALSE
676 LIBMPX_SUPPORTED_TRUE
677 LIBSTDCXX_RAW_CXX_LDFLAGS
678 LIBSTDCXX_RAW_CXX_CXXFLAGS
679 target_noncanonical
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_version_specific_runtime_libs
734 enable_multilib
735 enable_maintainer_mode
736 enable_shared
737 enable_static
738 with_pic
739 enable_fast_install
740 with_gnu_ld
741 enable_libtool_lock
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
752 CXXCPP'
755 # Initialize some variables set by options.
756 ac_init_help=
757 ac_init_version=false
758 ac_unrecognized_opts=
759 ac_unrecognized_sep=
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
762 cache_file=/dev/null
763 exec_prefix=NONE
764 no_create=
765 no_recursion=
766 prefix=NONE
767 program_prefix=NONE
768 program_suffix=NONE
769 program_transform_name=s,x,x,
770 silent=
771 site=
772 srcdir=
773 verbose=
774 x_includes=NONE
775 x_libraries=NONE
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir='${exec_prefix}/bin'
784 sbindir='${exec_prefix}/sbin'
785 libexecdir='${exec_prefix}/libexec'
786 datarootdir='${prefix}/share'
787 datadir='${datarootdir}'
788 sysconfdir='${prefix}/etc'
789 sharedstatedir='${prefix}/com'
790 localstatedir='${prefix}/var'
791 includedir='${prefix}/include'
792 oldincludedir='/usr/include'
793 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir='${datarootdir}/info'
795 htmldir='${docdir}'
796 dvidir='${docdir}'
797 pdfdir='${docdir}'
798 psdir='${docdir}'
799 libdir='${exec_prefix}/lib'
800 localedir='${datarootdir}/locale'
801 mandir='${datarootdir}/man'
803 ac_prev=
804 ac_dashdash=
805 for ac_option
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\$ac_option
810 ac_prev=
811 continue
814 case $ac_option in
815 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
816 *) ac_optarg=yes ;;
817 esac
819 # Accept the important Cygnus configure options, so we can diagnose typos.
821 case $ac_dashdash$ac_option in
823 ac_dashdash=yes ;;
825 -bindir | --bindir | --bindi | --bind | --bin | --bi)
826 ac_prev=bindir ;;
827 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
828 bindir=$ac_optarg ;;
830 -build | --build | --buil | --bui | --bu)
831 ac_prev=build_alias ;;
832 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
833 build_alias=$ac_optarg ;;
835 -cache-file | --cache-file | --cache-fil | --cache-fi \
836 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
837 ac_prev=cache_file ;;
838 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
839 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
840 cache_file=$ac_optarg ;;
842 --config-cache | -C)
843 cache_file=config.cache ;;
845 -datadir | --datadir | --datadi | --datad)
846 ac_prev=datadir ;;
847 -datadir=* | --datadir=* | --datadi=* | --datad=*)
848 datadir=$ac_optarg ;;
850 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
851 | --dataroo | --dataro | --datar)
852 ac_prev=datarootdir ;;
853 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
854 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
855 datarootdir=$ac_optarg ;;
857 -disable-* | --disable-*)
858 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
861 as_fn_error "invalid feature name: $ac_useropt"
862 ac_useropt_orig=$ac_useropt
863 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
864 case $ac_user_opts in
866 "enable_$ac_useropt"
867 "*) ;;
868 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
869 ac_unrecognized_sep=', ';;
870 esac
871 eval enable_$ac_useropt=no ;;
873 -docdir | --docdir | --docdi | --doc | --do)
874 ac_prev=docdir ;;
875 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
876 docdir=$ac_optarg ;;
878 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
879 ac_prev=dvidir ;;
880 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
881 dvidir=$ac_optarg ;;
883 -enable-* | --enable-*)
884 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
887 as_fn_error "invalid feature name: $ac_useropt"
888 ac_useropt_orig=$ac_useropt
889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
892 "enable_$ac_useropt"
893 "*) ;;
894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
895 ac_unrecognized_sep=', ';;
896 esac
897 eval enable_$ac_useropt=\$ac_optarg ;;
899 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
900 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
901 | --exec | --exe | --ex)
902 ac_prev=exec_prefix ;;
903 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
904 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
905 | --exec=* | --exe=* | --ex=*)
906 exec_prefix=$ac_optarg ;;
908 -gas | --gas | --ga | --g)
909 # Obsolete; use --with-gas.
910 with_gas=yes ;;
912 -help | --help | --hel | --he | -h)
913 ac_init_help=long ;;
914 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
915 ac_init_help=recursive ;;
916 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
917 ac_init_help=short ;;
919 -host | --host | --hos | --ho)
920 ac_prev=host_alias ;;
921 -host=* | --host=* | --hos=* | --ho=*)
922 host_alias=$ac_optarg ;;
924 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
925 ac_prev=htmldir ;;
926 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
927 | --ht=*)
928 htmldir=$ac_optarg ;;
930 -includedir | --includedir | --includedi | --included | --include \
931 | --includ | --inclu | --incl | --inc)
932 ac_prev=includedir ;;
933 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
934 | --includ=* | --inclu=* | --incl=* | --inc=*)
935 includedir=$ac_optarg ;;
937 -infodir | --infodir | --infodi | --infod | --info | --inf)
938 ac_prev=infodir ;;
939 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
940 infodir=$ac_optarg ;;
942 -libdir | --libdir | --libdi | --libd)
943 ac_prev=libdir ;;
944 -libdir=* | --libdir=* | --libdi=* | --libd=*)
945 libdir=$ac_optarg ;;
947 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
948 | --libexe | --libex | --libe)
949 ac_prev=libexecdir ;;
950 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
951 | --libexe=* | --libex=* | --libe=*)
952 libexecdir=$ac_optarg ;;
954 -localedir | --localedir | --localedi | --localed | --locale)
955 ac_prev=localedir ;;
956 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
957 localedir=$ac_optarg ;;
959 -localstatedir | --localstatedir | --localstatedi | --localstated \
960 | --localstate | --localstat | --localsta | --localst | --locals)
961 ac_prev=localstatedir ;;
962 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
963 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
964 localstatedir=$ac_optarg ;;
966 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
967 ac_prev=mandir ;;
968 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
969 mandir=$ac_optarg ;;
971 -nfp | --nfp | --nf)
972 # Obsolete; use --without-fp.
973 with_fp=no ;;
975 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
976 | --no-cr | --no-c | -n)
977 no_create=yes ;;
979 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
980 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
981 no_recursion=yes ;;
983 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
984 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
985 | --oldin | --oldi | --old | --ol | --o)
986 ac_prev=oldincludedir ;;
987 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
988 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
989 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
990 oldincludedir=$ac_optarg ;;
992 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
993 ac_prev=prefix ;;
994 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
995 prefix=$ac_optarg ;;
997 -program-prefix | --program-prefix | --program-prefi | --program-pref \
998 | --program-pre | --program-pr | --program-p)
999 ac_prev=program_prefix ;;
1000 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1001 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1002 program_prefix=$ac_optarg ;;
1004 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1005 | --program-suf | --program-su | --program-s)
1006 ac_prev=program_suffix ;;
1007 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1008 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1009 program_suffix=$ac_optarg ;;
1011 -program-transform-name | --program-transform-name \
1012 | --program-transform-nam | --program-transform-na \
1013 | --program-transform-n | --program-transform- \
1014 | --program-transform | --program-transfor \
1015 | --program-transfo | --program-transf \
1016 | --program-trans | --program-tran \
1017 | --progr-tra | --program-tr | --program-t)
1018 ac_prev=program_transform_name ;;
1019 -program-transform-name=* | --program-transform-name=* \
1020 | --program-transform-nam=* | --program-transform-na=* \
1021 | --program-transform-n=* | --program-transform-=* \
1022 | --program-transform=* | --program-transfor=* \
1023 | --program-transfo=* | --program-transf=* \
1024 | --program-trans=* | --program-tran=* \
1025 | --progr-tra=* | --program-tr=* | --program-t=*)
1026 program_transform_name=$ac_optarg ;;
1028 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1029 ac_prev=pdfdir ;;
1030 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1031 pdfdir=$ac_optarg ;;
1033 -psdir | --psdir | --psdi | --psd | --ps)
1034 ac_prev=psdir ;;
1035 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1036 psdir=$ac_optarg ;;
1038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1039 | -silent | --silent | --silen | --sile | --sil)
1040 silent=yes ;;
1042 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1043 ac_prev=sbindir ;;
1044 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1045 | --sbi=* | --sb=*)
1046 sbindir=$ac_optarg ;;
1048 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1049 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1050 | --sharedst | --shareds | --shared | --share | --shar \
1051 | --sha | --sh)
1052 ac_prev=sharedstatedir ;;
1053 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1054 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1055 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1056 | --sha=* | --sh=*)
1057 sharedstatedir=$ac_optarg ;;
1059 -site | --site | --sit)
1060 ac_prev=site ;;
1061 -site=* | --site=* | --sit=*)
1062 site=$ac_optarg ;;
1064 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1065 ac_prev=srcdir ;;
1066 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1067 srcdir=$ac_optarg ;;
1069 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1070 | --syscon | --sysco | --sysc | --sys | --sy)
1071 ac_prev=sysconfdir ;;
1072 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1073 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1074 sysconfdir=$ac_optarg ;;
1076 -target | --target | --targe | --targ | --tar | --ta | --t)
1077 ac_prev=target_alias ;;
1078 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1079 target_alias=$ac_optarg ;;
1081 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1082 verbose=yes ;;
1084 -version | --version | --versio | --versi | --vers | -V)
1085 ac_init_version=: ;;
1087 -with-* | --with-*)
1088 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1089 # Reject names that are not valid shell variable names.
1090 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1091 as_fn_error "invalid package name: $ac_useropt"
1092 ac_useropt_orig=$ac_useropt
1093 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1094 case $ac_user_opts in
1096 "with_$ac_useropt"
1097 "*) ;;
1098 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1099 ac_unrecognized_sep=', ';;
1100 esac
1101 eval with_$ac_useropt=\$ac_optarg ;;
1103 -without-* | --without-*)
1104 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1105 # Reject names that are not valid shell variable names.
1106 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1107 as_fn_error "invalid package name: $ac_useropt"
1108 ac_useropt_orig=$ac_useropt
1109 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1110 case $ac_user_opts in
1112 "with_$ac_useropt"
1113 "*) ;;
1114 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1115 ac_unrecognized_sep=', ';;
1116 esac
1117 eval with_$ac_useropt=no ;;
1119 --x)
1120 # Obsolete; use --with-x.
1121 with_x=yes ;;
1123 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1124 | --x-incl | --x-inc | --x-in | --x-i)
1125 ac_prev=x_includes ;;
1126 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1127 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1128 x_includes=$ac_optarg ;;
1130 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1131 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1132 ac_prev=x_libraries ;;
1133 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1134 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1135 x_libraries=$ac_optarg ;;
1137 -*) as_fn_error "unrecognized option: \`$ac_option'
1138 Try \`$0 --help' for more information."
1141 *=*)
1142 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1143 # Reject names that are not valid shell variable names.
1144 case $ac_envvar in #(
1145 '' | [0-9]* | *[!_$as_cr_alnum]* )
1146 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1147 esac
1148 eval $ac_envvar=\$ac_optarg
1149 export $ac_envvar ;;
1152 # FIXME: should be removed in autoconf 3.0.
1153 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1154 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1155 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1156 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1159 esac
1160 done
1162 if test -n "$ac_prev"; then
1163 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1164 as_fn_error "missing argument to $ac_option"
1167 if test -n "$ac_unrecognized_opts"; then
1168 case $enable_option_checking in
1169 no) ;;
1170 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1171 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1172 esac
1175 # Check all directory arguments for consistency.
1176 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1177 datadir sysconfdir sharedstatedir localstatedir includedir \
1178 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1179 libdir localedir mandir
1181 eval ac_val=\$$ac_var
1182 # Remove trailing slashes.
1183 case $ac_val in
1184 */ )
1185 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1186 eval $ac_var=\$ac_val;;
1187 esac
1188 # Be sure to have absolute directory names.
1189 case $ac_val in
1190 [\\/$]* | ?:[\\/]* ) continue;;
1191 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1192 esac
1193 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1194 done
1196 # There might be people who depend on the old broken behavior: `$host'
1197 # used to hold the argument of --host etc.
1198 # FIXME: To remove some day.
1199 build=$build_alias
1200 host=$host_alias
1201 target=$target_alias
1203 # FIXME: To remove some day.
1204 if test "x$host_alias" != x; then
1205 if test "x$build_alias" = x; then
1206 cross_compiling=maybe
1207 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1208 If a cross compiler is detected then cross compile mode will be used." >&2
1209 elif test "x$build_alias" != "x$host_alias"; then
1210 cross_compiling=yes
1214 ac_tool_prefix=
1215 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1217 test "$silent" = yes && exec 6>/dev/null
1220 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1221 ac_ls_di=`ls -di .` &&
1222 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1223 as_fn_error "working directory cannot be determined"
1224 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1225 as_fn_error "pwd does not report name of working directory"
1228 # Find the source files, if location was not specified.
1229 if test -z "$srcdir"; then
1230 ac_srcdir_defaulted=yes
1231 # Try the directory containing this script, then the parent directory.
1232 ac_confdir=`$as_dirname -- "$as_myself" ||
1233 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1234 X"$as_myself" : 'X\(//\)[^/]' \| \
1235 X"$as_myself" : 'X\(//\)$' \| \
1236 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1237 $as_echo X"$as_myself" |
1238 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1239 s//\1/
1242 /^X\(\/\/\)[^/].*/{
1243 s//\1/
1246 /^X\(\/\/\)$/{
1247 s//\1/
1250 /^X\(\/\).*/{
1251 s//\1/
1254 s/.*/./; q'`
1255 srcdir=$ac_confdir
1256 if test ! -r "$srcdir/$ac_unique_file"; then
1257 srcdir=..
1259 else
1260 ac_srcdir_defaulted=no
1262 if test ! -r "$srcdir/$ac_unique_file"; then
1263 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1264 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1266 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1267 ac_abs_confdir=`(
1268 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1269 pwd)`
1270 # When building in place, set srcdir=.
1271 if test "$ac_abs_confdir" = "$ac_pwd"; then
1272 srcdir=.
1274 # Remove unnecessary trailing slashes from srcdir.
1275 # Double slashes in file names in object file debugging info
1276 # mess up M-x gdb in Emacs.
1277 case $srcdir in
1278 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1279 esac
1280 for ac_var in $ac_precious_vars; do
1281 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1282 eval ac_env_${ac_var}_value=\$${ac_var}
1283 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1284 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1285 done
1288 # Report the --help message.
1290 if test "$ac_init_help" = "long"; then
1291 # Omit some internal or obsolete options to make the list less imposing.
1292 # This message is too long to be a string in the A/UX 3.1 sh.
1293 cat <<_ACEOF
1294 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1296 Usage: $0 [OPTION]... [VAR=VALUE]...
1298 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1299 VAR=VALUE. See below for descriptions of some of the useful variables.
1301 Defaults for the options are specified in brackets.
1303 Configuration:
1304 -h, --help display this help and exit
1305 --help=short display options specific to this package
1306 --help=recursive display the short help of all the included packages
1307 -V, --version display version information and exit
1308 -q, --quiet, --silent do not print \`checking...' messages
1309 --cache-file=FILE cache test results in FILE [disabled]
1310 -C, --config-cache alias for \`--cache-file=config.cache'
1311 -n, --no-create do not create output files
1312 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1314 Installation directories:
1315 --prefix=PREFIX install architecture-independent files in PREFIX
1316 [$ac_default_prefix]
1317 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1318 [PREFIX]
1320 By default, \`make install' will install all the files in
1321 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1322 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1323 for instance \`--prefix=\$HOME'.
1325 For better control, use the options below.
1327 Fine tuning of the installation directories:
1328 --bindir=DIR user executables [EPREFIX/bin]
1329 --sbindir=DIR system admin executables [EPREFIX/sbin]
1330 --libexecdir=DIR program executables [EPREFIX/libexec]
1331 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1332 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1333 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1334 --libdir=DIR object code libraries [EPREFIX/lib]
1335 --includedir=DIR C header files [PREFIX/include]
1336 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1337 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1338 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1339 --infodir=DIR info documentation [DATAROOTDIR/info]
1340 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1341 --mandir=DIR man documentation [DATAROOTDIR/man]
1342 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused]
1343 --htmldir=DIR html documentation [DOCDIR]
1344 --dvidir=DIR dvi documentation [DOCDIR]
1345 --pdfdir=DIR pdf documentation [DOCDIR]
1346 --psdir=DIR ps documentation [DOCDIR]
1347 _ACEOF
1349 cat <<\_ACEOF
1351 Program names:
1352 --program-prefix=PREFIX prepend PREFIX to installed program names
1353 --program-suffix=SUFFIX append SUFFIX to installed program names
1354 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1356 System types:
1357 --build=BUILD configure for building on BUILD [guessed]
1358 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1359 --target=TARGET configure for building compilers for TARGET [HOST]
1360 _ACEOF
1363 if test -n "$ac_init_help"; then
1364 case $ac_init_help in
1365 short | recursive ) echo "Configuration of package-unused version-unused:";;
1366 esac
1367 cat <<\_ACEOF
1369 Optional Features:
1370 --disable-option-checking ignore unrecognized --enable/--with options
1371 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1372 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1373 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1374 --enable-multilib build many library versions (default)
1375 --enable-maintainer-mode enable make rules and dependencies not useful
1376 (and sometimes confusing) to the casual installer
1377 --enable-shared[=PKGS] build shared libraries [default=yes]
1378 --enable-static[=PKGS] build static libraries [default=yes]
1379 --enable-fast-install[=PKGS]
1380 optimize for fast installation [default=yes]
1381 --disable-libtool-lock avoid locking (might break parallel builds)
1383 Optional Packages:
1384 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1385 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1386 --with-pic try to use only PIC/non-PIC objects [default=use
1387 both]
1388 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1390 Some influential environment variables:
1391 CC C compiler command
1392 CFLAGS C compiler flags
1393 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1394 nonstandard directory <lib dir>
1395 LIBS libraries to pass to the linker, e.g. -l<library>
1396 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1397 you have headers in a nonstandard directory <include dir>
1398 CPP C preprocessor
1399 CXX C++ compiler command
1400 CXXFLAGS C++ compiler flags
1401 CXXCPP C++ preprocessor
1403 Use these variables to override the choices made by `configure' or to help
1404 it to find libraries and programs with nonstandard names/locations.
1406 Report bugs to <libmpx>.
1407 _ACEOF
1408 ac_status=$?
1411 if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
1413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1414 test -d "$ac_dir" ||
1415 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1416 continue
1417 ac_builddir=.
1419 case "$ac_dir" in
1420 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1422 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1423 # A ".." for each directory in $ac_dir_suffix.
1424 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1425 case $ac_top_builddir_sub in
1426 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1427 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1428 esac ;;
1429 esac
1430 ac_abs_top_builddir=$ac_pwd
1431 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1432 # for backward compatibility:
1433 ac_top_builddir=$ac_top_build_prefix
1435 case $srcdir in
1436 .) # We are building in place.
1437 ac_srcdir=.
1438 ac_top_srcdir=$ac_top_builddir_sub
1439 ac_abs_top_srcdir=$ac_pwd ;;
1440 [\\/]* | ?:[\\/]* ) # Absolute name.
1441 ac_srcdir=$srcdir$ac_dir_suffix;
1442 ac_top_srcdir=$srcdir
1443 ac_abs_top_srcdir=$srcdir ;;
1444 *) # Relative name.
1445 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1446 ac_top_srcdir=$ac_top_build_prefix$srcdir
1447 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1448 esac
1449 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1451 cd "$ac_dir" || { ac_status=$?; continue; }
1452 # Check for guested configure.
1453 if test -f "$ac_srcdir/configure.gnu"; then
1454 echo &&
1455 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1456 elif test -f "$ac_srcdir/configure"; then
1457 echo &&
1458 $SHELL "$ac_srcdir/configure" --help=recursive
1459 else
1460 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1461 fi || ac_status=$?
1462 cd "$ac_pwd" || { ac_status=$?; break; }
1463 done
1466 test -n "$ac_init_help" && exit $ac_status
1467 if $ac_init_version; then
1468 cat <<\_ACEOF
1469 package-unused configure version-unused
1470 generated by GNU Autoconf 2.64
1472 Copyright (C) 2009 Free Software Foundation, Inc.
1473 This configure script is free software; the Free Software Foundation
1474 gives unlimited permission to copy, distribute and modify it.
1475 _ACEOF
1476 exit
1479 ## ------------------------ ##
1480 ## Autoconf initialization. ##
1481 ## ------------------------ ##
1483 # ac_fn_c_try_compile LINENO
1484 # --------------------------
1485 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1486 ac_fn_c_try_compile ()
1488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1489 rm -f conftest.$ac_objext
1490 if { { ac_try="$ac_compile"
1491 case "(($ac_try" in
1492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1493 *) ac_try_echo=$ac_try;;
1494 esac
1495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1496 $as_echo "$ac_try_echo"; } >&5
1497 (eval "$ac_compile") 2>conftest.err
1498 ac_status=$?
1499 if test -s conftest.err; then
1500 grep -v '^ *+' conftest.err >conftest.er1
1501 cat conftest.er1 >&5
1502 mv -f conftest.er1 conftest.err
1504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1505 test $ac_status = 0; } && {
1506 test -z "$ac_c_werror_flag" ||
1507 test ! -s conftest.err
1508 } && test -s conftest.$ac_objext; then :
1509 ac_retval=0
1510 else
1511 $as_echo "$as_me: failed program was:" >&5
1512 sed 's/^/| /' conftest.$ac_ext >&5
1514 ac_retval=1
1516 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1517 return $ac_retval
1519 } # ac_fn_c_try_compile
1521 # ac_fn_c_try_cpp LINENO
1522 # ----------------------
1523 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1524 ac_fn_c_try_cpp ()
1526 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1527 if { { ac_try="$ac_cpp conftest.$ac_ext"
1528 case "(($ac_try" in
1529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1530 *) ac_try_echo=$ac_try;;
1531 esac
1532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1533 $as_echo "$ac_try_echo"; } >&5
1534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1535 ac_status=$?
1536 if test -s conftest.err; then
1537 grep -v '^ *+' conftest.err >conftest.er1
1538 cat conftest.er1 >&5
1539 mv -f conftest.er1 conftest.err
1541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1542 test $ac_status = 0; } >/dev/null && {
1543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1544 test ! -s conftest.err
1545 }; then :
1546 ac_retval=0
1547 else
1548 $as_echo "$as_me: failed program was:" >&5
1549 sed 's/^/| /' conftest.$ac_ext >&5
1551 ac_retval=1
1553 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1554 return $ac_retval
1556 } # ac_fn_c_try_cpp
1558 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1559 # -------------------------------------------------------
1560 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1561 # the include files in INCLUDES and setting the cache variable VAR
1562 # accordingly.
1563 ac_fn_c_check_header_mongrel ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1568 $as_echo_n "checking for $2... " >&6; }
1569 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1570 $as_echo_n "(cached) " >&6
1572 eval ac_res=\$$3
1573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1574 $as_echo "$ac_res" >&6; }
1575 else
1576 # Is the header compilable?
1577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1578 $as_echo_n "checking $2 usability... " >&6; }
1579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1580 /* end confdefs.h. */
1582 #include <$2>
1583 _ACEOF
1584 if ac_fn_c_try_compile "$LINENO"; then :
1585 ac_header_compiler=yes
1586 else
1587 ac_header_compiler=no
1589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1591 $as_echo "$ac_header_compiler" >&6; }
1593 # Is the header present?
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1595 $as_echo_n "checking $2 presence... " >&6; }
1596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1597 /* end confdefs.h. */
1598 #include <$2>
1599 _ACEOF
1600 if ac_fn_c_try_cpp "$LINENO"; then :
1601 ac_header_preproc=yes
1602 else
1603 ac_header_preproc=no
1605 rm -f conftest.err conftest.$ac_ext
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1607 $as_echo "$ac_header_preproc" >&6; }
1609 # So? What about this header?
1610 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1611 yes:no: )
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1613 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1615 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1617 no:yes:* )
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1619 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1621 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1623 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1625 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1627 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1628 ( cat <<\_ASBOX
1629 ## --------------------- ##
1630 ## Report this to libmpx ##
1631 ## --------------------- ##
1632 _ASBOX
1633 ) | sed "s/^/$as_me: WARNING: /" >&2
1635 esac
1636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1637 $as_echo_n "checking for $2... " >&6; }
1638 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1639 $as_echo_n "(cached) " >&6
1640 else
1641 eval "$3=\$ac_header_compiler"
1643 eval ac_res=\$$3
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1645 $as_echo "$ac_res" >&6; }
1647 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 } # ac_fn_c_check_header_mongrel
1651 # ac_fn_c_try_run LINENO
1652 # ----------------------
1653 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1654 # that executables *can* be run.
1655 ac_fn_c_try_run ()
1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1658 if { { ac_try="$ac_link"
1659 case "(($ac_try" in
1660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661 *) ac_try_echo=$ac_try;;
1662 esac
1663 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664 $as_echo "$ac_try_echo"; } >&5
1665 (eval "$ac_link") 2>&5
1666 ac_status=$?
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1669 { { case "(($ac_try" in
1670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1671 *) ac_try_echo=$ac_try;;
1672 esac
1673 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1674 $as_echo "$ac_try_echo"; } >&5
1675 (eval "$ac_try") 2>&5
1676 ac_status=$?
1677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1678 test $ac_status = 0; }; }; then :
1679 ac_retval=0
1680 else
1681 $as_echo "$as_me: program exited with status $ac_status" >&5
1682 $as_echo "$as_me: failed program was:" >&5
1683 sed 's/^/| /' conftest.$ac_ext >&5
1685 ac_retval=$ac_status
1687 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1688 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1689 return $ac_retval
1691 } # ac_fn_c_try_run
1693 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1694 # -------------------------------------------------------
1695 # Tests whether HEADER exists and can be compiled using the include files in
1696 # INCLUDES, setting the cache variable VAR accordingly.
1697 ac_fn_c_check_header_compile ()
1699 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701 $as_echo_n "checking for $2... " >&6; }
1702 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1703 $as_echo_n "(cached) " >&6
1704 else
1705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1706 /* end confdefs.h. */
1708 #include <$2>
1709 _ACEOF
1710 if ac_fn_c_try_compile "$LINENO"; then :
1711 eval "$3=yes"
1712 else
1713 eval "$3=no"
1715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1717 eval ac_res=\$$3
1718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1719 $as_echo "$ac_res" >&6; }
1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 } # ac_fn_c_check_header_compile
1724 # ac_fn_c_try_link LINENO
1725 # -----------------------
1726 # Try to link conftest.$ac_ext, and return whether this succeeded.
1727 ac_fn_c_try_link ()
1729 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1730 rm -f conftest.$ac_objext conftest$ac_exeext
1731 if { { ac_try="$ac_link"
1732 case "(($ac_try" in
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734 *) ac_try_echo=$ac_try;;
1735 esac
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737 $as_echo "$ac_try_echo"; } >&5
1738 (eval "$ac_link") 2>conftest.err
1739 ac_status=$?
1740 if test -s conftest.err; then
1741 grep -v '^ *+' conftest.err >conftest.er1
1742 cat conftest.er1 >&5
1743 mv -f conftest.er1 conftest.err
1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1746 test $ac_status = 0; } && {
1747 test -z "$ac_c_werror_flag" ||
1748 test ! -s conftest.err
1749 } && test -s conftest$ac_exeext && {
1750 test "$cross_compiling" = yes ||
1751 $as_test_x conftest$ac_exeext
1752 }; then :
1753 ac_retval=0
1754 else
1755 $as_echo "$as_me: failed program was:" >&5
1756 sed 's/^/| /' conftest.$ac_ext >&5
1758 ac_retval=1
1760 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1761 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1762 # interfere with the next link command; also delete a directory that is
1763 # left behind by Apple's compiler. We do this before executing the actions.
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 return $ac_retval
1768 } # ac_fn_c_try_link
1770 # ac_fn_c_check_func LINENO FUNC VAR
1771 # ----------------------------------
1772 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1773 ac_fn_c_check_func ()
1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1777 $as_echo_n "checking for $2... " >&6; }
1778 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1779 $as_echo_n "(cached) " >&6
1780 else
1781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1782 /* end confdefs.h. */
1783 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1784 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1785 #define $2 innocuous_$2
1787 /* System header to define __stub macros and hopefully few prototypes,
1788 which can conflict with char $2 (); below.
1789 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1790 <limits.h> exists even on freestanding compilers. */
1792 #ifdef __STDC__
1793 # include <limits.h>
1794 #else
1795 # include <assert.h>
1796 #endif
1798 #undef $2
1800 /* Override any GCC internal prototype to avoid an error.
1801 Use char because int might match the return type of a GCC
1802 builtin and then its argument prototype would still apply. */
1803 #ifdef __cplusplus
1804 extern "C"
1805 #endif
1806 char $2 ();
1807 /* The GNU C library defines this for functions which it implements
1808 to always fail with ENOSYS. Some functions are actually named
1809 something starting with __ and the normal name is an alias. */
1810 #if defined __stub_$2 || defined __stub___$2
1811 choke me
1812 #endif
1815 main ()
1817 return $2 ();
1819 return 0;
1821 _ACEOF
1822 if ac_fn_c_try_link "$LINENO"; then :
1823 eval "$3=yes"
1824 else
1825 eval "$3=no"
1827 rm -f core conftest.err conftest.$ac_objext \
1828 conftest$ac_exeext conftest.$ac_ext
1830 eval ac_res=\$$3
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1832 $as_echo "$ac_res" >&6; }
1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1835 } # ac_fn_c_check_func
1837 # ac_fn_cxx_try_compile LINENO
1838 # ----------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_compile ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1852 ac_status=$?
1853 if test -s conftest.err; then
1854 grep -v '^ *+' conftest.err >conftest.er1
1855 cat conftest.er1 >&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.$ac_objext; then :
1863 ac_retval=0
1864 else
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.$ac_ext >&5
1868 ac_retval=1
1870 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 return $ac_retval
1873 } # ac_fn_cxx_try_compile
1875 # ac_fn_cxx_try_cpp LINENO
1876 # ------------------------
1877 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_cxx_try_cpp ()
1880 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1881 if { { ac_try="$ac_cpp conftest.$ac_ext"
1882 case "(($ac_try" in
1883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 *) ac_try_echo=$ac_try;;
1885 esac
1886 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1887 $as_echo "$ac_try_echo"; } >&5
1888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1889 ac_status=$?
1890 if test -s conftest.err; then
1891 grep -v '^ *+' conftest.err >conftest.er1
1892 cat conftest.er1 >&5
1893 mv -f conftest.er1 conftest.err
1895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1896 test $ac_status = 0; } >/dev/null && {
1897 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1898 test ! -s conftest.err
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1908 return $ac_retval
1910 } # ac_fn_cxx_try_cpp
1912 # ac_fn_cxx_try_link LINENO
1913 # -------------------------
1914 # Try to link conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_cxx_try_link ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 rm -f conftest.$ac_objext conftest$ac_exeext
1919 if { { ac_try="$ac_link"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_link") 2>conftest.err
1927 ac_status=$?
1928 if test -s conftest.err; then
1929 grep -v '^ *+' conftest.err >conftest.er1
1930 cat conftest.er1 >&5
1931 mv -f conftest.er1 conftest.err
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && {
1935 test -z "$ac_cxx_werror_flag" ||
1936 test ! -s conftest.err
1937 } && test -s conftest$ac_exeext && {
1938 test "$cross_compiling" = yes ||
1939 $as_test_x conftest$ac_exeext
1940 }; then :
1941 ac_retval=0
1942 else
1943 $as_echo "$as_me: failed program was:" >&5
1944 sed 's/^/| /' conftest.$ac_ext >&5
1946 ac_retval=1
1948 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1949 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1950 # interfere with the next link command; also delete a directory that is
1951 # left behind by Apple's compiler. We do this before executing the actions.
1952 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954 return $ac_retval
1956 } # ac_fn_cxx_try_link
1957 cat >config.log <<_ACEOF
1958 This file contains any messages produced by compilers while
1959 running configure, to aid debugging if configure makes a mistake.
1961 It was created by package-unused $as_me version-unused, which was
1962 generated by GNU Autoconf 2.64. Invocation command line was
1964 $ $0 $@
1966 _ACEOF
1967 exec 5>>config.log
1969 cat <<_ASUNAME
1970 ## --------- ##
1971 ## Platform. ##
1972 ## --------- ##
1974 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1975 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1976 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1977 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1978 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1980 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1981 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1983 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1984 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1985 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1986 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1987 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1988 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1989 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1991 _ASUNAME
1993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1994 for as_dir in $PATH
1996 IFS=$as_save_IFS
1997 test -z "$as_dir" && as_dir=.
1998 $as_echo "PATH: $as_dir"
1999 done
2000 IFS=$as_save_IFS
2002 } >&5
2004 cat >&5 <<_ACEOF
2007 ## ----------- ##
2008 ## Core tests. ##
2009 ## ----------- ##
2011 _ACEOF
2014 # Keep a trace of the command line.
2015 # Strip out --no-create and --no-recursion so they do not pile up.
2016 # Strip out --silent because we don't want to record it for future runs.
2017 # Also quote any args containing shell meta-characters.
2018 # Make two passes to allow for proper duplicate-argument suppression.
2019 ac_configure_args=
2020 ac_configure_args0=
2021 ac_configure_args1=
2022 ac_must_keep_next=false
2023 for ac_pass in 1 2
2025 for ac_arg
2027 case $ac_arg in
2028 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2029 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2030 | -silent | --silent | --silen | --sile | --sil)
2031 continue ;;
2032 *\'*)
2033 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2034 esac
2035 case $ac_pass in
2036 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2038 as_fn_append ac_configure_args1 " '$ac_arg'"
2039 if test $ac_must_keep_next = true; then
2040 ac_must_keep_next=false # Got value, back to normal.
2041 else
2042 case $ac_arg in
2043 *=* | --config-cache | -C | -disable-* | --disable-* \
2044 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2045 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2046 | -with-* | --with-* | -without-* | --without-* | --x)
2047 case "$ac_configure_args0 " in
2048 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2049 esac
2051 -* ) ac_must_keep_next=true ;;
2052 esac
2054 as_fn_append ac_configure_args " '$ac_arg'"
2056 esac
2057 done
2058 done
2059 { ac_configure_args0=; unset ac_configure_args0;}
2060 { ac_configure_args1=; unset ac_configure_args1;}
2062 # When interrupted or exit'd, cleanup temporary files, and complete
2063 # config.log. We remove comments because anyway the quotes in there
2064 # would cause problems or look ugly.
2065 # WARNING: Use '\'' to represent an apostrophe within the trap.
2066 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2067 trap 'exit_status=$?
2068 # Save into config.log some information that might help in debugging.
2070 echo
2072 cat <<\_ASBOX
2073 ## ---------------- ##
2074 ## Cache variables. ##
2075 ## ---------------- ##
2076 _ASBOX
2077 echo
2078 # The following way of writing the cache mishandles newlines in values,
2080 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2081 eval ac_val=\$$ac_var
2082 case $ac_val in #(
2083 *${as_nl}*)
2084 case $ac_var in #(
2085 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2086 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2087 esac
2088 case $ac_var in #(
2089 _ | IFS | as_nl) ;; #(
2090 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2091 *) { eval $ac_var=; unset $ac_var;} ;;
2092 esac ;;
2093 esac
2094 done
2095 (set) 2>&1 |
2096 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2097 *${as_nl}ac_space=\ *)
2098 sed -n \
2099 "s/'\''/'\''\\\\'\'''\''/g;
2100 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2101 ;; #(
2103 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2105 esac |
2106 sort
2108 echo
2110 cat <<\_ASBOX
2111 ## ----------------- ##
2112 ## Output variables. ##
2113 ## ----------------- ##
2114 _ASBOX
2115 echo
2116 for ac_var in $ac_subst_vars
2118 eval ac_val=\$$ac_var
2119 case $ac_val in
2120 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2121 esac
2122 $as_echo "$ac_var='\''$ac_val'\''"
2123 done | sort
2124 echo
2126 if test -n "$ac_subst_files"; then
2127 cat <<\_ASBOX
2128 ## ------------------- ##
2129 ## File substitutions. ##
2130 ## ------------------- ##
2131 _ASBOX
2132 echo
2133 for ac_var in $ac_subst_files
2135 eval ac_val=\$$ac_var
2136 case $ac_val in
2137 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2138 esac
2139 $as_echo "$ac_var='\''$ac_val'\''"
2140 done | sort
2141 echo
2144 if test -s confdefs.h; then
2145 cat <<\_ASBOX
2146 ## ----------- ##
2147 ## confdefs.h. ##
2148 ## ----------- ##
2149 _ASBOX
2150 echo
2151 cat confdefs.h
2152 echo
2154 test "$ac_signal" != 0 &&
2155 $as_echo "$as_me: caught signal $ac_signal"
2156 $as_echo "$as_me: exit $exit_status"
2157 } >&5
2158 rm -f core *.core core.conftest.* &&
2159 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2160 exit $exit_status
2162 for ac_signal in 1 2 13 15; do
2163 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2164 done
2165 ac_signal=0
2167 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2168 rm -f -r conftest* confdefs.h
2170 $as_echo "/* confdefs.h */" > confdefs.h
2172 # Predefined preprocessor variables.
2174 cat >>confdefs.h <<_ACEOF
2175 #define PACKAGE_NAME "$PACKAGE_NAME"
2176 _ACEOF
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2180 _ACEOF
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2184 _ACEOF
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_STRING "$PACKAGE_STRING"
2188 _ACEOF
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2192 _ACEOF
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_URL "$PACKAGE_URL"
2196 _ACEOF
2199 # Let the site file select an alternate cache file if it wants to.
2200 # Prefer an explicitly selected file to automatically selected ones.
2201 ac_site_file1=NONE
2202 ac_site_file2=NONE
2203 if test -n "$CONFIG_SITE"; then
2204 ac_site_file1=$CONFIG_SITE
2205 elif test "x$prefix" != xNONE; then
2206 ac_site_file1=$prefix/share/config.site
2207 ac_site_file2=$prefix/etc/config.site
2208 else
2209 ac_site_file1=$ac_default_prefix/share/config.site
2210 ac_site_file2=$ac_default_prefix/etc/config.site
2212 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2214 test "x$ac_site_file" = xNONE && continue
2215 if test -r "$ac_site_file"; then
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2217 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2218 sed 's/^/| /' "$ac_site_file" >&5
2219 . "$ac_site_file"
2221 done
2223 if test -r "$cache_file"; then
2224 # Some versions of bash will fail to source /dev/null (special
2225 # files actually), so we avoid doing that.
2226 if test -f "$cache_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2228 $as_echo "$as_me: loading cache $cache_file" >&6;}
2229 case $cache_file in
2230 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2231 *) . "./$cache_file";;
2232 esac
2234 else
2235 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2236 $as_echo "$as_me: creating cache $cache_file" >&6;}
2237 >$cache_file
2240 # Check that the precious variables saved in the cache have kept the same
2241 # value.
2242 ac_cache_corrupted=false
2243 for ac_var in $ac_precious_vars; do
2244 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2245 eval ac_new_set=\$ac_env_${ac_var}_set
2246 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2247 eval ac_new_val=\$ac_env_${ac_var}_value
2248 case $ac_old_set,$ac_new_set in
2249 set,)
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2252 ac_cache_corrupted=: ;;
2253 ,set)
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2255 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2256 ac_cache_corrupted=: ;;
2257 ,);;
2259 if test "x$ac_old_val" != "x$ac_new_val"; then
2260 # differences in whitespace do not lead to failure.
2261 ac_old_val_w=`echo x $ac_old_val`
2262 ac_new_val_w=`echo x $ac_new_val`
2263 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2265 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2266 ac_cache_corrupted=:
2267 else
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2269 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2270 eval $ac_var=\$ac_old_val
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2273 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2275 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2276 fi;;
2277 esac
2278 # Pass precious variables to config.status.
2279 if test "$ac_new_set" = set; then
2280 case $ac_new_val in
2281 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2282 *) ac_arg=$ac_var=$ac_new_val ;;
2283 esac
2284 case " $ac_configure_args " in
2285 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2286 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2287 esac
2289 done
2290 if $ac_cache_corrupted; then
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2292 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2294 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2295 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2297 ## -------------------- ##
2298 ## Main body of script. ##
2299 ## -------------------- ##
2301 ac_ext=c
2302 ac_cpp='$CPP $CPPFLAGS'
2303 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2304 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2305 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2312 # -------
2313 # Options
2314 # -------
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2316 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2317 # Check whether --enable-version-specific-runtime-libs was given.
2318 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2319 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2320 yes) version_specific_libs=yes ;;
2321 no) version_specific_libs=no ;;
2322 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2323 esac
2324 else
2325 version_specific_libs=no
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2329 $as_echo "$version_specific_libs" >&6; }
2331 # Do not delete or change the following two lines. For why, see
2332 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2333 ac_aux_dir=
2334 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2335 for ac_t in install-sh install.sh shtool; do
2336 if test -f "$ac_dir/$ac_t"; then
2337 ac_aux_dir=$ac_dir
2338 ac_install_sh="$ac_aux_dir/$ac_t -c"
2339 break 2
2341 done
2342 done
2343 if test -z "$ac_aux_dir"; then
2344 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2347 # These three variables are undocumented and unsupported,
2348 # and are intended to be withdrawn in a future Autoconf release.
2349 # They can cause serious problems if a builder's source tree is in a directory
2350 # whose full name contains unusual characters.
2351 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2352 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2353 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2356 # Make sure we can run config.sub.
2357 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2358 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2361 $as_echo_n "checking build system type... " >&6; }
2362 if test "${ac_cv_build+set}" = set; then :
2363 $as_echo_n "(cached) " >&6
2364 else
2365 ac_build_alias=$build_alias
2366 test "x$ac_build_alias" = x &&
2367 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2368 test "x$ac_build_alias" = x &&
2369 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2370 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2371 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2375 $as_echo "$ac_cv_build" >&6; }
2376 case $ac_cv_build in
2377 *-*-*) ;;
2378 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2379 esac
2380 build=$ac_cv_build
2381 ac_save_IFS=$IFS; IFS='-'
2382 set x $ac_cv_build
2383 shift
2384 build_cpu=$1
2385 build_vendor=$2
2386 shift; shift
2387 # Remember, the first character of IFS is used to create $*,
2388 # except with old shells:
2389 build_os=$*
2390 IFS=$ac_save_IFS
2391 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2395 $as_echo_n "checking host system type... " >&6; }
2396 if test "${ac_cv_host+set}" = set; then :
2397 $as_echo_n "(cached) " >&6
2398 else
2399 if test "x$host_alias" = x; then
2400 ac_cv_host=$ac_cv_build
2401 else
2402 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2403 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2408 $as_echo "$ac_cv_host" >&6; }
2409 case $ac_cv_host in
2410 *-*-*) ;;
2411 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2412 esac
2413 host=$ac_cv_host
2414 ac_save_IFS=$IFS; IFS='-'
2415 set x $ac_cv_host
2416 shift
2417 host_cpu=$1
2418 host_vendor=$2
2419 shift; shift
2420 # Remember, the first character of IFS is used to create $*,
2421 # except with old shells:
2422 host_os=$*
2423 IFS=$ac_save_IFS
2424 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2428 $as_echo_n "checking target system type... " >&6; }
2429 if test "${ac_cv_target+set}" = set; then :
2430 $as_echo_n "(cached) " >&6
2431 else
2432 if test "x$target_alias" = x; then
2433 ac_cv_target=$ac_cv_host
2434 else
2435 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2436 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2441 $as_echo "$ac_cv_target" >&6; }
2442 case $ac_cv_target in
2443 *-*-*) ;;
2444 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2445 esac
2446 target=$ac_cv_target
2447 ac_save_IFS=$IFS; IFS='-'
2448 set x $ac_cv_target
2449 shift
2450 target_cpu=$1
2451 target_vendor=$2
2452 shift; shift
2453 # Remember, the first character of IFS is used to create $*,
2454 # except with old shells:
2455 target_os=$*
2456 IFS=$ac_save_IFS
2457 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2460 # The aliases save the names the user supplied, while $host etc.
2461 # will get canonicalized.
2462 test -n "$target_alias" &&
2463 test "$program_prefix$program_suffix$program_transform_name" = \
2464 NONENONEs,x,x, &&
2465 program_prefix=${target_alias}-
2467 target_alias=${target_alias-$host_alias}
2469 case ${build_alias} in
2470 "") build_noncanonical=${build} ;;
2471 *) build_noncanonical=${build_alias} ;;
2472 esac
2474 case ${host_alias} in
2475 "") host_noncanonical=${build_noncanonical} ;;
2476 *) host_noncanonical=${host_alias} ;;
2477 esac
2479 case ${target_alias} in
2480 "") target_noncanonical=${host_noncanonical} ;;
2481 *) target_noncanonical=${target_alias} ;;
2482 esac
2488 LIBSTDCXX_RAW_CXX_CXXFLAGS="\
2489 -I\$(top_builddir)/../libstdc++-v3/include \
2490 -I\$(top_builddir)/../libstdc++-v3/include/\$(target_noncanonical) \
2491 -I\$(top_srcdir)/../libstdc++-v3/libsupc++"
2492 LIBSTDCXX_RAW_CXX_LDFLAGS="\
2493 \$(top_builddir)/../libstdc++-v3/src/libstdc++.la"
2498 # See if supported.
2499 unset LIBMPX_SUPPORTED
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target support for Intel MPX runtime library" >&5
2501 $as_echo_n "checking for target support for Intel MPX runtime library... " >&6; }
2502 echo "int i[sizeof (void *) == 4 ? 1 : -1] = { __x86_64__ };" > conftest.c
2503 if { ac_try='${CC} ${CFLAGS} -c -o conftest.o conftest.c 1>&5'
2504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2505 (eval $ac_try) 2>&5
2506 ac_status=$?
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; }; }
2509 then
2510 LIBMPX_SUPPORTED=no
2511 else
2512 LIBMPX_SUPPORTED=yes
2514 rm -f conftest.o conftest.c
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPX_SUPPORTED" >&5
2516 $as_echo "$LIBMPX_SUPPORTED" >&6; }
2517 if test "x$LIBMPX_SUPPORTED" = "xyes"; then
2518 LIBMPX_SUPPORTED_TRUE=
2519 LIBMPX_SUPPORTED_FALSE='#'
2520 else
2521 LIBMPX_SUPPORTED_TRUE='#'
2522 LIBMPX_SUPPORTED_FALSE=
2526 link_libmpx="-lpthread"
2527 link_mpx=""
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld accepts -z bndplt" >&5
2529 $as_echo_n "checking whether ld accepts -z bndplt... " >&6; }
2530 echo "int main() {};" > conftest.c
2531 if { ac_try='${CC} ${CFLAGS} -Wl,-z,bndplt -o conftest conftest.c 1>&5'
2532 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
2533 (eval $ac_try) 2>&5
2534 ac_status=$?
2535 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2536 test $ac_status = 0; }; }
2537 then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2539 $as_echo "yes" >&6; }
2540 link_mpx="$link_mpx -z bndplt"
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2543 $as_echo "no" >&6; }
2548 am__api_version='1.11'
2550 # Find a good install program. We prefer a C program (faster),
2551 # so one script is as good as another. But avoid the broken or
2552 # incompatible versions:
2553 # SysV /etc/install, /usr/sbin/install
2554 # SunOS /usr/etc/install
2555 # IRIX /sbin/install
2556 # AIX /bin/install
2557 # AmigaOS /C/install, which installs bootblocks on floppy discs
2558 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2559 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2560 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2561 # OS/2's system install, which has a completely different semantic
2562 # ./install, which can be erroneously created by make from ./install.sh.
2563 # Reject install programs that cannot install multiple files.
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2565 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2566 if test -z "$INSTALL"; then
2567 if test "${ac_cv_path_install+set}" = set; then :
2568 $as_echo_n "(cached) " >&6
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 # Account for people who put trailing slashes in PATH elements.
2576 case $as_dir/ in #((
2577 ./ | .// | /[cC]/* | \
2578 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2579 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2580 /usr/ucb/* ) ;;
2582 # OSF1 and SCO ODT 3.0 have their own names for install.
2583 # Don't use installbsd from OSF since it installs stuff as root
2584 # by default.
2585 for ac_prog in ginstall scoinst install; do
2586 for ac_exec_ext in '' $ac_executable_extensions; do
2587 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2588 if test $ac_prog = install &&
2589 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2590 # AIX install. It has an incompatible calling convention.
2592 elif test $ac_prog = install &&
2593 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2594 # program-specific install script used by HP pwplus--don't use.
2596 else
2597 rm -rf conftest.one conftest.two conftest.dir
2598 echo one > conftest.one
2599 echo two > conftest.two
2600 mkdir conftest.dir
2601 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2602 test -s conftest.one && test -s conftest.two &&
2603 test -s conftest.dir/conftest.one &&
2604 test -s conftest.dir/conftest.two
2605 then
2606 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2607 break 3
2611 done
2612 done
2614 esac
2616 done
2617 IFS=$as_save_IFS
2619 rm -rf conftest.one conftest.two conftest.dir
2622 if test "${ac_cv_path_install+set}" = set; then
2623 INSTALL=$ac_cv_path_install
2624 else
2625 # As a last resort, use the slow shell script. Don't cache a
2626 # value for INSTALL within a source directory, because that will
2627 # break other packages using the cache if that directory is
2628 # removed, or if the value is a relative name.
2629 INSTALL=$ac_install_sh
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2633 $as_echo "$INSTALL" >&6; }
2635 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2636 # It thinks the first close brace ends the variable substitution.
2637 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2639 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2641 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2644 $as_echo_n "checking whether build environment is sane... " >&6; }
2645 # Just in case
2646 sleep 1
2647 echo timestamp > conftest.file
2648 # Reject unsafe characters in $srcdir or the absolute working directory
2649 # name. Accept space and tab only in the latter.
2650 am_lf='
2652 case `pwd` in
2653 *[\\\"\#\$\&\'\`$am_lf]*)
2654 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2655 esac
2656 case $srcdir in
2657 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2658 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2659 esac
2661 # Do `set' in a subshell so we don't clobber the current shell's
2662 # arguments. Must try -L first in case configure is actually a
2663 # symlink; some systems play weird games with the mod time of symlinks
2664 # (eg FreeBSD returns the mod time of the symlink's containing
2665 # directory).
2666 if (
2667 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2668 if test "$*" = "X"; then
2669 # -L didn't work.
2670 set X `ls -t "$srcdir/configure" conftest.file`
2672 rm -f conftest.file
2673 if test "$*" != "X $srcdir/configure conftest.file" \
2674 && test "$*" != "X conftest.file $srcdir/configure"; then
2676 # If neither matched, then we have a broken ls. This can happen
2677 # if, for instance, CONFIG_SHELL is bash and it inherits a
2678 # broken ls alias from the environment. This has actually
2679 # happened. Such a system could not be considered "sane".
2680 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2681 alias in your environment" "$LINENO" 5
2684 test "$2" = conftest.file
2686 then
2687 # Ok.
2689 else
2690 as_fn_error "newly created file is older than distributed files!
2691 Check your system clock" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2694 $as_echo "yes" >&6; }
2695 test "$program_prefix" != NONE &&
2696 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2697 # Use a double $ so make ignores it.
2698 test "$program_suffix" != NONE &&
2699 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2700 # Double any \ or $.
2701 # By default was `s,x,x', remove it if useless.
2702 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2703 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2705 # expand $ac_aux_dir to an absolute path
2706 am_aux_dir=`cd $ac_aux_dir && pwd`
2708 if test x"${MISSING+set}" != xset; then
2709 case $am_aux_dir in
2710 *\ * | *\ *)
2711 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2713 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2714 esac
2716 # Use eval to expand $SHELL
2717 if eval "$MISSING --run true"; then
2718 am_missing_run="$MISSING --run "
2719 else
2720 am_missing_run=
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2722 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2725 if test x"${install_sh}" != xset; then
2726 case $am_aux_dir in
2727 *\ * | *\ *)
2728 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2730 install_sh="\${SHELL} $am_aux_dir/install-sh"
2731 esac
2734 # Installed binaries are usually stripped using `strip' when the user
2735 # run `make install-strip'. However `strip' might not be the right
2736 # tool to use in cross-compilation environments, therefore Automake
2737 # will honor the `STRIP' environment variable to overrule this program.
2738 if test "$cross_compiling" != no; then
2739 if test -n "$ac_tool_prefix"; then
2740 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2741 set dummy ${ac_tool_prefix}strip; ac_word=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if test "${ac_cv_prog_STRIP+set}" = set; then :
2745 $as_echo_n "(cached) " >&6
2746 else
2747 if test -n "$STRIP"; then
2748 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2749 else
2750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2751 for as_dir in $PATH
2753 IFS=$as_save_IFS
2754 test -z "$as_dir" && as_dir=.
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2757 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2759 break 2
2761 done
2762 done
2763 IFS=$as_save_IFS
2767 STRIP=$ac_cv_prog_STRIP
2768 if test -n "$STRIP"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2770 $as_echo "$STRIP" >&6; }
2771 else
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2778 if test -z "$ac_cv_prog_STRIP"; then
2779 ac_ct_STRIP=$STRIP
2780 # Extract the first word of "strip", so it can be a program name with args.
2781 set dummy strip; ac_word=$2
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2783 $as_echo_n "checking for $ac_word... " >&6; }
2784 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2785 $as_echo_n "(cached) " >&6
2786 else
2787 if test -n "$ac_ct_STRIP"; then
2788 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2789 else
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 for as_dir in $PATH
2793 IFS=$as_save_IFS
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_ac_ct_STRIP="strip"
2798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2799 break 2
2801 done
2802 done
2803 IFS=$as_save_IFS
2807 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2808 if test -n "$ac_ct_STRIP"; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2810 $as_echo "$ac_ct_STRIP" >&6; }
2811 else
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2813 $as_echo "no" >&6; }
2816 if test "x$ac_ct_STRIP" = x; then
2817 STRIP=":"
2818 else
2819 case $cross_compiling:$ac_tool_warned in
2820 yes:)
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2823 ac_tool_warned=yes ;;
2824 esac
2825 STRIP=$ac_ct_STRIP
2827 else
2828 STRIP="$ac_cv_prog_STRIP"
2832 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2835 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2836 if test -z "$MKDIR_P"; then
2837 if test "${ac_cv_path_mkdir+set}" = set; then :
2838 $as_echo_n "(cached) " >&6
2839 else
2840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2841 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2843 IFS=$as_save_IFS
2844 test -z "$as_dir" && as_dir=.
2845 for ac_prog in mkdir gmkdir; do
2846 for ac_exec_ext in '' $ac_executable_extensions; do
2847 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2848 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2849 'mkdir (GNU coreutils) '* | \
2850 'mkdir (coreutils) '* | \
2851 'mkdir (fileutils) '4.1*)
2852 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2853 break 3;;
2854 esac
2855 done
2856 done
2857 done
2858 IFS=$as_save_IFS
2862 if test "${ac_cv_path_mkdir+set}" = set; then
2863 MKDIR_P="$ac_cv_path_mkdir -p"
2864 else
2865 # As a last resort, use the slow shell script. Don't cache a
2866 # value for MKDIR_P within a source directory, because that will
2867 # break other packages using the cache if that directory is
2868 # removed, or if the value is a relative name.
2869 test -d ./--version && rmdir ./--version
2870 MKDIR_P="$ac_install_sh -d"
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2874 $as_echo "$MKDIR_P" >&6; }
2876 mkdir_p="$MKDIR_P"
2877 case $mkdir_p in
2878 [\\/$]* | ?:[\\/]*) ;;
2879 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2880 esac
2882 for ac_prog in gawk mawk nawk awk
2884 # Extract the first word of "$ac_prog", so it can be a program name with args.
2885 set dummy $ac_prog; ac_word=$2
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 $as_echo_n "checking for $ac_word... " >&6; }
2888 if test "${ac_cv_prog_AWK+set}" = set; then :
2889 $as_echo_n "(cached) " >&6
2890 else
2891 if test -n "$AWK"; then
2892 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2893 else
2894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2895 for as_dir in $PATH
2897 IFS=$as_save_IFS
2898 test -z "$as_dir" && as_dir=.
2899 for ac_exec_ext in '' $ac_executable_extensions; do
2900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2901 ac_cv_prog_AWK="$ac_prog"
2902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2903 break 2
2905 done
2906 done
2907 IFS=$as_save_IFS
2911 AWK=$ac_cv_prog_AWK
2912 if test -n "$AWK"; then
2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2914 $as_echo "$AWK" >&6; }
2915 else
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2917 $as_echo "no" >&6; }
2921 test -n "$AWK" && break
2922 done
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2925 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2926 set x ${MAKE-make}
2927 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2928 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2929 $as_echo_n "(cached) " >&6
2930 else
2931 cat >conftest.make <<\_ACEOF
2932 SHELL = /bin/sh
2933 all:
2934 @echo '@@@%%%=$(MAKE)=@@@%%%'
2935 _ACEOF
2936 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2937 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2938 *@@@%%%=?*=@@@%%%*)
2939 eval ac_cv_prog_make_${ac_make}_set=yes;;
2941 eval ac_cv_prog_make_${ac_make}_set=no;;
2942 esac
2943 rm -f conftest.make
2945 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2947 $as_echo "yes" >&6; }
2948 SET_MAKE=
2949 else
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951 $as_echo "no" >&6; }
2952 SET_MAKE="MAKE=${MAKE-make}"
2955 rm -rf .tst 2>/dev/null
2956 mkdir .tst 2>/dev/null
2957 if test -d .tst; then
2958 am__leading_dot=.
2959 else
2960 am__leading_dot=_
2962 rmdir .tst 2>/dev/null
2964 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2965 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2966 # is not polluted with repeated "-I."
2967 am__isrc=' -I$(srcdir)'
2968 # test to see if srcdir already configured
2969 if test -f $srcdir/config.status; then
2970 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2974 # test whether we have cygpath
2975 if test -z "$CYGPATH_W"; then
2976 if (cygpath --version) >/dev/null 2>/dev/null; then
2977 CYGPATH_W='cygpath -w'
2978 else
2979 CYGPATH_W=echo
2984 # Define the identity of the package.
2985 PACKAGE='package-unused'
2986 VERSION='version-unused'
2989 cat >>confdefs.h <<_ACEOF
2990 #define PACKAGE "$PACKAGE"
2991 _ACEOF
2994 cat >>confdefs.h <<_ACEOF
2995 #define VERSION "$VERSION"
2996 _ACEOF
2998 # Some tools Automake needs.
3000 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3003 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3006 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3009 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3012 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3014 # We need awk for the "check" target. The system "awk" is bad on
3015 # some platforms.
3016 # Always define AMTAR for backward compatibility.
3018 AMTAR=${AMTAR-"${am_missing_run}tar"}
3020 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3026 # Default to --enable-multilib
3027 # Check whether --enable-multilib was given.
3028 if test "${enable_multilib+set}" = set; then :
3029 enableval=$enable_multilib; case "$enableval" in
3030 yes) multilib=yes ;;
3031 no) multilib=no ;;
3032 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3033 esac
3034 else
3035 multilib=yes
3039 # We may get other options which we leave undocumented:
3040 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3041 # See config-ml.in if you want the gory details.
3043 if test "$srcdir" = "."; then
3044 if test "$with_target_subdir" != "."; then
3045 multi_basedir="$srcdir/$with_multisrctop../.."
3046 else
3047 multi_basedir="$srcdir/$with_multisrctop.."
3049 else
3050 multi_basedir="$srcdir/.."
3054 # Even if the default multilib is not a cross compilation,
3055 # it may be that some of the other multilibs are.
3056 if test $cross_compiling = no && test $multilib = yes \
3057 && test "x${with_multisubdir}" != x ; then
3058 cross_compiling=maybe
3061 ac_config_commands="$ac_config_commands default-1"
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3065 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3066 # Check whether --enable-maintainer-mode was given.
3067 if test "${enable_maintainer_mode+set}" = set; then :
3068 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3069 else
3070 USE_MAINTAINER_MODE=no
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3074 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3075 if test $USE_MAINTAINER_MODE = yes; then
3076 MAINTAINER_MODE_TRUE=
3077 MAINTAINER_MODE_FALSE='#'
3078 else
3079 MAINTAINER_MODE_TRUE='#'
3080 MAINTAINER_MODE_FALSE=
3083 MAINT=$MAINTAINER_MODE_TRUE
3087 ac_ext=c
3088 ac_cpp='$CPP $CPPFLAGS'
3089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3092 if test -n "$ac_tool_prefix"; then
3093 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3094 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3096 $as_echo_n "checking for $ac_word... " >&6; }
3097 if test "${ac_cv_prog_CC+set}" = set; then :
3098 $as_echo_n "(cached) " >&6
3099 else
3100 if test -n "$CC"; then
3101 ac_cv_prog_CC="$CC" # Let the user override the test.
3102 else
3103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3104 for as_dir in $PATH
3106 IFS=$as_save_IFS
3107 test -z "$as_dir" && as_dir=.
3108 for ac_exec_ext in '' $ac_executable_extensions; do
3109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3110 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3112 break 2
3114 done
3115 done
3116 IFS=$as_save_IFS
3120 CC=$ac_cv_prog_CC
3121 if test -n "$CC"; then
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3123 $as_echo "$CC" >&6; }
3124 else
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3126 $as_echo "no" >&6; }
3131 if test -z "$ac_cv_prog_CC"; then
3132 ac_ct_CC=$CC
3133 # Extract the first word of "gcc", so it can be a program name with args.
3134 set dummy gcc; ac_word=$2
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3136 $as_echo_n "checking for $ac_word... " >&6; }
3137 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3138 $as_echo_n "(cached) " >&6
3139 else
3140 if test -n "$ac_ct_CC"; then
3141 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3142 else
3143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3144 for as_dir in $PATH
3146 IFS=$as_save_IFS
3147 test -z "$as_dir" && as_dir=.
3148 for ac_exec_ext in '' $ac_executable_extensions; do
3149 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3150 ac_cv_prog_ac_ct_CC="gcc"
3151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3152 break 2
3154 done
3155 done
3156 IFS=$as_save_IFS
3160 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3161 if test -n "$ac_ct_CC"; then
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3163 $as_echo "$ac_ct_CC" >&6; }
3164 else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3166 $as_echo "no" >&6; }
3169 if test "x$ac_ct_CC" = x; then
3170 CC=""
3171 else
3172 case $cross_compiling:$ac_tool_warned in
3173 yes:)
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3176 ac_tool_warned=yes ;;
3177 esac
3178 CC=$ac_ct_CC
3180 else
3181 CC="$ac_cv_prog_CC"
3184 if test -z "$CC"; then
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}cc; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if test "${ac_cv_prog_CC+set}" = set; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 if test -n "$CC"; then
3194 ac_cv_prog_CC="$CC" # Let the user override the test.
3195 else
3196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3197 for as_dir in $PATH
3199 IFS=$as_save_IFS
3200 test -z "$as_dir" && as_dir=.
3201 for ac_exec_ext in '' $ac_executable_extensions; do
3202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3203 ac_cv_prog_CC="${ac_tool_prefix}cc"
3204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3205 break 2
3207 done
3208 done
3209 IFS=$as_save_IFS
3213 CC=$ac_cv_prog_CC
3214 if test -n "$CC"; then
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3216 $as_echo "$CC" >&6; }
3217 else
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3219 $as_echo "no" >&6; }
3225 if test -z "$CC"; then
3226 # Extract the first word of "cc", so it can be a program name with args.
3227 set dummy cc; ac_word=$2
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3229 $as_echo_n "checking for $ac_word... " >&6; }
3230 if test "${ac_cv_prog_CC+set}" = set; then :
3231 $as_echo_n "(cached) " >&6
3232 else
3233 if test -n "$CC"; then
3234 ac_cv_prog_CC="$CC" # Let the user override the test.
3235 else
3236 ac_prog_rejected=no
3237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3238 for as_dir in $PATH
3240 IFS=$as_save_IFS
3241 test -z "$as_dir" && as_dir=.
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3244 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3245 ac_prog_rejected=yes
3246 continue
3248 ac_cv_prog_CC="cc"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3252 done
3253 done
3254 IFS=$as_save_IFS
3256 if test $ac_prog_rejected = yes; then
3257 # We found a bogon in the path, so make sure we never use it.
3258 set dummy $ac_cv_prog_CC
3259 shift
3260 if test $# != 0; then
3261 # We chose a different compiler from the bogus one.
3262 # However, it has the same basename, so the bogon will be chosen
3263 # first if we set CC to just the basename; use the full file name.
3264 shift
3265 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3270 CC=$ac_cv_prog_CC
3271 if test -n "$CC"; then
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3273 $as_echo "$CC" >&6; }
3274 else
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3281 if test -z "$CC"; then
3282 if test -n "$ac_tool_prefix"; then
3283 for ac_prog in cl.exe
3285 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3288 $as_echo_n "checking for $ac_word... " >&6; }
3289 if test "${ac_cv_prog_CC+set}" = set; then :
3290 $as_echo_n "(cached) " >&6
3291 else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3306 done
3307 done
3308 IFS=$as_save_IFS
3312 CC=$ac_cv_prog_CC
3313 if test -n "$CC"; then
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3315 $as_echo "$CC" >&6; }
3316 else
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3318 $as_echo "no" >&6; }
3322 test -n "$CC" && break
3323 done
3325 if test -z "$CC"; then
3326 ac_ct_CC=$CC
3327 for ac_prog in cl.exe
3329 # Extract the first word of "$ac_prog", so it can be a program name with args.
3330 set dummy $ac_prog; ac_word=$2
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3332 $as_echo_n "checking for $ac_word... " >&6; }
3333 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3334 $as_echo_n "(cached) " >&6
3335 else
3336 if test -n "$ac_ct_CC"; then
3337 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3338 else
3339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3340 for as_dir in $PATH
3342 IFS=$as_save_IFS
3343 test -z "$as_dir" && as_dir=.
3344 for ac_exec_ext in '' $ac_executable_extensions; do
3345 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3346 ac_cv_prog_ac_ct_CC="$ac_prog"
3347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3348 break 2
3350 done
3351 done
3352 IFS=$as_save_IFS
3356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3357 if test -n "$ac_ct_CC"; then
3358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3359 $as_echo "$ac_ct_CC" >&6; }
3360 else
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3362 $as_echo "no" >&6; }
3366 test -n "$ac_ct_CC" && break
3367 done
3369 if test "x$ac_ct_CC" = x; then
3370 CC=""
3371 else
3372 case $cross_compiling:$ac_tool_warned in
3373 yes:)
3374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3376 ac_tool_warned=yes ;;
3377 esac
3378 CC=$ac_ct_CC
3385 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3387 as_fn_error "no acceptable C compiler found in \$PATH
3388 See \`config.log' for more details." "$LINENO" 5; }
3390 # Provide some information about the compiler.
3391 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3392 set X $ac_compile
3393 ac_compiler=$2
3394 for ac_option in --version -v -V -qversion; do
3395 { { ac_try="$ac_compiler $ac_option >&5"
3396 case "(($ac_try" in
3397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3398 *) ac_try_echo=$ac_try;;
3399 esac
3400 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3401 $as_echo "$ac_try_echo"; } >&5
3402 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3403 ac_status=$?
3404 if test -s conftest.err; then
3405 sed '10a\
3406 ... rest of stderr output deleted ...
3407 10q' conftest.err >conftest.er1
3408 cat conftest.er1 >&5
3409 rm -f conftest.er1 conftest.err
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }
3413 done
3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416 /* end confdefs.h. */
3419 main ()
3423 return 0;
3425 _ACEOF
3426 ac_clean_files_save=$ac_clean_files
3427 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3428 # Try to create an executable without -o first, disregard a.out.
3429 # It will help us diagnose broken compilers, and finding out an intuition
3430 # of exeext.
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3432 $as_echo_n "checking for C compiler default output file name... " >&6; }
3433 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3435 # The possible output files:
3436 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3438 ac_rmfiles=
3439 for ac_file in $ac_files
3441 case $ac_file in
3442 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3443 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3444 esac
3445 done
3446 rm -f $ac_rmfiles
3448 if { { ac_try="$ac_link_default"
3449 case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452 esac
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454 $as_echo "$ac_try_echo"; } >&5
3455 (eval "$ac_link_default") 2>&5
3456 ac_status=$?
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
3459 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3460 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3461 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3462 # so that the user can short-circuit this test for compilers unknown to
3463 # Autoconf.
3464 for ac_file in $ac_files ''
3466 test -f "$ac_file" || continue
3467 case $ac_file in
3468 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3470 [ab].out )
3471 # We found the default executable, but exeext='' is most
3472 # certainly right.
3473 break;;
3474 *.* )
3475 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3476 then :; else
3477 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3479 # We set ac_cv_exeext here because the later test for it is not
3480 # safe: cross compilers may not add the suffix if given an `-o'
3481 # argument, so we may need to know it at that point already.
3482 # Even if this section looks crufty: it has the advantage of
3483 # actually working.
3484 break;;
3486 break;;
3487 esac
3488 done
3489 test "$ac_cv_exeext" = no && ac_cv_exeext=
3491 else
3492 ac_file=''
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3495 $as_echo "$ac_file" >&6; }
3496 if test -z "$ac_file"; then :
3497 $as_echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 { as_fn_set_status 77
3503 as_fn_error "C compiler cannot create executables
3504 See \`config.log' for more details." "$LINENO" 5; }; }
3506 ac_exeext=$ac_cv_exeext
3508 # Check that the compiler produces executables we can run. If not, either
3509 # the compiler is broken, or we cross compile.
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3511 $as_echo_n "checking whether the C compiler works... " >&6; }
3512 # If not cross compiling, check that we can run a simple program.
3513 if test "$cross_compiling" != yes; then
3514 if { ac_try='./$ac_file'
3515 { { case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_try") 2>&5
3522 ac_status=$?
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }; }; then
3525 cross_compiling=no
3526 else
3527 if test "$cross_compiling" = maybe; then
3528 cross_compiling=yes
3529 else
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error "cannot run C compiled programs.
3533 If you meant to cross compile, use \`--host'.
3534 See \`config.log' for more details." "$LINENO" 5; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3539 $as_echo "yes" >&6; }
3541 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3542 ac_clean_files=$ac_clean_files_save
3543 # Check that the compiler produces executables we can run. If not, either
3544 # the compiler is broken, or we cross compile.
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3546 $as_echo_n "checking whether we are cross compiling... " >&6; }
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3548 $as_echo "$cross_compiling" >&6; }
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3551 $as_echo_n "checking for suffix of executables... " >&6; }
3552 if { { ac_try="$ac_link"
3553 case "(($ac_try" in
3554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3555 *) ac_try_echo=$ac_try;;
3556 esac
3557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3558 $as_echo "$ac_try_echo"; } >&5
3559 (eval "$ac_link") 2>&5
3560 ac_status=$?
3561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3562 test $ac_status = 0; }; then :
3563 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3564 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3565 # work properly (i.e., refer to `conftest.exe'), while it won't with
3566 # `rm'.
3567 for ac_file in conftest.exe conftest conftest.*; do
3568 test -f "$ac_file" || continue
3569 case $ac_file in
3570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3571 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3572 break;;
3573 * ) break;;
3574 esac
3575 done
3576 else
3577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3579 as_fn_error "cannot compute suffix of executables: cannot compile and link
3580 See \`config.log' for more details." "$LINENO" 5; }
3582 rm -f conftest$ac_cv_exeext
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3584 $as_echo "$ac_cv_exeext" >&6; }
3586 rm -f conftest.$ac_ext
3587 EXEEXT=$ac_cv_exeext
3588 ac_exeext=$EXEEXT
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3590 $as_echo_n "checking for suffix of object files... " >&6; }
3591 if test "${ac_cv_objext+set}" = set; then :
3592 $as_echo_n "(cached) " >&6
3593 else
3594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3595 /* end confdefs.h. */
3598 main ()
3602 return 0;
3604 _ACEOF
3605 rm -f conftest.o conftest.obj
3606 if { { ac_try="$ac_compile"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3612 $as_echo "$ac_try_echo"; } >&5
3613 (eval "$ac_compile") 2>&5
3614 ac_status=$?
3615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3616 test $ac_status = 0; }; then :
3617 for ac_file in conftest.o conftest.obj conftest.*; do
3618 test -f "$ac_file" || continue;
3619 case $ac_file in
3620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3621 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3622 break;;
3623 esac
3624 done
3625 else
3626 $as_echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3629 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3630 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3631 as_fn_error "cannot compute suffix of object files: cannot compile
3632 See \`config.log' for more details." "$LINENO" 5; }
3634 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3637 $as_echo "$ac_cv_objext" >&6; }
3638 OBJEXT=$ac_cv_objext
3639 ac_objext=$OBJEXT
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3641 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3642 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3643 $as_echo_n "(cached) " >&6
3644 else
3645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3646 /* end confdefs.h. */
3649 main ()
3651 #ifndef __GNUC__
3652 choke me
3653 #endif
3656 return 0;
3658 _ACEOF
3659 if ac_fn_c_try_compile "$LINENO"; then :
3660 ac_compiler_gnu=yes
3661 else
3662 ac_compiler_gnu=no
3664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3665 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3669 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3670 if test $ac_compiler_gnu = yes; then
3671 GCC=yes
3672 else
3673 GCC=
3675 ac_test_CFLAGS=${CFLAGS+set}
3676 ac_save_CFLAGS=$CFLAGS
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3678 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3679 if test "${ac_cv_prog_cc_g+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 ac_save_c_werror_flag=$ac_c_werror_flag
3683 ac_c_werror_flag=yes
3684 ac_cv_prog_cc_g=no
3685 CFLAGS="-g"
3686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3687 /* end confdefs.h. */
3690 main ()
3694 return 0;
3696 _ACEOF
3697 if ac_fn_c_try_compile "$LINENO"; then :
3698 ac_cv_prog_cc_g=yes
3699 else
3700 CFLAGS=""
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3705 main ()
3709 return 0;
3711 _ACEOF
3712 if ac_fn_c_try_compile "$LINENO"; then :
3714 else
3715 ac_c_werror_flag=$ac_save_c_werror_flag
3716 CFLAGS="-g"
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3721 main ()
3725 return 0;
3727 _ACEOF
3728 if ac_fn_c_try_compile "$LINENO"; then :
3729 ac_cv_prog_cc_g=yes
3731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3736 ac_c_werror_flag=$ac_save_c_werror_flag
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3739 $as_echo "$ac_cv_prog_cc_g" >&6; }
3740 if test "$ac_test_CFLAGS" = set; then
3741 CFLAGS=$ac_save_CFLAGS
3742 elif test $ac_cv_prog_cc_g = yes; then
3743 if test "$GCC" = yes; then
3744 CFLAGS="-g -O2"
3745 else
3746 CFLAGS="-g"
3748 else
3749 if test "$GCC" = yes; then
3750 CFLAGS="-O2"
3751 else
3752 CFLAGS=
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3756 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3757 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3758 $as_echo_n "(cached) " >&6
3759 else
3760 ac_cv_prog_cc_c89=no
3761 ac_save_CC=$CC
3762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3763 /* end confdefs.h. */
3764 #include <stdarg.h>
3765 #include <stdio.h>
3766 #include <sys/types.h>
3767 #include <sys/stat.h>
3768 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3769 struct buf { int x; };
3770 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3771 static char *e (p, i)
3772 char **p;
3773 int i;
3775 return p[i];
3777 static char *f (char * (*g) (char **, int), char **p, ...)
3779 char *s;
3780 va_list v;
3781 va_start (v,p);
3782 s = g (p, va_arg (v,int));
3783 va_end (v);
3784 return s;
3787 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3788 function prototypes and stuff, but not '\xHH' hex character constants.
3789 These don't provoke an error unfortunately, instead are silently treated
3790 as 'x'. The following induces an error, until -std is added to get
3791 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3792 array size at least. It's necessary to write '\x00'==0 to get something
3793 that's true only with -std. */
3794 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3796 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3797 inside strings and character constants. */
3798 #define FOO(x) 'x'
3799 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3801 int test (int i, double x);
3802 struct s1 {int (*f) (int a);};
3803 struct s2 {int (*f) (double a);};
3804 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3805 int argc;
3806 char **argv;
3808 main ()
3810 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3812 return 0;
3814 _ACEOF
3815 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3816 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3818 CC="$ac_save_CC $ac_arg"
3819 if ac_fn_c_try_compile "$LINENO"; then :
3820 ac_cv_prog_cc_c89=$ac_arg
3822 rm -f core conftest.err conftest.$ac_objext
3823 test "x$ac_cv_prog_cc_c89" != "xno" && break
3824 done
3825 rm -f conftest.$ac_ext
3826 CC=$ac_save_CC
3829 # AC_CACHE_VAL
3830 case "x$ac_cv_prog_cc_c89" in
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3833 $as_echo "none needed" >&6; } ;;
3834 xno)
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3836 $as_echo "unsupported" >&6; } ;;
3838 CC="$CC $ac_cv_prog_cc_c89"
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3840 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3841 esac
3842 if test "x$ac_cv_prog_cc_c89" != xno; then :
3846 ac_ext=c
3847 ac_cpp='$CPP $CPPFLAGS'
3848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 ac_ext=c
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3859 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3860 # On Suns, sometimes $CPP names a directory.
3861 if test -n "$CPP" && test -d "$CPP"; then
3862 CPP=
3864 if test -z "$CPP"; then
3865 if test "${ac_cv_prog_CPP+set}" = set; then :
3866 $as_echo_n "(cached) " >&6
3867 else
3868 # Double quotes because CPP needs to be expanded
3869 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3871 ac_preproc_ok=false
3872 for ac_c_preproc_warn_flag in '' yes
3874 # Use a header file that comes with gcc, so configuring glibc
3875 # with a fresh cross-compiler works.
3876 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3877 # <limits.h> exists even on freestanding compilers.
3878 # On the NeXT, cc -E runs the code through the compiler's parser,
3879 # not just through cpp. "Syntax error" is here to catch this case.
3880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3881 /* end confdefs.h. */
3882 #ifdef __STDC__
3883 # include <limits.h>
3884 #else
3885 # include <assert.h>
3886 #endif
3887 Syntax error
3888 _ACEOF
3889 if ac_fn_c_try_cpp "$LINENO"; then :
3891 else
3892 # Broken: fails on valid input.
3893 continue
3895 rm -f conftest.err conftest.$ac_ext
3897 # OK, works on sane cases. Now check whether nonexistent headers
3898 # can be detected and how.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #include <ac_nonexistent.h>
3902 _ACEOF
3903 if ac_fn_c_try_cpp "$LINENO"; then :
3904 # Broken: success on invalid input.
3905 continue
3906 else
3907 # Passes both tests.
3908 ac_preproc_ok=:
3909 break
3911 rm -f conftest.err conftest.$ac_ext
3913 done
3914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3915 rm -f conftest.err conftest.$ac_ext
3916 if $ac_preproc_ok; then :
3917 break
3920 done
3921 ac_cv_prog_CPP=$CPP
3924 CPP=$ac_cv_prog_CPP
3925 else
3926 ac_cv_prog_CPP=$CPP
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3929 $as_echo "$CPP" >&6; }
3930 ac_preproc_ok=false
3931 for ac_c_preproc_warn_flag in '' yes
3933 # Use a header file that comes with gcc, so configuring glibc
3934 # with a fresh cross-compiler works.
3935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3936 # <limits.h> exists even on freestanding compilers.
3937 # On the NeXT, cc -E runs the code through the compiler's parser,
3938 # not just through cpp. "Syntax error" is here to catch this case.
3939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3940 /* end confdefs.h. */
3941 #ifdef __STDC__
3942 # include <limits.h>
3943 #else
3944 # include <assert.h>
3945 #endif
3946 Syntax error
3947 _ACEOF
3948 if ac_fn_c_try_cpp "$LINENO"; then :
3950 else
3951 # Broken: fails on valid input.
3952 continue
3954 rm -f conftest.err conftest.$ac_ext
3956 # OK, works on sane cases. Now check whether nonexistent headers
3957 # can be detected and how.
3958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3959 /* end confdefs.h. */
3960 #include <ac_nonexistent.h>
3961 _ACEOF
3962 if ac_fn_c_try_cpp "$LINENO"; then :
3963 # Broken: success on invalid input.
3964 continue
3965 else
3966 # Passes both tests.
3967 ac_preproc_ok=:
3968 break
3970 rm -f conftest.err conftest.$ac_ext
3972 done
3973 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3974 rm -f conftest.err conftest.$ac_ext
3975 if $ac_preproc_ok; then :
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "C preprocessor \"$CPP\" fails sanity check
3981 See \`config.log' for more details." "$LINENO" 5; }
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3992 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3993 if test "${ac_cv_path_GREP+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 if test -z "$GREP"; then
3997 ac_path_GREP_found=false
3998 # Loop through the user's path and test for each of PROGNAME-LIST
3999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4002 IFS=$as_save_IFS
4003 test -z "$as_dir" && as_dir=.
4004 for ac_prog in grep ggrep; do
4005 for ac_exec_ext in '' $ac_executable_extensions; do
4006 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4007 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4008 # Check for GNU ac_path_GREP and select it if it is found.
4009 # Check for GNU $ac_path_GREP
4010 case `"$ac_path_GREP" --version 2>&1` in
4011 *GNU*)
4012 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4014 ac_count=0
4015 $as_echo_n 0123456789 >"conftest.in"
4016 while :
4018 cat "conftest.in" "conftest.in" >"conftest.tmp"
4019 mv "conftest.tmp" "conftest.in"
4020 cp "conftest.in" "conftest.nl"
4021 $as_echo 'GREP' >> "conftest.nl"
4022 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4024 as_fn_arith $ac_count + 1 && ac_count=$as_val
4025 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4026 # Best one so far, save it but keep looking for a better one
4027 ac_cv_path_GREP="$ac_path_GREP"
4028 ac_path_GREP_max=$ac_count
4030 # 10*(2^10) chars as input seems more than enough
4031 test $ac_count -gt 10 && break
4032 done
4033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4034 esac
4036 $ac_path_GREP_found && break 3
4037 done
4038 done
4039 done
4040 IFS=$as_save_IFS
4041 if test -z "$ac_cv_path_GREP"; then
4042 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4044 else
4045 ac_cv_path_GREP=$GREP
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4050 $as_echo "$ac_cv_path_GREP" >&6; }
4051 GREP="$ac_cv_path_GREP"
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4055 $as_echo_n "checking for egrep... " >&6; }
4056 if test "${ac_cv_path_EGREP+set}" = set; then :
4057 $as_echo_n "(cached) " >&6
4058 else
4059 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4060 then ac_cv_path_EGREP="$GREP -E"
4061 else
4062 if test -z "$EGREP"; then
4063 ac_path_EGREP_found=false
4064 # Loop through the user's path and test for each of PROGNAME-LIST
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_prog in egrep; do
4071 for ac_exec_ext in '' $ac_executable_extensions; do
4072 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4073 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4074 # Check for GNU ac_path_EGREP and select it if it is found.
4075 # Check for GNU $ac_path_EGREP
4076 case `"$ac_path_EGREP" --version 2>&1` in
4077 *GNU*)
4078 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4080 ac_count=0
4081 $as_echo_n 0123456789 >"conftest.in"
4082 while :
4084 cat "conftest.in" "conftest.in" >"conftest.tmp"
4085 mv "conftest.tmp" "conftest.in"
4086 cp "conftest.in" "conftest.nl"
4087 $as_echo 'EGREP' >> "conftest.nl"
4088 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4089 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4090 as_fn_arith $ac_count + 1 && ac_count=$as_val
4091 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4092 # Best one so far, save it but keep looking for a better one
4093 ac_cv_path_EGREP="$ac_path_EGREP"
4094 ac_path_EGREP_max=$ac_count
4096 # 10*(2^10) chars as input seems more than enough
4097 test $ac_count -gt 10 && break
4098 done
4099 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4100 esac
4102 $ac_path_EGREP_found && break 3
4103 done
4104 done
4105 done
4106 IFS=$as_save_IFS
4107 if test -z "$ac_cv_path_EGREP"; then
4108 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4110 else
4111 ac_cv_path_EGREP=$EGREP
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4117 $as_echo "$ac_cv_path_EGREP" >&6; }
4118 EGREP="$ac_cv_path_EGREP"
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4122 $as_echo_n "checking for ANSI C header files... " >&6; }
4123 if test "${ac_cv_header_stdc+set}" = set; then :
4124 $as_echo_n "(cached) " >&6
4125 else
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127 /* end confdefs.h. */
4128 #include <stdlib.h>
4129 #include <stdarg.h>
4130 #include <string.h>
4131 #include <float.h>
4134 main ()
4138 return 0;
4140 _ACEOF
4141 if ac_fn_c_try_compile "$LINENO"; then :
4142 ac_cv_header_stdc=yes
4143 else
4144 ac_cv_header_stdc=no
4146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4148 if test $ac_cv_header_stdc = yes; then
4149 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4151 /* end confdefs.h. */
4152 #include <string.h>
4154 _ACEOF
4155 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4156 $EGREP "memchr" >/dev/null 2>&1; then :
4158 else
4159 ac_cv_header_stdc=no
4161 rm -f conftest*
4165 if test $ac_cv_header_stdc = yes; then
4166 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* end confdefs.h. */
4169 #include <stdlib.h>
4171 _ACEOF
4172 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4173 $EGREP "free" >/dev/null 2>&1; then :
4175 else
4176 ac_cv_header_stdc=no
4178 rm -f conftest*
4182 if test $ac_cv_header_stdc = yes; then
4183 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4184 if test "$cross_compiling" = yes; then :
4186 else
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4189 #include <ctype.h>
4190 #include <stdlib.h>
4191 #if ((' ' & 0x0FF) == 0x020)
4192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4194 #else
4195 # define ISLOWER(c) \
4196 (('a' <= (c) && (c) <= 'i') \
4197 || ('j' <= (c) && (c) <= 'r') \
4198 || ('s' <= (c) && (c) <= 'z'))
4199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4200 #endif
4202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4204 main ()
4206 int i;
4207 for (i = 0; i < 256; i++)
4208 if (XOR (islower (i), ISLOWER (i))
4209 || toupper (i) != TOUPPER (i))
4210 return 2;
4211 return 0;
4213 _ACEOF
4214 if ac_fn_c_try_run "$LINENO"; then :
4216 else
4217 ac_cv_header_stdc=no
4219 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4220 conftest.$ac_objext conftest.beam conftest.$ac_ext
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4226 $as_echo "$ac_cv_header_stdc" >&6; }
4227 if test $ac_cv_header_stdc = yes; then
4229 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4233 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4234 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4235 inttypes.h stdint.h unistd.h
4236 do :
4237 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4238 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4240 eval as_val=\$$as_ac_Header
4241 if test "x$as_val" = x""yes; then :
4242 cat >>confdefs.h <<_ACEOF
4243 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4244 _ACEOF
4248 done
4252 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4253 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4254 MINIX=yes
4255 else
4256 MINIX=
4260 if test "$MINIX" = yes; then
4262 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4265 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4268 $as_echo "#define _MINIX 1" >>confdefs.h
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4274 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4275 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4279 /* end confdefs.h. */
4281 # define __EXTENSIONS__ 1
4282 $ac_includes_default
4284 main ()
4288 return 0;
4290 _ACEOF
4291 if ac_fn_c_try_compile "$LINENO"; then :
4292 ac_cv_safe_to_define___extensions__=yes
4293 else
4294 ac_cv_safe_to_define___extensions__=no
4296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4299 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4300 test $ac_cv_safe_to_define___extensions__ = yes &&
4301 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4303 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4305 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4307 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4309 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4313 for ac_func in secure_getenv
4314 do :
4315 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
4316 if test "x$ac_cv_func_secure_getenv" = x""yes; then :
4317 cat >>confdefs.h <<_ACEOF
4318 #define HAVE_SECURE_GETENV 1
4319 _ACEOF
4322 done
4325 # Calculate toolexeclibdir
4326 # Also toolexecdir, though it's only used in toolexeclibdir
4327 case ${version_specific_libs} in
4328 yes)
4329 # Need the gcc compiler version to know where to install libraries
4330 # and header files if --enable-version-specific-runtime-libs option
4331 # is selected.
4332 toolexecdir='$(libdir)/gcc/$(target_alias)'
4333 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4336 if test -n "$with_cross_host" &&
4337 test x"$with_cross_host" != x"no"; then
4338 # Install a library built with a cross compiler in tooldir, not libdir.
4339 toolexecdir='$(exec_prefix)/$(target_alias)'
4340 toolexeclibdir='$(toolexecdir)/lib'
4341 else
4342 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4343 toolexeclibdir='$(libdir)'
4345 multi_os_directory=`$CC -print-multi-os-directory`
4346 case $multi_os_directory in
4347 .) ;; # Avoid trailing /.
4348 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4349 esac
4351 esac
4355 # Check for programs.
4358 ac_ext=c
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 if test -n "$ac_tool_prefix"; then
4364 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4365 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4367 $as_echo_n "checking for $ac_word... " >&6; }
4368 if test "${ac_cv_prog_CC+set}" = set; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 if test -n "$CC"; then
4372 ac_cv_prog_CC="$CC" # Let the user override the test.
4373 else
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4381 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4383 break 2
4385 done
4386 done
4387 IFS=$as_save_IFS
4391 CC=$ac_cv_prog_CC
4392 if test -n "$CC"; then
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4394 $as_echo "$CC" >&6; }
4395 else
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4397 $as_echo "no" >&6; }
4402 if test -z "$ac_cv_prog_CC"; then
4403 ac_ct_CC=$CC
4404 # Extract the first word of "gcc", so it can be a program name with args.
4405 set dummy gcc; ac_word=$2
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4407 $as_echo_n "checking for $ac_word... " >&6; }
4408 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4409 $as_echo_n "(cached) " >&6
4410 else
4411 if test -n "$ac_ct_CC"; then
4412 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4413 else
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4421 ac_cv_prog_ac_ct_CC="gcc"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4425 done
4426 done
4427 IFS=$as_save_IFS
4431 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4432 if test -n "$ac_ct_CC"; then
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4434 $as_echo "$ac_ct_CC" >&6; }
4435 else
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 $as_echo "no" >&6; }
4440 if test "x$ac_ct_CC" = x; then
4441 CC=""
4442 else
4443 case $cross_compiling:$ac_tool_warned in
4444 yes:)
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4447 ac_tool_warned=yes ;;
4448 esac
4449 CC=$ac_ct_CC
4451 else
4452 CC="$ac_cv_prog_CC"
4455 if test -z "$CC"; then
4456 if test -n "$ac_tool_prefix"; then
4457 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4458 set dummy ${ac_tool_prefix}cc; ac_word=$2
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4460 $as_echo_n "checking for $ac_word... " >&6; }
4461 if test "${ac_cv_prog_CC+set}" = set; then :
4462 $as_echo_n "(cached) " >&6
4463 else
4464 if test -n "$CC"; then
4465 ac_cv_prog_CC="$CC" # Let the user override the test.
4466 else
4467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 for as_dir in $PATH
4470 IFS=$as_save_IFS
4471 test -z "$as_dir" && as_dir=.
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4474 ac_cv_prog_CC="${ac_tool_prefix}cc"
4475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4476 break 2
4478 done
4479 done
4480 IFS=$as_save_IFS
4484 CC=$ac_cv_prog_CC
4485 if test -n "$CC"; then
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4487 $as_echo "$CC" >&6; }
4488 else
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 $as_echo "no" >&6; }
4496 if test -z "$CC"; then
4497 # Extract the first word of "cc", so it can be a program name with args.
4498 set dummy cc; ac_word=$2
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4500 $as_echo_n "checking for $ac_word... " >&6; }
4501 if test "${ac_cv_prog_CC+set}" = set; then :
4502 $as_echo_n "(cached) " >&6
4503 else
4504 if test -n "$CC"; then
4505 ac_cv_prog_CC="$CC" # Let the user override the test.
4506 else
4507 ac_prog_rejected=no
4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4509 for as_dir in $PATH
4511 IFS=$as_save_IFS
4512 test -z "$as_dir" && as_dir=.
4513 for ac_exec_ext in '' $ac_executable_extensions; do
4514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4515 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4516 ac_prog_rejected=yes
4517 continue
4519 ac_cv_prog_CC="cc"
4520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4521 break 2
4523 done
4524 done
4525 IFS=$as_save_IFS
4527 if test $ac_prog_rejected = yes; then
4528 # We found a bogon in the path, so make sure we never use it.
4529 set dummy $ac_cv_prog_CC
4530 shift
4531 if test $# != 0; then
4532 # We chose a different compiler from the bogus one.
4533 # However, it has the same basename, so the bogon will be chosen
4534 # first if we set CC to just the basename; use the full file name.
4535 shift
4536 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4541 CC=$ac_cv_prog_CC
4542 if test -n "$CC"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4544 $as_echo "$CC" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4552 if test -z "$CC"; then
4553 if test -n "$ac_tool_prefix"; then
4554 for ac_prog in cl.exe
4556 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4557 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4559 $as_echo_n "checking for $ac_word... " >&6; }
4560 if test "${ac_cv_prog_CC+set}" = set; then :
4561 $as_echo_n "(cached) " >&6
4562 else
4563 if test -n "$CC"; then
4564 ac_cv_prog_CC="$CC" # Let the user override the test.
4565 else
4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4567 for as_dir in $PATH
4569 IFS=$as_save_IFS
4570 test -z "$as_dir" && as_dir=.
4571 for ac_exec_ext in '' $ac_executable_extensions; do
4572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4573 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4575 break 2
4577 done
4578 done
4579 IFS=$as_save_IFS
4583 CC=$ac_cv_prog_CC
4584 if test -n "$CC"; then
4585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4586 $as_echo "$CC" >&6; }
4587 else
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4589 $as_echo "no" >&6; }
4593 test -n "$CC" && break
4594 done
4596 if test -z "$CC"; then
4597 ac_ct_CC=$CC
4598 for ac_prog in cl.exe
4600 # Extract the first word of "$ac_prog", so it can be a program name with args.
4601 set dummy $ac_prog; ac_word=$2
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 $as_echo_n "checking for $ac_word... " >&6; }
4604 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4605 $as_echo_n "(cached) " >&6
4606 else
4607 if test -n "$ac_ct_CC"; then
4608 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4609 else
4610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4611 for as_dir in $PATH
4613 IFS=$as_save_IFS
4614 test -z "$as_dir" && as_dir=.
4615 for ac_exec_ext in '' $ac_executable_extensions; do
4616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4617 ac_cv_prog_ac_ct_CC="$ac_prog"
4618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 break 2
4621 done
4622 done
4623 IFS=$as_save_IFS
4627 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4628 if test -n "$ac_ct_CC"; then
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4630 $as_echo "$ac_ct_CC" >&6; }
4631 else
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4633 $as_echo "no" >&6; }
4637 test -n "$ac_ct_CC" && break
4638 done
4640 if test "x$ac_ct_CC" = x; then
4641 CC=""
4642 else
4643 case $cross_compiling:$ac_tool_warned in
4644 yes:)
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4646 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4647 ac_tool_warned=yes ;;
4648 esac
4649 CC=$ac_ct_CC
4656 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4658 as_fn_error "no acceptable C compiler found in \$PATH
4659 See \`config.log' for more details." "$LINENO" 5; }
4661 # Provide some information about the compiler.
4662 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4663 set X $ac_compile
4664 ac_compiler=$2
4665 for ac_option in --version -v -V -qversion; do
4666 { { ac_try="$ac_compiler $ac_option >&5"
4667 case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670 esac
4671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4672 $as_echo "$ac_try_echo"; } >&5
4673 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4674 ac_status=$?
4675 if test -s conftest.err; then
4676 sed '10a\
4677 ... rest of stderr output deleted ...
4678 10q' conftest.err >conftest.er1
4679 cat conftest.er1 >&5
4680 rm -f conftest.er1 conftest.err
4682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4683 test $ac_status = 0; }
4684 done
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4687 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4688 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4689 $as_echo_n "(cached) " >&6
4690 else
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4695 main ()
4697 #ifndef __GNUC__
4698 choke me
4699 #endif
4702 return 0;
4704 _ACEOF
4705 if ac_fn_c_try_compile "$LINENO"; then :
4706 ac_compiler_gnu=yes
4707 else
4708 ac_compiler_gnu=no
4710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4711 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4715 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4716 if test $ac_compiler_gnu = yes; then
4717 GCC=yes
4718 else
4719 GCC=
4721 ac_test_CFLAGS=${CFLAGS+set}
4722 ac_save_CFLAGS=$CFLAGS
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4724 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4725 if test "${ac_cv_prog_cc_g+set}" = set; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 ac_save_c_werror_flag=$ac_c_werror_flag
4729 ac_c_werror_flag=yes
4730 ac_cv_prog_cc_g=no
4731 CFLAGS="-g"
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4736 main ()
4740 return 0;
4742 _ACEOF
4743 if ac_fn_c_try_compile "$LINENO"; then :
4744 ac_cv_prog_cc_g=yes
4745 else
4746 CFLAGS=""
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4751 main ()
4755 return 0;
4757 _ACEOF
4758 if ac_fn_c_try_compile "$LINENO"; then :
4760 else
4761 ac_c_werror_flag=$ac_save_c_werror_flag
4762 CFLAGS="-g"
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4767 main ()
4771 return 0;
4773 _ACEOF
4774 if ac_fn_c_try_compile "$LINENO"; then :
4775 ac_cv_prog_cc_g=yes
4777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 ac_c_werror_flag=$ac_save_c_werror_flag
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4785 $as_echo "$ac_cv_prog_cc_g" >&6; }
4786 if test "$ac_test_CFLAGS" = set; then
4787 CFLAGS=$ac_save_CFLAGS
4788 elif test $ac_cv_prog_cc_g = yes; then
4789 if test "$GCC" = yes; then
4790 CFLAGS="-g -O2"
4791 else
4792 CFLAGS="-g"
4794 else
4795 if test "$GCC" = yes; then
4796 CFLAGS="-O2"
4797 else
4798 CFLAGS=
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4802 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4803 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4804 $as_echo_n "(cached) " >&6
4805 else
4806 ac_cv_prog_cc_c89=no
4807 ac_save_CC=$CC
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810 #include <stdarg.h>
4811 #include <stdio.h>
4812 #include <sys/types.h>
4813 #include <sys/stat.h>
4814 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4815 struct buf { int x; };
4816 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4817 static char *e (p, i)
4818 char **p;
4819 int i;
4821 return p[i];
4823 static char *f (char * (*g) (char **, int), char **p, ...)
4825 char *s;
4826 va_list v;
4827 va_start (v,p);
4828 s = g (p, va_arg (v,int));
4829 va_end (v);
4830 return s;
4833 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4834 function prototypes and stuff, but not '\xHH' hex character constants.
4835 These don't provoke an error unfortunately, instead are silently treated
4836 as 'x'. The following induces an error, until -std is added to get
4837 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4838 array size at least. It's necessary to write '\x00'==0 to get something
4839 that's true only with -std. */
4840 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4842 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4843 inside strings and character constants. */
4844 #define FOO(x) 'x'
4845 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4847 int test (int i, double x);
4848 struct s1 {int (*f) (int a);};
4849 struct s2 {int (*f) (double a);};
4850 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4851 int argc;
4852 char **argv;
4854 main ()
4856 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4858 return 0;
4860 _ACEOF
4861 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4862 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4864 CC="$ac_save_CC $ac_arg"
4865 if ac_fn_c_try_compile "$LINENO"; then :
4866 ac_cv_prog_cc_c89=$ac_arg
4868 rm -f core conftest.err conftest.$ac_objext
4869 test "x$ac_cv_prog_cc_c89" != "xno" && break
4870 done
4871 rm -f conftest.$ac_ext
4872 CC=$ac_save_CC
4875 # AC_CACHE_VAL
4876 case "x$ac_cv_prog_cc_c89" in
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4879 $as_echo "none needed" >&6; } ;;
4880 xno)
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4882 $as_echo "unsupported" >&6; } ;;
4884 CC="$CC $ac_cv_prog_cc_c89"
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4886 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4887 esac
4888 if test "x$ac_cv_prog_cc_c89" != xno; then :
4892 ac_ext=c
4893 ac_cpp='$CPP $CPPFLAGS'
4894 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898 ac_ext=cpp
4899 ac_cpp='$CXXCPP $CPPFLAGS'
4900 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4901 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4902 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4903 if test -z "$CXX"; then
4904 if test -n "$CCC"; then
4905 CXX=$CCC
4906 else
4907 if test -n "$ac_tool_prefix"; then
4908 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4910 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4911 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4913 $as_echo_n "checking for $ac_word... " >&6; }
4914 if test "${ac_cv_prog_CXX+set}" = set; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if test -n "$CXX"; then
4918 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4919 else
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4921 for as_dir in $PATH
4923 IFS=$as_save_IFS
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4929 break 2
4931 done
4932 done
4933 IFS=$as_save_IFS
4937 CXX=$ac_cv_prog_CXX
4938 if test -n "$CXX"; then
4939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4940 $as_echo "$CXX" >&6; }
4941 else
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4943 $as_echo "no" >&6; }
4947 test -n "$CXX" && break
4948 done
4950 if test -z "$CXX"; then
4951 ac_ct_CXX=$CXX
4952 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4954 # Extract the first word of "$ac_prog", so it can be a program name with args.
4955 set dummy $ac_prog; ac_word=$2
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4957 $as_echo_n "checking for $ac_word... " >&6; }
4958 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4959 $as_echo_n "(cached) " >&6
4960 else
4961 if test -n "$ac_ct_CXX"; then
4962 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 for ac_exec_ext in '' $ac_executable_extensions; do
4970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4971 ac_cv_prog_ac_ct_CXX="$ac_prog"
4972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4973 break 2
4975 done
4976 done
4977 IFS=$as_save_IFS
4981 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4982 if test -n "$ac_ct_CXX"; then
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4984 $as_echo "$ac_ct_CXX" >&6; }
4985 else
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4987 $as_echo "no" >&6; }
4991 test -n "$ac_ct_CXX" && break
4992 done
4994 if test "x$ac_ct_CXX" = x; then
4995 CXX="g++"
4996 else
4997 case $cross_compiling:$ac_tool_warned in
4998 yes:)
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5000 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5001 ac_tool_warned=yes ;;
5002 esac
5003 CXX=$ac_ct_CXX
5009 # Provide some information about the compiler.
5010 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5011 set X $ac_compile
5012 ac_compiler=$2
5013 for ac_option in --version -v -V -qversion; do
5014 { { ac_try="$ac_compiler $ac_option >&5"
5015 case "(($ac_try" in
5016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5017 *) ac_try_echo=$ac_try;;
5018 esac
5019 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5020 $as_echo "$ac_try_echo"; } >&5
5021 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5022 ac_status=$?
5023 if test -s conftest.err; then
5024 sed '10a\
5025 ... rest of stderr output deleted ...
5026 10q' conftest.err >conftest.er1
5027 cat conftest.er1 >&5
5028 rm -f conftest.er1 conftest.err
5030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5031 test $ac_status = 0; }
5032 done
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5035 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5036 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5037 $as_echo_n "(cached) " >&6
5038 else
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5040 /* end confdefs.h. */
5043 main ()
5045 #ifndef __GNUC__
5046 choke me
5047 #endif
5050 return 0;
5052 _ACEOF
5053 if ac_fn_cxx_try_compile "$LINENO"; then :
5054 ac_compiler_gnu=yes
5055 else
5056 ac_compiler_gnu=no
5058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5059 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5063 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5064 if test $ac_compiler_gnu = yes; then
5065 GXX=yes
5066 else
5067 GXX=
5069 ac_test_CXXFLAGS=${CXXFLAGS+set}
5070 ac_save_CXXFLAGS=$CXXFLAGS
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5072 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5073 if test "${ac_cv_prog_cxx_g+set}" = set; then :
5074 $as_echo_n "(cached) " >&6
5075 else
5076 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5077 ac_cxx_werror_flag=yes
5078 ac_cv_prog_cxx_g=no
5079 CXXFLAGS="-g"
5080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5081 /* end confdefs.h. */
5084 main ()
5088 return 0;
5090 _ACEOF
5091 if ac_fn_cxx_try_compile "$LINENO"; then :
5092 ac_cv_prog_cxx_g=yes
5093 else
5094 CXXFLAGS=""
5095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5096 /* end confdefs.h. */
5099 main ()
5103 return 0;
5105 _ACEOF
5106 if ac_fn_cxx_try_compile "$LINENO"; then :
5108 else
5109 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5110 CXXFLAGS="-g"
5111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5112 /* end confdefs.h. */
5115 main ()
5119 return 0;
5121 _ACEOF
5122 if ac_fn_cxx_try_compile "$LINENO"; then :
5123 ac_cv_prog_cxx_g=yes
5125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5130 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5133 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5134 if test "$ac_test_CXXFLAGS" = set; then
5135 CXXFLAGS=$ac_save_CXXFLAGS
5136 elif test $ac_cv_prog_cxx_g = yes; then
5137 if test "$GXX" = yes; then
5138 CXXFLAGS="-g -O2"
5139 else
5140 CXXFLAGS="-g"
5142 else
5143 if test "$GXX" = yes; then
5144 CXXFLAGS="-O2"
5145 else
5146 CXXFLAGS=
5149 ac_ext=c
5150 ac_cpp='$CPP $CPPFLAGS'
5151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5157 if test "x$CC" != xcc; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5159 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5160 else
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5162 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5164 set dummy $CC; ac_cc=`$as_echo "$2" |
5165 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5166 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5167 $as_echo_n "(cached) " >&6
5168 else
5169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5170 /* end confdefs.h. */
5173 main ()
5177 return 0;
5179 _ACEOF
5180 # Make sure it works both with $CC and with simple cc.
5181 # We do the test twice because some compilers refuse to overwrite an
5182 # existing .o file with -o, though they will create one.
5183 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5184 rm -f conftest2.*
5185 if { { case "(($ac_try" in
5186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5187 *) ac_try_echo=$ac_try;;
5188 esac
5189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5190 $as_echo "$ac_try_echo"; } >&5
5191 (eval "$ac_try") 2>&5
5192 ac_status=$?
5193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5194 test $ac_status = 0; } &&
5195 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5197 *) ac_try_echo=$ac_try;;
5198 esac
5199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5200 $as_echo "$ac_try_echo"; } >&5
5201 (eval "$ac_try") 2>&5
5202 ac_status=$?
5203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5204 test $ac_status = 0; };
5205 then
5206 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5207 if test "x$CC" != xcc; then
5208 # Test first that cc exists at all.
5209 if { ac_try='cc -c conftest.$ac_ext >&5'
5210 { { case "(($ac_try" in
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5213 esac
5214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5215 $as_echo "$ac_try_echo"; } >&5
5216 (eval "$ac_try") 2>&5
5217 ac_status=$?
5218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5219 test $ac_status = 0; }; }; then
5220 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5221 rm -f conftest2.*
5222 if { { case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5227 $as_echo "$ac_try_echo"; } >&5
5228 (eval "$ac_try") 2>&5
5229 ac_status=$?
5230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5231 test $ac_status = 0; } &&
5232 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5234 *) ac_try_echo=$ac_try;;
5235 esac
5236 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5237 $as_echo "$ac_try_echo"; } >&5
5238 (eval "$ac_try") 2>&5
5239 ac_status=$?
5240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5241 test $ac_status = 0; };
5242 then
5243 # cc works too.
5245 else
5246 # cc exists but doesn't like -o.
5247 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5251 else
5252 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5254 rm -f core conftest*
5257 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5259 $as_echo "yes" >&6; }
5260 else
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5262 $as_echo "no" >&6; }
5264 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5268 # FIXME: we rely on the cache variable name because
5269 # there is no other way.
5270 set dummy $CC
5271 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5272 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5273 if test "$am_t" != yes; then
5274 # Losing compiler, so override with the script.
5275 # FIXME: It is wrong to rewrite CC.
5276 # But if we don't then we get into trouble of one sort or another.
5277 # A longer-term fix would be to have automake use am__CC in this case,
5278 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5279 CC="$am_aux_dir/compile $CC"
5286 # Newer automakes demand CCAS and CCASFLAGS.
5287 : ${CCAS='$(CC)'}
5288 : ${CCASFLAGS='$(CFLAGS)'}
5292 if test -n "$ac_tool_prefix"; then
5293 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5294 set dummy ${ac_tool_prefix}as; ac_word=$2
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5296 $as_echo_n "checking for $ac_word... " >&6; }
5297 if test "${ac_cv_prog_AS+set}" = set; then :
5298 $as_echo_n "(cached) " >&6
5299 else
5300 if test -n "$AS"; then
5301 ac_cv_prog_AS="$AS" # Let the user override the test.
5302 else
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_prog_AS="${ac_tool_prefix}as"
5311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5314 done
5315 done
5316 IFS=$as_save_IFS
5320 AS=$ac_cv_prog_AS
5321 if test -n "$AS"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5323 $as_echo "$AS" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5331 if test -z "$ac_cv_prog_AS"; then
5332 ac_ct_AS=$AS
5333 # Extract the first word of "as", so it can be a program name with args.
5334 set dummy as; ac_word=$2
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336 $as_echo_n "checking for $ac_word... " >&6; }
5337 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5338 $as_echo_n "(cached) " >&6
5339 else
5340 if test -n "$ac_ct_AS"; then
5341 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5342 else
5343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5344 for as_dir in $PATH
5346 IFS=$as_save_IFS
5347 test -z "$as_dir" && as_dir=.
5348 for ac_exec_ext in '' $ac_executable_extensions; do
5349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5350 ac_cv_prog_ac_ct_AS="as"
5351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5352 break 2
5354 done
5355 done
5356 IFS=$as_save_IFS
5360 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5361 if test -n "$ac_ct_AS"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5363 $as_echo "$ac_ct_AS" >&6; }
5364 else
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366 $as_echo "no" >&6; }
5369 if test "x$ac_ct_AS" = x; then
5370 AS=""
5371 else
5372 case $cross_compiling:$ac_tool_warned in
5373 yes:)
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5375 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5376 ac_tool_warned=yes ;;
5377 esac
5378 AS=$ac_ct_AS
5380 else
5381 AS="$ac_cv_prog_AS"
5384 if test -n "$ac_tool_prefix"; then
5385 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5386 set dummy ${ac_tool_prefix}ar; ac_word=$2
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5388 $as_echo_n "checking for $ac_word... " >&6; }
5389 if test "${ac_cv_prog_AR+set}" = set; then :
5390 $as_echo_n "(cached) " >&6
5391 else
5392 if test -n "$AR"; then
5393 ac_cv_prog_AR="$AR" # Let the user override the test.
5394 else
5395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5396 for as_dir in $PATH
5398 IFS=$as_save_IFS
5399 test -z "$as_dir" && as_dir=.
5400 for ac_exec_ext in '' $ac_executable_extensions; do
5401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5402 ac_cv_prog_AR="${ac_tool_prefix}ar"
5403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 break 2
5406 done
5407 done
5408 IFS=$as_save_IFS
5412 AR=$ac_cv_prog_AR
5413 if test -n "$AR"; then
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5415 $as_echo "$AR" >&6; }
5416 else
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5418 $as_echo "no" >&6; }
5423 if test -z "$ac_cv_prog_AR"; then
5424 ac_ct_AR=$AR
5425 # Extract the first word of "ar", so it can be a program name with args.
5426 set dummy ar; ac_word=$2
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5428 $as_echo_n "checking for $ac_word... " >&6; }
5429 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -n "$ac_ct_AR"; then
5433 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5434 else
5435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 for as_dir in $PATH
5438 IFS=$as_save_IFS
5439 test -z "$as_dir" && as_dir=.
5440 for ac_exec_ext in '' $ac_executable_extensions; do
5441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5442 ac_cv_prog_ac_ct_AR="ar"
5443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 break 2
5446 done
5447 done
5448 IFS=$as_save_IFS
5452 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5453 if test -n "$ac_ct_AR"; then
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5455 $as_echo "$ac_ct_AR" >&6; }
5456 else
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5458 $as_echo "no" >&6; }
5461 if test "x$ac_ct_AR" = x; then
5462 AR=""
5463 else
5464 case $cross_compiling:$ac_tool_warned in
5465 yes:)
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5468 ac_tool_warned=yes ;;
5469 esac
5470 AR=$ac_ct_AR
5472 else
5473 AR="$ac_cv_prog_AR"
5476 if test -n "$ac_tool_prefix"; then
5477 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5478 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480 $as_echo_n "checking for $ac_word... " >&6; }
5481 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5482 $as_echo_n "(cached) " >&6
5483 else
5484 if test -n "$RANLIB"; then
5485 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5486 else
5487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5488 for as_dir in $PATH
5490 IFS=$as_save_IFS
5491 test -z "$as_dir" && as_dir=.
5492 for ac_exec_ext in '' $ac_executable_extensions; do
5493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5494 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 break 2
5498 done
5499 done
5500 IFS=$as_save_IFS
5504 RANLIB=$ac_cv_prog_RANLIB
5505 if test -n "$RANLIB"; then
5506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5507 $as_echo "$RANLIB" >&6; }
5508 else
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510 $as_echo "no" >&6; }
5515 if test -z "$ac_cv_prog_RANLIB"; then
5516 ac_ct_RANLIB=$RANLIB
5517 # Extract the first word of "ranlib", so it can be a program name with args.
5518 set dummy ranlib; ac_word=$2
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5520 $as_echo_n "checking for $ac_word... " >&6; }
5521 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5522 $as_echo_n "(cached) " >&6
5523 else
5524 if test -n "$ac_ct_RANLIB"; then
5525 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5526 else
5527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528 for as_dir in $PATH
5530 IFS=$as_save_IFS
5531 test -z "$as_dir" && as_dir=.
5532 for ac_exec_ext in '' $ac_executable_extensions; do
5533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5534 ac_cv_prog_ac_ct_RANLIB="ranlib"
5535 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 break 2
5538 done
5539 done
5540 IFS=$as_save_IFS
5544 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5545 if test -n "$ac_ct_RANLIB"; then
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5547 $as_echo "$ac_ct_RANLIB" >&6; }
5548 else
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5550 $as_echo "no" >&6; }
5553 if test "x$ac_ct_RANLIB" = x; then
5554 RANLIB=":"
5555 else
5556 case $cross_compiling:$ac_tool_warned in
5557 yes:)
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5560 ac_tool_warned=yes ;;
5561 esac
5562 RANLIB=$ac_ct_RANLIB
5564 else
5565 RANLIB="$ac_cv_prog_RANLIB"
5569 # Check we may build wrappers library
5570 echo "test: bndmov %bnd0, %bnd1" > conftest.s
5571 if { ac_try='$AS -o conftest.o conftest.s 1>&5'
5572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5573 (eval $ac_try) 2>&5
5574 ac_status=$?
5575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5576 test $ac_status = 0; }; }
5577 then
5578 mpx_as=yes
5579 else
5580 mpx_as=no
5581 echo "configure: no MPX support fo as" >&5
5583 rm -f conftest.o conftest.s
5584 if test "x$mpx_as" = "xyes"; then
5585 MPX_AS_SUPPORTED_TRUE=
5586 MPX_AS_SUPPORTED_FALSE='#'
5587 else
5588 MPX_AS_SUPPORTED_TRUE='#'
5589 MPX_AS_SUPPORTED_FALSE=
5593 # Configure libtool
5594 enable_dlopen=yes
5598 case `pwd` in
5599 *\ * | *\ *)
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5601 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5602 esac
5606 macro_version='2.2.7a'
5607 macro_revision='1.3134'
5621 ltmain="$ac_aux_dir/ltmain.sh"
5623 # Backslashify metacharacters that are still active within
5624 # double-quoted strings.
5625 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5627 # Same as above, but do not quote variable references.
5628 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5630 # Sed substitution to delay expansion of an escaped shell variable in a
5631 # double_quote_subst'ed string.
5632 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5634 # Sed substitution to delay expansion of an escaped single quote.
5635 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5637 # Sed substitution to avoid accidental globbing in evaled expressions
5638 no_glob_subst='s/\*/\\\*/g'
5640 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5641 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5642 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5645 $as_echo_n "checking how to print strings... " >&6; }
5646 # Test print first, because it will be a builtin if present.
5647 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5648 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5649 ECHO='print -r --'
5650 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5651 ECHO='printf %s\n'
5652 else
5653 # Use this function as a fallback that always works.
5654 func_fallback_echo ()
5656 eval 'cat <<_LTECHO_EOF
5658 _LTECHO_EOF'
5660 ECHO='func_fallback_echo'
5663 # func_echo_all arg...
5664 # Invoke $ECHO with all args, space-separated.
5665 func_echo_all ()
5667 $ECHO ""
5670 case "$ECHO" in
5671 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5672 $as_echo "printf" >&6; } ;;
5673 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5674 $as_echo "print -r" >&6; } ;;
5675 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5676 $as_echo "cat" >&6; } ;;
5677 esac
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5693 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5694 if test "${ac_cv_path_SED+set}" = set; then :
5695 $as_echo_n "(cached) " >&6
5696 else
5697 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5698 for ac_i in 1 2 3 4 5 6 7; do
5699 ac_script="$ac_script$as_nl$ac_script"
5700 done
5701 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5702 { ac_script=; unset ac_script;}
5703 if test -z "$SED"; then
5704 ac_path_SED_found=false
5705 # Loop through the user's path and test for each of PROGNAME-LIST
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_prog in sed gsed; do
5712 for ac_exec_ext in '' $ac_executable_extensions; do
5713 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5714 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5715 # Check for GNU ac_path_SED and select it if it is found.
5716 # Check for GNU $ac_path_SED
5717 case `"$ac_path_SED" --version 2>&1` in
5718 *GNU*)
5719 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5721 ac_count=0
5722 $as_echo_n 0123456789 >"conftest.in"
5723 while :
5725 cat "conftest.in" "conftest.in" >"conftest.tmp"
5726 mv "conftest.tmp" "conftest.in"
5727 cp "conftest.in" "conftest.nl"
5728 $as_echo '' >> "conftest.nl"
5729 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5731 as_fn_arith $ac_count + 1 && ac_count=$as_val
5732 if test $ac_count -gt ${ac_path_SED_max-0}; then
5733 # Best one so far, save it but keep looking for a better one
5734 ac_cv_path_SED="$ac_path_SED"
5735 ac_path_SED_max=$ac_count
5737 # 10*(2^10) chars as input seems more than enough
5738 test $ac_count -gt 10 && break
5739 done
5740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5741 esac
5743 $ac_path_SED_found && break 3
5744 done
5745 done
5746 done
5747 IFS=$as_save_IFS
5748 if test -z "$ac_cv_path_SED"; then
5749 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5751 else
5752 ac_cv_path_SED=$SED
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5757 $as_echo "$ac_cv_path_SED" >&6; }
5758 SED="$ac_cv_path_SED"
5759 rm -f conftest.sed
5761 test -z "$SED" && SED=sed
5762 Xsed="$SED -e 1s/^X//"
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5775 $as_echo_n "checking for fgrep... " >&6; }
5776 if test "${ac_cv_path_FGREP+set}" = set; then :
5777 $as_echo_n "(cached) " >&6
5778 else
5779 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5780 then ac_cv_path_FGREP="$GREP -F"
5781 else
5782 if test -z "$FGREP"; then
5783 ac_path_FGREP_found=false
5784 # Loop through the user's path and test for each of PROGNAME-LIST
5785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5788 IFS=$as_save_IFS
5789 test -z "$as_dir" && as_dir=.
5790 for ac_prog in fgrep; do
5791 for ac_exec_ext in '' $ac_executable_extensions; do
5792 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5793 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5794 # Check for GNU ac_path_FGREP and select it if it is found.
5795 # Check for GNU $ac_path_FGREP
5796 case `"$ac_path_FGREP" --version 2>&1` in
5797 *GNU*)
5798 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5800 ac_count=0
5801 $as_echo_n 0123456789 >"conftest.in"
5802 while :
5804 cat "conftest.in" "conftest.in" >"conftest.tmp"
5805 mv "conftest.tmp" "conftest.in"
5806 cp "conftest.in" "conftest.nl"
5807 $as_echo 'FGREP' >> "conftest.nl"
5808 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5809 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5810 as_fn_arith $ac_count + 1 && ac_count=$as_val
5811 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5812 # Best one so far, save it but keep looking for a better one
5813 ac_cv_path_FGREP="$ac_path_FGREP"
5814 ac_path_FGREP_max=$ac_count
5816 # 10*(2^10) chars as input seems more than enough
5817 test $ac_count -gt 10 && break
5818 done
5819 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5820 esac
5822 $ac_path_FGREP_found && break 3
5823 done
5824 done
5825 done
5826 IFS=$as_save_IFS
5827 if test -z "$ac_cv_path_FGREP"; then
5828 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5830 else
5831 ac_cv_path_FGREP=$FGREP
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5837 $as_echo "$ac_cv_path_FGREP" >&6; }
5838 FGREP="$ac_cv_path_FGREP"
5841 test -z "$GREP" && GREP=grep
5861 # Check whether --with-gnu-ld was given.
5862 if test "${with_gnu_ld+set}" = set; then :
5863 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5864 else
5865 with_gnu_ld=no
5868 ac_prog=ld
5869 if test "$GCC" = yes; then
5870 # Check if gcc -print-prog-name=ld gives a path.
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5872 $as_echo_n "checking for ld used by $CC... " >&6; }
5873 case $host in
5874 *-*-mingw*)
5875 # gcc leaves a trailing carriage return which upsets mingw
5876 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5878 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5879 esac
5880 case $ac_prog in
5881 # Accept absolute paths.
5882 [\\/]* | ?:[\\/]*)
5883 re_direlt='/[^/][^/]*/\.\./'
5884 # Canonicalize the pathname of ld
5885 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5886 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5887 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5888 done
5889 test -z "$LD" && LD="$ac_prog"
5892 # If it fails, then pretend we aren't using GCC.
5893 ac_prog=ld
5896 # If it is relative, then search for the first ld in PATH.
5897 with_gnu_ld=unknown
5899 esac
5900 elif test "$with_gnu_ld" = yes; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5902 $as_echo_n "checking for GNU ld... " >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5905 $as_echo_n "checking for non-GNU ld... " >&6; }
5907 if test "${lt_cv_path_LD+set}" = set; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 if test -z "$LD"; then
5911 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5912 for ac_dir in $PATH; do
5913 IFS="$lt_save_ifs"
5914 test -z "$ac_dir" && ac_dir=.
5915 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5916 lt_cv_path_LD="$ac_dir/$ac_prog"
5917 # Check to see if the program is GNU ld. I'd rather use --version,
5918 # but apparently some variants of GNU ld only accept -v.
5919 # Break only if it was the GNU/non-GNU ld that we prefer.
5920 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5921 *GNU* | *'with BFD'*)
5922 test "$with_gnu_ld" != no && break
5925 test "$with_gnu_ld" != yes && break
5927 esac
5929 done
5930 IFS="$lt_save_ifs"
5931 else
5932 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5936 LD="$lt_cv_path_LD"
5937 if test -n "$LD"; then
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5939 $as_echo "$LD" >&6; }
5940 else
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5942 $as_echo "no" >&6; }
5944 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5946 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5947 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5948 $as_echo_n "(cached) " >&6
5949 else
5950 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5951 case `$LD -v 2>&1 </dev/null` in
5952 *GNU* | *'with BFD'*)
5953 lt_cv_prog_gnu_ld=yes
5956 lt_cv_prog_gnu_ld=no
5958 esac
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5961 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5962 with_gnu_ld=$lt_cv_prog_gnu_ld
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5973 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5974 if test "${lt_cv_path_NM+set}" = set; then :
5975 $as_echo_n "(cached) " >&6
5976 else
5977 if test -n "$NM"; then
5978 # Let the user override the test.
5979 lt_cv_path_NM="$NM"
5980 else
5981 lt_nm_to_check="${ac_tool_prefix}nm"
5982 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5983 lt_nm_to_check="$lt_nm_to_check nm"
5985 for lt_tmp_nm in $lt_nm_to_check; do
5986 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5987 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5988 IFS="$lt_save_ifs"
5989 test -z "$ac_dir" && ac_dir=.
5990 tmp_nm="$ac_dir/$lt_tmp_nm"
5991 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5992 # Check to see if the nm accepts a BSD-compat flag.
5993 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5994 # nm: unknown option "B" ignored
5995 # Tru64's nm complains that /dev/null is an invalid object file
5996 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5997 */dev/null* | *'Invalid file or object type'*)
5998 lt_cv_path_NM="$tmp_nm -B"
5999 break
6002 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6003 */dev/null*)
6004 lt_cv_path_NM="$tmp_nm -p"
6005 break
6008 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6009 continue # so that we can try to find one that supports BSD flags
6011 esac
6013 esac
6015 done
6016 IFS="$lt_save_ifs"
6017 done
6018 : ${lt_cv_path_NM=no}
6021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6022 $as_echo "$lt_cv_path_NM" >&6; }
6023 if test "$lt_cv_path_NM" != "no"; then
6024 NM="$lt_cv_path_NM"
6025 else
6026 # Didn't find any BSD compatible name lister, look for dumpbin.
6027 if test -n "$DUMPBIN"; then :
6028 # Let the user override the test.
6029 else
6030 if test -n "$ac_tool_prefix"; then
6031 for ac_prog in dumpbin "link -dump"
6033 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6034 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 if test -n "$DUMPBIN"; then
6041 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6050 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6054 done
6055 done
6056 IFS=$as_save_IFS
6060 DUMPBIN=$ac_cv_prog_DUMPBIN
6061 if test -n "$DUMPBIN"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6063 $as_echo "$DUMPBIN" >&6; }
6064 else
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6070 test -n "$DUMPBIN" && break
6071 done
6073 if test -z "$DUMPBIN"; then
6074 ac_ct_DUMPBIN=$DUMPBIN
6075 for ac_prog in dumpbin "link -dump"
6077 # Extract the first word of "$ac_prog", so it can be a program name with args.
6078 set dummy $ac_prog; ac_word=$2
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6080 $as_echo_n "checking for $ac_word... " >&6; }
6081 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6082 $as_echo_n "(cached) " >&6
6083 else
6084 if test -n "$ac_ct_DUMPBIN"; then
6085 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6086 else
6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6088 for as_dir in $PATH
6090 IFS=$as_save_IFS
6091 test -z "$as_dir" && as_dir=.
6092 for ac_exec_ext in '' $ac_executable_extensions; do
6093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6094 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6096 break 2
6098 done
6099 done
6100 IFS=$as_save_IFS
6104 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6105 if test -n "$ac_ct_DUMPBIN"; then
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6107 $as_echo "$ac_ct_DUMPBIN" >&6; }
6108 else
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6110 $as_echo "no" >&6; }
6114 test -n "$ac_ct_DUMPBIN" && break
6115 done
6117 if test "x$ac_ct_DUMPBIN" = x; then
6118 DUMPBIN=":"
6119 else
6120 case $cross_compiling:$ac_tool_warned in
6121 yes:)
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6123 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6124 ac_tool_warned=yes ;;
6125 esac
6126 DUMPBIN=$ac_ct_DUMPBIN
6130 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6131 *COFF*)
6132 DUMPBIN="$DUMPBIN -symbols"
6135 DUMPBIN=:
6137 esac
6140 if test "$DUMPBIN" != ":"; then
6141 NM="$DUMPBIN"
6144 test -z "$NM" && NM=nm
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6152 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6153 if test "${lt_cv_nm_interface+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6155 else
6156 lt_cv_nm_interface="BSD nm"
6157 echo "int some_variable = 0;" > conftest.$ac_ext
6158 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6159 (eval "$ac_compile" 2>conftest.err)
6160 cat conftest.err >&5
6161 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6162 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6163 cat conftest.err >&5
6164 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6165 cat conftest.out >&5
6166 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6167 lt_cv_nm_interface="MS dumpbin"
6169 rm -f conftest*
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6172 $as_echo "$lt_cv_nm_interface" >&6; }
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6175 $as_echo_n "checking whether ln -s works... " >&6; }
6176 LN_S=$as_ln_s
6177 if test "$LN_S" = "ln -s"; then
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6179 $as_echo "yes" >&6; }
6180 else
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6182 $as_echo "no, using $LN_S" >&6; }
6185 # find the maximum length of command line arguments
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6187 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6188 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6189 $as_echo_n "(cached) " >&6
6190 else
6192 teststring="ABCD"
6194 case $build_os in
6195 msdosdjgpp*)
6196 # On DJGPP, this test can blow up pretty badly due to problems in libc
6197 # (any single argument exceeding 2000 bytes causes a buffer overrun
6198 # during glob expansion). Even if it were fixed, the result of this
6199 # check would be larger than it should be.
6200 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6203 gnu*)
6204 # Under GNU Hurd, this test is not required because there is
6205 # no limit to the length of command line arguments.
6206 # Libtool will interpret -1 as no limit whatsoever
6207 lt_cv_sys_max_cmd_len=-1;
6210 cygwin* | mingw* | cegcc*)
6211 # On Win9x/ME, this test blows up -- it succeeds, but takes
6212 # about 5 minutes as the teststring grows exponentially.
6213 # Worse, since 9x/ME are not pre-emptively multitasking,
6214 # you end up with a "frozen" computer, even though with patience
6215 # the test eventually succeeds (with a max line length of 256k).
6216 # Instead, let's just punt: use the minimum linelength reported by
6217 # all of the supported platforms: 8192 (on NT/2K/XP).
6218 lt_cv_sys_max_cmd_len=8192;
6221 mint*)
6222 # On MiNT this can take a long time and run out of memory.
6223 lt_cv_sys_max_cmd_len=8192;
6226 amigaos*)
6227 # On AmigaOS with pdksh, this test takes hours, literally.
6228 # So we just punt and use a minimum line length of 8192.
6229 lt_cv_sys_max_cmd_len=8192;
6232 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6233 # This has been around since 386BSD, at least. Likely further.
6234 if test -x /sbin/sysctl; then
6235 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6236 elif test -x /usr/sbin/sysctl; then
6237 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6238 else
6239 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6241 # And add a safety zone
6242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6246 interix*)
6247 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6248 lt_cv_sys_max_cmd_len=196608
6251 osf*)
6252 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6253 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6254 # nice to cause kernel panics so lets avoid the loop below.
6255 # First set a reasonable default.
6256 lt_cv_sys_max_cmd_len=16384
6258 if test -x /sbin/sysconfig; then
6259 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6260 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6261 esac
6264 sco3.2v5*)
6265 lt_cv_sys_max_cmd_len=102400
6267 sysv5* | sco5v6* | sysv4.2uw2*)
6268 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6269 if test -n "$kargmax"; then
6270 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6271 else
6272 lt_cv_sys_max_cmd_len=32768
6276 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6277 if test -n "$lt_cv_sys_max_cmd_len"; then
6278 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6279 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6280 else
6281 # Make teststring a little bigger before we do anything with it.
6282 # a 1K string should be a reasonable start.
6283 for i in 1 2 3 4 5 6 7 8 ; do
6284 teststring=$teststring$teststring
6285 done
6286 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6287 # If test is not a shell built-in, we'll probably end up computing a
6288 # maximum length that is only half of the actual maximum length, but
6289 # we can't tell.
6290 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6291 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6292 test $i != 17 # 1/2 MB should be enough
6294 i=`expr $i + 1`
6295 teststring=$teststring$teststring
6296 done
6297 # Only check the string length outside the loop.
6298 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6299 teststring=
6300 # Add a significant safety factor because C++ compilers can tack on
6301 # massive amounts of additional arguments before passing them to the
6302 # linker. It appears as though 1/2 is a usable value.
6303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6306 esac
6310 if test -n $lt_cv_sys_max_cmd_len ; then
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6312 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6313 else
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6315 $as_echo "none" >&6; }
6317 max_cmd_len=$lt_cv_sys_max_cmd_len
6324 : ${CP="cp -f"}
6325 : ${MV="mv -f"}
6326 : ${RM="rm -f"}
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6329 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6330 # Try some XSI features
6331 xsi_shell=no
6332 ( _lt_dummy="a/b/c"
6333 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6334 = c,a/b,, \
6335 && eval 'test $(( 1 + 1 )) -eq 2 \
6336 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6337 && xsi_shell=yes
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6339 $as_echo "$xsi_shell" >&6; }
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6343 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6344 lt_shell_append=no
6345 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6346 >/dev/null 2>&1 \
6347 && lt_shell_append=yes
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6349 $as_echo "$lt_shell_append" >&6; }
6352 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6353 lt_unset=unset
6354 else
6355 lt_unset=false
6362 # test EBCDIC or ASCII
6363 case `echo X|tr X '\101'` in
6364 A) # ASCII based system
6365 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6366 lt_SP2NL='tr \040 \012'
6367 lt_NL2SP='tr \015\012 \040\040'
6369 *) # EBCDIC based system
6370 lt_SP2NL='tr \100 \n'
6371 lt_NL2SP='tr \r\n \100\100'
6373 esac
6383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6384 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6385 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6386 $as_echo_n "(cached) " >&6
6387 else
6388 lt_cv_ld_reload_flag='-r'
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6391 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6392 reload_flag=$lt_cv_ld_reload_flag
6393 case $reload_flag in
6394 "" | " "*) ;;
6395 *) reload_flag=" $reload_flag" ;;
6396 esac
6397 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6398 case $host_os in
6399 darwin*)
6400 if test "$GCC" = yes; then
6401 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6402 else
6403 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6406 esac
6416 if test -n "$ac_tool_prefix"; then
6417 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6418 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6420 $as_echo_n "checking for $ac_word... " >&6; }
6421 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6422 $as_echo_n "(cached) " >&6
6423 else
6424 if test -n "$OBJDUMP"; then
6425 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6426 else
6427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6428 for as_dir in $PATH
6430 IFS=$as_save_IFS
6431 test -z "$as_dir" && as_dir=.
6432 for ac_exec_ext in '' $ac_executable_extensions; do
6433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6434 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6436 break 2
6438 done
6439 done
6440 IFS=$as_save_IFS
6444 OBJDUMP=$ac_cv_prog_OBJDUMP
6445 if test -n "$OBJDUMP"; then
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6447 $as_echo "$OBJDUMP" >&6; }
6448 else
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6450 $as_echo "no" >&6; }
6455 if test -z "$ac_cv_prog_OBJDUMP"; then
6456 ac_ct_OBJDUMP=$OBJDUMP
6457 # Extract the first word of "objdump", so it can be a program name with args.
6458 set dummy objdump; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$ac_ct_OBJDUMP"; then
6465 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6478 done
6479 done
6480 IFS=$as_save_IFS
6484 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6485 if test -n "$ac_ct_OBJDUMP"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6487 $as_echo "$ac_ct_OBJDUMP" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6493 if test "x$ac_ct_OBJDUMP" = x; then
6494 OBJDUMP="false"
6495 else
6496 case $cross_compiling:$ac_tool_warned in
6497 yes:)
6498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6500 ac_tool_warned=yes ;;
6501 esac
6502 OBJDUMP=$ac_ct_OBJDUMP
6504 else
6505 OBJDUMP="$ac_cv_prog_OBJDUMP"
6508 test -z "$OBJDUMP" && OBJDUMP=objdump
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6519 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6520 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6521 $as_echo_n "(cached) " >&6
6522 else
6523 lt_cv_file_magic_cmd='$MAGIC_CMD'
6524 lt_cv_file_magic_test_file=
6525 lt_cv_deplibs_check_method='unknown'
6526 # Need to set the preceding variable on all platforms that support
6527 # interlibrary dependencies.
6528 # 'none' -- dependencies not supported.
6529 # `unknown' -- same as none, but documents that we really don't know.
6530 # 'pass_all' -- all dependencies passed with no checks.
6531 # 'test_compile' -- check by making test program.
6532 # 'file_magic [[regex]]' -- check by looking for files in library path
6533 # which responds to the $file_magic_cmd with a given extended regex.
6534 # If you have `file' or equivalent on your system and you're not sure
6535 # whether `pass_all' will *always* work, you probably want this one.
6537 case $host_os in
6538 aix[4-9]*)
6539 lt_cv_deplibs_check_method=pass_all
6542 beos*)
6543 lt_cv_deplibs_check_method=pass_all
6546 bsdi[45]*)
6547 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6548 lt_cv_file_magic_cmd='/usr/bin/file -L'
6549 lt_cv_file_magic_test_file=/shlib/libc.so
6552 cygwin*)
6553 # func_win32_libid is a shell function defined in ltmain.sh
6554 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6555 lt_cv_file_magic_cmd='func_win32_libid'
6558 mingw* | pw32*)
6559 # Base MSYS/MinGW do not provide the 'file' command needed by
6560 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6561 # unless we find 'file', for example because we are cross-compiling.
6562 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6563 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6564 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6565 lt_cv_file_magic_cmd='func_win32_libid'
6566 else
6567 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6568 lt_cv_file_magic_cmd='$OBJDUMP -f'
6572 cegcc*)
6573 # use the weaker test based on 'objdump'. See mingw*.
6574 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6575 lt_cv_file_magic_cmd='$OBJDUMP -f'
6578 darwin* | rhapsody*)
6579 lt_cv_deplibs_check_method=pass_all
6582 freebsd* | dragonfly*)
6583 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6584 case $host_cpu in
6585 i*86 )
6586 # Not sure whether the presence of OpenBSD here was a mistake.
6587 # Let's accept both of them until this is cleared up.
6588 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6589 lt_cv_file_magic_cmd=/usr/bin/file
6590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6592 esac
6593 else
6594 lt_cv_deplibs_check_method=pass_all
6598 gnu*)
6599 lt_cv_deplibs_check_method=pass_all
6602 haiku*)
6603 lt_cv_deplibs_check_method=pass_all
6606 hpux10.20* | hpux11*)
6607 lt_cv_file_magic_cmd=/usr/bin/file
6608 case $host_cpu in
6609 ia64*)
6610 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6611 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6613 hppa*64*)
6614 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]'
6615 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6618 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6619 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6621 esac
6624 interix[3-9]*)
6625 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6629 irix5* | irix6* | nonstopux*)
6630 case $LD in
6631 *-32|*"-32 ") libmagic=32-bit;;
6632 *-n32|*"-n32 ") libmagic=N32;;
6633 *-64|*"-64 ") libmagic=64-bit;;
6634 *) libmagic=never-match;;
6635 esac
6636 lt_cv_deplibs_check_method=pass_all
6639 # This must be Linux ELF.
6640 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6641 lt_cv_deplibs_check_method=pass_all
6644 netbsd*)
6645 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6647 else
6648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6652 newos6*)
6653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6654 lt_cv_file_magic_cmd=/usr/bin/file
6655 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6658 *nto* | *qnx*)
6659 lt_cv_deplibs_check_method=pass_all
6662 openbsd*)
6663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6665 else
6666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6670 osf3* | osf4* | osf5*)
6671 lt_cv_deplibs_check_method=pass_all
6674 rdos*)
6675 lt_cv_deplibs_check_method=pass_all
6678 solaris*)
6679 lt_cv_deplibs_check_method=pass_all
6682 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6683 lt_cv_deplibs_check_method=pass_all
6686 sysv4 | sysv4.3*)
6687 case $host_vendor in
6688 motorola)
6689 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]'
6690 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6692 ncr)
6693 lt_cv_deplibs_check_method=pass_all
6695 sequent)
6696 lt_cv_file_magic_cmd='/bin/file'
6697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6699 sni)
6700 lt_cv_file_magic_cmd='/bin/file'
6701 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6702 lt_cv_file_magic_test_file=/lib/libc.so
6704 siemens)
6705 lt_cv_deplibs_check_method=pass_all
6708 lt_cv_deplibs_check_method=pass_all
6710 esac
6713 tpf*)
6714 lt_cv_deplibs_check_method=pass_all
6716 esac
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6720 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6721 file_magic_cmd=$lt_cv_file_magic_cmd
6722 deplibs_check_method=$lt_cv_deplibs_check_method
6723 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6736 if test -n "$ac_tool_prefix"; then
6737 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6738 set dummy ${ac_tool_prefix}ar; ac_word=$2
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 $as_echo_n "checking for $ac_word... " >&6; }
6741 if test "${ac_cv_prog_AR+set}" = set; then :
6742 $as_echo_n "(cached) " >&6
6743 else
6744 if test -n "$AR"; then
6745 ac_cv_prog_AR="$AR" # Let the user override the test.
6746 else
6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6748 for as_dir in $PATH
6750 IFS=$as_save_IFS
6751 test -z "$as_dir" && as_dir=.
6752 for ac_exec_ext in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_prog_AR="${ac_tool_prefix}ar"
6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6756 break 2
6758 done
6759 done
6760 IFS=$as_save_IFS
6764 AR=$ac_cv_prog_AR
6765 if test -n "$AR"; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6767 $as_echo "$AR" >&6; }
6768 else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6770 $as_echo "no" >&6; }
6775 if test -z "$ac_cv_prog_AR"; then
6776 ac_ct_AR=$AR
6777 # Extract the first word of "ar", so it can be a program name with args.
6778 set dummy ar; ac_word=$2
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6780 $as_echo_n "checking for $ac_word... " >&6; }
6781 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6782 $as_echo_n "(cached) " >&6
6783 else
6784 if test -n "$ac_ct_AR"; then
6785 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6786 else
6787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 for as_dir in $PATH
6790 IFS=$as_save_IFS
6791 test -z "$as_dir" && as_dir=.
6792 for ac_exec_ext in '' $ac_executable_extensions; do
6793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6794 ac_cv_prog_ac_ct_AR="ar"
6795 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6796 break 2
6798 done
6799 done
6800 IFS=$as_save_IFS
6804 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6805 if test -n "$ac_ct_AR"; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6807 $as_echo "$ac_ct_AR" >&6; }
6808 else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6810 $as_echo "no" >&6; }
6813 if test "x$ac_ct_AR" = x; then
6814 AR="false"
6815 else
6816 case $cross_compiling:$ac_tool_warned in
6817 yes:)
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6819 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6820 ac_tool_warned=yes ;;
6821 esac
6822 AR=$ac_ct_AR
6824 else
6825 AR="$ac_cv_prog_AR"
6828 test -z "$AR" && AR=ar
6829 test -z "$AR_FLAGS" && AR_FLAGS=cru
6841 if test -n "$ac_tool_prefix"; then
6842 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6843 set dummy ${ac_tool_prefix}strip; ac_word=$2
6844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6845 $as_echo_n "checking for $ac_word... " >&6; }
6846 if test "${ac_cv_prog_STRIP+set}" = set; then :
6847 $as_echo_n "(cached) " >&6
6848 else
6849 if test -n "$STRIP"; then
6850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6851 else
6852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 for as_dir in $PATH
6855 IFS=$as_save_IFS
6856 test -z "$as_dir" && as_dir=.
6857 for ac_exec_ext in '' $ac_executable_extensions; do
6858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6859 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6861 break 2
6863 done
6864 done
6865 IFS=$as_save_IFS
6869 STRIP=$ac_cv_prog_STRIP
6870 if test -n "$STRIP"; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6872 $as_echo "$STRIP" >&6; }
6873 else
6874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6875 $as_echo "no" >&6; }
6880 if test -z "$ac_cv_prog_STRIP"; then
6881 ac_ct_STRIP=$STRIP
6882 # Extract the first word of "strip", so it can be a program name with args.
6883 set dummy strip; ac_word=$2
6884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6885 $as_echo_n "checking for $ac_word... " >&6; }
6886 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 if test -n "$ac_ct_STRIP"; then
6890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6891 else
6892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6895 IFS=$as_save_IFS
6896 test -z "$as_dir" && as_dir=.
6897 for ac_exec_ext in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_prog_ac_ct_STRIP="strip"
6900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6901 break 2
6903 done
6904 done
6905 IFS=$as_save_IFS
6909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6910 if test -n "$ac_ct_STRIP"; then
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6912 $as_echo "$ac_ct_STRIP" >&6; }
6913 else
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6915 $as_echo "no" >&6; }
6918 if test "x$ac_ct_STRIP" = x; then
6919 STRIP=":"
6920 else
6921 case $cross_compiling:$ac_tool_warned in
6922 yes:)
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6925 ac_tool_warned=yes ;;
6926 esac
6927 STRIP=$ac_ct_STRIP
6929 else
6930 STRIP="$ac_cv_prog_STRIP"
6933 test -z "$STRIP" && STRIP=:
6940 if test -n "$ac_tool_prefix"; then
6941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6942 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6944 $as_echo_n "checking for $ac_word... " >&6; }
6945 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6946 $as_echo_n "(cached) " >&6
6947 else
6948 if test -n "$RANLIB"; then
6949 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6950 else
6951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 for as_dir in $PATH
6954 IFS=$as_save_IFS
6955 test -z "$as_dir" && as_dir=.
6956 for ac_exec_ext in '' $ac_executable_extensions; do
6957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 break 2
6962 done
6963 done
6964 IFS=$as_save_IFS
6968 RANLIB=$ac_cv_prog_RANLIB
6969 if test -n "$RANLIB"; then
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6971 $as_echo "$RANLIB" >&6; }
6972 else
6973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6974 $as_echo "no" >&6; }
6979 if test -z "$ac_cv_prog_RANLIB"; then
6980 ac_ct_RANLIB=$RANLIB
6981 # Extract the first word of "ranlib", so it can be a program name with args.
6982 set dummy ranlib; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$ac_ct_RANLIB"; then
6989 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6998 ac_cv_prog_ac_ct_RANLIB="ranlib"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7002 done
7003 done
7004 IFS=$as_save_IFS
7008 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7009 if test -n "$ac_ct_RANLIB"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7011 $as_echo "$ac_ct_RANLIB" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7017 if test "x$ac_ct_RANLIB" = x; then
7018 RANLIB=":"
7019 else
7020 case $cross_compiling:$ac_tool_warned in
7021 yes:)
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7024 ac_tool_warned=yes ;;
7025 esac
7026 RANLIB=$ac_ct_RANLIB
7028 else
7029 RANLIB="$ac_cv_prog_RANLIB"
7032 test -z "$RANLIB" && RANLIB=:
7039 # Determine commands to create old-style static archives.
7040 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7041 old_postinstall_cmds='chmod 644 $oldlib'
7042 old_postuninstall_cmds=
7044 if test -n "$RANLIB"; then
7045 case $host_os in
7046 openbsd*)
7047 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7050 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7052 esac
7053 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7056 case $host_os in
7057 darwin*)
7058 lock_old_archive_extraction=yes ;;
7060 lock_old_archive_extraction=no ;;
7061 esac
7101 # If no C compiler was specified, use CC.
7102 LTCC=${LTCC-"$CC"}
7104 # If no C compiler flags were specified, use CFLAGS.
7105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7107 # Allow CC to be a program name with arguments.
7108 compiler=$CC
7111 # Check for command to grab the raw symbol name followed by C symbol from nm.
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7113 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7114 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7115 $as_echo_n "(cached) " >&6
7116 else
7118 # These are sane defaults that work on at least a few old systems.
7119 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7121 # Character class describing NM global symbol codes.
7122 symcode='[BCDEGRST]'
7124 # Regexp to match symbols that can be accessed directly from C.
7125 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7127 # Define system-specific variables.
7128 case $host_os in
7129 aix*)
7130 symcode='[BCDT]'
7132 cygwin* | mingw* | pw32* | cegcc*)
7133 symcode='[ABCDGISTW]'
7135 hpux*)
7136 if test "$host_cpu" = ia64; then
7137 symcode='[ABCDEGRST]'
7140 irix* | nonstopux*)
7141 symcode='[BCDEGRST]'
7143 osf*)
7144 symcode='[BCDEGQRST]'
7146 solaris*)
7147 symcode='[BDRT]'
7149 sco3.2v5*)
7150 symcode='[DT]'
7152 sysv4.2uw2*)
7153 symcode='[DT]'
7155 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7156 symcode='[ABDT]'
7158 sysv4)
7159 symcode='[DFNSTU]'
7161 esac
7163 # If we're using GNU nm, then use its standard symbol codes.
7164 case `$NM -V 2>&1` in
7165 *GNU* | *'with BFD'*)
7166 symcode='[ABCDGIRSTW]' ;;
7167 esac
7169 # Transform an extracted symbol line into a proper C declaration.
7170 # Some systems (esp. on ia64) link data and code symbols differently,
7171 # so use this general approach.
7172 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7174 # Transform an extracted symbol line into symbol name and symbol address
7175 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7176 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'"
7178 # Handle CRLF in mingw tool chain
7179 opt_cr=
7180 case $build_os in
7181 mingw*)
7182 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7184 esac
7186 # Try without a prefix underscore, then with it.
7187 for ac_symprfx in "" "_"; do
7189 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7190 symxfrm="\\1 $ac_symprfx\\2 \\2"
7192 # Write the raw and C identifiers.
7193 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7194 # Fake it for dumpbin and say T for any non-static function
7195 # and D for any global variable.
7196 # Also find C++ and __fastcall symbols from MSVC++,
7197 # which start with @ or ?.
7198 lt_cv_sys_global_symbol_pipe="$AWK '"\
7199 " {last_section=section; section=\$ 3};"\
7200 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7201 " \$ 0!~/External *\|/{next};"\
7202 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7203 " {if(hide[section]) next};"\
7204 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7205 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7206 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7207 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7208 " ' prfx=^$ac_symprfx"
7209 else
7210 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7213 # Check to see that the pipe works correctly.
7214 pipe_works=no
7216 rm -f conftest*
7217 cat > conftest.$ac_ext <<_LT_EOF
7218 #ifdef __cplusplus
7219 extern "C" {
7220 #endif
7221 char nm_test_var;
7222 void nm_test_func(void);
7223 void nm_test_func(void){}
7224 #ifdef __cplusplus
7226 #endif
7227 int main(){nm_test_var='a';nm_test_func();return(0);}
7228 _LT_EOF
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7231 (eval $ac_compile) 2>&5
7232 ac_status=$?
7233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; }; then
7235 # Now try to grab the symbols.
7236 nlist=conftest.nm
7237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7238 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7239 ac_status=$?
7240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7241 test $ac_status = 0; } && test -s "$nlist"; then
7242 # Try sorting and uniquifying the output.
7243 if sort "$nlist" | uniq > "$nlist"T; then
7244 mv -f "$nlist"T "$nlist"
7245 else
7246 rm -f "$nlist"T
7249 # Make sure that we snagged all the symbols we need.
7250 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7251 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7252 cat <<_LT_EOF > conftest.$ac_ext
7253 #ifdef __cplusplus
7254 extern "C" {
7255 #endif
7257 _LT_EOF
7258 # Now generate the symbol file.
7259 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7261 cat <<_LT_EOF >> conftest.$ac_ext
7263 /* The mapping between symbol names and symbols. */
7264 const struct {
7265 const char *name;
7266 void *address;
7268 lt__PROGRAM__LTX_preloaded_symbols[] =
7270 { "@PROGRAM@", (void *) 0 },
7271 _LT_EOF
7272 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7273 cat <<\_LT_EOF >> conftest.$ac_ext
7274 {0, (void *) 0}
7277 /* This works around a problem in FreeBSD linker */
7278 #ifdef FREEBSD_WORKAROUND
7279 static const void *lt_preloaded_setup() {
7280 return lt__PROGRAM__LTX_preloaded_symbols;
7282 #endif
7284 #ifdef __cplusplus
7286 #endif
7287 _LT_EOF
7288 # Now try linking the two files.
7289 mv conftest.$ac_objext conftstm.$ac_objext
7290 lt_save_LIBS="$LIBS"
7291 lt_save_CFLAGS="$CFLAGS"
7292 LIBS="conftstm.$ac_objext"
7293 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7295 (eval $ac_link) 2>&5
7296 ac_status=$?
7297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7298 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7299 pipe_works=yes
7301 LIBS="$lt_save_LIBS"
7302 CFLAGS="$lt_save_CFLAGS"
7303 else
7304 echo "cannot find nm_test_func in $nlist" >&5
7306 else
7307 echo "cannot find nm_test_var in $nlist" >&5
7309 else
7310 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7312 else
7313 echo "$progname: failed program was:" >&5
7314 cat conftest.$ac_ext >&5
7316 rm -rf conftest* conftst*
7318 # Do not use the global_symbol_pipe unless it works.
7319 if test "$pipe_works" = yes; then
7320 break
7321 else
7322 lt_cv_sys_global_symbol_pipe=
7324 done
7328 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7329 lt_cv_sys_global_symbol_to_cdecl=
7331 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7333 $as_echo "failed" >&6; }
7334 else
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7336 $as_echo "ok" >&6; }
7360 # Check whether --enable-libtool-lock was given.
7361 if test "${enable_libtool_lock+set}" = set; then :
7362 enableval=$enable_libtool_lock;
7365 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7367 # Some flags need to be propagated to the compiler or linker for good
7368 # libtool support.
7369 case $host in
7370 ia64-*-hpux*)
7371 # Find out which ABI we are using.
7372 echo 'int i;' > conftest.$ac_ext
7373 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7374 (eval $ac_compile) 2>&5
7375 ac_status=$?
7376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7377 test $ac_status = 0; }; then
7378 case `/usr/bin/file conftest.$ac_objext` in
7379 *ELF-32*)
7380 HPUX_IA64_MODE="32"
7382 *ELF-64*)
7383 HPUX_IA64_MODE="64"
7385 esac
7387 rm -rf conftest*
7389 *-*-irix6*)
7390 # Find out which ABI we are using.
7391 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7392 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7393 (eval $ac_compile) 2>&5
7394 ac_status=$?
7395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7396 test $ac_status = 0; }; then
7397 if test "$lt_cv_prog_gnu_ld" = yes; then
7398 case `/usr/bin/file conftest.$ac_objext` in
7399 *32-bit*)
7400 LD="${LD-ld} -melf32bsmip"
7402 *N32*)
7403 LD="${LD-ld} -melf32bmipn32"
7405 *64-bit*)
7406 LD="${LD-ld} -melf64bmip"
7408 esac
7409 else
7410 case `/usr/bin/file conftest.$ac_objext` in
7411 *32-bit*)
7412 LD="${LD-ld} -32"
7414 *N32*)
7415 LD="${LD-ld} -n32"
7417 *64-bit*)
7418 LD="${LD-ld} -64"
7420 esac
7423 rm -rf conftest*
7426 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7427 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7428 # Find out which ABI we are using.
7429 echo 'int i;' > conftest.$ac_ext
7430 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7431 (eval $ac_compile) 2>&5
7432 ac_status=$?
7433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7434 test $ac_status = 0; }; then
7435 case `/usr/bin/file conftest.o` in
7436 *32-bit*)
7437 case $host in
7438 x86_64-*kfreebsd*-gnu)
7439 LD="${LD-ld} -m elf_i386_fbsd"
7441 x86_64-*linux*)
7442 case `/usr/bin/file conftest.o` in
7443 *x86-64*)
7444 LD="${LD-ld} -m elf32_x86_64"
7447 LD="${LD-ld} -m elf_i386"
7449 esac
7451 powerpc64le-*linux*)
7452 LD="${LD-ld} -m elf32lppclinux"
7454 powerpc64-*linux*)
7455 LD="${LD-ld} -m elf32ppclinux"
7457 s390x-*linux*)
7458 LD="${LD-ld} -m elf_s390"
7460 sparc64-*linux*)
7461 LD="${LD-ld} -m elf32_sparc"
7463 esac
7465 *64-bit*)
7466 case $host in
7467 x86_64-*kfreebsd*-gnu)
7468 LD="${LD-ld} -m elf_x86_64_fbsd"
7470 x86_64-*linux*)
7471 LD="${LD-ld} -m elf_x86_64"
7473 powerpcle-*linux*)
7474 LD="${LD-ld} -m elf64lppc"
7476 powerpc-*linux*)
7477 LD="${LD-ld} -m elf64ppc"
7479 s390*-*linux*|s390*-*tpf*)
7480 LD="${LD-ld} -m elf64_s390"
7482 sparc*-*linux*)
7483 LD="${LD-ld} -m elf64_sparc"
7485 esac
7487 esac
7489 rm -rf conftest*
7492 *-*-sco3.2v5*)
7493 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7494 SAVE_CFLAGS="$CFLAGS"
7495 CFLAGS="$CFLAGS -belf"
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7497 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7498 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7499 $as_echo_n "(cached) " >&6
7500 else
7501 ac_ext=c
7502 ac_cpp='$CPP $CPPFLAGS'
7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7508 /* end confdefs.h. */
7511 main ()
7515 return 0;
7517 _ACEOF
7518 if ac_fn_c_try_link "$LINENO"; then :
7519 lt_cv_cc_needs_belf=yes
7520 else
7521 lt_cv_cc_needs_belf=no
7523 rm -f core conftest.err conftest.$ac_objext \
7524 conftest$ac_exeext conftest.$ac_ext
7525 ac_ext=c
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7533 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7534 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7535 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7536 CFLAGS="$SAVE_CFLAGS"
7539 sparc*-*solaris*)
7540 # Find out which ABI we are using.
7541 echo 'int i;' > conftest.$ac_ext
7542 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7543 (eval $ac_compile) 2>&5
7544 ac_status=$?
7545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7546 test $ac_status = 0; }; then
7547 case `/usr/bin/file conftest.o` in
7548 *64-bit*)
7549 case $lt_cv_prog_gnu_ld in
7550 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7552 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7553 LD="${LD-ld} -64"
7556 esac
7558 esac
7560 rm -rf conftest*
7562 esac
7564 need_locks="$enable_libtool_lock"
7567 case $host_os in
7568 rhapsody* | darwin*)
7569 if test -n "$ac_tool_prefix"; then
7570 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7571 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7573 $as_echo_n "checking for $ac_word... " >&6; }
7574 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 if test -n "$DSYMUTIL"; then
7578 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7579 else
7580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7581 for as_dir in $PATH
7583 IFS=$as_save_IFS
7584 test -z "$as_dir" && as_dir=.
7585 for ac_exec_ext in '' $ac_executable_extensions; do
7586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7587 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7589 break 2
7591 done
7592 done
7593 IFS=$as_save_IFS
7597 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7598 if test -n "$DSYMUTIL"; then
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7600 $as_echo "$DSYMUTIL" >&6; }
7601 else
7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7603 $as_echo "no" >&6; }
7608 if test -z "$ac_cv_prog_DSYMUTIL"; then
7609 ac_ct_DSYMUTIL=$DSYMUTIL
7610 # Extract the first word of "dsymutil", so it can be a program name with args.
7611 set dummy dsymutil; ac_word=$2
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7613 $as_echo_n "checking for $ac_word... " >&6; }
7614 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7615 $as_echo_n "(cached) " >&6
7616 else
7617 if test -n "$ac_ct_DSYMUTIL"; then
7618 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7619 else
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7623 IFS=$as_save_IFS
7624 test -z "$as_dir" && as_dir=.
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7627 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7629 break 2
7631 done
7632 done
7633 IFS=$as_save_IFS
7637 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7638 if test -n "$ac_ct_DSYMUTIL"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7640 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7641 else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7646 if test "x$ac_ct_DSYMUTIL" = x; then
7647 DSYMUTIL=":"
7648 else
7649 case $cross_compiling:$ac_tool_warned in
7650 yes:)
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7653 ac_tool_warned=yes ;;
7654 esac
7655 DSYMUTIL=$ac_ct_DSYMUTIL
7657 else
7658 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7661 if test -n "$ac_tool_prefix"; then
7662 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7663 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7665 $as_echo_n "checking for $ac_word... " >&6; }
7666 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7667 $as_echo_n "(cached) " >&6
7668 else
7669 if test -n "$NMEDIT"; then
7670 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7671 else
7672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7673 for as_dir in $PATH
7675 IFS=$as_save_IFS
7676 test -z "$as_dir" && as_dir=.
7677 for ac_exec_ext in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7681 break 2
7683 done
7684 done
7685 IFS=$as_save_IFS
7689 NMEDIT=$ac_cv_prog_NMEDIT
7690 if test -n "$NMEDIT"; then
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7692 $as_echo "$NMEDIT" >&6; }
7693 else
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7695 $as_echo "no" >&6; }
7700 if test -z "$ac_cv_prog_NMEDIT"; then
7701 ac_ct_NMEDIT=$NMEDIT
7702 # Extract the first word of "nmedit", so it can be a program name with args.
7703 set dummy nmedit; ac_word=$2
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7705 $as_echo_n "checking for $ac_word... " >&6; }
7706 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7707 $as_echo_n "(cached) " >&6
7708 else
7709 if test -n "$ac_ct_NMEDIT"; then
7710 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7711 else
7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 for as_dir in $PATH
7715 IFS=$as_save_IFS
7716 test -z "$as_dir" && as_dir=.
7717 for ac_exec_ext in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7719 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7721 break 2
7723 done
7724 done
7725 IFS=$as_save_IFS
7729 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7730 if test -n "$ac_ct_NMEDIT"; then
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7732 $as_echo "$ac_ct_NMEDIT" >&6; }
7733 else
7734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7735 $as_echo "no" >&6; }
7738 if test "x$ac_ct_NMEDIT" = x; then
7739 NMEDIT=":"
7740 else
7741 case $cross_compiling:$ac_tool_warned in
7742 yes:)
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7745 ac_tool_warned=yes ;;
7746 esac
7747 NMEDIT=$ac_ct_NMEDIT
7749 else
7750 NMEDIT="$ac_cv_prog_NMEDIT"
7753 if test -n "$ac_tool_prefix"; then
7754 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7755 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7757 $as_echo_n "checking for $ac_word... " >&6; }
7758 if test "${ac_cv_prog_LIPO+set}" = set; then :
7759 $as_echo_n "(cached) " >&6
7760 else
7761 if test -n "$LIPO"; then
7762 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7763 else
7764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7765 for as_dir in $PATH
7767 IFS=$as_save_IFS
7768 test -z "$as_dir" && as_dir=.
7769 for ac_exec_ext in '' $ac_executable_extensions; do
7770 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7771 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7773 break 2
7775 done
7776 done
7777 IFS=$as_save_IFS
7781 LIPO=$ac_cv_prog_LIPO
7782 if test -n "$LIPO"; then
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7784 $as_echo "$LIPO" >&6; }
7785 else
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7787 $as_echo "no" >&6; }
7792 if test -z "$ac_cv_prog_LIPO"; then
7793 ac_ct_LIPO=$LIPO
7794 # Extract the first word of "lipo", so it can be a program name with args.
7795 set dummy lipo; ac_word=$2
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7797 $as_echo_n "checking for $ac_word... " >&6; }
7798 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 if test -n "$ac_ct_LIPO"; then
7802 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7803 else
7804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7805 for as_dir in $PATH
7807 IFS=$as_save_IFS
7808 test -z "$as_dir" && as_dir=.
7809 for ac_exec_ext in '' $ac_executable_extensions; do
7810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7811 ac_cv_prog_ac_ct_LIPO="lipo"
7812 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7813 break 2
7815 done
7816 done
7817 IFS=$as_save_IFS
7821 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7822 if test -n "$ac_ct_LIPO"; then
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7824 $as_echo "$ac_ct_LIPO" >&6; }
7825 else
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7830 if test "x$ac_ct_LIPO" = x; then
7831 LIPO=":"
7832 else
7833 case $cross_compiling:$ac_tool_warned in
7834 yes:)
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7836 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7837 ac_tool_warned=yes ;;
7838 esac
7839 LIPO=$ac_ct_LIPO
7841 else
7842 LIPO="$ac_cv_prog_LIPO"
7845 if test -n "$ac_tool_prefix"; then
7846 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7847 set dummy ${ac_tool_prefix}otool; ac_word=$2
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7849 $as_echo_n "checking for $ac_word... " >&6; }
7850 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7851 $as_echo_n "(cached) " >&6
7852 else
7853 if test -n "$OTOOL"; then
7854 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7855 else
7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7857 for as_dir in $PATH
7859 IFS=$as_save_IFS
7860 test -z "$as_dir" && as_dir=.
7861 for ac_exec_ext in '' $ac_executable_extensions; do
7862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7863 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7865 break 2
7867 done
7868 done
7869 IFS=$as_save_IFS
7873 OTOOL=$ac_cv_prog_OTOOL
7874 if test -n "$OTOOL"; then
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7876 $as_echo "$OTOOL" >&6; }
7877 else
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7879 $as_echo "no" >&6; }
7884 if test -z "$ac_cv_prog_OTOOL"; then
7885 ac_ct_OTOOL=$OTOOL
7886 # Extract the first word of "otool", so it can be a program name with args.
7887 set dummy otool; ac_word=$2
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7889 $as_echo_n "checking for $ac_word... " >&6; }
7890 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7891 $as_echo_n "(cached) " >&6
7892 else
7893 if test -n "$ac_ct_OTOOL"; then
7894 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7895 else
7896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7897 for as_dir in $PATH
7899 IFS=$as_save_IFS
7900 test -z "$as_dir" && as_dir=.
7901 for ac_exec_ext in '' $ac_executable_extensions; do
7902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7903 ac_cv_prog_ac_ct_OTOOL="otool"
7904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7905 break 2
7907 done
7908 done
7909 IFS=$as_save_IFS
7913 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7914 if test -n "$ac_ct_OTOOL"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7916 $as_echo "$ac_ct_OTOOL" >&6; }
7917 else
7918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7919 $as_echo "no" >&6; }
7922 if test "x$ac_ct_OTOOL" = x; then
7923 OTOOL=":"
7924 else
7925 case $cross_compiling:$ac_tool_warned in
7926 yes:)
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7928 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7929 ac_tool_warned=yes ;;
7930 esac
7931 OTOOL=$ac_ct_OTOOL
7933 else
7934 OTOOL="$ac_cv_prog_OTOOL"
7937 if test -n "$ac_tool_prefix"; then
7938 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7939 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7943 $as_echo_n "(cached) " >&6
7944 else
7945 if test -n "$OTOOL64"; then
7946 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7947 else
7948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7949 for as_dir in $PATH
7951 IFS=$as_save_IFS
7952 test -z "$as_dir" && as_dir=.
7953 for ac_exec_ext in '' $ac_executable_extensions; do
7954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7955 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7957 break 2
7959 done
7960 done
7961 IFS=$as_save_IFS
7965 OTOOL64=$ac_cv_prog_OTOOL64
7966 if test -n "$OTOOL64"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7968 $as_echo "$OTOOL64" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7976 if test -z "$ac_cv_prog_OTOOL64"; then
7977 ac_ct_OTOOL64=$OTOOL64
7978 # Extract the first word of "otool64", so it can be a program name with args.
7979 set dummy otool64; ac_word=$2
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7981 $as_echo_n "checking for $ac_word... " >&6; }
7982 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7983 $as_echo_n "(cached) " >&6
7984 else
7985 if test -n "$ac_ct_OTOOL64"; then
7986 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7987 else
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7995 ac_cv_prog_ac_ct_OTOOL64="otool64"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7999 done
8000 done
8001 IFS=$as_save_IFS
8005 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8006 if test -n "$ac_ct_OTOOL64"; then
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8008 $as_echo "$ac_ct_OTOOL64" >&6; }
8009 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8011 $as_echo "no" >&6; }
8014 if test "x$ac_ct_OTOOL64" = x; then
8015 OTOOL64=":"
8016 else
8017 case $cross_compiling:$ac_tool_warned in
8018 yes:)
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8020 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8021 ac_tool_warned=yes ;;
8022 esac
8023 OTOOL64=$ac_ct_OTOOL64
8025 else
8026 OTOOL64="$ac_cv_prog_OTOOL64"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8056 $as_echo_n "checking for -single_module linker flag... " >&6; }
8057 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8058 $as_echo_n "(cached) " >&6
8059 else
8060 lt_cv_apple_cc_single_mod=no
8061 if test -z "${LT_MULTI_MODULE}"; then
8062 # By default we will add the -single_module flag. You can override
8063 # by either setting the environment variable LT_MULTI_MODULE
8064 # non-empty at configure time, or by adding -multi_module to the
8065 # link flags.
8066 rm -rf libconftest.dylib*
8067 echo "int foo(void){return 1;}" > conftest.c
8068 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8069 -dynamiclib -Wl,-single_module conftest.c" >&5
8070 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8071 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8072 _lt_result=$?
8073 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8074 lt_cv_apple_cc_single_mod=yes
8075 else
8076 cat conftest.err >&5
8078 rm -rf libconftest.dylib*
8079 rm -f conftest.*
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8083 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8085 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8086 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8087 $as_echo_n "(cached) " >&6
8088 else
8089 lt_cv_ld_exported_symbols_list=no
8090 save_LDFLAGS=$LDFLAGS
8091 echo "_main" > conftest.sym
8092 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8094 /* end confdefs.h. */
8097 main ()
8101 return 0;
8103 _ACEOF
8104 if ac_fn_c_try_link "$LINENO"; then :
8105 lt_cv_ld_exported_symbols_list=yes
8106 else
8107 lt_cv_ld_exported_symbols_list=no
8109 rm -f core conftest.err conftest.$ac_objext \
8110 conftest$ac_exeext conftest.$ac_ext
8111 LDFLAGS="$save_LDFLAGS"
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8115 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8117 $as_echo_n "checking for -force_load linker flag... " >&6; }
8118 if test "${lt_cv_ld_force_load+set}" = set; then :
8119 $as_echo_n "(cached) " >&6
8120 else
8121 lt_cv_ld_force_load=no
8122 cat > conftest.c << _LT_EOF
8123 int forced_loaded() { return 2;}
8124 _LT_EOF
8125 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8126 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8127 echo "$AR cru libconftest.a conftest.o" >&5
8128 $AR cru libconftest.a conftest.o 2>&5
8129 cat > conftest.c << _LT_EOF
8130 int main() { return 0;}
8131 _LT_EOF
8132 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8133 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8134 _lt_result=$?
8135 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8136 lt_cv_ld_force_load=yes
8137 else
8138 cat conftest.err >&5
8140 rm -f conftest.err libconftest.a conftest conftest.c
8141 rm -rf conftest.dSYM
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8145 $as_echo "$lt_cv_ld_force_load" >&6; }
8146 case $host_os in
8147 rhapsody* | darwin1.[012])
8148 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8149 darwin1.*)
8150 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8151 darwin*) # darwin 5.x on
8152 # if running on 10.5 or later, the deployment target defaults
8153 # to the OS version, if on x86, and 10.4, the deployment
8154 # target defaults to 10.4. Don't you love it?
8155 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8156 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8157 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8158 10.[012][,.]*)
8159 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8160 10.*)
8161 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8162 esac
8164 esac
8165 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8166 _lt_dar_single_mod='$single_module'
8168 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8169 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8170 else
8171 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8173 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8174 _lt_dsymutil='~$DSYMUTIL $lib || :'
8175 else
8176 _lt_dsymutil=
8179 esac
8181 for ac_header in dlfcn.h
8182 do :
8183 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8185 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8186 cat >>confdefs.h <<_ACEOF
8187 #define HAVE_DLFCN_H 1
8188 _ACEOF
8192 done
8199 # Set options
8204 enable_win32_dll=no
8207 # Check whether --enable-shared was given.
8208 if test "${enable_shared+set}" = set; then :
8209 enableval=$enable_shared; p=${PACKAGE-default}
8210 case $enableval in
8211 yes) enable_shared=yes ;;
8212 no) enable_shared=no ;;
8214 enable_shared=no
8215 # Look at the argument we got. We use all the common list separators.
8216 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8217 for pkg in $enableval; do
8218 IFS="$lt_save_ifs"
8219 if test "X$pkg" = "X$p"; then
8220 enable_shared=yes
8222 done
8223 IFS="$lt_save_ifs"
8225 esac
8226 else
8227 enable_shared=yes
8238 # Check whether --enable-static was given.
8239 if test "${enable_static+set}" = set; then :
8240 enableval=$enable_static; p=${PACKAGE-default}
8241 case $enableval in
8242 yes) enable_static=yes ;;
8243 no) enable_static=no ;;
8245 enable_static=no
8246 # Look at the argument we got. We use all the common list separators.
8247 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8248 for pkg in $enableval; do
8249 IFS="$lt_save_ifs"
8250 if test "X$pkg" = "X$p"; then
8251 enable_static=yes
8253 done
8254 IFS="$lt_save_ifs"
8256 esac
8257 else
8258 enable_static=yes
8270 # Check whether --with-pic was given.
8271 if test "${with_pic+set}" = set; then :
8272 withval=$with_pic; pic_mode="$withval"
8273 else
8274 pic_mode=default
8278 test -z "$pic_mode" && pic_mode=default
8286 # Check whether --enable-fast-install was given.
8287 if test "${enable_fast_install+set}" = set; then :
8288 enableval=$enable_fast_install; p=${PACKAGE-default}
8289 case $enableval in
8290 yes) enable_fast_install=yes ;;
8291 no) enable_fast_install=no ;;
8293 enable_fast_install=no
8294 # Look at the argument we got. We use all the common list separators.
8295 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8296 for pkg in $enableval; do
8297 IFS="$lt_save_ifs"
8298 if test "X$pkg" = "X$p"; then
8299 enable_fast_install=yes
8301 done
8302 IFS="$lt_save_ifs"
8304 esac
8305 else
8306 enable_fast_install=yes
8319 # This can be used to rebuild libtool when needed
8320 LIBTOOL_DEPS="$ltmain"
8322 # Always use our own libtool.
8323 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8350 test -z "$LN_S" && LN_S="ln -s"
8365 if test -n "${ZSH_VERSION+set}" ; then
8366 setopt NO_GLOB_SUBST
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8370 $as_echo_n "checking for objdir... " >&6; }
8371 if test "${lt_cv_objdir+set}" = set; then :
8372 $as_echo_n "(cached) " >&6
8373 else
8374 rm -f .libs 2>/dev/null
8375 mkdir .libs 2>/dev/null
8376 if test -d .libs; then
8377 lt_cv_objdir=.libs
8378 else
8379 # MS-DOS does not allow filenames that begin with a dot.
8380 lt_cv_objdir=_libs
8382 rmdir .libs 2>/dev/null
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8385 $as_echo "$lt_cv_objdir" >&6; }
8386 objdir=$lt_cv_objdir
8392 cat >>confdefs.h <<_ACEOF
8393 #define LT_OBJDIR "$lt_cv_objdir/"
8394 _ACEOF
8399 case $host_os in
8400 aix3*)
8401 # AIX sometimes has problems with the GCC collect2 program. For some
8402 # reason, if we set the COLLECT_NAMES environment variable, the problems
8403 # vanish in a puff of smoke.
8404 if test "X${COLLECT_NAMES+set}" != Xset; then
8405 COLLECT_NAMES=
8406 export COLLECT_NAMES
8409 esac
8411 # Global variables:
8412 ofile=libtool
8413 can_build_shared=yes
8415 # All known linkers require a `.a' archive for static linking (except MSVC,
8416 # which needs '.lib').
8417 libext=a
8419 with_gnu_ld="$lt_cv_prog_gnu_ld"
8421 old_CC="$CC"
8422 old_CFLAGS="$CFLAGS"
8424 # Set sane defaults for various variables
8425 test -z "$CC" && CC=cc
8426 test -z "$LTCC" && LTCC=$CC
8427 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8428 test -z "$LD" && LD=ld
8429 test -z "$ac_objext" && ac_objext=o
8431 for cc_temp in $compiler""; do
8432 case $cc_temp in
8433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8435 \-*) ;;
8436 *) break;;
8437 esac
8438 done
8439 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8442 # Only perform the check for file, if the check method requires it
8443 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8444 case $deplibs_check_method in
8445 file_magic*)
8446 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8448 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8449 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8450 $as_echo_n "(cached) " >&6
8451 else
8452 case $MAGIC_CMD in
8453 [\\/*] | ?:[\\/]*)
8454 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8457 lt_save_MAGIC_CMD="$MAGIC_CMD"
8458 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8459 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8460 for ac_dir in $ac_dummy; do
8461 IFS="$lt_save_ifs"
8462 test -z "$ac_dir" && ac_dir=.
8463 if test -f $ac_dir/${ac_tool_prefix}file; then
8464 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8465 if test -n "$file_magic_test_file"; then
8466 case $deplibs_check_method in
8467 "file_magic "*)
8468 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8469 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8470 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8471 $EGREP "$file_magic_regex" > /dev/null; then
8473 else
8474 cat <<_LT_EOF 1>&2
8476 *** Warning: the command libtool uses to detect shared libraries,
8477 *** $file_magic_cmd, produces output that libtool cannot recognize.
8478 *** The result is that libtool may fail to recognize shared libraries
8479 *** as such. This will affect the creation of libtool libraries that
8480 *** depend on shared libraries, but programs linked with such libtool
8481 *** libraries will work regardless of this problem. Nevertheless, you
8482 *** may want to report the problem to your system manager and/or to
8483 *** bug-libtool@gnu.org
8485 _LT_EOF
8486 fi ;;
8487 esac
8489 break
8491 done
8492 IFS="$lt_save_ifs"
8493 MAGIC_CMD="$lt_save_MAGIC_CMD"
8495 esac
8498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8499 if test -n "$MAGIC_CMD"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8501 $as_echo "$MAGIC_CMD" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8511 if test -z "$lt_cv_path_MAGIC_CMD"; then
8512 if test -n "$ac_tool_prefix"; then
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8514 $as_echo_n "checking for file... " >&6; }
8515 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 case $MAGIC_CMD in
8519 [\\/*] | ?:[\\/]*)
8520 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8523 lt_save_MAGIC_CMD="$MAGIC_CMD"
8524 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8525 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8526 for ac_dir in $ac_dummy; do
8527 IFS="$lt_save_ifs"
8528 test -z "$ac_dir" && ac_dir=.
8529 if test -f $ac_dir/file; then
8530 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8531 if test -n "$file_magic_test_file"; then
8532 case $deplibs_check_method in
8533 "file_magic "*)
8534 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8535 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8536 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8537 $EGREP "$file_magic_regex" > /dev/null; then
8539 else
8540 cat <<_LT_EOF 1>&2
8542 *** Warning: the command libtool uses to detect shared libraries,
8543 *** $file_magic_cmd, produces output that libtool cannot recognize.
8544 *** The result is that libtool may fail to recognize shared libraries
8545 *** as such. This will affect the creation of libtool libraries that
8546 *** depend on shared libraries, but programs linked with such libtool
8547 *** libraries will work regardless of this problem. Nevertheless, you
8548 *** may want to report the problem to your system manager and/or to
8549 *** bug-libtool@gnu.org
8551 _LT_EOF
8552 fi ;;
8553 esac
8555 break
8557 done
8558 IFS="$lt_save_ifs"
8559 MAGIC_CMD="$lt_save_MAGIC_CMD"
8561 esac
8564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8565 if test -n "$MAGIC_CMD"; then
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8567 $as_echo "$MAGIC_CMD" >&6; }
8568 else
8569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8570 $as_echo "no" >&6; }
8574 else
8575 MAGIC_CMD=:
8581 esac
8583 # Use C for the default configuration in the libtool script
8585 lt_save_CC="$CC"
8586 ac_ext=c
8587 ac_cpp='$CPP $CPPFLAGS'
8588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8593 # Source file extension for C test sources.
8594 ac_ext=c
8596 # Object file extension for compiled C test sources.
8597 objext=o
8598 objext=$objext
8600 # Code to be used in simple compile tests
8601 lt_simple_compile_test_code="int some_variable = 0;"
8603 # Code to be used in simple link tests
8604 lt_simple_link_test_code='int main(){return(0);}'
8612 # If no C compiler was specified, use CC.
8613 LTCC=${LTCC-"$CC"}
8615 # If no C compiler flags were specified, use CFLAGS.
8616 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8618 # Allow CC to be a program name with arguments.
8619 compiler=$CC
8621 # Save the default compiler, since it gets overwritten when the other
8622 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8623 compiler_DEFAULT=$CC
8625 # save warnings/boilerplate of simple test code
8626 ac_outfile=conftest.$ac_objext
8627 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8628 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8629 _lt_compiler_boilerplate=`cat conftest.err`
8630 $RM conftest*
8632 ac_outfile=conftest.$ac_objext
8633 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8634 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8635 _lt_linker_boilerplate=`cat conftest.err`
8636 $RM -r conftest*
8639 ## CAVEAT EMPTOR:
8640 ## There is no encapsulation within the following macros, do not change
8641 ## the running order or otherwise move them around unless you know exactly
8642 ## what you are doing...
8643 if test -n "$compiler"; then
8645 lt_prog_compiler_no_builtin_flag=
8647 if test "$GCC" = yes; then
8648 case $cc_basename in
8649 nvcc*)
8650 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8652 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8653 esac
8655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8656 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8657 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8658 $as_echo_n "(cached) " >&6
8659 else
8660 lt_cv_prog_compiler_rtti_exceptions=no
8661 ac_outfile=conftest.$ac_objext
8662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8663 lt_compiler_flag="-fno-rtti -fno-exceptions"
8664 # Insert the option either (1) after the last *FLAGS variable, or
8665 # (2) before a word containing "conftest.", or (3) at the end.
8666 # Note that $ac_compile itself does not contain backslashes and begins
8667 # with a dollar sign (not a hyphen), so the echo should work correctly.
8668 # The option is referenced via a variable to avoid confusing sed.
8669 lt_compile=`echo "$ac_compile" | $SED \
8670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8672 -e 's:$: $lt_compiler_flag:'`
8673 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8674 (eval "$lt_compile" 2>conftest.err)
8675 ac_status=$?
8676 cat conftest.err >&5
8677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8678 if (exit $ac_status) && test -s "$ac_outfile"; then
8679 # The compiler can only warn and ignore the option if not recognized
8680 # So say no if there are warnings other than the usual output.
8681 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8682 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8683 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8684 lt_cv_prog_compiler_rtti_exceptions=yes
8687 $RM conftest*
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8691 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8693 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8694 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8695 else
8706 lt_prog_compiler_wl=
8707 lt_prog_compiler_pic=
8708 lt_prog_compiler_static=
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8711 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8713 if test "$GCC" = yes; then
8714 lt_prog_compiler_wl='-Wl,'
8715 lt_prog_compiler_static='-static'
8717 case $host_os in
8718 aix*)
8719 # All AIX code is PIC.
8720 if test "$host_cpu" = ia64; then
8721 # AIX 5 now supports IA64 processor
8722 lt_prog_compiler_static='-Bstatic'
8724 lt_prog_compiler_pic='-fPIC'
8727 amigaos*)
8728 case $host_cpu in
8729 powerpc)
8730 # see comment about AmigaOS4 .so support
8731 lt_prog_compiler_pic='-fPIC'
8733 m68k)
8734 # FIXME: we need at least 68020 code to build shared libraries, but
8735 # adding the `-m68020' flag to GCC prevents building anything better,
8736 # like `-m68040'.
8737 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8739 esac
8742 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8743 # PIC is the default for these OSes.
8746 mingw* | cygwin* | pw32* | os2* | cegcc*)
8747 # This hack is so that the source file can tell whether it is being
8748 # built for inclusion in a dll (and should export symbols for example).
8749 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8750 # (--disable-auto-import) libraries
8751 lt_prog_compiler_pic='-DDLL_EXPORT'
8754 darwin* | rhapsody*)
8755 # PIC is the default on this platform
8756 # Common symbols not allowed in MH_DYLIB files
8757 lt_prog_compiler_pic='-fno-common'
8760 haiku*)
8761 # PIC is the default for Haiku.
8762 # The "-static" flag exists, but is broken.
8763 lt_prog_compiler_static=
8766 hpux*)
8767 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8768 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8769 # sets the default TLS model and affects inlining.
8770 case $host_cpu in
8771 hppa*64*)
8772 # +Z the default
8775 lt_prog_compiler_pic='-fPIC'
8777 esac
8780 interix[3-9]*)
8781 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8782 # Instead, we relocate shared libraries at runtime.
8785 msdosdjgpp*)
8786 # Just because we use GCC doesn't mean we suddenly get shared libraries
8787 # on systems that don't support them.
8788 lt_prog_compiler_can_build_shared=no
8789 enable_shared=no
8792 *nto* | *qnx*)
8793 # QNX uses GNU C++, but need to define -shared option too, otherwise
8794 # it will coredump.
8795 lt_prog_compiler_pic='-fPIC -shared'
8798 sysv4*MP*)
8799 if test -d /usr/nec; then
8800 lt_prog_compiler_pic=-Kconform_pic
8805 lt_prog_compiler_pic='-fPIC'
8807 esac
8809 case $cc_basename in
8810 nvcc*) # Cuda Compiler Driver 2.2
8811 lt_prog_compiler_wl='-Xlinker '
8812 lt_prog_compiler_pic='-Xcompiler -fPIC'
8814 esac
8815 else
8816 # PORTME Check for flag to pass linker flags through the system compiler.
8817 case $host_os in
8818 aix*)
8819 lt_prog_compiler_wl='-Wl,'
8820 if test "$host_cpu" = ia64; then
8821 # AIX 5 now supports IA64 processor
8822 lt_prog_compiler_static='-Bstatic'
8823 else
8824 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8828 mingw* | cygwin* | pw32* | os2* | cegcc*)
8829 # This hack is so that the source file can tell whether it is being
8830 # built for inclusion in a dll (and should export symbols for example).
8831 lt_prog_compiler_pic='-DDLL_EXPORT'
8834 hpux9* | hpux10* | hpux11*)
8835 lt_prog_compiler_wl='-Wl,'
8836 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8837 # not for PA HP-UX.
8838 case $host_cpu in
8839 hppa*64*|ia64*)
8840 # +Z the default
8843 lt_prog_compiler_pic='+Z'
8845 esac
8846 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8847 lt_prog_compiler_static='${wl}-a ${wl}archive'
8850 irix5* | irix6* | nonstopux*)
8851 lt_prog_compiler_wl='-Wl,'
8852 # PIC (with -KPIC) is the default.
8853 lt_prog_compiler_static='-non_shared'
8856 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8857 case $cc_basename in
8858 # old Intel for x86_64 which still supported -KPIC.
8859 ecc*)
8860 lt_prog_compiler_wl='-Wl,'
8861 lt_prog_compiler_pic='-KPIC'
8862 lt_prog_compiler_static='-static'
8864 # icc used to be incompatible with GCC.
8865 # ICC 10 doesn't accept -KPIC any more.
8866 icc* | ifort*)
8867 lt_prog_compiler_wl='-Wl,'
8868 lt_prog_compiler_pic='-fPIC'
8869 lt_prog_compiler_static='-static'
8871 # Lahey Fortran 8.1.
8872 lf95*)
8873 lt_prog_compiler_wl='-Wl,'
8874 lt_prog_compiler_pic='--shared'
8875 lt_prog_compiler_static='--static'
8877 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8878 # Portland Group compilers (*not* the Pentium gcc compiler,
8879 # which looks to be a dead project)
8880 lt_prog_compiler_wl='-Wl,'
8881 lt_prog_compiler_pic='-fpic'
8882 lt_prog_compiler_static='-Bstatic'
8884 ccc*)
8885 lt_prog_compiler_wl='-Wl,'
8886 # All Alpha code is PIC.
8887 lt_prog_compiler_static='-non_shared'
8889 xl* | bgxl* | bgf* | mpixl*)
8890 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8891 lt_prog_compiler_wl='-Wl,'
8892 lt_prog_compiler_pic='-qpic'
8893 lt_prog_compiler_static='-qstaticlink'
8896 case `$CC -V 2>&1 | sed 5q` in
8897 *Sun\ F* | *Sun*Fortran*)
8898 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8899 lt_prog_compiler_pic='-KPIC'
8900 lt_prog_compiler_static='-Bstatic'
8901 lt_prog_compiler_wl=''
8903 *Sun\ C*)
8904 # Sun C 5.9
8905 lt_prog_compiler_pic='-KPIC'
8906 lt_prog_compiler_static='-Bstatic'
8907 lt_prog_compiler_wl='-Wl,'
8909 esac
8911 esac
8914 newsos6)
8915 lt_prog_compiler_pic='-KPIC'
8916 lt_prog_compiler_static='-Bstatic'
8919 *nto* | *qnx*)
8920 # QNX uses GNU C++, but need to define -shared option too, otherwise
8921 # it will coredump.
8922 lt_prog_compiler_pic='-fPIC -shared'
8925 osf3* | osf4* | osf5*)
8926 lt_prog_compiler_wl='-Wl,'
8927 # All OSF/1 code is PIC.
8928 lt_prog_compiler_static='-non_shared'
8931 rdos*)
8932 lt_prog_compiler_static='-non_shared'
8935 solaris*)
8936 lt_prog_compiler_pic='-KPIC'
8937 lt_prog_compiler_static='-Bstatic'
8938 case $cc_basename in
8939 f77* | f90* | f95*)
8940 lt_prog_compiler_wl='-Qoption ld ';;
8942 lt_prog_compiler_wl='-Wl,';;
8943 esac
8946 sunos4*)
8947 lt_prog_compiler_wl='-Qoption ld '
8948 lt_prog_compiler_pic='-PIC'
8949 lt_prog_compiler_static='-Bstatic'
8952 sysv4 | sysv4.2uw2* | sysv4.3*)
8953 lt_prog_compiler_wl='-Wl,'
8954 lt_prog_compiler_pic='-KPIC'
8955 lt_prog_compiler_static='-Bstatic'
8958 sysv4*MP*)
8959 if test -d /usr/nec ;then
8960 lt_prog_compiler_pic='-Kconform_pic'
8961 lt_prog_compiler_static='-Bstatic'
8965 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8966 lt_prog_compiler_wl='-Wl,'
8967 lt_prog_compiler_pic='-KPIC'
8968 lt_prog_compiler_static='-Bstatic'
8971 unicos*)
8972 lt_prog_compiler_wl='-Wl,'
8973 lt_prog_compiler_can_build_shared=no
8976 uts4*)
8977 lt_prog_compiler_pic='-pic'
8978 lt_prog_compiler_static='-Bstatic'
8982 lt_prog_compiler_can_build_shared=no
8984 esac
8987 case $host_os in
8988 # For platforms which do not support PIC, -DPIC is meaningless:
8989 *djgpp*)
8990 lt_prog_compiler_pic=
8993 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8995 esac
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8997 $as_echo "$lt_prog_compiler_pic" >&6; }
9005 # Check to make sure the PIC flag actually works.
9007 if test -n "$lt_prog_compiler_pic"; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9009 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9010 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9011 $as_echo_n "(cached) " >&6
9012 else
9013 lt_cv_prog_compiler_pic_works=no
9014 ac_outfile=conftest.$ac_objext
9015 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9016 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9017 # Insert the option either (1) after the last *FLAGS variable, or
9018 # (2) before a word containing "conftest.", or (3) at the end.
9019 # Note that $ac_compile itself does not contain backslashes and begins
9020 # with a dollar sign (not a hyphen), so the echo should work correctly.
9021 # The option is referenced via a variable to avoid confusing sed.
9022 lt_compile=`echo "$ac_compile" | $SED \
9023 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9024 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9025 -e 's:$: $lt_compiler_flag:'`
9026 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9027 (eval "$lt_compile" 2>conftest.err)
9028 ac_status=$?
9029 cat conftest.err >&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 if (exit $ac_status) && test -s "$ac_outfile"; then
9032 # The compiler can only warn and ignore the option if not recognized
9033 # So say no if there are warnings other than the usual output.
9034 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9035 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9036 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9037 lt_cv_prog_compiler_pic_works=yes
9040 $RM conftest*
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9044 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9046 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9047 case $lt_prog_compiler_pic in
9048 "" | " "*) ;;
9049 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9050 esac
9051 else
9052 lt_prog_compiler_pic=
9053 lt_prog_compiler_can_build_shared=no
9064 # Check to make sure the static flag actually works.
9066 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9068 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9069 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9070 $as_echo_n "(cached) " >&6
9071 else
9072 lt_cv_prog_compiler_static_works=no
9073 save_LDFLAGS="$LDFLAGS"
9074 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9075 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9076 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9077 # The linker can only warn and ignore the option if not recognized
9078 # So say no if there are warnings
9079 if test -s conftest.err; then
9080 # Append any errors to the config.log.
9081 cat conftest.err 1>&5
9082 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9084 if diff conftest.exp conftest.er2 >/dev/null; then
9085 lt_cv_prog_compiler_static_works=yes
9087 else
9088 lt_cv_prog_compiler_static_works=yes
9091 $RM -r conftest*
9092 LDFLAGS="$save_LDFLAGS"
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9096 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9098 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9100 else
9101 lt_prog_compiler_static=
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9111 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9112 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9113 $as_echo_n "(cached) " >&6
9114 else
9115 lt_cv_prog_compiler_c_o=no
9116 $RM -r conftest 2>/dev/null
9117 mkdir conftest
9118 cd conftest
9119 mkdir out
9120 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9122 lt_compiler_flag="-o out/conftest2.$ac_objext"
9123 # Insert the option either (1) after the last *FLAGS variable, or
9124 # (2) before a word containing "conftest.", or (3) at the end.
9125 # Note that $ac_compile itself does not contain backslashes and begins
9126 # with a dollar sign (not a hyphen), so the echo should work correctly.
9127 lt_compile=`echo "$ac_compile" | $SED \
9128 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9129 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9130 -e 's:$: $lt_compiler_flag:'`
9131 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9132 (eval "$lt_compile" 2>out/conftest.err)
9133 ac_status=$?
9134 cat out/conftest.err >&5
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9137 then
9138 # The compiler can only warn and ignore the option if not recognized
9139 # So say no if there are warnings
9140 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9141 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9142 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9143 lt_cv_prog_compiler_c_o=yes
9146 chmod u+w . 2>&5
9147 $RM conftest*
9148 # SGI C++ compiler will create directory out/ii_files/ for
9149 # template instantiation
9150 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9151 $RM out/* && rmdir out
9152 cd ..
9153 $RM -r conftest
9154 $RM conftest*
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9158 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9166 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9167 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9168 $as_echo_n "(cached) " >&6
9169 else
9170 lt_cv_prog_compiler_c_o=no
9171 $RM -r conftest 2>/dev/null
9172 mkdir conftest
9173 cd conftest
9174 mkdir out
9175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9177 lt_compiler_flag="-o out/conftest2.$ac_objext"
9178 # Insert the option either (1) after the last *FLAGS variable, or
9179 # (2) before a word containing "conftest.", or (3) at the end.
9180 # Note that $ac_compile itself does not contain backslashes and begins
9181 # with a dollar sign (not a hyphen), so the echo should work correctly.
9182 lt_compile=`echo "$ac_compile" | $SED \
9183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9185 -e 's:$: $lt_compiler_flag:'`
9186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9187 (eval "$lt_compile" 2>out/conftest.err)
9188 ac_status=$?
9189 cat out/conftest.err >&5
9190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9191 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9192 then
9193 # The compiler can only warn and ignore the option if not recognized
9194 # So say no if there are warnings
9195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9196 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9197 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9198 lt_cv_prog_compiler_c_o=yes
9201 chmod u+w . 2>&5
9202 $RM conftest*
9203 # SGI C++ compiler will create directory out/ii_files/ for
9204 # template instantiation
9205 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9206 $RM out/* && rmdir out
9207 cd ..
9208 $RM -r conftest
9209 $RM conftest*
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9213 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9218 hard_links="nottested"
9219 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9220 # do not overwrite the value of need_locks provided by the user
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9222 $as_echo_n "checking if we can lock with hard links... " >&6; }
9223 hard_links=yes
9224 $RM conftest*
9225 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9226 touch conftest.a
9227 ln conftest.a conftest.b 2>&5 || hard_links=no
9228 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9230 $as_echo "$hard_links" >&6; }
9231 if test "$hard_links" = no; then
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9233 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9234 need_locks=warn
9236 else
9237 need_locks=no
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9246 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9248 runpath_var=
9249 allow_undefined_flag=
9250 always_export_symbols=no
9251 archive_cmds=
9252 archive_expsym_cmds=
9253 compiler_needs_object=no
9254 enable_shared_with_static_runtimes=no
9255 export_dynamic_flag_spec=
9256 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9257 hardcode_automatic=no
9258 hardcode_direct=no
9259 hardcode_direct_absolute=no
9260 hardcode_libdir_flag_spec=
9261 hardcode_libdir_flag_spec_ld=
9262 hardcode_libdir_separator=
9263 hardcode_minus_L=no
9264 hardcode_shlibpath_var=unsupported
9265 inherit_rpath=no
9266 link_all_deplibs=unknown
9267 module_cmds=
9268 module_expsym_cmds=
9269 old_archive_from_new_cmds=
9270 old_archive_from_expsyms_cmds=
9271 thread_safe_flag_spec=
9272 whole_archive_flag_spec=
9273 # include_expsyms should be a list of space-separated symbols to be *always*
9274 # included in the symbol list
9275 include_expsyms=
9276 # exclude_expsyms can be an extended regexp of symbols to exclude
9277 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9278 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9279 # as well as any symbol that contains `d'.
9280 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9281 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9282 # platforms (ab)use it in PIC code, but their linkers get confused if
9283 # the symbol is explicitly referenced. Since portable code cannot
9284 # rely on this symbol name, it's probably fine to never include it in
9285 # preloaded symbol tables.
9286 # Exclude shared library initialization/finalization symbols.
9287 extract_expsyms_cmds=
9289 case $host_os in
9290 cygwin* | mingw* | pw32* | cegcc*)
9291 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9292 # When not using gcc, we currently assume that we are using
9293 # Microsoft Visual C++.
9294 if test "$GCC" != yes; then
9295 with_gnu_ld=no
9298 interix*)
9299 # we just hope/assume this is gcc and not c89 (= MSVC++)
9300 with_gnu_ld=yes
9302 openbsd*)
9303 with_gnu_ld=no
9305 esac
9307 ld_shlibs=yes
9309 # On some targets, GNU ld is compatible enough with the native linker
9310 # that we're better off using the native interface for both.
9311 lt_use_gnu_ld_interface=no
9312 if test "$with_gnu_ld" = yes; then
9313 case $host_os in
9314 aix*)
9315 # The AIX port of GNU ld has always aspired to compatibility
9316 # with the native linker. However, as the warning in the GNU ld
9317 # block says, versions before 2.19.5* couldn't really create working
9318 # shared libraries, regardless of the interface used.
9319 case `$LD -v 2>&1` in
9320 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9321 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9322 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9324 lt_use_gnu_ld_interface=yes
9326 esac
9329 lt_use_gnu_ld_interface=yes
9331 esac
9334 if test "$lt_use_gnu_ld_interface" = yes; then
9335 # If archive_cmds runs LD, not CC, wlarc should be empty
9336 wlarc='${wl}'
9338 # Set some defaults for GNU ld with shared library support. These
9339 # are reset later if shared libraries are not supported. Putting them
9340 # here allows them to be overridden if necessary.
9341 runpath_var=LD_RUN_PATH
9342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9343 export_dynamic_flag_spec='${wl}--export-dynamic'
9344 # ancient GNU ld didn't support --whole-archive et. al.
9345 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9346 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9347 else
9348 whole_archive_flag_spec=
9350 supports_anon_versioning=no
9351 case `$LD -v 2>&1` in
9352 *GNU\ gold*) supports_anon_versioning=yes ;;
9353 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9354 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9355 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9356 *\ 2.11.*) ;; # other 2.11 versions
9357 *) supports_anon_versioning=yes ;;
9358 esac
9360 # See if GNU ld supports shared libraries.
9361 case $host_os in
9362 aix[3-9]*)
9363 # On AIX/PPC, the GNU linker is very broken
9364 if test "$host_cpu" != ia64; then
9365 ld_shlibs=no
9366 cat <<_LT_EOF 1>&2
9368 *** Warning: the GNU linker, at least up to release 2.19, is reported
9369 *** to be unable to reliably create shared libraries on AIX.
9370 *** Therefore, libtool is disabling shared libraries support. If you
9371 *** really care for shared libraries, you may want to install binutils
9372 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9373 *** You will then need to restart the configuration process.
9375 _LT_EOF
9379 amigaos*)
9380 case $host_cpu in
9381 powerpc)
9382 # see comment about AmigaOS4 .so support
9383 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9384 archive_expsym_cmds=''
9386 m68k)
9387 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)'
9388 hardcode_libdir_flag_spec='-L$libdir'
9389 hardcode_minus_L=yes
9391 esac
9394 beos*)
9395 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9396 allow_undefined_flag=unsupported
9397 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9398 # support --undefined. This deserves some investigation. FIXME
9399 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9400 else
9401 ld_shlibs=no
9405 cygwin* | mingw* | pw32* | cegcc*)
9406 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9407 # as there is no search path for DLLs.
9408 hardcode_libdir_flag_spec='-L$libdir'
9409 export_dynamic_flag_spec='${wl}--export-all-symbols'
9410 allow_undefined_flag=unsupported
9411 always_export_symbols=no
9412 enable_shared_with_static_runtimes=yes
9413 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9415 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9416 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9417 # If the export-symbols file already is a .def file (1st line
9418 # is EXPORTS), use it as is; otherwise, prepend...
9419 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9420 cp $export_symbols $output_objdir/$soname.def;
9421 else
9422 echo EXPORTS > $output_objdir/$soname.def;
9423 cat $export_symbols >> $output_objdir/$soname.def;
9425 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9426 else
9427 ld_shlibs=no
9431 haiku*)
9432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9433 link_all_deplibs=yes
9436 interix[3-9]*)
9437 hardcode_direct=no
9438 hardcode_shlibpath_var=no
9439 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9440 export_dynamic_flag_spec='${wl}-E'
9441 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9442 # Instead, shared libraries are loaded at an image base (0x10000000 by
9443 # default) and relocated if they conflict, which is a slow very memory
9444 # consuming and fragmenting process. To avoid this, we pick a random,
9445 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9446 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9447 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9448 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'
9451 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9452 tmp_diet=no
9453 if test "$host_os" = linux-dietlibc; then
9454 case $cc_basename in
9455 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9456 esac
9458 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9459 && test "$tmp_diet" = no
9460 then
9461 tmp_addflag=' $pic_flag'
9462 tmp_sharedflag='-shared'
9463 case $cc_basename,$host_cpu in
9464 pgcc*) # Portland Group C compiler
9465 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'
9466 tmp_addflag=' $pic_flag'
9468 pgf77* | pgf90* | pgf95* | pgfortran*)
9469 # Portland Group f77 and f90 compilers
9470 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'
9471 tmp_addflag=' $pic_flag -Mnomain' ;;
9472 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9473 tmp_addflag=' -i_dynamic' ;;
9474 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9475 tmp_addflag=' -i_dynamic -nofor_main' ;;
9476 ifc* | ifort*) # Intel Fortran compiler
9477 tmp_addflag=' -nofor_main' ;;
9478 lf95*) # Lahey Fortran 8.1
9479 whole_archive_flag_spec=
9480 tmp_sharedflag='--shared' ;;
9481 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9482 tmp_sharedflag='-qmkshrobj'
9483 tmp_addflag= ;;
9484 nvcc*) # Cuda Compiler Driver 2.2
9485 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'
9486 compiler_needs_object=yes
9488 esac
9489 case `$CC -V 2>&1 | sed 5q` in
9490 *Sun\ C*) # Sun C 5.9
9491 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'
9492 compiler_needs_object=yes
9493 tmp_sharedflag='-G' ;;
9494 *Sun\ F*) # Sun Fortran 8.3
9495 tmp_sharedflag='-G' ;;
9496 esac
9497 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9499 if test "x$supports_anon_versioning" = xyes; then
9500 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9501 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9502 echo "local: *; };" >> $output_objdir/$libname.ver~
9503 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9506 case $cc_basename in
9507 xlf* | bgf* | bgxlf* | mpixlf*)
9508 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9509 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9510 hardcode_libdir_flag_spec=
9511 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9512 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9513 if test "x$supports_anon_versioning" = xyes; then
9514 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9516 echo "local: *; };" >> $output_objdir/$libname.ver~
9517 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9520 esac
9521 else
9522 ld_shlibs=no
9526 netbsd*)
9527 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9528 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9529 wlarc=
9530 else
9531 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9532 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9536 solaris*)
9537 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9538 ld_shlibs=no
9539 cat <<_LT_EOF 1>&2
9541 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9542 *** create shared libraries on Solaris systems. Therefore, libtool
9543 *** is disabling shared libraries support. We urge you to upgrade GNU
9544 *** binutils to release 2.9.1 or newer. Another option is to modify
9545 *** your PATH or compiler configuration so that the native linker is
9546 *** used, and then restart.
9548 _LT_EOF
9549 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9550 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9551 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9552 else
9553 ld_shlibs=no
9557 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9558 case `$LD -v 2>&1` in
9559 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9560 ld_shlibs=no
9561 cat <<_LT_EOF 1>&2
9563 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9564 *** reliably create shared libraries on SCO systems. Therefore, libtool
9565 *** is disabling shared libraries support. We urge you to upgrade GNU
9566 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9567 *** your PATH or compiler configuration so that the native linker is
9568 *** used, and then restart.
9570 _LT_EOF
9573 # For security reasons, it is highly recommended that you always
9574 # use absolute paths for naming shared libraries, and exclude the
9575 # DT_RUNPATH tag from executables and libraries. But doing so
9576 # requires that you compile everything twice, which is a pain.
9577 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9578 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9580 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9581 else
9582 ld_shlibs=no
9585 esac
9588 sunos4*)
9589 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9590 wlarc=
9591 hardcode_direct=yes
9592 hardcode_shlibpath_var=no
9596 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9598 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9599 else
9600 ld_shlibs=no
9603 esac
9605 if test "$ld_shlibs" = no; then
9606 runpath_var=
9607 hardcode_libdir_flag_spec=
9608 export_dynamic_flag_spec=
9609 whole_archive_flag_spec=
9611 else
9612 # PORTME fill in a description of your system's linker (not GNU ld)
9613 case $host_os in
9614 aix3*)
9615 allow_undefined_flag=unsupported
9616 always_export_symbols=yes
9617 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'
9618 # Note: this linker hardcodes the directories in LIBPATH if there
9619 # are no directories specified by -L.
9620 hardcode_minus_L=yes
9621 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9622 # Neither direct hardcoding nor static linking is supported with a
9623 # broken collect2.
9624 hardcode_direct=unsupported
9628 aix[4-9]*)
9629 if test "$host_cpu" = ia64; then
9630 # On IA64, the linker does run time linking by default, so we don't
9631 # have to do anything special.
9632 aix_use_runtimelinking=no
9633 exp_sym_flag='-Bexport'
9634 no_entry_flag=""
9635 else
9636 # If we're using GNU nm, then we don't want the "-C" option.
9637 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9638 # Also, AIX nm treats weak defined symbols like other global
9639 # defined symbols, whereas GNU nm marks them as "W".
9640 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9641 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'
9642 else
9643 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'
9645 aix_use_runtimelinking=no
9647 # Test if we are trying to use run time linking or normal
9648 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9649 # need to do runtime linking.
9650 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9651 for ld_flag in $LDFLAGS; do
9652 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9653 aix_use_runtimelinking=yes
9654 break
9656 done
9658 esac
9660 exp_sym_flag='-bexport'
9661 no_entry_flag='-bnoentry'
9664 # When large executables or shared objects are built, AIX ld can
9665 # have problems creating the table of contents. If linking a library
9666 # or program results in "error TOC overflow" add -mminimal-toc to
9667 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9668 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9670 archive_cmds=''
9671 hardcode_direct=yes
9672 hardcode_direct_absolute=yes
9673 hardcode_libdir_separator=':'
9674 link_all_deplibs=yes
9675 file_list_spec='${wl}-f,'
9677 if test "$GCC" = yes; then
9678 case $host_os in aix4.[012]|aix4.[012].*)
9679 # We only want to do this on AIX 4.2 and lower, the check
9680 # below for broken collect2 doesn't work under 4.3+
9681 collect2name=`${CC} -print-prog-name=collect2`
9682 if test -f "$collect2name" &&
9683 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9684 then
9685 # We have reworked collect2
9687 else
9688 # We have old collect2
9689 hardcode_direct=unsupported
9690 # It fails to find uninstalled libraries when the uninstalled
9691 # path is not listed in the libpath. Setting hardcode_minus_L
9692 # to unsupported forces relinking
9693 hardcode_minus_L=yes
9694 hardcode_libdir_flag_spec='-L$libdir'
9695 hardcode_libdir_separator=
9698 esac
9699 shared_flag='-shared'
9700 if test "$aix_use_runtimelinking" = yes; then
9701 shared_flag="$shared_flag "'${wl}-G'
9703 else
9704 # not using gcc
9705 if test "$host_cpu" = ia64; then
9706 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9707 # chokes on -Wl,-G. The following line is correct:
9708 shared_flag='-G'
9709 else
9710 if test "$aix_use_runtimelinking" = yes; then
9711 shared_flag='${wl}-G'
9712 else
9713 shared_flag='${wl}-bM:SRE'
9718 export_dynamic_flag_spec='${wl}-bexpall'
9719 # It seems that -bexpall does not export symbols beginning with
9720 # underscore (_), so it is better to generate a list of symbols to export.
9721 always_export_symbols=yes
9722 if test "$aix_use_runtimelinking" = yes; then
9723 # Warning - without using the other runtime loading flags (-brtl),
9724 # -berok will link without error, but may produce a broken library.
9725 allow_undefined_flag='-berok'
9726 # Determine the default libpath from the value encoded in an
9727 # empty executable.
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729 /* end confdefs.h. */
9732 main ()
9736 return 0;
9738 _ACEOF
9739 if ac_fn_c_try_link "$LINENO"; then :
9741 lt_aix_libpath_sed='
9742 /Import File Strings/,/^$/ {
9743 /^0/ {
9744 s/^0 *\(.*\)$/\1/
9748 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9749 # Check for a 64-bit object if we didn't find anything.
9750 if test -z "$aix_libpath"; then
9751 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9754 rm -f core conftest.err conftest.$ac_objext \
9755 conftest$ac_exeext conftest.$ac_ext
9756 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9758 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9759 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"
9760 else
9761 if test "$host_cpu" = ia64; then
9762 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9763 allow_undefined_flag="-z nodefs"
9764 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"
9765 else
9766 # Determine the default libpath from the value encoded in an
9767 # empty executable.
9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9772 main ()
9776 return 0;
9778 _ACEOF
9779 if ac_fn_c_try_link "$LINENO"; then :
9781 lt_aix_libpath_sed='
9782 /Import File Strings/,/^$/ {
9783 /^0/ {
9784 s/^0 *\(.*\)$/\1/
9788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9789 # Check for a 64-bit object if we didn't find anything.
9790 if test -z "$aix_libpath"; then
9791 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9794 rm -f core conftest.err conftest.$ac_objext \
9795 conftest$ac_exeext conftest.$ac_ext
9796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9798 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9799 # Warning - without using the other run time loading flags,
9800 # -berok will link without error, but may produce a broken library.
9801 no_undefined_flag=' ${wl}-bernotok'
9802 allow_undefined_flag=' ${wl}-berok'
9803 if test "$with_gnu_ld" = yes; then
9804 # We only use this code for GNU lds that support --whole-archive.
9805 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9806 else
9807 # Exported symbols can be pulled into shared objects from archives
9808 whole_archive_flag_spec='$convenience'
9810 archive_cmds_need_lc=yes
9811 # This is similar to how AIX traditionally builds its shared libraries.
9812 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'
9817 amigaos*)
9818 case $host_cpu in
9819 powerpc)
9820 # see comment about AmigaOS4 .so support
9821 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9822 archive_expsym_cmds=''
9824 m68k)
9825 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)'
9826 hardcode_libdir_flag_spec='-L$libdir'
9827 hardcode_minus_L=yes
9829 esac
9832 bsdi[45]*)
9833 export_dynamic_flag_spec=-rdynamic
9836 cygwin* | mingw* | pw32* | cegcc*)
9837 # When not using gcc, we currently assume that we are using
9838 # Microsoft Visual C++.
9839 # hardcode_libdir_flag_spec is actually meaningless, as there is
9840 # no search path for DLLs.
9841 hardcode_libdir_flag_spec=' '
9842 allow_undefined_flag=unsupported
9843 # Tell ltmain to make .lib files, not .a files.
9844 libext=lib
9845 # Tell ltmain to make .dll files, not .so files.
9846 shrext_cmds=".dll"
9847 # FIXME: Setting linknames here is a bad hack.
9848 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9849 # The linker will automatically build a .lib file if we build a DLL.
9850 old_archive_from_new_cmds='true'
9851 # FIXME: Should let the user specify the lib program.
9852 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9853 fix_srcfile_path='`cygpath -w "$srcfile"`'
9854 enable_shared_with_static_runtimes=yes
9857 darwin* | rhapsody*)
9860 archive_cmds_need_lc=no
9861 hardcode_direct=no
9862 hardcode_automatic=yes
9863 hardcode_shlibpath_var=unsupported
9864 if test "$lt_cv_ld_force_load" = "yes"; then
9865 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\"`'
9866 else
9867 whole_archive_flag_spec=''
9869 link_all_deplibs=yes
9870 allow_undefined_flag="$_lt_dar_allow_undefined"
9871 case $cc_basename in
9872 ifort*) _lt_dar_can_shared=yes ;;
9873 *) _lt_dar_can_shared=$GCC ;;
9874 esac
9875 if test "$_lt_dar_can_shared" = "yes"; then
9876 output_verbose_link_cmd=func_echo_all
9877 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9878 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9879 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}"
9880 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}"
9882 else
9883 ld_shlibs=no
9888 dgux*)
9889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9890 hardcode_libdir_flag_spec='-L$libdir'
9891 hardcode_shlibpath_var=no
9894 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9895 # support. Future versions do this automatically, but an explicit c++rt0.o
9896 # does not break anything, and helps significantly (at the cost of a little
9897 # extra space).
9898 freebsd2.2*)
9899 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9900 hardcode_libdir_flag_spec='-R$libdir'
9901 hardcode_direct=yes
9902 hardcode_shlibpath_var=no
9905 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9906 freebsd2.*)
9907 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9908 hardcode_direct=yes
9909 hardcode_minus_L=yes
9910 hardcode_shlibpath_var=no
9913 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9914 freebsd* | dragonfly*)
9915 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9916 hardcode_libdir_flag_spec='-R$libdir'
9917 hardcode_direct=yes
9918 hardcode_shlibpath_var=no
9921 hpux9*)
9922 if test "$GCC" = yes; then
9923 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'
9924 else
9925 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'
9927 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9928 hardcode_libdir_separator=:
9929 hardcode_direct=yes
9931 # hardcode_minus_L: Not really in the search PATH,
9932 # but as the default location of the library.
9933 hardcode_minus_L=yes
9934 export_dynamic_flag_spec='${wl}-E'
9937 hpux10*)
9938 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9939 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9940 else
9941 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9943 if test "$with_gnu_ld" = no; then
9944 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9945 hardcode_libdir_flag_spec_ld='+b $libdir'
9946 hardcode_libdir_separator=:
9947 hardcode_direct=yes
9948 hardcode_direct_absolute=yes
9949 export_dynamic_flag_spec='${wl}-E'
9950 # hardcode_minus_L: Not really in the search PATH,
9951 # but as the default location of the library.
9952 hardcode_minus_L=yes
9956 hpux11*)
9957 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9958 case $host_cpu in
9959 hppa*64*)
9960 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9962 ia64*)
9963 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9966 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9968 esac
9969 else
9970 case $host_cpu in
9971 hppa*64*)
9972 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9974 ia64*)
9975 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9979 # Older versions of the 11.00 compiler do not understand -b yet
9980 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9982 $as_echo_n "checking if $CC understands -b... " >&6; }
9983 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9984 $as_echo_n "(cached) " >&6
9985 else
9986 lt_cv_prog_compiler__b=no
9987 save_LDFLAGS="$LDFLAGS"
9988 LDFLAGS="$LDFLAGS -b"
9989 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9990 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9991 # The linker can only warn and ignore the option if not recognized
9992 # So say no if there are warnings
9993 if test -s conftest.err; then
9994 # Append any errors to the config.log.
9995 cat conftest.err 1>&5
9996 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9997 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9998 if diff conftest.exp conftest.er2 >/dev/null; then
9999 lt_cv_prog_compiler__b=yes
10001 else
10002 lt_cv_prog_compiler__b=yes
10005 $RM -r conftest*
10006 LDFLAGS="$save_LDFLAGS"
10009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10010 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10012 if test x"$lt_cv_prog_compiler__b" = xyes; then
10013 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10014 else
10015 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10019 esac
10021 if test "$with_gnu_ld" = no; then
10022 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10023 hardcode_libdir_separator=:
10025 case $host_cpu in
10026 hppa*64*|ia64*)
10027 hardcode_direct=no
10028 hardcode_shlibpath_var=no
10031 hardcode_direct=yes
10032 hardcode_direct_absolute=yes
10033 export_dynamic_flag_spec='${wl}-E'
10035 # hardcode_minus_L: Not really in the search PATH,
10036 # but as the default location of the library.
10037 hardcode_minus_L=yes
10039 esac
10043 irix5* | irix6* | nonstopux*)
10044 if test "$GCC" = yes; then
10045 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'
10046 # Try to use the -exported_symbol ld option, if it does not
10047 # work, assume that -exports_file does not work either and
10048 # implicitly export all symbols.
10049 save_LDFLAGS="$LDFLAGS"
10050 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10052 /* end confdefs.h. */
10053 int foo(void) {}
10054 _ACEOF
10055 if ac_fn_c_try_link "$LINENO"; then :
10056 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'
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10061 LDFLAGS="$save_LDFLAGS"
10062 else
10063 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'
10064 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'
10066 archive_cmds_need_lc='no'
10067 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10068 hardcode_libdir_separator=:
10069 inherit_rpath=yes
10070 link_all_deplibs=yes
10073 netbsd*)
10074 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10075 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10076 else
10077 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10079 hardcode_libdir_flag_spec='-R$libdir'
10080 hardcode_direct=yes
10081 hardcode_shlibpath_var=no
10084 newsos6)
10085 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086 hardcode_direct=yes
10087 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10088 hardcode_libdir_separator=:
10089 hardcode_shlibpath_var=no
10092 *nto* | *qnx*)
10095 openbsd*)
10096 if test -f /usr/libexec/ld.so; then
10097 hardcode_direct=yes
10098 hardcode_shlibpath_var=no
10099 hardcode_direct_absolute=yes
10100 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10101 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10102 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10103 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10104 export_dynamic_flag_spec='${wl}-E'
10105 else
10106 case $host_os in
10107 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10108 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10109 hardcode_libdir_flag_spec='-R$libdir'
10112 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10113 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10115 esac
10117 else
10118 ld_shlibs=no
10122 os2*)
10123 hardcode_libdir_flag_spec='-L$libdir'
10124 hardcode_minus_L=yes
10125 allow_undefined_flag=unsupported
10126 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'
10127 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10130 osf3*)
10131 if test "$GCC" = yes; then
10132 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10133 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'
10134 else
10135 allow_undefined_flag=' -expect_unresolved \*'
10136 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'
10138 archive_cmds_need_lc='no'
10139 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10140 hardcode_libdir_separator=:
10143 osf4* | osf5*) # as osf3* with the addition of -msym flag
10144 if test "$GCC" = yes; then
10145 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10146 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'
10147 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10148 else
10149 allow_undefined_flag=' -expect_unresolved \*'
10150 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'
10151 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~
10152 $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'
10154 # Both c and cxx compiler support -rpath directly
10155 hardcode_libdir_flag_spec='-rpath $libdir'
10157 archive_cmds_need_lc='no'
10158 hardcode_libdir_separator=:
10161 solaris*)
10162 no_undefined_flag=' -z defs'
10163 if test "$GCC" = yes; then
10164 wlarc='${wl}'
10165 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10166 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10167 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10168 else
10169 case `$CC -V 2>&1` in
10170 *"Compilers 5.0"*)
10171 wlarc=''
10172 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10173 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10174 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10177 wlarc='${wl}'
10178 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10179 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10180 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10182 esac
10184 hardcode_libdir_flag_spec='-R$libdir'
10185 hardcode_shlibpath_var=no
10186 case $host_os in
10187 solaris2.[0-5] | solaris2.[0-5].*) ;;
10189 # The compiler driver will combine and reorder linker options,
10190 # but understands `-z linker_flag'. GCC discards it without `$wl',
10191 # but is careful enough not to reorder.
10192 # Supported since Solaris 2.6 (maybe 2.5.1?)
10193 if test "$GCC" = yes; then
10194 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10195 else
10196 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10199 esac
10200 link_all_deplibs=yes
10203 sunos4*)
10204 if test "x$host_vendor" = xsequent; then
10205 # Use $CC to link under sequent, because it throws in some extra .o
10206 # files that make .init and .fini sections work.
10207 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10208 else
10209 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10211 hardcode_libdir_flag_spec='-L$libdir'
10212 hardcode_direct=yes
10213 hardcode_minus_L=yes
10214 hardcode_shlibpath_var=no
10217 sysv4)
10218 case $host_vendor in
10219 sni)
10220 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10221 hardcode_direct=yes # is this really true???
10223 siemens)
10224 ## LD is ld it makes a PLAMLIB
10225 ## CC just makes a GrossModule.
10226 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10227 reload_cmds='$CC -r -o $output$reload_objs'
10228 hardcode_direct=no
10230 motorola)
10231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10234 esac
10235 runpath_var='LD_RUN_PATH'
10236 hardcode_shlibpath_var=no
10239 sysv4.3*)
10240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10241 hardcode_shlibpath_var=no
10242 export_dynamic_flag_spec='-Bexport'
10245 sysv4*MP*)
10246 if test -d /usr/nec; then
10247 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10248 hardcode_shlibpath_var=no
10249 runpath_var=LD_RUN_PATH
10250 hardcode_runpath_var=yes
10251 ld_shlibs=yes
10255 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10256 no_undefined_flag='${wl}-z,text'
10257 archive_cmds_need_lc=no
10258 hardcode_shlibpath_var=no
10259 runpath_var='LD_RUN_PATH'
10261 if test "$GCC" = yes; then
10262 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10263 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10264 else
10265 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10266 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10270 sysv5* | sco3.2v5* | sco5v6*)
10271 # Note: We can NOT use -z defs as we might desire, because we do not
10272 # link with -lc, and that would cause any symbols used from libc to
10273 # always be unresolved, which means just about no library would
10274 # ever link correctly. If we're not using GNU ld we use -z text
10275 # though, which does catch some bad symbols but isn't as heavy-handed
10276 # as -z defs.
10277 no_undefined_flag='${wl}-z,text'
10278 allow_undefined_flag='${wl}-z,nodefs'
10279 archive_cmds_need_lc=no
10280 hardcode_shlibpath_var=no
10281 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10282 hardcode_libdir_separator=':'
10283 link_all_deplibs=yes
10284 export_dynamic_flag_spec='${wl}-Bexport'
10285 runpath_var='LD_RUN_PATH'
10287 if test "$GCC" = yes; then
10288 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10289 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10290 else
10291 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10292 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10296 uts4*)
10297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10298 hardcode_libdir_flag_spec='-L$libdir'
10299 hardcode_shlibpath_var=no
10303 ld_shlibs=no
10305 esac
10307 if test x$host_vendor = xsni; then
10308 case $host in
10309 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10310 export_dynamic_flag_spec='${wl}-Blargedynsym'
10312 esac
10316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10317 $as_echo "$ld_shlibs" >&6; }
10318 test "$ld_shlibs" = no && can_build_shared=no
10320 with_gnu_ld=$with_gnu_ld
10337 # Do we need to explicitly link libc?
10339 case "x$archive_cmds_need_lc" in
10340 x|xyes)
10341 # Assume -lc should be added
10342 archive_cmds_need_lc=yes
10344 if test "$enable_shared" = yes && test "$GCC" = yes; then
10345 case $archive_cmds in
10346 *'~'*)
10347 # FIXME: we may have to deal with multi-command sequences.
10349 '$CC '*)
10350 # Test whether the compiler implicitly links with -lc since on some
10351 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10352 # to ld, don't add -lc before -lgcc.
10353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10354 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10355 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10356 $as_echo_n "(cached) " >&6
10357 else
10358 $RM conftest*
10359 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10361 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10362 (eval $ac_compile) 2>&5
10363 ac_status=$?
10364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10365 test $ac_status = 0; } 2>conftest.err; then
10366 soname=conftest
10367 lib=conftest
10368 libobjs=conftest.$ac_objext
10369 deplibs=
10370 wl=$lt_prog_compiler_wl
10371 pic_flag=$lt_prog_compiler_pic
10372 compiler_flags=-v
10373 linker_flags=-v
10374 verstring=
10375 output_objdir=.
10376 libname=conftest
10377 lt_save_allow_undefined_flag=$allow_undefined_flag
10378 allow_undefined_flag=
10379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10380 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10381 ac_status=$?
10382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10383 test $ac_status = 0; }
10384 then
10385 lt_cv_archive_cmds_need_lc=no
10386 else
10387 lt_cv_archive_cmds_need_lc=yes
10389 allow_undefined_flag=$lt_save_allow_undefined_flag
10390 else
10391 cat conftest.err 1>&5
10393 $RM conftest*
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10397 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10398 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10400 esac
10403 esac
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10562 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10564 if test "$GCC" = yes; then
10565 case $host_os in
10566 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10567 *) lt_awk_arg="/^libraries:/" ;;
10568 esac
10569 case $host_os in
10570 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10571 *) lt_sed_strip_eq="s,=/,/,g" ;;
10572 esac
10573 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10574 case $lt_search_path_spec in
10575 *\;*)
10576 # if the path contains ";" then we assume it to be the separator
10577 # otherwise default to the standard path separator (i.e. ":") - it is
10578 # assumed that no part of a normal pathname contains ";" but that should
10579 # okay in the real world where ";" in dirpaths is itself problematic.
10580 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10583 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10585 esac
10586 # Ok, now we have the path, separated by spaces, we can step through it
10587 # and add multilib dir if necessary.
10588 lt_tmp_lt_search_path_spec=
10589 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10590 for lt_sys_path in $lt_search_path_spec; do
10591 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10592 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10593 else
10594 test -d "$lt_sys_path" && \
10595 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10597 done
10598 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10599 BEGIN {RS=" "; FS="/|\n";} {
10600 lt_foo="";
10601 lt_count=0;
10602 for (lt_i = NF; lt_i > 0; lt_i--) {
10603 if ($lt_i != "" && $lt_i != ".") {
10604 if ($lt_i == "..") {
10605 lt_count++;
10606 } else {
10607 if (lt_count == 0) {
10608 lt_foo="/" $lt_i lt_foo;
10609 } else {
10610 lt_count--;
10615 if (lt_foo != "") { lt_freq[lt_foo]++; }
10616 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10618 # AWK program above erroneously prepends '/' to C:/dos/paths
10619 # for these hosts.
10620 case $host_os in
10621 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10622 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10623 esac
10624 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10625 else
10626 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10628 library_names_spec=
10629 libname_spec='lib$name'
10630 soname_spec=
10631 shrext_cmds=".so"
10632 postinstall_cmds=
10633 postuninstall_cmds=
10634 finish_cmds=
10635 finish_eval=
10636 shlibpath_var=
10637 shlibpath_overrides_runpath=unknown
10638 version_type=none
10639 dynamic_linker="$host_os ld.so"
10640 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10641 need_lib_prefix=unknown
10642 hardcode_into_libs=no
10644 # when you set need_version to no, make sure it does not cause -set_version
10645 # flags to be left without arguments
10646 need_version=unknown
10648 case $host_os in
10649 aix3*)
10650 version_type=linux
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10652 shlibpath_var=LIBPATH
10654 # AIX 3 has no versioning support, so we append a major version to the name.
10655 soname_spec='${libname}${release}${shared_ext}$major'
10658 aix[4-9]*)
10659 version_type=linux
10660 need_lib_prefix=no
10661 need_version=no
10662 hardcode_into_libs=yes
10663 if test "$host_cpu" = ia64; then
10664 # AIX 5 supports IA64
10665 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10666 shlibpath_var=LD_LIBRARY_PATH
10667 else
10668 # With GCC up to 2.95.x, collect2 would create an import file
10669 # for dependence libraries. The import file would start with
10670 # the line `#! .'. This would cause the generated library to
10671 # depend on `.', always an invalid library. This was fixed in
10672 # development snapshots of GCC prior to 3.0.
10673 case $host_os in
10674 aix4 | aix4.[01] | aix4.[01].*)
10675 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10676 echo ' yes '
10677 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10679 else
10680 can_build_shared=no
10683 esac
10684 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10685 # soname into executable. Probably we can add versioning support to
10686 # collect2, so additional links can be useful in future.
10687 if test "$aix_use_runtimelinking" = yes; then
10688 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10689 # instead of lib<name>.a to let people know that these are not
10690 # typical AIX shared libraries.
10691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10692 else
10693 # We preserve .a as extension for shared libraries through AIX4.2
10694 # and later when we are not doing run time linking.
10695 library_names_spec='${libname}${release}.a $libname.a'
10696 soname_spec='${libname}${release}${shared_ext}$major'
10698 shlibpath_var=LIBPATH
10702 amigaos*)
10703 case $host_cpu in
10704 powerpc)
10705 # Since July 2007 AmigaOS4 officially supports .so libraries.
10706 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 m68k)
10710 library_names_spec='$libname.ixlibrary $libname.a'
10711 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10712 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'
10714 esac
10717 beos*)
10718 library_names_spec='${libname}${shared_ext}'
10719 dynamic_linker="$host_os ld.so"
10720 shlibpath_var=LIBRARY_PATH
10723 bsdi[45]*)
10724 version_type=linux
10725 need_version=no
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10727 soname_spec='${libname}${release}${shared_ext}$major'
10728 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10731 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10732 # the default ld.so.conf also contains /usr/contrib/lib and
10733 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10734 # libtool to hard-code these into programs
10737 cygwin* | mingw* | pw32* | cegcc*)
10738 version_type=windows
10739 shrext_cmds=".dll"
10740 need_version=no
10741 need_lib_prefix=no
10743 case $GCC,$host_os in
10744 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10745 library_names_spec='$libname.dll.a'
10746 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10747 postinstall_cmds='base_file=`basename \${file}`~
10748 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10749 dldir=$destdir/`dirname \$dlpath`~
10750 test -d \$dldir || mkdir -p \$dldir~
10751 $install_prog $dir/$dlname \$dldir/$dlname~
10752 chmod a+x \$dldir/$dlname~
10753 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10754 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10756 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10757 dlpath=$dir/\$dldll~
10758 $RM \$dlpath'
10759 shlibpath_overrides_runpath=yes
10761 case $host_os in
10762 cygwin*)
10763 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10764 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10766 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10768 mingw* | cegcc*)
10769 # MinGW DLLs use traditional 'lib' prefix
10770 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10772 pw32*)
10773 # pw32 DLLs use 'pw' prefix rather than 'lib'
10774 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10776 esac
10780 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10782 esac
10783 dynamic_linker='Win32 ld.exe'
10784 # FIXME: first we should search . and the directory the executable is in
10785 shlibpath_var=PATH
10788 darwin* | rhapsody*)
10789 dynamic_linker="$host_os dyld"
10790 version_type=darwin
10791 need_lib_prefix=no
10792 need_version=no
10793 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10794 soname_spec='${libname}${release}${major}$shared_ext'
10795 shlibpath_overrides_runpath=yes
10796 shlibpath_var=DYLD_LIBRARY_PATH
10797 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10799 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10800 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10803 dgux*)
10804 version_type=linux
10805 need_lib_prefix=no
10806 need_version=no
10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10808 soname_spec='${libname}${release}${shared_ext}$major'
10809 shlibpath_var=LD_LIBRARY_PATH
10812 freebsd* | dragonfly*)
10813 # DragonFly does not have aout. When/if they implement a new
10814 # versioning mechanism, adjust this.
10815 if test -x /usr/bin/objformat; then
10816 objformat=`/usr/bin/objformat`
10817 else
10818 case $host_os in
10819 freebsd[23].*) objformat=aout ;;
10820 *) objformat=elf ;;
10821 esac
10823 version_type=freebsd-$objformat
10824 case $version_type in
10825 freebsd-elf*)
10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10827 need_version=no
10828 need_lib_prefix=no
10830 freebsd-*)
10831 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10832 need_version=yes
10834 esac
10835 shlibpath_var=LD_LIBRARY_PATH
10836 case $host_os in
10837 freebsd2.*)
10838 shlibpath_overrides_runpath=yes
10840 freebsd3.[01]* | freebsdelf3.[01]*)
10841 shlibpath_overrides_runpath=yes
10842 hardcode_into_libs=yes
10844 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10845 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10846 shlibpath_overrides_runpath=no
10847 hardcode_into_libs=yes
10849 *) # from 4.6 on, and DragonFly
10850 shlibpath_overrides_runpath=yes
10851 hardcode_into_libs=yes
10853 esac
10856 gnu*)
10857 version_type=linux
10858 need_lib_prefix=no
10859 need_version=no
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 shlibpath_var=LD_LIBRARY_PATH
10863 hardcode_into_libs=yes
10866 haiku*)
10867 version_type=linux
10868 need_lib_prefix=no
10869 need_version=no
10870 dynamic_linker="$host_os runtime_loader"
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 shlibpath_var=LIBRARY_PATH
10874 shlibpath_overrides_runpath=yes
10875 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10876 hardcode_into_libs=yes
10879 hpux9* | hpux10* | hpux11*)
10880 # Give a soname corresponding to the major version so that dld.sl refuses to
10881 # link against other versions.
10882 version_type=sunos
10883 need_lib_prefix=no
10884 need_version=no
10885 case $host_cpu in
10886 ia64*)
10887 shrext_cmds='.so'
10888 hardcode_into_libs=yes
10889 dynamic_linker="$host_os dld.so"
10890 shlibpath_var=LD_LIBRARY_PATH
10891 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10893 soname_spec='${libname}${release}${shared_ext}$major'
10894 if test "X$HPUX_IA64_MODE" = X32; then
10895 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10896 else
10897 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10899 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10901 hppa*64*)
10902 shrext_cmds='.sl'
10903 hardcode_into_libs=yes
10904 dynamic_linker="$host_os dld.sl"
10905 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10906 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10910 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10913 shrext_cmds='.sl'
10914 dynamic_linker="$host_os dld.sl"
10915 shlibpath_var=SHLIB_PATH
10916 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10918 soname_spec='${libname}${release}${shared_ext}$major'
10920 esac
10921 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10922 postinstall_cmds='chmod 555 $lib'
10923 # or fails outright, so override atomically:
10924 install_override_mode=555
10927 interix[3-9]*)
10928 version_type=linux
10929 need_lib_prefix=no
10930 need_version=no
10931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10932 soname_spec='${libname}${release}${shared_ext}$major'
10933 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10934 shlibpath_var=LD_LIBRARY_PATH
10935 shlibpath_overrides_runpath=no
10936 hardcode_into_libs=yes
10939 irix5* | irix6* | nonstopux*)
10940 case $host_os in
10941 nonstopux*) version_type=nonstopux ;;
10943 if test "$lt_cv_prog_gnu_ld" = yes; then
10944 version_type=linux
10945 else
10946 version_type=irix
10947 fi ;;
10948 esac
10949 need_lib_prefix=no
10950 need_version=no
10951 soname_spec='${libname}${release}${shared_ext}$major'
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10953 case $host_os in
10954 irix5* | nonstopux*)
10955 libsuff= shlibsuff=
10958 case $LD in # libtool.m4 will add one of these switches to LD
10959 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10960 libsuff= shlibsuff= libmagic=32-bit;;
10961 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10962 libsuff=32 shlibsuff=N32 libmagic=N32;;
10963 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10964 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10965 *) libsuff= shlibsuff= libmagic=never-match;;
10966 esac
10968 esac
10969 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10970 shlibpath_overrides_runpath=no
10971 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10972 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10973 hardcode_into_libs=yes
10976 # No shared lib support for Linux oldld, aout, or coff.
10977 linux*oldld* | linux*aout* | linux*coff*)
10978 dynamic_linker=no
10981 # This must be Linux ELF.
10982 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10983 version_type=linux
10984 need_lib_prefix=no
10985 need_version=no
10986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10987 soname_spec='${libname}${release}${shared_ext}$major'
10988 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10989 shlibpath_var=LD_LIBRARY_PATH
10990 shlibpath_overrides_runpath=no
10992 # Some binutils ld are patched to set DT_RUNPATH
10993 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10994 $as_echo_n "(cached) " >&6
10995 else
10996 lt_cv_shlibpath_overrides_runpath=no
10997 save_LDFLAGS=$LDFLAGS
10998 save_libdir=$libdir
10999 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11000 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11002 /* end confdefs.h. */
11005 main ()
11009 return 0;
11011 _ACEOF
11012 if ac_fn_c_try_link "$LINENO"; then :
11013 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11014 lt_cv_shlibpath_overrides_runpath=yes
11017 rm -f core conftest.err conftest.$ac_objext \
11018 conftest$ac_exeext conftest.$ac_ext
11019 LDFLAGS=$save_LDFLAGS
11020 libdir=$save_libdir
11024 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11026 # This implies no fast_install, which is unacceptable.
11027 # Some rework will be needed to allow for fast_install
11028 # before this can be enabled.
11029 hardcode_into_libs=yes
11031 # Append ld.so.conf contents to the search path
11032 if test -f /etc/ld.so.conf; then
11033 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' ' '`
11034 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11037 # We used to test for /lib/ld.so.1 and disable shared libraries on
11038 # powerpc, because MkLinux only supported shared libraries with the
11039 # GNU dynamic linker. Since this was broken with cross compilers,
11040 # most powerpc-linux boxes support dynamic linking these days and
11041 # people can always --disable-shared, the test was removed, and we
11042 # assume the GNU/Linux dynamic linker is in use.
11043 dynamic_linker='GNU/Linux ld.so'
11046 netbsd*)
11047 version_type=sunos
11048 need_lib_prefix=no
11049 need_version=no
11050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11053 dynamic_linker='NetBSD (a.out) ld.so'
11054 else
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11056 soname_spec='${libname}${release}${shared_ext}$major'
11057 dynamic_linker='NetBSD ld.elf_so'
11059 shlibpath_var=LD_LIBRARY_PATH
11060 shlibpath_overrides_runpath=yes
11061 hardcode_into_libs=yes
11064 newsos6)
11065 version_type=linux
11066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11067 shlibpath_var=LD_LIBRARY_PATH
11068 shlibpath_overrides_runpath=yes
11071 *nto* | *qnx*)
11072 version_type=qnx
11073 need_lib_prefix=no
11074 need_version=no
11075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11076 soname_spec='${libname}${release}${shared_ext}$major'
11077 shlibpath_var=LD_LIBRARY_PATH
11078 shlibpath_overrides_runpath=no
11079 hardcode_into_libs=yes
11080 dynamic_linker='ldqnx.so'
11083 openbsd*)
11084 version_type=sunos
11085 sys_lib_dlsearch_path_spec="/usr/lib"
11086 need_lib_prefix=no
11087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11088 case $host_os in
11089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11090 *) need_version=no ;;
11091 esac
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11096 case $host_os in
11097 openbsd2.[89] | openbsd2.[89].*)
11098 shlibpath_overrides_runpath=no
11101 shlibpath_overrides_runpath=yes
11103 esac
11104 else
11105 shlibpath_overrides_runpath=yes
11109 os2*)
11110 libname_spec='$name'
11111 shrext_cmds=".dll"
11112 need_lib_prefix=no
11113 library_names_spec='$libname${shared_ext} $libname.a'
11114 dynamic_linker='OS/2 ld.exe'
11115 shlibpath_var=LIBPATH
11118 osf3* | osf4* | osf5*)
11119 version_type=osf
11120 need_lib_prefix=no
11121 need_version=no
11122 soname_spec='${libname}${release}${shared_ext}$major'
11123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11124 shlibpath_var=LD_LIBRARY_PATH
11125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11129 rdos*)
11130 dynamic_linker=no
11133 solaris*)
11134 version_type=linux
11135 need_lib_prefix=no
11136 need_version=no
11137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11138 soname_spec='${libname}${release}${shared_ext}$major'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=yes
11141 hardcode_into_libs=yes
11142 # ldd complains unless libraries are executable
11143 postinstall_cmds='chmod +x $lib'
11146 sunos4*)
11147 version_type=sunos
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 shlibpath_overrides_runpath=yes
11152 if test "$with_gnu_ld" = yes; then
11153 need_lib_prefix=no
11155 need_version=yes
11158 sysv4 | sysv4.3*)
11159 version_type=linux
11160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11161 soname_spec='${libname}${release}${shared_ext}$major'
11162 shlibpath_var=LD_LIBRARY_PATH
11163 case $host_vendor in
11164 sni)
11165 shlibpath_overrides_runpath=no
11166 need_lib_prefix=no
11167 runpath_var=LD_RUN_PATH
11169 siemens)
11170 need_lib_prefix=no
11172 motorola)
11173 need_lib_prefix=no
11174 need_version=no
11175 shlibpath_overrides_runpath=no
11176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11178 esac
11181 sysv4*MP*)
11182 if test -d /usr/nec ;then
11183 version_type=linux
11184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11185 soname_spec='$libname${shared_ext}.$major'
11186 shlibpath_var=LD_LIBRARY_PATH
11190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11191 version_type=freebsd-elf
11192 need_lib_prefix=no
11193 need_version=no
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 shlibpath_var=LD_LIBRARY_PATH
11197 shlibpath_overrides_runpath=yes
11198 hardcode_into_libs=yes
11199 if test "$with_gnu_ld" = yes; then
11200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11201 else
11202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11203 case $host_os in
11204 sco3.2v5*)
11205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11207 esac
11209 sys_lib_dlsearch_path_spec='/usr/lib'
11212 tpf*)
11213 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11214 version_type=linux
11215 need_lib_prefix=no
11216 need_version=no
11217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11218 shlibpath_var=LD_LIBRARY_PATH
11219 shlibpath_overrides_runpath=no
11220 hardcode_into_libs=yes
11223 uts4*)
11224 version_type=linux
11225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11226 soname_spec='${libname}${release}${shared_ext}$major'
11227 shlibpath_var=LD_LIBRARY_PATH
11231 dynamic_linker=no
11233 esac
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11235 $as_echo "$dynamic_linker" >&6; }
11236 test "$dynamic_linker" = no && can_build_shared=no
11238 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11239 if test "$GCC" = yes; then
11240 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11243 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11244 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11246 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11247 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11342 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11343 hardcode_action=
11344 if test -n "$hardcode_libdir_flag_spec" ||
11345 test -n "$runpath_var" ||
11346 test "X$hardcode_automatic" = "Xyes" ; then
11348 # We can hardcode non-existent directories.
11349 if test "$hardcode_direct" != no &&
11350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11351 # have to relink, otherwise we might link with an installed library
11352 # when we should be linking with a yet-to-be-installed one
11353 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11354 test "$hardcode_minus_L" != no; then
11355 # Linking always hardcodes the temporary library directory.
11356 hardcode_action=relink
11357 else
11358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11359 hardcode_action=immediate
11361 else
11362 # We cannot hardcode anything, or else we can only hardcode existing
11363 # directories.
11364 hardcode_action=unsupported
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11367 $as_echo "$hardcode_action" >&6; }
11369 if test "$hardcode_action" = relink ||
11370 test "$inherit_rpath" = yes; then
11371 # Fast installation is not supported
11372 enable_fast_install=no
11373 elif test "$shlibpath_overrides_runpath" = yes ||
11374 test "$enable_shared" = no; then
11375 # Fast installation is not necessary
11376 enable_fast_install=needless
11384 if test "x$enable_dlopen" != xyes; then
11385 enable_dlopen=unknown
11386 enable_dlopen_self=unknown
11387 enable_dlopen_self_static=unknown
11388 else
11389 lt_cv_dlopen=no
11390 lt_cv_dlopen_libs=
11392 case $host_os in
11393 beos*)
11394 lt_cv_dlopen="load_add_on"
11395 lt_cv_dlopen_libs=
11396 lt_cv_dlopen_self=yes
11399 mingw* | pw32* | cegcc*)
11400 lt_cv_dlopen="LoadLibrary"
11401 lt_cv_dlopen_libs=
11404 cygwin*)
11405 lt_cv_dlopen="dlopen"
11406 lt_cv_dlopen_libs=
11409 darwin*)
11410 # if libdl is installed we need to link against it
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11412 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11413 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11414 $as_echo_n "(cached) " >&6
11415 else
11416 ac_check_lib_save_LIBS=$LIBS
11417 LIBS="-ldl $LIBS"
11418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11419 /* end confdefs.h. */
11421 /* Override any GCC internal prototype to avoid an error.
11422 Use char because int might match the return type of a GCC
11423 builtin and then its argument prototype would still apply. */
11424 #ifdef __cplusplus
11425 extern "C"
11426 #endif
11427 char dlopen ();
11429 main ()
11431 return dlopen ();
11433 return 0;
11435 _ACEOF
11436 if ac_fn_c_try_link "$LINENO"; then :
11437 ac_cv_lib_dl_dlopen=yes
11438 else
11439 ac_cv_lib_dl_dlopen=no
11441 rm -f core conftest.err conftest.$ac_objext \
11442 conftest$ac_exeext conftest.$ac_ext
11443 LIBS=$ac_check_lib_save_LIBS
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11446 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11447 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11448 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11449 else
11451 lt_cv_dlopen="dyld"
11452 lt_cv_dlopen_libs=
11453 lt_cv_dlopen_self=yes
11460 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11461 if test "x$ac_cv_func_shl_load" = x""yes; then :
11462 lt_cv_dlopen="shl_load"
11463 else
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11465 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11466 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11467 $as_echo_n "(cached) " >&6
11468 else
11469 ac_check_lib_save_LIBS=$LIBS
11470 LIBS="-ldld $LIBS"
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11474 /* Override any GCC internal prototype to avoid an error.
11475 Use char because int might match the return type of a GCC
11476 builtin and then its argument prototype would still apply. */
11477 #ifdef __cplusplus
11478 extern "C"
11479 #endif
11480 char shl_load ();
11482 main ()
11484 return shl_load ();
11486 return 0;
11488 _ACEOF
11489 if ac_fn_c_try_link "$LINENO"; then :
11490 ac_cv_lib_dld_shl_load=yes
11491 else
11492 ac_cv_lib_dld_shl_load=no
11494 rm -f core conftest.err conftest.$ac_objext \
11495 conftest$ac_exeext conftest.$ac_ext
11496 LIBS=$ac_check_lib_save_LIBS
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11499 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11500 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11501 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11502 else
11503 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11504 if test "x$ac_cv_func_dlopen" = x""yes; then :
11505 lt_cv_dlopen="dlopen"
11506 else
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11508 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11509 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11510 $as_echo_n "(cached) " >&6
11511 else
11512 ac_check_lib_save_LIBS=$LIBS
11513 LIBS="-ldl $LIBS"
11514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11515 /* end confdefs.h. */
11517 /* Override any GCC internal prototype to avoid an error.
11518 Use char because int might match the return type of a GCC
11519 builtin and then its argument prototype would still apply. */
11520 #ifdef __cplusplus
11521 extern "C"
11522 #endif
11523 char dlopen ();
11525 main ()
11527 return dlopen ();
11529 return 0;
11531 _ACEOF
11532 if ac_fn_c_try_link "$LINENO"; then :
11533 ac_cv_lib_dl_dlopen=yes
11534 else
11535 ac_cv_lib_dl_dlopen=no
11537 rm -f core conftest.err conftest.$ac_objext \
11538 conftest$ac_exeext conftest.$ac_ext
11539 LIBS=$ac_check_lib_save_LIBS
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11542 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11543 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11544 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11545 else
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11547 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11548 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11549 $as_echo_n "(cached) " >&6
11550 else
11551 ac_check_lib_save_LIBS=$LIBS
11552 LIBS="-lsvld $LIBS"
11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11554 /* end confdefs.h. */
11556 /* Override any GCC internal prototype to avoid an error.
11557 Use char because int might match the return type of a GCC
11558 builtin and then its argument prototype would still apply. */
11559 #ifdef __cplusplus
11560 extern "C"
11561 #endif
11562 char dlopen ();
11564 main ()
11566 return dlopen ();
11568 return 0;
11570 _ACEOF
11571 if ac_fn_c_try_link "$LINENO"; then :
11572 ac_cv_lib_svld_dlopen=yes
11573 else
11574 ac_cv_lib_svld_dlopen=no
11576 rm -f core conftest.err conftest.$ac_objext \
11577 conftest$ac_exeext conftest.$ac_ext
11578 LIBS=$ac_check_lib_save_LIBS
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11581 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11582 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11583 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11584 else
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11586 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11587 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11588 $as_echo_n "(cached) " >&6
11589 else
11590 ac_check_lib_save_LIBS=$LIBS
11591 LIBS="-ldld $LIBS"
11592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11593 /* end confdefs.h. */
11595 /* Override any GCC internal prototype to avoid an error.
11596 Use char because int might match the return type of a GCC
11597 builtin and then its argument prototype would still apply. */
11598 #ifdef __cplusplus
11599 extern "C"
11600 #endif
11601 char dld_link ();
11603 main ()
11605 return dld_link ();
11607 return 0;
11609 _ACEOF
11610 if ac_fn_c_try_link "$LINENO"; then :
11611 ac_cv_lib_dld_dld_link=yes
11612 else
11613 ac_cv_lib_dld_dld_link=no
11615 rm -f core conftest.err conftest.$ac_objext \
11616 conftest$ac_exeext conftest.$ac_ext
11617 LIBS=$ac_check_lib_save_LIBS
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11620 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11621 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11622 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11641 esac
11643 if test "x$lt_cv_dlopen" != xno; then
11644 enable_dlopen=yes
11645 else
11646 enable_dlopen=no
11649 case $lt_cv_dlopen in
11650 dlopen)
11651 save_CPPFLAGS="$CPPFLAGS"
11652 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11654 save_LDFLAGS="$LDFLAGS"
11655 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11657 save_LIBS="$LIBS"
11658 LIBS="$lt_cv_dlopen_libs $LIBS"
11660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11661 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11662 if test "${lt_cv_dlopen_self+set}" = set; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 if test "$cross_compiling" = yes; then :
11666 lt_cv_dlopen_self=cross
11667 else
11668 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11669 lt_status=$lt_dlunknown
11670 cat > conftest.$ac_ext <<_LT_EOF
11671 #line 11671 "configure"
11672 #include "confdefs.h"
11674 #if HAVE_DLFCN_H
11675 #include <dlfcn.h>
11676 #endif
11678 #include <stdio.h>
11680 #ifdef RTLD_GLOBAL
11681 # define LT_DLGLOBAL RTLD_GLOBAL
11682 #else
11683 # ifdef DL_GLOBAL
11684 # define LT_DLGLOBAL DL_GLOBAL
11685 # else
11686 # define LT_DLGLOBAL 0
11687 # endif
11688 #endif
11690 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11691 find out it does not work in some platform. */
11692 #ifndef LT_DLLAZY_OR_NOW
11693 # ifdef RTLD_LAZY
11694 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11695 # else
11696 # ifdef DL_LAZY
11697 # define LT_DLLAZY_OR_NOW DL_LAZY
11698 # else
11699 # ifdef RTLD_NOW
11700 # define LT_DLLAZY_OR_NOW RTLD_NOW
11701 # else
11702 # ifdef DL_NOW
11703 # define LT_DLLAZY_OR_NOW DL_NOW
11704 # else
11705 # define LT_DLLAZY_OR_NOW 0
11706 # endif
11707 # endif
11708 # endif
11709 # endif
11710 #endif
11712 /* When -fvisbility=hidden is used, assume the code has been annotated
11713 correspondingly for the symbols needed. */
11714 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11715 void fnord () __attribute__((visibility("default")));
11716 #endif
11718 void fnord () { int i=42; }
11719 int main ()
11721 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11722 int status = $lt_dlunknown;
11724 if (self)
11726 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11727 else
11729 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11730 else puts (dlerror ());
11732 /* dlclose (self); */
11734 else
11735 puts (dlerror ());
11737 return status;
11739 _LT_EOF
11740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11741 (eval $ac_link) 2>&5
11742 ac_status=$?
11743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11744 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11745 (./conftest; exit; ) >&5 2>/dev/null
11746 lt_status=$?
11747 case x$lt_status in
11748 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11749 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11750 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11751 esac
11752 else :
11753 # compilation failed
11754 lt_cv_dlopen_self=no
11757 rm -fr conftest*
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11762 $as_echo "$lt_cv_dlopen_self" >&6; }
11764 if test "x$lt_cv_dlopen_self" = xyes; then
11765 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11767 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11768 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11769 $as_echo_n "(cached) " >&6
11770 else
11771 if test "$cross_compiling" = yes; then :
11772 lt_cv_dlopen_self_static=cross
11773 else
11774 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11775 lt_status=$lt_dlunknown
11776 cat > conftest.$ac_ext <<_LT_EOF
11777 #line 11777 "configure"
11778 #include "confdefs.h"
11780 #if HAVE_DLFCN_H
11781 #include <dlfcn.h>
11782 #endif
11784 #include <stdio.h>
11786 #ifdef RTLD_GLOBAL
11787 # define LT_DLGLOBAL RTLD_GLOBAL
11788 #else
11789 # ifdef DL_GLOBAL
11790 # define LT_DLGLOBAL DL_GLOBAL
11791 # else
11792 # define LT_DLGLOBAL 0
11793 # endif
11794 #endif
11796 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11797 find out it does not work in some platform. */
11798 #ifndef LT_DLLAZY_OR_NOW
11799 # ifdef RTLD_LAZY
11800 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11801 # else
11802 # ifdef DL_LAZY
11803 # define LT_DLLAZY_OR_NOW DL_LAZY
11804 # else
11805 # ifdef RTLD_NOW
11806 # define LT_DLLAZY_OR_NOW RTLD_NOW
11807 # else
11808 # ifdef DL_NOW
11809 # define LT_DLLAZY_OR_NOW DL_NOW
11810 # else
11811 # define LT_DLLAZY_OR_NOW 0
11812 # endif
11813 # endif
11814 # endif
11815 # endif
11816 #endif
11818 /* When -fvisbility=hidden is used, assume the code has been annotated
11819 correspondingly for the symbols needed. */
11820 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11821 void fnord () __attribute__((visibility("default")));
11822 #endif
11824 void fnord () { int i=42; }
11825 int main ()
11827 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11828 int status = $lt_dlunknown;
11830 if (self)
11832 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11833 else
11835 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11836 else puts (dlerror ());
11838 /* dlclose (self); */
11840 else
11841 puts (dlerror ());
11843 return status;
11845 _LT_EOF
11846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11847 (eval $ac_link) 2>&5
11848 ac_status=$?
11849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11850 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11851 (./conftest; exit; ) >&5 2>/dev/null
11852 lt_status=$?
11853 case x$lt_status in
11854 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11855 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11856 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11857 esac
11858 else :
11859 # compilation failed
11860 lt_cv_dlopen_self_static=no
11863 rm -fr conftest*
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11868 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11871 CPPFLAGS="$save_CPPFLAGS"
11872 LDFLAGS="$save_LDFLAGS"
11873 LIBS="$save_LIBS"
11875 esac
11877 case $lt_cv_dlopen_self in
11878 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11879 *) enable_dlopen_self=unknown ;;
11880 esac
11882 case $lt_cv_dlopen_self_static in
11883 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11884 *) enable_dlopen_self_static=unknown ;;
11885 esac
11904 striplib=
11905 old_striplib=
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11907 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11908 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11909 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11910 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11912 $as_echo "yes" >&6; }
11913 else
11914 # FIXME - insert some real tests, host_os isn't really good enough
11915 case $host_os in
11916 darwin*)
11917 if test -n "$STRIP" ; then
11918 striplib="$STRIP -x"
11919 old_striplib="$STRIP -S"
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11921 $as_echo "yes" >&6; }
11922 else
11923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11924 $as_echo "no" >&6; }
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11931 esac
11945 # Report which library types will actually be built
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11947 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11949 $as_echo "$can_build_shared" >&6; }
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11952 $as_echo_n "checking whether to build shared libraries... " >&6; }
11953 test "$can_build_shared" = "no" && enable_shared=no
11955 # On AIX, shared libraries and static libraries use the same namespace, and
11956 # are all built from PIC.
11957 case $host_os in
11958 aix3*)
11959 test "$enable_shared" = yes && enable_static=no
11960 if test -n "$RANLIB"; then
11961 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11962 postinstall_cmds='$RANLIB $lib'
11966 aix[4-9]*)
11967 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11968 test "$enable_shared" = yes && enable_static=no
11971 esac
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11973 $as_echo "$enable_shared" >&6; }
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11976 $as_echo_n "checking whether to build static libraries... " >&6; }
11977 # Make sure either enable_shared or enable_static is yes.
11978 test "$enable_shared" = yes || enable_static=yes
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11980 $as_echo "$enable_static" >&6; }
11986 ac_ext=c
11987 ac_cpp='$CPP $CPPFLAGS'
11988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11992 CC="$lt_save_CC"
11994 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11995 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11996 (test "X$CXX" != "Xg++"))) ; then
11997 ac_ext=cpp
11998 ac_cpp='$CXXCPP $CPPFLAGS'
11999 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12000 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12001 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12003 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12004 if test -z "$CXXCPP"; then
12005 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
12006 $as_echo_n "(cached) " >&6
12007 else
12008 # Double quotes because CXXCPP needs to be expanded
12009 for CXXCPP in "$CXX -E" "/lib/cpp"
12011 ac_preproc_ok=false
12012 for ac_cxx_preproc_warn_flag in '' yes
12014 # Use a header file that comes with gcc, so configuring glibc
12015 # with a fresh cross-compiler works.
12016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12017 # <limits.h> exists even on freestanding compilers.
12018 # On the NeXT, cc -E runs the code through the compiler's parser,
12019 # not just through cpp. "Syntax error" is here to catch this case.
12020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12021 /* end confdefs.h. */
12022 #ifdef __STDC__
12023 # include <limits.h>
12024 #else
12025 # include <assert.h>
12026 #endif
12027 Syntax error
12028 _ACEOF
12029 if ac_fn_cxx_try_cpp "$LINENO"; then :
12031 else
12032 # Broken: fails on valid input.
12033 continue
12035 rm -f conftest.err conftest.$ac_ext
12037 # OK, works on sane cases. Now check whether nonexistent headers
12038 # can be detected and how.
12039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12040 /* end confdefs.h. */
12041 #include <ac_nonexistent.h>
12042 _ACEOF
12043 if ac_fn_cxx_try_cpp "$LINENO"; then :
12044 # Broken: success on invalid input.
12045 continue
12046 else
12047 # Passes both tests.
12048 ac_preproc_ok=:
12049 break
12051 rm -f conftest.err conftest.$ac_ext
12053 done
12054 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12055 rm -f conftest.err conftest.$ac_ext
12056 if $ac_preproc_ok; then :
12057 break
12060 done
12061 ac_cv_prog_CXXCPP=$CXXCPP
12064 CXXCPP=$ac_cv_prog_CXXCPP
12065 else
12066 ac_cv_prog_CXXCPP=$CXXCPP
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12069 $as_echo "$CXXCPP" >&6; }
12070 ac_preproc_ok=false
12071 for ac_cxx_preproc_warn_flag in '' yes
12073 # Use a header file that comes with gcc, so configuring glibc
12074 # with a fresh cross-compiler works.
12075 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12076 # <limits.h> exists even on freestanding compilers.
12077 # On the NeXT, cc -E runs the code through the compiler's parser,
12078 # not just through cpp. "Syntax error" is here to catch this case.
12079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12080 /* end confdefs.h. */
12081 #ifdef __STDC__
12082 # include <limits.h>
12083 #else
12084 # include <assert.h>
12085 #endif
12086 Syntax error
12087 _ACEOF
12088 if ac_fn_cxx_try_cpp "$LINENO"; then :
12090 else
12091 # Broken: fails on valid input.
12092 continue
12094 rm -f conftest.err conftest.$ac_ext
12096 # OK, works on sane cases. Now check whether nonexistent headers
12097 # can be detected and how.
12098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12099 /* end confdefs.h. */
12100 #include <ac_nonexistent.h>
12101 _ACEOF
12102 if ac_fn_cxx_try_cpp "$LINENO"; then :
12103 # Broken: success on invalid input.
12104 continue
12105 else
12106 # Passes both tests.
12107 ac_preproc_ok=:
12108 break
12110 rm -f conftest.err conftest.$ac_ext
12112 done
12113 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12114 rm -f conftest.err conftest.$ac_ext
12115 if $ac_preproc_ok; then :
12117 else
12118 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12119 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12120 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
12121 See \`config.log' for more details." "$LINENO" 5; }
12124 ac_ext=c
12125 ac_cpp='$CPP $CPPFLAGS'
12126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12130 else
12131 _lt_caught_CXX_error=yes
12134 ac_ext=cpp
12135 ac_cpp='$CXXCPP $CPPFLAGS'
12136 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12137 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12138 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12140 archive_cmds_need_lc_CXX=no
12141 allow_undefined_flag_CXX=
12142 always_export_symbols_CXX=no
12143 archive_expsym_cmds_CXX=
12144 compiler_needs_object_CXX=no
12145 export_dynamic_flag_spec_CXX=
12146 hardcode_direct_CXX=no
12147 hardcode_direct_absolute_CXX=no
12148 hardcode_libdir_flag_spec_CXX=
12149 hardcode_libdir_flag_spec_ld_CXX=
12150 hardcode_libdir_separator_CXX=
12151 hardcode_minus_L_CXX=no
12152 hardcode_shlibpath_var_CXX=unsupported
12153 hardcode_automatic_CXX=no
12154 inherit_rpath_CXX=no
12155 module_cmds_CXX=
12156 module_expsym_cmds_CXX=
12157 link_all_deplibs_CXX=unknown
12158 old_archive_cmds_CXX=$old_archive_cmds
12159 reload_flag_CXX=$reload_flag
12160 reload_cmds_CXX=$reload_cmds
12161 no_undefined_flag_CXX=
12162 whole_archive_flag_spec_CXX=
12163 enable_shared_with_static_runtimes_CXX=no
12165 # Source file extension for C++ test sources.
12166 ac_ext=cpp
12168 # Object file extension for compiled C++ test sources.
12169 objext=o
12170 objext_CXX=$objext
12172 # No sense in running all these tests if we already determined that
12173 # the CXX compiler isn't working. Some variables (like enable_shared)
12174 # are currently assumed to apply to all compilers on this platform,
12175 # and will be corrupted by setting them based on a non-working compiler.
12176 if test "$_lt_caught_CXX_error" != yes; then
12177 # Code to be used in simple compile tests
12178 lt_simple_compile_test_code="int some_variable = 0;"
12180 # Code to be used in simple link tests
12181 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
12183 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12190 # If no C compiler was specified, use CC.
12191 LTCC=${LTCC-"$CC"}
12193 # If no C compiler flags were specified, use CFLAGS.
12194 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12196 # Allow CC to be a program name with arguments.
12197 compiler=$CC
12200 # save warnings/boilerplate of simple test code
12201 ac_outfile=conftest.$ac_objext
12202 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12203 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12204 _lt_compiler_boilerplate=`cat conftest.err`
12205 $RM conftest*
12207 ac_outfile=conftest.$ac_objext
12208 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12209 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12210 _lt_linker_boilerplate=`cat conftest.err`
12211 $RM -r conftest*
12214 # Allow CC to be a program name with arguments.
12215 lt_save_CC=$CC
12216 lt_save_LD=$LD
12217 lt_save_GCC=$GCC
12218 GCC=$GXX
12219 lt_save_with_gnu_ld=$with_gnu_ld
12220 lt_save_path_LD=$lt_cv_path_LD
12221 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12222 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12223 else
12224 $as_unset lt_cv_prog_gnu_ld
12226 if test -n "${lt_cv_path_LDCXX+set}"; then
12227 lt_cv_path_LD=$lt_cv_path_LDCXX
12228 else
12229 $as_unset lt_cv_path_LD
12231 test -z "${LDCXX+set}" || LD=$LDCXX
12232 CC=${CXX-"c++"}
12233 compiler=$CC
12234 compiler_CXX=$CC
12235 for cc_temp in $compiler""; do
12236 case $cc_temp in
12237 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12238 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12239 \-*) ;;
12240 *) break;;
12241 esac
12242 done
12243 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12246 if test -n "$compiler"; then
12247 # We don't want -fno-exception when compiling C++ code, so set the
12248 # no_builtin_flag separately
12249 if test "$GXX" = yes; then
12250 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12251 else
12252 lt_prog_compiler_no_builtin_flag_CXX=
12255 if test "$GXX" = yes; then
12256 # Set up default GNU C++ configuration
12260 # Check whether --with-gnu-ld was given.
12261 if test "${with_gnu_ld+set}" = set; then :
12262 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12263 else
12264 with_gnu_ld=no
12267 ac_prog=ld
12268 if test "$GCC" = yes; then
12269 # Check if gcc -print-prog-name=ld gives a path.
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12271 $as_echo_n "checking for ld used by $CC... " >&6; }
12272 case $host in
12273 *-*-mingw*)
12274 # gcc leaves a trailing carriage return which upsets mingw
12275 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12277 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12278 esac
12279 case $ac_prog in
12280 # Accept absolute paths.
12281 [\\/]* | ?:[\\/]*)
12282 re_direlt='/[^/][^/]*/\.\./'
12283 # Canonicalize the pathname of ld
12284 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12285 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12286 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12287 done
12288 test -z "$LD" && LD="$ac_prog"
12291 # If it fails, then pretend we aren't using GCC.
12292 ac_prog=ld
12295 # If it is relative, then search for the first ld in PATH.
12296 with_gnu_ld=unknown
12298 esac
12299 elif test "$with_gnu_ld" = yes; then
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12301 $as_echo_n "checking for GNU ld... " >&6; }
12302 else
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12304 $as_echo_n "checking for non-GNU ld... " >&6; }
12306 if test "${lt_cv_path_LD+set}" = set; then :
12307 $as_echo_n "(cached) " >&6
12308 else
12309 if test -z "$LD"; then
12310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12311 for ac_dir in $PATH; do
12312 IFS="$lt_save_ifs"
12313 test -z "$ac_dir" && ac_dir=.
12314 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12315 lt_cv_path_LD="$ac_dir/$ac_prog"
12316 # Check to see if the program is GNU ld. I'd rather use --version,
12317 # but apparently some variants of GNU ld only accept -v.
12318 # Break only if it was the GNU/non-GNU ld that we prefer.
12319 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12320 *GNU* | *'with BFD'*)
12321 test "$with_gnu_ld" != no && break
12324 test "$with_gnu_ld" != yes && break
12326 esac
12328 done
12329 IFS="$lt_save_ifs"
12330 else
12331 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12335 LD="$lt_cv_path_LD"
12336 if test -n "$LD"; then
12337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12338 $as_echo "$LD" >&6; }
12339 else
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12341 $as_echo "no" >&6; }
12343 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12345 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12346 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12347 $as_echo_n "(cached) " >&6
12348 else
12349 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12350 case `$LD -v 2>&1 </dev/null` in
12351 *GNU* | *'with BFD'*)
12352 lt_cv_prog_gnu_ld=yes
12355 lt_cv_prog_gnu_ld=no
12357 esac
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12360 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12361 with_gnu_ld=$lt_cv_prog_gnu_ld
12369 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12370 # archiving commands below assume that GNU ld is being used.
12371 if test "$with_gnu_ld" = yes; then
12372 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12373 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'
12375 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12376 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12378 # If archive_cmds runs LD, not CC, wlarc should be empty
12379 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12380 # investigate it a little bit more. (MM)
12381 wlarc='${wl}'
12383 # ancient GNU ld didn't support --whole-archive et. al.
12384 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12385 $GREP 'no-whole-archive' > /dev/null; then
12386 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12387 else
12388 whole_archive_flag_spec_CXX=
12390 else
12391 with_gnu_ld=no
12392 wlarc=
12394 # A generic and very simple default shared library creation
12395 # command for GNU C++ for the case where it uses the native
12396 # linker, instead of GNU ld. If possible, this setting should
12397 # overridden to take advantage of the native linker features on
12398 # the platform it is being used on.
12399 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12402 # Commands to make compiler produce verbose output that lists
12403 # what "hidden" libraries, object files and flags are used when
12404 # linking a shared library.
12405 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12407 else
12408 GXX=no
12409 with_gnu_ld=no
12410 wlarc=
12413 # PORTME: fill in a description of your system's C++ link characteristics
12414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12415 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12416 ld_shlibs_CXX=yes
12417 case $host_os in
12418 aix3*)
12419 # FIXME: insert proper C++ library support
12420 ld_shlibs_CXX=no
12422 aix[4-9]*)
12423 if test "$host_cpu" = ia64; then
12424 # On IA64, the linker does run time linking by default, so we don't
12425 # have to do anything special.
12426 aix_use_runtimelinking=no
12427 exp_sym_flag='-Bexport'
12428 no_entry_flag=""
12429 else
12430 aix_use_runtimelinking=no
12432 # Test if we are trying to use run time linking or normal
12433 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12434 # need to do runtime linking.
12435 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12436 for ld_flag in $LDFLAGS; do
12437 case $ld_flag in
12438 *-brtl*)
12439 aix_use_runtimelinking=yes
12440 break
12442 esac
12443 done
12445 esac
12447 exp_sym_flag='-bexport'
12448 no_entry_flag='-bnoentry'
12451 # When large executables or shared objects are built, AIX ld can
12452 # have problems creating the table of contents. If linking a library
12453 # or program results in "error TOC overflow" add -mminimal-toc to
12454 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12455 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12457 archive_cmds_CXX=''
12458 hardcode_direct_CXX=yes
12459 hardcode_direct_absolute_CXX=yes
12460 hardcode_libdir_separator_CXX=':'
12461 link_all_deplibs_CXX=yes
12462 file_list_spec_CXX='${wl}-f,'
12464 if test "$GXX" = yes; then
12465 case $host_os in aix4.[012]|aix4.[012].*)
12466 # We only want to do this on AIX 4.2 and lower, the check
12467 # below for broken collect2 doesn't work under 4.3+
12468 collect2name=`${CC} -print-prog-name=collect2`
12469 if test -f "$collect2name" &&
12470 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12471 then
12472 # We have reworked collect2
12474 else
12475 # We have old collect2
12476 hardcode_direct_CXX=unsupported
12477 # It fails to find uninstalled libraries when the uninstalled
12478 # path is not listed in the libpath. Setting hardcode_minus_L
12479 # to unsupported forces relinking
12480 hardcode_minus_L_CXX=yes
12481 hardcode_libdir_flag_spec_CXX='-L$libdir'
12482 hardcode_libdir_separator_CXX=
12484 esac
12485 shared_flag='-shared'
12486 if test "$aix_use_runtimelinking" = yes; then
12487 shared_flag="$shared_flag "'${wl}-G'
12489 else
12490 # not using gcc
12491 if test "$host_cpu" = ia64; then
12492 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12493 # chokes on -Wl,-G. The following line is correct:
12494 shared_flag='-G'
12495 else
12496 if test "$aix_use_runtimelinking" = yes; then
12497 shared_flag='${wl}-G'
12498 else
12499 shared_flag='${wl}-bM:SRE'
12504 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12505 # It seems that -bexpall does not export symbols beginning with
12506 # underscore (_), so it is better to generate a list of symbols to
12507 # export.
12508 always_export_symbols_CXX=yes
12509 if test "$aix_use_runtimelinking" = yes; then
12510 # Warning - without using the other runtime loading flags (-brtl),
12511 # -berok will link without error, but may produce a broken library.
12512 allow_undefined_flag_CXX='-berok'
12513 # Determine the default libpath from the value encoded in an empty
12514 # executable.
12515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516 /* end confdefs.h. */
12519 main ()
12523 return 0;
12525 _ACEOF
12526 if ac_fn_cxx_try_link "$LINENO"; then :
12528 lt_aix_libpath_sed='
12529 /Import File Strings/,/^$/ {
12530 /^0/ {
12531 s/^0 *\(.*\)$/\1/
12535 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12536 # Check for a 64-bit object if we didn't find anything.
12537 if test -z "$aix_libpath"; then
12538 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12541 rm -f core conftest.err conftest.$ac_objext \
12542 conftest$ac_exeext conftest.$ac_ext
12543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12545 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12547 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"
12548 else
12549 if test "$host_cpu" = ia64; then
12550 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12551 allow_undefined_flag_CXX="-z nodefs"
12552 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"
12553 else
12554 # Determine the default libpath from the value encoded in an
12555 # empty executable.
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12560 main ()
12564 return 0;
12566 _ACEOF
12567 if ac_fn_cxx_try_link "$LINENO"; then :
12569 lt_aix_libpath_sed='
12570 /Import File Strings/,/^$/ {
12571 /^0/ {
12572 s/^0 *\(.*\)$/\1/
12576 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12577 # Check for a 64-bit object if we didn't find anything.
12578 if test -z "$aix_libpath"; then
12579 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12582 rm -f core conftest.err conftest.$ac_objext \
12583 conftest$ac_exeext conftest.$ac_ext
12584 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12586 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12587 # Warning - without using the other run time loading flags,
12588 # -berok will link without error, but may produce a broken library.
12589 no_undefined_flag_CXX=' ${wl}-bernotok'
12590 allow_undefined_flag_CXX=' ${wl}-berok'
12591 if test "$with_gnu_ld" = yes; then
12592 # We only use this code for GNU lds that support --whole-archive.
12593 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12594 else
12595 # Exported symbols can be pulled into shared objects from archives
12596 whole_archive_flag_spec_CXX='$convenience'
12598 archive_cmds_need_lc_CXX=yes
12599 # This is similar to how AIX traditionally builds its shared
12600 # libraries.
12601 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'
12606 beos*)
12607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12608 allow_undefined_flag_CXX=unsupported
12609 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12610 # support --undefined. This deserves some investigation. FIXME
12611 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12612 else
12613 ld_shlibs_CXX=no
12617 chorus*)
12618 case $cc_basename in
12620 # FIXME: insert proper C++ library support
12621 ld_shlibs_CXX=no
12623 esac
12626 cygwin* | mingw* | pw32* | cegcc*)
12627 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12628 # as there is no search path for DLLs.
12629 hardcode_libdir_flag_spec_CXX='-L$libdir'
12630 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12631 allow_undefined_flag_CXX=unsupported
12632 always_export_symbols_CXX=no
12633 enable_shared_with_static_runtimes_CXX=yes
12635 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12636 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'
12637 # If the export-symbols file already is a .def file (1st line
12638 # is EXPORTS), use it as is; otherwise, prepend...
12639 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12640 cp $export_symbols $output_objdir/$soname.def;
12641 else
12642 echo EXPORTS > $output_objdir/$soname.def;
12643 cat $export_symbols >> $output_objdir/$soname.def;
12645 $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'
12646 else
12647 ld_shlibs_CXX=no
12650 darwin* | rhapsody*)
12653 archive_cmds_need_lc_CXX=no
12654 hardcode_direct_CXX=no
12655 hardcode_automatic_CXX=yes
12656 hardcode_shlibpath_var_CXX=unsupported
12657 if test "$lt_cv_ld_force_load" = "yes"; then
12658 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\"`'
12659 else
12660 whole_archive_flag_spec_CXX=''
12662 link_all_deplibs_CXX=yes
12663 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12664 case $cc_basename in
12665 ifort*) _lt_dar_can_shared=yes ;;
12666 *) _lt_dar_can_shared=$GCC ;;
12667 esac
12668 if test "$_lt_dar_can_shared" = "yes"; then
12669 output_verbose_link_cmd=func_echo_all
12670 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}"
12671 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12672 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}"
12673 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}"
12674 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12675 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}"
12676 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}"
12679 else
12680 ld_shlibs_CXX=no
12685 dgux*)
12686 case $cc_basename in
12687 ec++*)
12688 # FIXME: insert proper C++ library support
12689 ld_shlibs_CXX=no
12691 ghcx*)
12692 # Green Hills C++ Compiler
12693 # FIXME: insert proper C++ library support
12694 ld_shlibs_CXX=no
12697 # FIXME: insert proper C++ library support
12698 ld_shlibs_CXX=no
12700 esac
12703 freebsd2.*)
12704 # C++ shared libraries reported to be fairly broken before
12705 # switch to ELF
12706 ld_shlibs_CXX=no
12709 freebsd-elf*)
12710 archive_cmds_need_lc_CXX=no
12713 freebsd* | dragonfly*)
12714 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12715 # conventions
12716 ld_shlibs_CXX=yes
12719 gnu*)
12722 haiku*)
12723 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12724 link_all_deplibs_CXX=yes
12727 hpux9*)
12728 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12729 hardcode_libdir_separator_CXX=:
12730 export_dynamic_flag_spec_CXX='${wl}-E'
12731 hardcode_direct_CXX=yes
12732 hardcode_minus_L_CXX=yes # Not in the search PATH,
12733 # but as the default
12734 # location of the library.
12736 case $cc_basename in
12737 CC*)
12738 # FIXME: insert proper C++ library support
12739 ld_shlibs_CXX=no
12741 aCC*)
12742 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'
12743 # Commands to make compiler produce verbose output that lists
12744 # what "hidden" libraries, object files and flags are used when
12745 # linking a shared library.
12747 # There doesn't appear to be a way to prevent this compiler from
12748 # explicitly linking system object files so we need to strip them
12749 # from the output so that they don't get included in the library
12750 # dependencies.
12751 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"'
12754 if test "$GXX" = yes; then
12755 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'
12756 else
12757 # FIXME: insert proper C++ library support
12758 ld_shlibs_CXX=no
12761 esac
12764 hpux10*|hpux11*)
12765 if test $with_gnu_ld = no; then
12766 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12767 hardcode_libdir_separator_CXX=:
12769 case $host_cpu in
12770 hppa*64*|ia64*)
12773 export_dynamic_flag_spec_CXX='${wl}-E'
12775 esac
12777 case $host_cpu in
12778 hppa*64*|ia64*)
12779 hardcode_direct_CXX=no
12780 hardcode_shlibpath_var_CXX=no
12783 hardcode_direct_CXX=yes
12784 hardcode_direct_absolute_CXX=yes
12785 hardcode_minus_L_CXX=yes # Not in the search PATH,
12786 # but as the default
12787 # location of the library.
12789 esac
12791 case $cc_basename in
12792 CC*)
12793 # FIXME: insert proper C++ library support
12794 ld_shlibs_CXX=no
12796 aCC*)
12797 case $host_cpu in
12798 hppa*64*)
12799 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12801 ia64*)
12802 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12805 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12807 esac
12808 # Commands to make compiler produce verbose output that lists
12809 # what "hidden" libraries, object files and flags are used when
12810 # linking a shared library.
12812 # There doesn't appear to be a way to prevent this compiler from
12813 # explicitly linking system object files so we need to strip them
12814 # from the output so that they don't get included in the library
12815 # dependencies.
12816 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"'
12819 if test "$GXX" = yes; then
12820 if test $with_gnu_ld = no; then
12821 case $host_cpu in
12822 hppa*64*)
12823 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12825 ia64*)
12826 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12829 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'
12831 esac
12833 else
12834 # FIXME: insert proper C++ library support
12835 ld_shlibs_CXX=no
12838 esac
12841 interix[3-9]*)
12842 hardcode_direct_CXX=no
12843 hardcode_shlibpath_var_CXX=no
12844 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12845 export_dynamic_flag_spec_CXX='${wl}-E'
12846 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12847 # Instead, shared libraries are loaded at an image base (0x10000000 by
12848 # default) and relocated if they conflict, which is a slow very memory
12849 # consuming and fragmenting process. To avoid this, we pick a random,
12850 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12851 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12852 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'
12853 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'
12855 irix5* | irix6*)
12856 case $cc_basename in
12857 CC*)
12858 # SGI C++
12859 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'
12861 # Archives containing C++ object files must be created using
12862 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12863 # necessary to make sure instantiated templates are included
12864 # in the archive.
12865 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12868 if test "$GXX" = yes; then
12869 if test "$with_gnu_ld" = no; then
12870 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'
12871 else
12872 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'
12875 link_all_deplibs_CXX=yes
12877 esac
12878 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12879 hardcode_libdir_separator_CXX=:
12880 inherit_rpath_CXX=yes
12883 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12884 case $cc_basename in
12885 KCC*)
12886 # Kuck and Associates, Inc. (KAI) C++ Compiler
12888 # KCC will only create a shared library if the output file
12889 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12890 # to its proper name (with version) after linking.
12891 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'
12892 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'
12893 # Commands to make compiler produce verbose output that lists
12894 # what "hidden" libraries, object files and flags are used when
12895 # linking a shared library.
12897 # There doesn't appear to be a way to prevent this compiler from
12898 # explicitly linking system object files so we need to strip them
12899 # from the output so that they don't get included in the library
12900 # dependencies.
12901 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"'
12903 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12904 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12906 # Archives containing C++ object files must be created using
12907 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12908 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12910 icpc* | ecpc* )
12911 # Intel C++
12912 with_gnu_ld=yes
12913 # version 8.0 and above of icpc choke on multiply defined symbols
12914 # if we add $predep_objects and $postdep_objects, however 7.1 and
12915 # earlier do not add the objects themselves.
12916 case `$CC -V 2>&1` in
12917 *"Version 7."*)
12918 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12919 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'
12921 *) # Version 8.0 or newer
12922 tmp_idyn=
12923 case $host_cpu in
12924 ia64*) tmp_idyn=' -i_dynamic';;
12925 esac
12926 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12927 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'
12929 esac
12930 archive_cmds_need_lc_CXX=no
12931 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12932 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12933 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12935 pgCC* | pgcpp*)
12936 # Portland Group C++ compiler
12937 case `$CC -V` in
12938 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12939 prelink_cmds_CXX='tpldir=Template.dir~
12940 rm -rf $tpldir~
12941 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12942 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12943 old_archive_cmds_CXX='tpldir=Template.dir~
12944 rm -rf $tpldir~
12945 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12946 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12947 $RANLIB $oldlib'
12948 archive_cmds_CXX='tpldir=Template.dir~
12949 rm -rf $tpldir~
12950 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12951 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12952 archive_expsym_cmds_CXX='tpldir=Template.dir~
12953 rm -rf $tpldir~
12954 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12955 $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'
12957 *) # Version 6 and above use weak symbols
12958 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12959 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'
12961 esac
12963 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12964 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12965 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'
12967 cxx*)
12968 # Compaq C++
12969 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970 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'
12972 runpath_var=LD_RUN_PATH
12973 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12974 hardcode_libdir_separator_CXX=:
12976 # Commands to make compiler produce verbose output that lists
12977 # what "hidden" libraries, object files and flags are used when
12978 # linking a shared library.
12980 # There doesn't appear to be a way to prevent this compiler from
12981 # explicitly linking system object files so we need to strip them
12982 # from the output so that they don't get included in the library
12983 # dependencies.
12984 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'
12986 xl* | mpixl* | bgxl*)
12987 # IBM XL 8.0 on PPC, with GNU ld
12988 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12989 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12990 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12991 if test "x$supports_anon_versioning" = xyes; then
12992 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12993 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12994 echo "local: *; };" >> $output_objdir/$libname.ver~
12995 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12999 case `$CC -V 2>&1 | sed 5q` in
13000 *Sun\ C*)
13001 # Sun C++ 5.9
13002 no_undefined_flag_CXX=' -zdefs'
13003 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13004 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'
13005 hardcode_libdir_flag_spec_CXX='-R$libdir'
13006 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'
13007 compiler_needs_object_CXX=yes
13009 # Not sure whether something based on
13010 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13011 # would be better.
13012 output_verbose_link_cmd='func_echo_all'
13014 # Archives containing C++ object files must be created using
13015 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13016 # necessary to make sure instantiated templates are included
13017 # in the archive.
13018 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13020 esac
13022 esac
13025 lynxos*)
13026 # FIXME: insert proper C++ library support
13027 ld_shlibs_CXX=no
13030 m88k*)
13031 # FIXME: insert proper C++ library support
13032 ld_shlibs_CXX=no
13035 mvs*)
13036 case $cc_basename in
13037 cxx*)
13038 # FIXME: insert proper C++ library support
13039 ld_shlibs_CXX=no
13042 # FIXME: insert proper C++ library support
13043 ld_shlibs_CXX=no
13045 esac
13048 netbsd*)
13049 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13050 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13051 wlarc=
13052 hardcode_libdir_flag_spec_CXX='-R$libdir'
13053 hardcode_direct_CXX=yes
13054 hardcode_shlibpath_var_CXX=no
13056 # Workaround some broken pre-1.5 toolchains
13057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13060 *nto* | *qnx*)
13061 ld_shlibs_CXX=yes
13064 openbsd2*)
13065 # C++ shared libraries are fairly broken
13066 ld_shlibs_CXX=no
13069 openbsd*)
13070 if test -f /usr/libexec/ld.so; then
13071 hardcode_direct_CXX=yes
13072 hardcode_shlibpath_var_CXX=no
13073 hardcode_direct_absolute_CXX=yes
13074 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13075 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13076 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13077 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
13078 export_dynamic_flag_spec_CXX='${wl}-E'
13079 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13081 output_verbose_link_cmd=func_echo_all
13082 else
13083 ld_shlibs_CXX=no
13087 osf3* | osf4* | osf5*)
13088 case $cc_basename in
13089 KCC*)
13090 # Kuck and Associates, Inc. (KAI) C++ Compiler
13092 # KCC will only create a shared library if the output file
13093 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13094 # to its proper name (with version) after linking.
13095 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'
13097 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13098 hardcode_libdir_separator_CXX=:
13100 # Archives containing C++ object files must be created using
13101 # the KAI C++ compiler.
13102 case $host in
13103 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
13104 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
13105 esac
13107 RCC*)
13108 # Rational C++ 2.4.1
13109 # FIXME: insert proper C++ library support
13110 ld_shlibs_CXX=no
13112 cxx*)
13113 case $host in
13114 osf3*)
13115 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13116 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'
13117 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13120 allow_undefined_flag_CXX=' -expect_unresolved \*'
13121 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'
13122 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
13123 echo "-hidden">> $lib.exp~
13124 $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~
13125 $RM $lib.exp'
13126 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13128 esac
13130 hardcode_libdir_separator_CXX=:
13132 # Commands to make compiler produce verbose output that lists
13133 # what "hidden" libraries, object files and flags are used when
13134 # linking a shared library.
13136 # There doesn't appear to be a way to prevent this compiler from
13137 # explicitly linking system object files so we need to strip them
13138 # from the output so that they don't get included in the library
13139 # dependencies.
13140 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"'
13143 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13144 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
13145 case $host in
13146 osf3*)
13147 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'
13150 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'
13152 esac
13154 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13155 hardcode_libdir_separator_CXX=:
13157 # Commands to make compiler produce verbose output that lists
13158 # what "hidden" libraries, object files and flags are used when
13159 # linking a shared library.
13160 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13162 else
13163 # FIXME: insert proper C++ library support
13164 ld_shlibs_CXX=no
13167 esac
13170 psos*)
13171 # FIXME: insert proper C++ library support
13172 ld_shlibs_CXX=no
13175 sunos4*)
13176 case $cc_basename in
13177 CC*)
13178 # Sun C++ 4.x
13179 # FIXME: insert proper C++ library support
13180 ld_shlibs_CXX=no
13182 lcc*)
13183 # Lucid
13184 # FIXME: insert proper C++ library support
13185 ld_shlibs_CXX=no
13188 # FIXME: insert proper C++ library support
13189 ld_shlibs_CXX=no
13191 esac
13194 solaris*)
13195 case $cc_basename in
13196 CC*)
13197 # Sun C++ 4.2, 5.x and Centerline C++
13198 archive_cmds_need_lc_CXX=yes
13199 no_undefined_flag_CXX=' -zdefs'
13200 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13201 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13202 $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'
13204 hardcode_libdir_flag_spec_CXX='-R$libdir'
13205 hardcode_shlibpath_var_CXX=no
13206 case $host_os in
13207 solaris2.[0-5] | solaris2.[0-5].*) ;;
13209 # The compiler driver will combine and reorder linker options,
13210 # but understands `-z linker_flag'.
13211 # Supported since Solaris 2.6 (maybe 2.5.1?)
13212 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
13214 esac
13215 link_all_deplibs_CXX=yes
13217 output_verbose_link_cmd='func_echo_all'
13219 # Archives containing C++ object files must be created using
13220 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13221 # necessary to make sure instantiated templates are included
13222 # in the archive.
13223 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13225 gcx*)
13226 # Green Hills C++ Compiler
13227 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13229 # The C++ compiler must be used to create the archive.
13230 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13233 # GNU C++ compiler with Solaris linker
13234 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13235 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13236 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13237 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13238 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13239 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13241 # Commands to make compiler produce verbose output that lists
13242 # what "hidden" libraries, object files and flags are used when
13243 # linking a shared library.
13244 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13245 else
13246 # g++ 2.7 appears to require `-G' NOT `-shared' on this
13247 # platform.
13248 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13249 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13250 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13252 # Commands to make compiler produce verbose output that lists
13253 # what "hidden" libraries, object files and flags are used when
13254 # linking a shared library.
13255 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13258 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13259 case $host_os in
13260 solaris2.[0-5] | solaris2.[0-5].*) ;;
13262 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13264 esac
13267 esac
13270 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13271 no_undefined_flag_CXX='${wl}-z,text'
13272 archive_cmds_need_lc_CXX=no
13273 hardcode_shlibpath_var_CXX=no
13274 runpath_var='LD_RUN_PATH'
13276 case $cc_basename in
13277 CC*)
13278 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13279 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13282 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13283 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13285 esac
13288 sysv5* | sco3.2v5* | sco5v6*)
13289 # Note: We can NOT use -z defs as we might desire, because we do not
13290 # link with -lc, and that would cause any symbols used from libc to
13291 # always be unresolved, which means just about no library would
13292 # ever link correctly. If we're not using GNU ld we use -z text
13293 # though, which does catch some bad symbols but isn't as heavy-handed
13294 # as -z defs.
13295 no_undefined_flag_CXX='${wl}-z,text'
13296 allow_undefined_flag_CXX='${wl}-z,nodefs'
13297 archive_cmds_need_lc_CXX=no
13298 hardcode_shlibpath_var_CXX=no
13299 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13300 hardcode_libdir_separator_CXX=':'
13301 link_all_deplibs_CXX=yes
13302 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13303 runpath_var='LD_RUN_PATH'
13305 case $cc_basename in
13306 CC*)
13307 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13308 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13309 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13310 '"$old_archive_cmds_CXX"
13311 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13312 '"$reload_cmds_CXX"
13315 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13316 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13318 esac
13321 tandem*)
13322 case $cc_basename in
13323 NCC*)
13324 # NonStop-UX NCC 3.20
13325 # FIXME: insert proper C++ library support
13326 ld_shlibs_CXX=no
13329 # FIXME: insert proper C++ library support
13330 ld_shlibs_CXX=no
13332 esac
13335 vxworks*)
13336 # FIXME: insert proper C++ library support
13337 ld_shlibs_CXX=no
13341 # FIXME: insert proper C++ library support
13342 ld_shlibs_CXX=no
13344 esac
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13347 $as_echo "$ld_shlibs_CXX" >&6; }
13348 test "$ld_shlibs_CXX" = no && can_build_shared=no
13350 GCC_CXX="$GXX"
13351 LD_CXX="$LD"
13353 ## CAVEAT EMPTOR:
13354 ## There is no encapsulation within the following macros, do not change
13355 ## the running order or otherwise move them around unless you know exactly
13356 ## what you are doing...
13357 # Dependencies to place before and after the object being linked:
13358 predep_objects_CXX=
13359 postdep_objects_CXX=
13360 predeps_CXX=
13361 postdeps_CXX=
13362 compiler_lib_search_path_CXX=
13364 cat > conftest.$ac_ext <<_LT_EOF
13365 class Foo
13367 public:
13368 Foo (void) { a = 0; }
13369 private:
13370 int a;
13372 _LT_EOF
13374 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13375 (eval $ac_compile) 2>&5
13376 ac_status=$?
13377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13378 test $ac_status = 0; }; then
13379 # Parse the compiler output and extract the necessary
13380 # objects, libraries and library flags.
13382 # Sentinel used to keep track of whether or not we are before
13383 # the conftest object file.
13384 pre_test_object_deps_done=no
13386 for p in `eval "$output_verbose_link_cmd"`; do
13387 case $p in
13389 -L* | -R* | -l*)
13390 # Some compilers place space between "-{L,R}" and the path.
13391 # Remove the space.
13392 if test $p = "-L" ||
13393 test $p = "-R"; then
13394 prev=$p
13395 continue
13396 else
13397 prev=
13400 if test "$pre_test_object_deps_done" = no; then
13401 case $p in
13402 -L* | -R*)
13403 # Internal compiler library paths should come after those
13404 # provided the user. The postdeps already come after the
13405 # user supplied libs so there is no need to process them.
13406 if test -z "$compiler_lib_search_path_CXX"; then
13407 compiler_lib_search_path_CXX="${prev}${p}"
13408 else
13409 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13412 # The "-l" case would never come before the object being
13413 # linked, so don't bother handling this case.
13414 esac
13415 else
13416 if test -z "$postdeps_CXX"; then
13417 postdeps_CXX="${prev}${p}"
13418 else
13419 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13424 *.$objext)
13425 # This assumes that the test object file only shows up
13426 # once in the compiler output.
13427 if test "$p" = "conftest.$objext"; then
13428 pre_test_object_deps_done=yes
13429 continue
13432 if test "$pre_test_object_deps_done" = no; then
13433 if test -z "$predep_objects_CXX"; then
13434 predep_objects_CXX="$p"
13435 else
13436 predep_objects_CXX="$predep_objects_CXX $p"
13438 else
13439 if test -z "$postdep_objects_CXX"; then
13440 postdep_objects_CXX="$p"
13441 else
13442 postdep_objects_CXX="$postdep_objects_CXX $p"
13447 *) ;; # Ignore the rest.
13449 esac
13450 done
13452 # Clean up.
13453 rm -f a.out a.exe
13454 else
13455 echo "libtool.m4: error: problem compiling CXX test program"
13458 $RM -f confest.$objext
13460 # PORTME: override above test on systems where it is broken
13461 case $host_os in
13462 interix[3-9]*)
13463 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13464 # hack all around it, let's just trust "g++" to DTRT.
13465 predep_objects_CXX=
13466 postdep_objects_CXX=
13467 postdeps_CXX=
13470 linux*)
13471 case `$CC -V 2>&1 | sed 5q` in
13472 *Sun\ C*)
13473 # Sun C++ 5.9
13475 # The more standards-conforming stlport4 library is
13476 # incompatible with the Cstd library. Avoid specifying
13477 # it if it's in CXXFLAGS. Ignore libCrun as
13478 # -library=stlport4 depends on it.
13479 case " $CXX $CXXFLAGS " in
13480 *" -library=stlport4 "*)
13481 solaris_use_stlport4=yes
13483 esac
13485 if test "$solaris_use_stlport4" != yes; then
13486 postdeps_CXX='-library=Cstd -library=Crun'
13489 esac
13492 solaris*)
13493 case $cc_basename in
13494 CC*)
13495 # The more standards-conforming stlport4 library is
13496 # incompatible with the Cstd library. Avoid specifying
13497 # it if it's in CXXFLAGS. Ignore libCrun as
13498 # -library=stlport4 depends on it.
13499 case " $CXX $CXXFLAGS " in
13500 *" -library=stlport4 "*)
13501 solaris_use_stlport4=yes
13503 esac
13505 # Adding this requires a known-good setup of shared libraries for
13506 # Sun compiler versions before 5.6, else PIC objects from an old
13507 # archive will be linked into the output, leading to subtle bugs.
13508 if test "$solaris_use_stlport4" != yes; then
13509 postdeps_CXX='-library=Cstd -library=Crun'
13512 esac
13514 esac
13517 case " $postdeps_CXX " in
13518 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13519 esac
13520 compiler_lib_search_dirs_CXX=
13521 if test -n "${compiler_lib_search_path_CXX}"; then
13522 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13555 lt_prog_compiler_wl_CXX=
13556 lt_prog_compiler_pic_CXX=
13557 lt_prog_compiler_static_CXX=
13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13560 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13562 # C++ specific cases for pic, static, wl, etc.
13563 if test "$GXX" = yes; then
13564 lt_prog_compiler_wl_CXX='-Wl,'
13565 lt_prog_compiler_static_CXX='-static'
13567 case $host_os in
13568 aix*)
13569 # All AIX code is PIC.
13570 if test "$host_cpu" = ia64; then
13571 # AIX 5 now supports IA64 processor
13572 lt_prog_compiler_static_CXX='-Bstatic'
13574 lt_prog_compiler_pic_CXX='-fPIC'
13577 amigaos*)
13578 case $host_cpu in
13579 powerpc)
13580 # see comment about AmigaOS4 .so support
13581 lt_prog_compiler_pic_CXX='-fPIC'
13583 m68k)
13584 # FIXME: we need at least 68020 code to build shared libraries, but
13585 # adding the `-m68020' flag to GCC prevents building anything better,
13586 # like `-m68040'.
13587 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13589 esac
13592 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13593 # PIC is the default for these OSes.
13595 mingw* | cygwin* | os2* | pw32* | cegcc*)
13596 # This hack is so that the source file can tell whether it is being
13597 # built for inclusion in a dll (and should export symbols for example).
13598 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13599 # (--disable-auto-import) libraries
13600 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13602 darwin* | rhapsody*)
13603 # PIC is the default on this platform
13604 # Common symbols not allowed in MH_DYLIB files
13605 lt_prog_compiler_pic_CXX='-fno-common'
13607 *djgpp*)
13608 # DJGPP does not support shared libraries at all
13609 lt_prog_compiler_pic_CXX=
13611 haiku*)
13612 # PIC is the default for Haiku.
13613 # The "-static" flag exists, but is broken.
13614 lt_prog_compiler_static_CXX=
13616 interix[3-9]*)
13617 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13618 # Instead, we relocate shared libraries at runtime.
13620 sysv4*MP*)
13621 if test -d /usr/nec; then
13622 lt_prog_compiler_pic_CXX=-Kconform_pic
13625 hpux*)
13626 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13627 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13628 # sets the default TLS model and affects inlining.
13629 case $host_cpu in
13630 hppa*64*)
13633 lt_prog_compiler_pic_CXX='-fPIC'
13635 esac
13637 *qnx* | *nto*)
13638 # QNX uses GNU C++, but need to define -shared option too, otherwise
13639 # it will coredump.
13640 lt_prog_compiler_pic_CXX='-fPIC -shared'
13643 lt_prog_compiler_pic_CXX='-fPIC'
13645 esac
13646 else
13647 case $host_os in
13648 aix[4-9]*)
13649 # All AIX code is PIC.
13650 if test "$host_cpu" = ia64; then
13651 # AIX 5 now supports IA64 processor
13652 lt_prog_compiler_static_CXX='-Bstatic'
13653 else
13654 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13657 chorus*)
13658 case $cc_basename in
13659 cxch68*)
13660 # Green Hills C++ Compiler
13661 # _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"
13663 esac
13665 dgux*)
13666 case $cc_basename in
13667 ec++*)
13668 lt_prog_compiler_pic_CXX='-KPIC'
13670 ghcx*)
13671 # Green Hills C++ Compiler
13672 lt_prog_compiler_pic_CXX='-pic'
13676 esac
13678 freebsd* | dragonfly*)
13679 # FreeBSD uses GNU C++
13681 hpux9* | hpux10* | hpux11*)
13682 case $cc_basename in
13683 CC*)
13684 lt_prog_compiler_wl_CXX='-Wl,'
13685 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13686 if test "$host_cpu" != ia64; then
13687 lt_prog_compiler_pic_CXX='+Z'
13690 aCC*)
13691 lt_prog_compiler_wl_CXX='-Wl,'
13692 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13693 case $host_cpu in
13694 hppa*64*|ia64*)
13695 # +Z the default
13698 lt_prog_compiler_pic_CXX='+Z'
13700 esac
13704 esac
13706 interix*)
13707 # This is c89, which is MS Visual C++ (no shared libs)
13708 # Anyone wants to do a port?
13710 irix5* | irix6* | nonstopux*)
13711 case $cc_basename in
13712 CC*)
13713 lt_prog_compiler_wl_CXX='-Wl,'
13714 lt_prog_compiler_static_CXX='-non_shared'
13715 # CC pic flag -KPIC is the default.
13719 esac
13721 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13722 case $cc_basename in
13723 KCC*)
13724 # KAI C++ Compiler
13725 lt_prog_compiler_wl_CXX='--backend -Wl,'
13726 lt_prog_compiler_pic_CXX='-fPIC'
13728 ecpc* )
13729 # old Intel C++ for x86_64 which still supported -KPIC.
13730 lt_prog_compiler_wl_CXX='-Wl,'
13731 lt_prog_compiler_pic_CXX='-KPIC'
13732 lt_prog_compiler_static_CXX='-static'
13734 icpc* )
13735 # Intel C++, used to be incompatible with GCC.
13736 # ICC 10 doesn't accept -KPIC any more.
13737 lt_prog_compiler_wl_CXX='-Wl,'
13738 lt_prog_compiler_pic_CXX='-fPIC'
13739 lt_prog_compiler_static_CXX='-static'
13741 pgCC* | pgcpp*)
13742 # Portland Group C++ compiler
13743 lt_prog_compiler_wl_CXX='-Wl,'
13744 lt_prog_compiler_pic_CXX='-fpic'
13745 lt_prog_compiler_static_CXX='-Bstatic'
13747 cxx*)
13748 # Compaq C++
13749 # Make sure the PIC flag is empty. It appears that all Alpha
13750 # Linux and Compaq Tru64 Unix objects are PIC.
13751 lt_prog_compiler_pic_CXX=
13752 lt_prog_compiler_static_CXX='-non_shared'
13754 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13755 # IBM XL 8.0, 9.0 on PPC and BlueGene
13756 lt_prog_compiler_wl_CXX='-Wl,'
13757 lt_prog_compiler_pic_CXX='-qpic'
13758 lt_prog_compiler_static_CXX='-qstaticlink'
13761 case `$CC -V 2>&1 | sed 5q` in
13762 *Sun\ C*)
13763 # Sun C++ 5.9
13764 lt_prog_compiler_pic_CXX='-KPIC'
13765 lt_prog_compiler_static_CXX='-Bstatic'
13766 lt_prog_compiler_wl_CXX='-Qoption ld '
13768 esac
13770 esac
13772 lynxos*)
13774 m88k*)
13776 mvs*)
13777 case $cc_basename in
13778 cxx*)
13779 lt_prog_compiler_pic_CXX='-W c,exportall'
13783 esac
13785 netbsd*)
13787 *qnx* | *nto*)
13788 # QNX uses GNU C++, but need to define -shared option too, otherwise
13789 # it will coredump.
13790 lt_prog_compiler_pic_CXX='-fPIC -shared'
13792 osf3* | osf4* | osf5*)
13793 case $cc_basename in
13794 KCC*)
13795 lt_prog_compiler_wl_CXX='--backend -Wl,'
13797 RCC*)
13798 # Rational C++ 2.4.1
13799 lt_prog_compiler_pic_CXX='-pic'
13801 cxx*)
13802 # Digital/Compaq C++
13803 lt_prog_compiler_wl_CXX='-Wl,'
13804 # Make sure the PIC flag is empty. It appears that all Alpha
13805 # Linux and Compaq Tru64 Unix objects are PIC.
13806 lt_prog_compiler_pic_CXX=
13807 lt_prog_compiler_static_CXX='-non_shared'
13811 esac
13813 psos*)
13815 solaris*)
13816 case $cc_basename in
13817 CC*)
13818 # Sun C++ 4.2, 5.x and Centerline C++
13819 lt_prog_compiler_pic_CXX='-KPIC'
13820 lt_prog_compiler_static_CXX='-Bstatic'
13821 lt_prog_compiler_wl_CXX='-Qoption ld '
13823 gcx*)
13824 # Green Hills C++ Compiler
13825 lt_prog_compiler_pic_CXX='-PIC'
13829 esac
13831 sunos4*)
13832 case $cc_basename in
13833 CC*)
13834 # Sun C++ 4.x
13835 lt_prog_compiler_pic_CXX='-pic'
13836 lt_prog_compiler_static_CXX='-Bstatic'
13838 lcc*)
13839 # Lucid
13840 lt_prog_compiler_pic_CXX='-pic'
13844 esac
13846 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13847 case $cc_basename in
13848 CC*)
13849 lt_prog_compiler_wl_CXX='-Wl,'
13850 lt_prog_compiler_pic_CXX='-KPIC'
13851 lt_prog_compiler_static_CXX='-Bstatic'
13853 esac
13855 tandem*)
13856 case $cc_basename in
13857 NCC*)
13858 # NonStop-UX NCC 3.20
13859 lt_prog_compiler_pic_CXX='-KPIC'
13863 esac
13865 vxworks*)
13868 lt_prog_compiler_can_build_shared_CXX=no
13870 esac
13873 case $host_os in
13874 # For platforms which do not support PIC, -DPIC is meaningless:
13875 *djgpp*)
13876 lt_prog_compiler_pic_CXX=
13879 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13881 esac
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13883 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13888 # Check to make sure the PIC flag actually works.
13890 if test -n "$lt_prog_compiler_pic_CXX"; then
13891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13892 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13893 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13894 $as_echo_n "(cached) " >&6
13895 else
13896 lt_cv_prog_compiler_pic_works_CXX=no
13897 ac_outfile=conftest.$ac_objext
13898 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13899 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13900 # Insert the option either (1) after the last *FLAGS variable, or
13901 # (2) before a word containing "conftest.", or (3) at the end.
13902 # Note that $ac_compile itself does not contain backslashes and begins
13903 # with a dollar sign (not a hyphen), so the echo should work correctly.
13904 # The option is referenced via a variable to avoid confusing sed.
13905 lt_compile=`echo "$ac_compile" | $SED \
13906 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13907 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13908 -e 's:$: $lt_compiler_flag:'`
13909 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13910 (eval "$lt_compile" 2>conftest.err)
13911 ac_status=$?
13912 cat conftest.err >&5
13913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13914 if (exit $ac_status) && test -s "$ac_outfile"; then
13915 # The compiler can only warn and ignore the option if not recognized
13916 # So say no if there are warnings other than the usual output.
13917 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13918 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13919 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13920 lt_cv_prog_compiler_pic_works_CXX=yes
13923 $RM conftest*
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13927 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13929 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13930 case $lt_prog_compiler_pic_CXX in
13931 "" | " "*) ;;
13932 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13933 esac
13934 else
13935 lt_prog_compiler_pic_CXX=
13936 lt_prog_compiler_can_build_shared_CXX=no
13944 # Check to make sure the static flag actually works.
13946 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13948 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13949 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13950 $as_echo_n "(cached) " >&6
13951 else
13952 lt_cv_prog_compiler_static_works_CXX=no
13953 save_LDFLAGS="$LDFLAGS"
13954 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13955 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13956 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13957 # The linker can only warn and ignore the option if not recognized
13958 # So say no if there are warnings
13959 if test -s conftest.err; then
13960 # Append any errors to the config.log.
13961 cat conftest.err 1>&5
13962 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13963 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13964 if diff conftest.exp conftest.er2 >/dev/null; then
13965 lt_cv_prog_compiler_static_works_CXX=yes
13967 else
13968 lt_cv_prog_compiler_static_works_CXX=yes
13971 $RM -r conftest*
13972 LDFLAGS="$save_LDFLAGS"
13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13976 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13978 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13980 else
13981 lt_prog_compiler_static_CXX=
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13988 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13989 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13990 $as_echo_n "(cached) " >&6
13991 else
13992 lt_cv_prog_compiler_c_o_CXX=no
13993 $RM -r conftest 2>/dev/null
13994 mkdir conftest
13995 cd conftest
13996 mkdir out
13997 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13999 lt_compiler_flag="-o out/conftest2.$ac_objext"
14000 # Insert the option either (1) after the last *FLAGS variable, or
14001 # (2) before a word containing "conftest.", or (3) at the end.
14002 # Note that $ac_compile itself does not contain backslashes and begins
14003 # with a dollar sign (not a hyphen), so the echo should work correctly.
14004 lt_compile=`echo "$ac_compile" | $SED \
14005 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14006 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14007 -e 's:$: $lt_compiler_flag:'`
14008 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14009 (eval "$lt_compile" 2>out/conftest.err)
14010 ac_status=$?
14011 cat out/conftest.err >&5
14012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14014 then
14015 # The compiler can only warn and ignore the option if not recognized
14016 # So say no if there are warnings
14017 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14018 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14019 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14020 lt_cv_prog_compiler_c_o_CXX=yes
14023 chmod u+w . 2>&5
14024 $RM conftest*
14025 # SGI C++ compiler will create directory out/ii_files/ for
14026 # template instantiation
14027 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14028 $RM out/* && rmdir out
14029 cd ..
14030 $RM -r conftest
14031 $RM conftest*
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14035 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14040 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14041 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
14042 $as_echo_n "(cached) " >&6
14043 else
14044 lt_cv_prog_compiler_c_o_CXX=no
14045 $RM -r conftest 2>/dev/null
14046 mkdir conftest
14047 cd conftest
14048 mkdir out
14049 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14051 lt_compiler_flag="-o out/conftest2.$ac_objext"
14052 # Insert the option either (1) after the last *FLAGS variable, or
14053 # (2) before a word containing "conftest.", or (3) at the end.
14054 # Note that $ac_compile itself does not contain backslashes and begins
14055 # with a dollar sign (not a hyphen), so the echo should work correctly.
14056 lt_compile=`echo "$ac_compile" | $SED \
14057 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14058 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14059 -e 's:$: $lt_compiler_flag:'`
14060 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14061 (eval "$lt_compile" 2>out/conftest.err)
14062 ac_status=$?
14063 cat out/conftest.err >&5
14064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14066 then
14067 # The compiler can only warn and ignore the option if not recognized
14068 # So say no if there are warnings
14069 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14070 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14071 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14072 lt_cv_prog_compiler_c_o_CXX=yes
14075 chmod u+w . 2>&5
14076 $RM conftest*
14077 # SGI C++ compiler will create directory out/ii_files/ for
14078 # template instantiation
14079 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14080 $RM out/* && rmdir out
14081 cd ..
14082 $RM -r conftest
14083 $RM conftest*
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
14087 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
14092 hard_links="nottested"
14093 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
14094 # do not overwrite the value of need_locks provided by the user
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14096 $as_echo_n "checking if we can lock with hard links... " >&6; }
14097 hard_links=yes
14098 $RM conftest*
14099 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14100 touch conftest.a
14101 ln conftest.a conftest.b 2>&5 || hard_links=no
14102 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14104 $as_echo "$hard_links" >&6; }
14105 if test "$hard_links" = no; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14107 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14108 need_locks=warn
14110 else
14111 need_locks=no
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14117 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14119 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14120 case $host_os in
14121 aix[4-9]*)
14122 # If we're using GNU nm, then we don't want the "-C" option.
14123 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14124 # Also, AIX nm treats weak defined symbols like other global defined
14125 # symbols, whereas GNU nm marks them as "W".
14126 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14127 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'
14128 else
14129 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'
14132 pw32*)
14133 export_symbols_cmds_CXX="$ltdll_cmds"
14135 cygwin* | mingw* | cegcc*)
14136 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'
14139 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14141 esac
14142 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14145 $as_echo "$ld_shlibs_CXX" >&6; }
14146 test "$ld_shlibs_CXX" = no && can_build_shared=no
14148 with_gnu_ld_CXX=$with_gnu_ld
14156 # Do we need to explicitly link libc?
14158 case "x$archive_cmds_need_lc_CXX" in
14159 x|xyes)
14160 # Assume -lc should be added
14161 archive_cmds_need_lc_CXX=yes
14163 if test "$enable_shared" = yes && test "$GCC" = yes; then
14164 case $archive_cmds_CXX in
14165 *'~'*)
14166 # FIXME: we may have to deal with multi-command sequences.
14168 '$CC '*)
14169 # Test whether the compiler implicitly links with -lc since on some
14170 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14171 # to ld, don't add -lc before -lgcc.
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14173 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14174 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
14175 $as_echo_n "(cached) " >&6
14176 else
14177 $RM conftest*
14178 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14181 (eval $ac_compile) 2>&5
14182 ac_status=$?
14183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14184 test $ac_status = 0; } 2>conftest.err; then
14185 soname=conftest
14186 lib=conftest
14187 libobjs=conftest.$ac_objext
14188 deplibs=
14189 wl=$lt_prog_compiler_wl_CXX
14190 pic_flag=$lt_prog_compiler_pic_CXX
14191 compiler_flags=-v
14192 linker_flags=-v
14193 verstring=
14194 output_objdir=.
14195 libname=conftest
14196 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
14197 allow_undefined_flag_CXX=
14198 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14199 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14200 ac_status=$?
14201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14202 test $ac_status = 0; }
14203 then
14204 lt_cv_archive_cmds_need_lc_CXX=no
14205 else
14206 lt_cv_archive_cmds_need_lc_CXX=yes
14208 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
14209 else
14210 cat conftest.err 1>&5
14212 $RM conftest*
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14216 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14217 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14219 esac
14222 esac
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14288 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14290 library_names_spec=
14291 libname_spec='lib$name'
14292 soname_spec=
14293 shrext_cmds=".so"
14294 postinstall_cmds=
14295 postuninstall_cmds=
14296 finish_cmds=
14297 finish_eval=
14298 shlibpath_var=
14299 shlibpath_overrides_runpath=unknown
14300 version_type=none
14301 dynamic_linker="$host_os ld.so"
14302 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14303 need_lib_prefix=unknown
14304 hardcode_into_libs=no
14306 # when you set need_version to no, make sure it does not cause -set_version
14307 # flags to be left without arguments
14308 need_version=unknown
14310 case $host_os in
14311 aix3*)
14312 version_type=linux
14313 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14314 shlibpath_var=LIBPATH
14316 # AIX 3 has no versioning support, so we append a major version to the name.
14317 soname_spec='${libname}${release}${shared_ext}$major'
14320 aix[4-9]*)
14321 version_type=linux
14322 need_lib_prefix=no
14323 need_version=no
14324 hardcode_into_libs=yes
14325 if test "$host_cpu" = ia64; then
14326 # AIX 5 supports IA64
14327 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14328 shlibpath_var=LD_LIBRARY_PATH
14329 else
14330 # With GCC up to 2.95.x, collect2 would create an import file
14331 # for dependence libraries. The import file would start with
14332 # the line `#! .'. This would cause the generated library to
14333 # depend on `.', always an invalid library. This was fixed in
14334 # development snapshots of GCC prior to 3.0.
14335 case $host_os in
14336 aix4 | aix4.[01] | aix4.[01].*)
14337 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14338 echo ' yes '
14339 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14341 else
14342 can_build_shared=no
14345 esac
14346 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14347 # soname into executable. Probably we can add versioning support to
14348 # collect2, so additional links can be useful in future.
14349 if test "$aix_use_runtimelinking" = yes; then
14350 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14351 # instead of lib<name>.a to let people know that these are not
14352 # typical AIX shared libraries.
14353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14354 else
14355 # We preserve .a as extension for shared libraries through AIX4.2
14356 # and later when we are not doing run time linking.
14357 library_names_spec='${libname}${release}.a $libname.a'
14358 soname_spec='${libname}${release}${shared_ext}$major'
14360 shlibpath_var=LIBPATH
14364 amigaos*)
14365 case $host_cpu in
14366 powerpc)
14367 # Since July 2007 AmigaOS4 officially supports .so libraries.
14368 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14371 m68k)
14372 library_names_spec='$libname.ixlibrary $libname.a'
14373 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14374 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'
14376 esac
14379 beos*)
14380 library_names_spec='${libname}${shared_ext}'
14381 dynamic_linker="$host_os ld.so"
14382 shlibpath_var=LIBRARY_PATH
14385 bsdi[45]*)
14386 version_type=linux
14387 need_version=no
14388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14389 soname_spec='${libname}${release}${shared_ext}$major'
14390 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14391 shlibpath_var=LD_LIBRARY_PATH
14392 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14393 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14394 # the default ld.so.conf also contains /usr/contrib/lib and
14395 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14396 # libtool to hard-code these into programs
14399 cygwin* | mingw* | pw32* | cegcc*)
14400 version_type=windows
14401 shrext_cmds=".dll"
14402 need_version=no
14403 need_lib_prefix=no
14405 case $GCC,$host_os in
14406 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14407 library_names_spec='$libname.dll.a'
14408 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14409 postinstall_cmds='base_file=`basename \${file}`~
14410 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14411 dldir=$destdir/`dirname \$dlpath`~
14412 test -d \$dldir || mkdir -p \$dldir~
14413 $install_prog $dir/$dlname \$dldir/$dlname~
14414 chmod a+x \$dldir/$dlname~
14415 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14416 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14418 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14419 dlpath=$dir/\$dldll~
14420 $RM \$dlpath'
14421 shlibpath_overrides_runpath=yes
14423 case $host_os in
14424 cygwin*)
14425 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14426 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14429 mingw* | cegcc*)
14430 # MinGW DLLs use traditional 'lib' prefix
14431 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14433 pw32*)
14434 # pw32 DLLs use 'pw' prefix rather than 'lib'
14435 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14437 esac
14441 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14443 esac
14444 dynamic_linker='Win32 ld.exe'
14445 # FIXME: first we should search . and the directory the executable is in
14446 shlibpath_var=PATH
14449 darwin* | rhapsody*)
14450 dynamic_linker="$host_os dyld"
14451 version_type=darwin
14452 need_lib_prefix=no
14453 need_version=no
14454 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14455 soname_spec='${libname}${release}${major}$shared_ext'
14456 shlibpath_overrides_runpath=yes
14457 shlibpath_var=DYLD_LIBRARY_PATH
14458 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14460 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14463 dgux*)
14464 version_type=linux
14465 need_lib_prefix=no
14466 need_version=no
14467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14468 soname_spec='${libname}${release}${shared_ext}$major'
14469 shlibpath_var=LD_LIBRARY_PATH
14472 freebsd* | dragonfly*)
14473 # DragonFly does not have aout. When/if they implement a new
14474 # versioning mechanism, adjust this.
14475 if test -x /usr/bin/objformat; then
14476 objformat=`/usr/bin/objformat`
14477 else
14478 case $host_os in
14479 freebsd[23].*) objformat=aout ;;
14480 *) objformat=elf ;;
14481 esac
14483 version_type=freebsd-$objformat
14484 case $version_type in
14485 freebsd-elf*)
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14487 need_version=no
14488 need_lib_prefix=no
14490 freebsd-*)
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14492 need_version=yes
14494 esac
14495 shlibpath_var=LD_LIBRARY_PATH
14496 case $host_os in
14497 freebsd2.*)
14498 shlibpath_overrides_runpath=yes
14500 freebsd3.[01]* | freebsdelf3.[01]*)
14501 shlibpath_overrides_runpath=yes
14502 hardcode_into_libs=yes
14504 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14505 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14506 shlibpath_overrides_runpath=no
14507 hardcode_into_libs=yes
14509 *) # from 4.6 on, and DragonFly
14510 shlibpath_overrides_runpath=yes
14511 hardcode_into_libs=yes
14513 esac
14516 gnu*)
14517 version_type=linux
14518 need_lib_prefix=no
14519 need_version=no
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 shlibpath_var=LD_LIBRARY_PATH
14523 hardcode_into_libs=yes
14526 haiku*)
14527 version_type=linux
14528 need_lib_prefix=no
14529 need_version=no
14530 dynamic_linker="$host_os runtime_loader"
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14532 soname_spec='${libname}${release}${shared_ext}$major'
14533 shlibpath_var=LIBRARY_PATH
14534 shlibpath_overrides_runpath=yes
14535 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14536 hardcode_into_libs=yes
14539 hpux9* | hpux10* | hpux11*)
14540 # Give a soname corresponding to the major version so that dld.sl refuses to
14541 # link against other versions.
14542 version_type=sunos
14543 need_lib_prefix=no
14544 need_version=no
14545 case $host_cpu in
14546 ia64*)
14547 shrext_cmds='.so'
14548 hardcode_into_libs=yes
14549 dynamic_linker="$host_os dld.so"
14550 shlibpath_var=LD_LIBRARY_PATH
14551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14553 soname_spec='${libname}${release}${shared_ext}$major'
14554 if test "X$HPUX_IA64_MODE" = X32; then
14555 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14556 else
14557 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14559 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14561 hppa*64*)
14562 shrext_cmds='.sl'
14563 hardcode_into_libs=yes
14564 dynamic_linker="$host_os dld.sl"
14565 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14566 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14568 soname_spec='${libname}${release}${shared_ext}$major'
14569 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14570 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14573 shrext_cmds='.sl'
14574 dynamic_linker="$host_os dld.sl"
14575 shlibpath_var=SHLIB_PATH
14576 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14578 soname_spec='${libname}${release}${shared_ext}$major'
14580 esac
14581 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14582 postinstall_cmds='chmod 555 $lib'
14583 # or fails outright, so override atomically:
14584 install_override_mode=555
14587 interix[3-9]*)
14588 version_type=linux
14589 need_lib_prefix=no
14590 need_version=no
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14594 shlibpath_var=LD_LIBRARY_PATH
14595 shlibpath_overrides_runpath=no
14596 hardcode_into_libs=yes
14599 irix5* | irix6* | nonstopux*)
14600 case $host_os in
14601 nonstopux*) version_type=nonstopux ;;
14603 if test "$lt_cv_prog_gnu_ld" = yes; then
14604 version_type=linux
14605 else
14606 version_type=irix
14607 fi ;;
14608 esac
14609 need_lib_prefix=no
14610 need_version=no
14611 soname_spec='${libname}${release}${shared_ext}$major'
14612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14613 case $host_os in
14614 irix5* | nonstopux*)
14615 libsuff= shlibsuff=
14618 case $LD in # libtool.m4 will add one of these switches to LD
14619 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14620 libsuff= shlibsuff= libmagic=32-bit;;
14621 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14622 libsuff=32 shlibsuff=N32 libmagic=N32;;
14623 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14624 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14625 *) libsuff= shlibsuff= libmagic=never-match;;
14626 esac
14628 esac
14629 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14630 shlibpath_overrides_runpath=no
14631 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14632 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14633 hardcode_into_libs=yes
14636 # No shared lib support for Linux oldld, aout, or coff.
14637 linux*oldld* | linux*aout* | linux*coff*)
14638 dynamic_linker=no
14641 # This must be Linux ELF.
14642 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14643 version_type=linux
14644 need_lib_prefix=no
14645 need_version=no
14646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14647 soname_spec='${libname}${release}${shared_ext}$major'
14648 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14649 shlibpath_var=LD_LIBRARY_PATH
14650 shlibpath_overrides_runpath=no
14652 # Some binutils ld are patched to set DT_RUNPATH
14653 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14654 $as_echo_n "(cached) " >&6
14655 else
14656 lt_cv_shlibpath_overrides_runpath=no
14657 save_LDFLAGS=$LDFLAGS
14658 save_libdir=$libdir
14659 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14660 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14665 main ()
14669 return 0;
14671 _ACEOF
14672 if ac_fn_cxx_try_link "$LINENO"; then :
14673 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14674 lt_cv_shlibpath_overrides_runpath=yes
14677 rm -f core conftest.err conftest.$ac_objext \
14678 conftest$ac_exeext conftest.$ac_ext
14679 LDFLAGS=$save_LDFLAGS
14680 libdir=$save_libdir
14684 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14686 # This implies no fast_install, which is unacceptable.
14687 # Some rework will be needed to allow for fast_install
14688 # before this can be enabled.
14689 hardcode_into_libs=yes
14691 # Append ld.so.conf contents to the search path
14692 if test -f /etc/ld.so.conf; then
14693 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' ' '`
14694 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14697 # We used to test for /lib/ld.so.1 and disable shared libraries on
14698 # powerpc, because MkLinux only supported shared libraries with the
14699 # GNU dynamic linker. Since this was broken with cross compilers,
14700 # most powerpc-linux boxes support dynamic linking these days and
14701 # people can always --disable-shared, the test was removed, and we
14702 # assume the GNU/Linux dynamic linker is in use.
14703 dynamic_linker='GNU/Linux ld.so'
14706 netbsd*)
14707 version_type=sunos
14708 need_lib_prefix=no
14709 need_version=no
14710 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14713 dynamic_linker='NetBSD (a.out) ld.so'
14714 else
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 dynamic_linker='NetBSD ld.elf_so'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=yes
14721 hardcode_into_libs=yes
14724 newsos6)
14725 version_type=linux
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 shlibpath_overrides_runpath=yes
14731 *nto* | *qnx*)
14732 version_type=qnx
14733 need_lib_prefix=no
14734 need_version=no
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 shlibpath_var=LD_LIBRARY_PATH
14738 shlibpath_overrides_runpath=no
14739 hardcode_into_libs=yes
14740 dynamic_linker='ldqnx.so'
14743 openbsd*)
14744 version_type=sunos
14745 sys_lib_dlsearch_path_spec="/usr/lib"
14746 need_lib_prefix=no
14747 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14748 case $host_os in
14749 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14750 *) need_version=no ;;
14751 esac
14752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14753 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14754 shlibpath_var=LD_LIBRARY_PATH
14755 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14756 case $host_os in
14757 openbsd2.[89] | openbsd2.[89].*)
14758 shlibpath_overrides_runpath=no
14761 shlibpath_overrides_runpath=yes
14763 esac
14764 else
14765 shlibpath_overrides_runpath=yes
14769 os2*)
14770 libname_spec='$name'
14771 shrext_cmds=".dll"
14772 need_lib_prefix=no
14773 library_names_spec='$libname${shared_ext} $libname.a'
14774 dynamic_linker='OS/2 ld.exe'
14775 shlibpath_var=LIBPATH
14778 osf3* | osf4* | osf5*)
14779 version_type=osf
14780 need_lib_prefix=no
14781 need_version=no
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14786 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14789 rdos*)
14790 dynamic_linker=no
14793 solaris*)
14794 version_type=linux
14795 need_lib_prefix=no
14796 need_version=no
14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798 soname_spec='${libname}${release}${shared_ext}$major'
14799 shlibpath_var=LD_LIBRARY_PATH
14800 shlibpath_overrides_runpath=yes
14801 hardcode_into_libs=yes
14802 # ldd complains unless libraries are executable
14803 postinstall_cmds='chmod +x $lib'
14806 sunos4*)
14807 version_type=sunos
14808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14809 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14810 shlibpath_var=LD_LIBRARY_PATH
14811 shlibpath_overrides_runpath=yes
14812 if test "$with_gnu_ld" = yes; then
14813 need_lib_prefix=no
14815 need_version=yes
14818 sysv4 | sysv4.3*)
14819 version_type=linux
14820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14821 soname_spec='${libname}${release}${shared_ext}$major'
14822 shlibpath_var=LD_LIBRARY_PATH
14823 case $host_vendor in
14824 sni)
14825 shlibpath_overrides_runpath=no
14826 need_lib_prefix=no
14827 runpath_var=LD_RUN_PATH
14829 siemens)
14830 need_lib_prefix=no
14832 motorola)
14833 need_lib_prefix=no
14834 need_version=no
14835 shlibpath_overrides_runpath=no
14836 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14838 esac
14841 sysv4*MP*)
14842 if test -d /usr/nec ;then
14843 version_type=linux
14844 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14845 soname_spec='$libname${shared_ext}.$major'
14846 shlibpath_var=LD_LIBRARY_PATH
14850 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14851 version_type=freebsd-elf
14852 need_lib_prefix=no
14853 need_version=no
14854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14855 soname_spec='${libname}${release}${shared_ext}$major'
14856 shlibpath_var=LD_LIBRARY_PATH
14857 shlibpath_overrides_runpath=yes
14858 hardcode_into_libs=yes
14859 if test "$with_gnu_ld" = yes; then
14860 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14861 else
14862 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14863 case $host_os in
14864 sco3.2v5*)
14865 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14867 esac
14869 sys_lib_dlsearch_path_spec='/usr/lib'
14872 tpf*)
14873 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14874 version_type=linux
14875 need_lib_prefix=no
14876 need_version=no
14877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14878 shlibpath_var=LD_LIBRARY_PATH
14879 shlibpath_overrides_runpath=no
14880 hardcode_into_libs=yes
14883 uts4*)
14884 version_type=linux
14885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886 soname_spec='${libname}${release}${shared_ext}$major'
14887 shlibpath_var=LD_LIBRARY_PATH
14891 dynamic_linker=no
14893 esac
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14895 $as_echo "$dynamic_linker" >&6; }
14896 test "$dynamic_linker" = no && can_build_shared=no
14898 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14899 if test "$GCC" = yes; then
14900 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14903 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14904 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14906 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14907 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14948 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14949 hardcode_action_CXX=
14950 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14951 test -n "$runpath_var_CXX" ||
14952 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14954 # We can hardcode non-existent directories.
14955 if test "$hardcode_direct_CXX" != no &&
14956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14957 # have to relink, otherwise we might link with an installed library
14958 # when we should be linking with a yet-to-be-installed one
14959 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14960 test "$hardcode_minus_L_CXX" != no; then
14961 # Linking always hardcodes the temporary library directory.
14962 hardcode_action_CXX=relink
14963 else
14964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14965 hardcode_action_CXX=immediate
14967 else
14968 # We cannot hardcode anything, or else we can only hardcode existing
14969 # directories.
14970 hardcode_action_CXX=unsupported
14972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14973 $as_echo "$hardcode_action_CXX" >&6; }
14975 if test "$hardcode_action_CXX" = relink ||
14976 test "$inherit_rpath_CXX" = yes; then
14977 # Fast installation is not supported
14978 enable_fast_install=no
14979 elif test "$shlibpath_overrides_runpath" = yes ||
14980 test "$enable_shared" = no; then
14981 # Fast installation is not necessary
14982 enable_fast_install=needless
14991 fi # test -n "$compiler"
14993 CC=$lt_save_CC
14994 LDCXX=$LD
14995 LD=$lt_save_LD
14996 GCC=$lt_save_GCC
14997 with_gnu_ld=$lt_save_with_gnu_ld
14998 lt_cv_path_LDCXX=$lt_cv_path_LD
14999 lt_cv_path_LD=$lt_save_path_LD
15000 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15001 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15002 fi # test "$_lt_caught_CXX_error" != yes
15004 ac_ext=c
15005 ac_cpp='$CPP $CPPFLAGS'
15006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15022 ac_config_commands="$ac_config_commands libtool"
15027 # Only expand once:
15033 XCFLAGS="-Wall -Wextra"
15036 if test "${multilib}" = "yes"; then
15037 multilib_arg="--enable-multilib"
15038 else
15039 multilib_arg=
15042 ac_config_files="$ac_config_files Makefile libmpx.spec"
15044 ac_config_headers="$ac_config_headers config.h"
15046 ac_config_files="$ac_config_files mpxrt/Makefile mpxwrap/Makefile"
15049 cat >confcache <<\_ACEOF
15050 # This file is a shell script that caches the results of configure
15051 # tests run on this system so they can be shared between configure
15052 # scripts and configure runs, see configure's option --config-cache.
15053 # It is not useful on other systems. If it contains results you don't
15054 # want to keep, you may remove or edit it.
15056 # config.status only pays attention to the cache file if you give it
15057 # the --recheck option to rerun configure.
15059 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15060 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15061 # following values.
15063 _ACEOF
15065 # The following way of writing the cache mishandles newlines in values,
15066 # but we know of no workaround that is simple, portable, and efficient.
15067 # So, we kill variables containing newlines.
15068 # Ultrix sh set writes to stderr and can't be redirected directly,
15069 # and sets the high bit in the cache file unless we assign to the vars.
15071 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15072 eval ac_val=\$$ac_var
15073 case $ac_val in #(
15074 *${as_nl}*)
15075 case $ac_var in #(
15076 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15077 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15078 esac
15079 case $ac_var in #(
15080 _ | IFS | as_nl) ;; #(
15081 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15082 *) { eval $ac_var=; unset $ac_var;} ;;
15083 esac ;;
15084 esac
15085 done
15087 (set) 2>&1 |
15088 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15089 *${as_nl}ac_space=\ *)
15090 # `set' does not quote correctly, so add quotes: double-quote
15091 # substitution turns \\\\ into \\, and sed turns \\ into \.
15092 sed -n \
15093 "s/'/'\\\\''/g;
15094 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15095 ;; #(
15097 # `set' quotes correctly as required by POSIX, so do not add quotes.
15098 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15100 esac |
15101 sort
15103 sed '
15104 /^ac_cv_env_/b end
15105 t clear
15106 :clear
15107 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15108 t end
15109 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15110 :end' >>confcache
15111 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15112 if test -w "$cache_file"; then
15113 test "x$cache_file" != "x/dev/null" &&
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15115 $as_echo "$as_me: updating cache $cache_file" >&6;}
15116 cat confcache >$cache_file
15117 else
15118 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15119 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15122 rm -f confcache
15124 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15125 # Let make expand exec_prefix.
15126 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15128 DEFS=-DHAVE_CONFIG_H
15130 ac_libobjs=
15131 ac_ltlibobjs=
15132 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15133 # 1. Remove the extension, and $U if already installed.
15134 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15135 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15136 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15137 # will be set to the directory where LIBOBJS objects are built.
15138 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15139 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15140 done
15141 LIBOBJS=$ac_libobjs
15143 LTLIBOBJS=$ac_ltlibobjs
15146 if test -z "${LIBMPX_SUPPORTED_TRUE}" && test -z "${LIBMPX_SUPPORTED_FALSE}"; then
15147 as_fn_error "conditional \"LIBMPX_SUPPORTED\" was never defined.
15148 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15150 if test -n "$EXEEXT"; then
15151 am__EXEEXT_TRUE=
15152 am__EXEEXT_FALSE='#'
15153 else
15154 am__EXEEXT_TRUE='#'
15155 am__EXEEXT_FALSE=
15158 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
15159 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
15160 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15162 if test -z "${MPX_AS_SUPPORTED_TRUE}" && test -z "${MPX_AS_SUPPORTED_FALSE}"; then
15163 as_fn_error "conditional \"MPX_AS_SUPPORTED\" was never defined.
15164 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15167 : ${CONFIG_STATUS=./config.status}
15168 ac_write_fail=0
15169 ac_clean_files_save=$ac_clean_files
15170 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15172 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15173 as_write_fail=0
15174 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15175 #! $SHELL
15176 # Generated by $as_me.
15177 # Run this file to recreate the current configuration.
15178 # Compiler output produced by configure, useful for debugging
15179 # configure, is in config.log if it exists.
15181 debug=false
15182 ac_cs_recheck=false
15183 ac_cs_silent=false
15185 SHELL=\${CONFIG_SHELL-$SHELL}
15186 export SHELL
15187 _ASEOF
15188 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15189 ## -------------------- ##
15190 ## M4sh Initialization. ##
15191 ## -------------------- ##
15193 # Be more Bourne compatible
15194 DUALCASE=1; export DUALCASE # for MKS sh
15195 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15196 emulate sh
15197 NULLCMD=:
15198 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15199 # is contrary to our usage. Disable this feature.
15200 alias -g '${1+"$@"}'='"$@"'
15201 setopt NO_GLOB_SUBST
15202 else
15203 case `(set -o) 2>/dev/null` in #(
15204 *posix*) :
15205 set -o posix ;; #(
15206 *) :
15208 esac
15212 as_nl='
15214 export as_nl
15215 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15216 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15217 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15219 # Prefer a ksh shell builtin over an external printf program on Solaris,
15220 # but without wasting forks for bash or zsh.
15221 if test -z "$BASH_VERSION$ZSH_VERSION" \
15222 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15223 as_echo='print -r --'
15224 as_echo_n='print -rn --'
15225 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15226 as_echo='printf %s\n'
15227 as_echo_n='printf %s'
15228 else
15229 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15230 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15231 as_echo_n='/usr/ucb/echo -n'
15232 else
15233 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15234 as_echo_n_body='eval
15235 arg=$1;
15236 case $arg in #(
15237 *"$as_nl"*)
15238 expr "X$arg" : "X\\(.*\\)$as_nl";
15239 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15240 esac;
15241 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15243 export as_echo_n_body
15244 as_echo_n='sh -c $as_echo_n_body as_echo'
15246 export as_echo_body
15247 as_echo='sh -c $as_echo_body as_echo'
15250 # The user is always right.
15251 if test "${PATH_SEPARATOR+set}" != set; then
15252 PATH_SEPARATOR=:
15253 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15254 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15255 PATH_SEPARATOR=';'
15260 # IFS
15261 # We need space, tab and new line, in precisely that order. Quoting is
15262 # there to prevent editors from complaining about space-tab.
15263 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15264 # splitting by setting IFS to empty value.)
15265 IFS=" "" $as_nl"
15267 # Find who we are. Look in the path if we contain no directory separator.
15268 case $0 in #((
15269 *[\\/]* ) as_myself=$0 ;;
15270 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15271 for as_dir in $PATH
15273 IFS=$as_save_IFS
15274 test -z "$as_dir" && as_dir=.
15275 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15276 done
15277 IFS=$as_save_IFS
15280 esac
15281 # We did not find ourselves, most probably we were run as `sh COMMAND'
15282 # in which case we are not to be found in the path.
15283 if test "x$as_myself" = x; then
15284 as_myself=$0
15286 if test ! -f "$as_myself"; then
15287 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15288 exit 1
15291 # Unset variables that we do not need and which cause bugs (e.g. in
15292 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15293 # suppresses any "Segmentation fault" message there. '((' could
15294 # trigger a bug in pdksh 5.2.14.
15295 for as_var in BASH_ENV ENV MAIL MAILPATH
15296 do eval test x\${$as_var+set} = xset \
15297 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15298 done
15299 PS1='$ '
15300 PS2='> '
15301 PS4='+ '
15303 # NLS nuisances.
15304 LC_ALL=C
15305 export LC_ALL
15306 LANGUAGE=C
15307 export LANGUAGE
15309 # CDPATH.
15310 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15313 # as_fn_error ERROR [LINENO LOG_FD]
15314 # ---------------------------------
15315 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15316 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15317 # script with status $?, using 1 if that was 0.
15318 as_fn_error ()
15320 as_status=$?; test $as_status -eq 0 && as_status=1
15321 if test "$3"; then
15322 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15323 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
15325 $as_echo "$as_me: error: $1" >&2
15326 as_fn_exit $as_status
15327 } # as_fn_error
15330 # as_fn_set_status STATUS
15331 # -----------------------
15332 # Set $? to STATUS, without forking.
15333 as_fn_set_status ()
15335 return $1
15336 } # as_fn_set_status
15338 # as_fn_exit STATUS
15339 # -----------------
15340 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15341 as_fn_exit ()
15343 set +e
15344 as_fn_set_status $1
15345 exit $1
15346 } # as_fn_exit
15348 # as_fn_unset VAR
15349 # ---------------
15350 # Portably unset VAR.
15351 as_fn_unset ()
15353 { eval $1=; unset $1;}
15355 as_unset=as_fn_unset
15356 # as_fn_append VAR VALUE
15357 # ----------------------
15358 # Append the text in VALUE to the end of the definition contained in VAR. Take
15359 # advantage of any shell optimizations that allow amortized linear growth over
15360 # repeated appends, instead of the typical quadratic growth present in naive
15361 # implementations.
15362 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15363 eval 'as_fn_append ()
15365 eval $1+=\$2
15367 else
15368 as_fn_append ()
15370 eval $1=\$$1\$2
15372 fi # as_fn_append
15374 # as_fn_arith ARG...
15375 # ------------------
15376 # Perform arithmetic evaluation on the ARGs, and store the result in the
15377 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15378 # must be portable across $(()) and expr.
15379 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15380 eval 'as_fn_arith ()
15382 as_val=$(( $* ))
15384 else
15385 as_fn_arith ()
15387 as_val=`expr "$@" || test $? -eq 1`
15389 fi # as_fn_arith
15392 if expr a : '\(a\)' >/dev/null 2>&1 &&
15393 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15394 as_expr=expr
15395 else
15396 as_expr=false
15399 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15400 as_basename=basename
15401 else
15402 as_basename=false
15405 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15406 as_dirname=dirname
15407 else
15408 as_dirname=false
15411 as_me=`$as_basename -- "$0" ||
15412 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15413 X"$0" : 'X\(//\)$' \| \
15414 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15415 $as_echo X/"$0" |
15416 sed '/^.*\/\([^/][^/]*\)\/*$/{
15417 s//\1/
15420 /^X\/\(\/\/\)$/{
15421 s//\1/
15424 /^X\/\(\/\).*/{
15425 s//\1/
15428 s/.*/./; q'`
15430 # Avoid depending upon Character Ranges.
15431 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15432 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15433 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15434 as_cr_digits='0123456789'
15435 as_cr_alnum=$as_cr_Letters$as_cr_digits
15437 ECHO_C= ECHO_N= ECHO_T=
15438 case `echo -n x` in #(((((
15439 -n*)
15440 case `echo 'xy\c'` in
15441 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15442 xy) ECHO_C='\c';;
15443 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15444 ECHO_T=' ';;
15445 esac;;
15447 ECHO_N='-n';;
15448 esac
15450 rm -f conf$$ conf$$.exe conf$$.file
15451 if test -d conf$$.dir; then
15452 rm -f conf$$.dir/conf$$.file
15453 else
15454 rm -f conf$$.dir
15455 mkdir conf$$.dir 2>/dev/null
15457 if (echo >conf$$.file) 2>/dev/null; then
15458 if ln -s conf$$.file conf$$ 2>/dev/null; then
15459 as_ln_s='ln -s'
15460 # ... but there are two gotchas:
15461 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15462 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15463 # In both cases, we have to default to `cp -p'.
15464 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15465 as_ln_s='cp -p'
15466 elif ln conf$$.file conf$$ 2>/dev/null; then
15467 as_ln_s=ln
15468 else
15469 as_ln_s='cp -p'
15471 else
15472 as_ln_s='cp -p'
15474 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15475 rmdir conf$$.dir 2>/dev/null
15478 # as_fn_mkdir_p
15479 # -------------
15480 # Create "$as_dir" as a directory, including parents if necessary.
15481 as_fn_mkdir_p ()
15484 case $as_dir in #(
15485 -*) as_dir=./$as_dir;;
15486 esac
15487 test -d "$as_dir" || eval $as_mkdir_p || {
15488 as_dirs=
15489 while :; do
15490 case $as_dir in #(
15491 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15492 *) as_qdir=$as_dir;;
15493 esac
15494 as_dirs="'$as_qdir' $as_dirs"
15495 as_dir=`$as_dirname -- "$as_dir" ||
15496 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15497 X"$as_dir" : 'X\(//\)[^/]' \| \
15498 X"$as_dir" : 'X\(//\)$' \| \
15499 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15500 $as_echo X"$as_dir" |
15501 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15502 s//\1/
15505 /^X\(\/\/\)[^/].*/{
15506 s//\1/
15509 /^X\(\/\/\)$/{
15510 s//\1/
15513 /^X\(\/\).*/{
15514 s//\1/
15517 s/.*/./; q'`
15518 test -d "$as_dir" && break
15519 done
15520 test -z "$as_dirs" || eval "mkdir $as_dirs"
15521 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15524 } # as_fn_mkdir_p
15525 if mkdir -p . 2>/dev/null; then
15526 as_mkdir_p='mkdir -p "$as_dir"'
15527 else
15528 test -d ./-p && rmdir ./-p
15529 as_mkdir_p=false
15532 if test -x / >/dev/null 2>&1; then
15533 as_test_x='test -x'
15534 else
15535 if ls -dL / >/dev/null 2>&1; then
15536 as_ls_L_option=L
15537 else
15538 as_ls_L_option=
15540 as_test_x='
15541 eval sh -c '\''
15542 if test -d "$1"; then
15543 test -d "$1/.";
15544 else
15545 case $1 in #(
15546 -*)set "./$1";;
15547 esac;
15548 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15549 ???[sx]*):;;*)false;;esac;fi
15550 '\'' sh
15553 as_executable_p=$as_test_x
15555 # Sed expression to map a string onto a valid CPP name.
15556 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15558 # Sed expression to map a string onto a valid variable name.
15559 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15562 exec 6>&1
15563 ## ----------------------------------- ##
15564 ## Main body of $CONFIG_STATUS script. ##
15565 ## ----------------------------------- ##
15566 _ASEOF
15567 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15570 # Save the log message, to keep $0 and so on meaningful, and to
15571 # report actual input values of CONFIG_FILES etc. instead of their
15572 # values after options handling.
15573 ac_log="
15574 This file was extended by package-unused $as_me version-unused, which was
15575 generated by GNU Autoconf 2.64. Invocation command line was
15577 CONFIG_FILES = $CONFIG_FILES
15578 CONFIG_HEADERS = $CONFIG_HEADERS
15579 CONFIG_LINKS = $CONFIG_LINKS
15580 CONFIG_COMMANDS = $CONFIG_COMMANDS
15581 $ $0 $@
15583 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15586 _ACEOF
15588 case $ac_config_files in *"
15589 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15590 esac
15592 case $ac_config_headers in *"
15593 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15594 esac
15597 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15598 # Files that config.status was made for.
15599 config_files="$ac_config_files"
15600 config_headers="$ac_config_headers"
15601 config_commands="$ac_config_commands"
15603 _ACEOF
15605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15606 ac_cs_usage="\
15607 \`$as_me' instantiates files and other configuration actions
15608 from templates according to the current configuration. Unless the files
15609 and actions are specified as TAGs, all are instantiated by default.
15611 Usage: $0 [OPTION]... [TAG]...
15613 -h, --help print this help, then exit
15614 -V, --version print version number and configuration settings, then exit
15615 -q, --quiet, --silent
15616 do not print progress messages
15617 -d, --debug don't remove temporary files
15618 --recheck update $as_me by reconfiguring in the same conditions
15619 --file=FILE[:TEMPLATE]
15620 instantiate the configuration file FILE
15621 --header=FILE[:TEMPLATE]
15622 instantiate the configuration header FILE
15624 Configuration files:
15625 $config_files
15627 Configuration headers:
15628 $config_headers
15630 Configuration commands:
15631 $config_commands
15633 Report bugs to <libmpx>."
15635 _ACEOF
15636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15637 ac_cs_version="\\
15638 package-unused config.status version-unused
15639 configured by $0, generated by GNU Autoconf 2.64,
15640 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15642 Copyright (C) 2009 Free Software Foundation, Inc.
15643 This config.status script is free software; the Free Software Foundation
15644 gives unlimited permission to copy, distribute and modify it."
15646 ac_pwd='$ac_pwd'
15647 srcdir='$srcdir'
15648 INSTALL='$INSTALL'
15649 MKDIR_P='$MKDIR_P'
15650 AWK='$AWK'
15651 test -n "\$AWK" || AWK=awk
15652 _ACEOF
15654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15655 # The default lists apply if the user does not specify any file.
15656 ac_need_defaults=:
15657 while test $# != 0
15659 case $1 in
15660 --*=*)
15661 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15662 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15663 ac_shift=:
15666 ac_option=$1
15667 ac_optarg=$2
15668 ac_shift=shift
15670 esac
15672 case $ac_option in
15673 # Handling of the options.
15674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15675 ac_cs_recheck=: ;;
15676 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15677 $as_echo "$ac_cs_version"; exit ;;
15678 --debug | --debu | --deb | --de | --d | -d )
15679 debug=: ;;
15680 --file | --fil | --fi | --f )
15681 $ac_shift
15682 case $ac_optarg in
15683 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15684 esac
15685 as_fn_append CONFIG_FILES " '$ac_optarg'"
15686 ac_need_defaults=false;;
15687 --header | --heade | --head | --hea )
15688 $ac_shift
15689 case $ac_optarg in
15690 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15691 esac
15692 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15693 ac_need_defaults=false;;
15694 --he | --h)
15695 # Conflict between --help and --header
15696 as_fn_error "ambiguous option: \`$1'
15697 Try \`$0 --help' for more information.";;
15698 --help | --hel | -h )
15699 $as_echo "$ac_cs_usage"; exit ;;
15700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15701 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15702 ac_cs_silent=: ;;
15704 # This is an error.
15705 -*) as_fn_error "unrecognized option: \`$1'
15706 Try \`$0 --help' for more information." ;;
15708 *) as_fn_append ac_config_targets " $1"
15709 ac_need_defaults=false ;;
15711 esac
15712 shift
15713 done
15715 ac_configure_extra_args=
15717 if $ac_cs_silent; then
15718 exec 6>/dev/null
15719 ac_configure_extra_args="$ac_configure_extra_args --silent"
15722 _ACEOF
15723 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15724 if \$ac_cs_recheck; then
15725 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15726 shift
15727 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15728 CONFIG_SHELL='$SHELL'
15729 export CONFIG_SHELL
15730 exec "\$@"
15733 _ACEOF
15734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15735 exec 5>>config.log
15737 echo
15738 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15739 ## Running $as_me. ##
15740 _ASBOX
15741 $as_echo "$ac_log"
15742 } >&5
15744 _ACEOF
15745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15747 # INIT-COMMANDS
15750 srcdir="$srcdir"
15751 host="$host"
15752 target="$target"
15753 with_multisubdir="$with_multisubdir"
15754 with_multisrctop="$with_multisrctop"
15755 with_target_subdir="$with_target_subdir"
15756 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15757 multi_basedir="$multi_basedir"
15758 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15759 CC="$CC"
15760 CXX="$CXX"
15761 GFORTRAN="$GFORTRAN"
15762 GCJ="$GCJ"
15765 # The HP-UX ksh and POSIX shell print the target directory to stdout
15766 # if CDPATH is set.
15767 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15769 sed_quote_subst='$sed_quote_subst'
15770 double_quote_subst='$double_quote_subst'
15771 delay_variable_subst='$delay_variable_subst'
15772 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15773 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15774 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15775 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15776 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15777 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15778 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15779 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15780 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15781 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15782 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15783 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15784 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15785 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15786 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15787 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15788 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15789 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15790 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15791 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15792 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15793 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15794 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15795 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15796 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15797 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15798 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15799 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15800 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15801 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15802 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15803 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15804 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15805 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15806 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15807 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15808 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15809 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15810 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15811 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15812 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15813 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15814 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15815 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15816 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15817 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15818 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15819 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15820 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"`'
15821 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15822 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15823 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15824 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15825 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15826 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15827 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15828 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15829 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15830 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15831 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15832 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15833 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15834 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15835 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15836 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15837 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15838 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15839 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15840 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15841 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15842 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15843 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15844 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15845 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15846 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15847 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15848 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15849 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15850 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15851 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15852 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15853 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15854 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15855 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15856 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15857 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15858 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15859 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15860 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15861 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15862 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15863 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15864 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15865 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15866 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15867 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15868 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15869 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15870 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15871 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15872 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15873 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15874 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15875 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15876 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15877 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15878 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15879 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15880 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15881 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15882 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15883 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15884 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15885 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15886 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15887 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15888 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15889 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15890 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15891 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15892 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15893 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15894 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15895 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15896 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15897 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15898 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15899 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15900 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15901 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15902 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15903 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15904 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15905 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15906 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15907 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15908 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15909 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15910 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15911 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15912 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15913 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15914 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15915 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15916 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15917 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15918 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15919 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15920 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15921 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15922 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15923 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15924 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15925 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15926 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15927 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15928 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15929 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15930 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15931 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15932 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15933 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15934 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15935 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15936 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15937 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15938 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15939 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15940 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15941 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15942 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15943 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15944 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15945 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15946 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15948 LTCC='$LTCC'
15949 LTCFLAGS='$LTCFLAGS'
15950 compiler='$compiler_DEFAULT'
15952 # A function that is used when there is no print builtin or printf.
15953 func_fallback_echo ()
15955 eval 'cat <<_LTECHO_EOF
15957 _LTECHO_EOF'
15960 # Quote evaled strings.
15961 for var in SHELL \
15962 ECHO \
15963 SED \
15964 GREP \
15965 EGREP \
15966 FGREP \
15967 LD \
15968 NM \
15969 LN_S \
15970 lt_SP2NL \
15971 lt_NL2SP \
15972 reload_flag \
15973 OBJDUMP \
15974 deplibs_check_method \
15975 file_magic_cmd \
15976 AR \
15977 AR_FLAGS \
15978 STRIP \
15979 RANLIB \
15980 CC \
15981 CFLAGS \
15982 compiler \
15983 lt_cv_sys_global_symbol_pipe \
15984 lt_cv_sys_global_symbol_to_cdecl \
15985 lt_cv_sys_global_symbol_to_c_name_address \
15986 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15987 lt_prog_compiler_no_builtin_flag \
15988 lt_prog_compiler_wl \
15989 lt_prog_compiler_pic \
15990 lt_prog_compiler_static \
15991 lt_cv_prog_compiler_c_o \
15992 need_locks \
15993 DSYMUTIL \
15994 NMEDIT \
15995 LIPO \
15996 OTOOL \
15997 OTOOL64 \
15998 shrext_cmds \
15999 export_dynamic_flag_spec \
16000 whole_archive_flag_spec \
16001 compiler_needs_object \
16002 with_gnu_ld \
16003 allow_undefined_flag \
16004 no_undefined_flag \
16005 hardcode_libdir_flag_spec \
16006 hardcode_libdir_flag_spec_ld \
16007 hardcode_libdir_separator \
16008 fix_srcfile_path \
16009 exclude_expsyms \
16010 include_expsyms \
16011 file_list_spec \
16012 variables_saved_for_relink \
16013 libname_spec \
16014 library_names_spec \
16015 soname_spec \
16016 install_override_mode \
16017 finish_eval \
16018 old_striplib \
16019 striplib \
16020 compiler_lib_search_dirs \
16021 predep_objects \
16022 postdep_objects \
16023 predeps \
16024 postdeps \
16025 compiler_lib_search_path \
16026 LD_CXX \
16027 reload_flag_CXX \
16028 compiler_CXX \
16029 lt_prog_compiler_no_builtin_flag_CXX \
16030 lt_prog_compiler_wl_CXX \
16031 lt_prog_compiler_pic_CXX \
16032 lt_prog_compiler_static_CXX \
16033 lt_cv_prog_compiler_c_o_CXX \
16034 export_dynamic_flag_spec_CXX \
16035 whole_archive_flag_spec_CXX \
16036 compiler_needs_object_CXX \
16037 with_gnu_ld_CXX \
16038 allow_undefined_flag_CXX \
16039 no_undefined_flag_CXX \
16040 hardcode_libdir_flag_spec_CXX \
16041 hardcode_libdir_flag_spec_ld_CXX \
16042 hardcode_libdir_separator_CXX \
16043 fix_srcfile_path_CXX \
16044 exclude_expsyms_CXX \
16045 include_expsyms_CXX \
16046 file_list_spec_CXX \
16047 compiler_lib_search_dirs_CXX \
16048 predep_objects_CXX \
16049 postdep_objects_CXX \
16050 predeps_CXX \
16051 postdeps_CXX \
16052 compiler_lib_search_path_CXX; do
16053 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16054 *[\\\\\\\`\\"\\\$]*)
16055 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16058 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16060 esac
16061 done
16063 # Double-quote double-evaled strings.
16064 for var in reload_cmds \
16065 old_postinstall_cmds \
16066 old_postuninstall_cmds \
16067 old_archive_cmds \
16068 extract_expsyms_cmds \
16069 old_archive_from_new_cmds \
16070 old_archive_from_expsyms_cmds \
16071 archive_cmds \
16072 archive_expsym_cmds \
16073 module_cmds \
16074 module_expsym_cmds \
16075 export_symbols_cmds \
16076 prelink_cmds \
16077 postinstall_cmds \
16078 postuninstall_cmds \
16079 finish_cmds \
16080 sys_lib_search_path_spec \
16081 sys_lib_dlsearch_path_spec \
16082 reload_cmds_CXX \
16083 old_archive_cmds_CXX \
16084 old_archive_from_new_cmds_CXX \
16085 old_archive_from_expsyms_cmds_CXX \
16086 archive_cmds_CXX \
16087 archive_expsym_cmds_CXX \
16088 module_cmds_CXX \
16089 module_expsym_cmds_CXX \
16090 export_symbols_cmds_CXX \
16091 prelink_cmds_CXX; do
16092 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16093 *[\\\\\\\`\\"\\\$]*)
16094 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16097 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16099 esac
16100 done
16102 ac_aux_dir='$ac_aux_dir'
16103 xsi_shell='$xsi_shell'
16104 lt_shell_append='$lt_shell_append'
16106 # See if we are running on zsh, and set the options which allow our
16107 # commands through without removal of \ escapes INIT.
16108 if test -n "\${ZSH_VERSION+set}" ; then
16109 setopt NO_GLOB_SUBST
16113 PACKAGE='$PACKAGE'
16114 VERSION='$VERSION'
16115 TIMESTAMP='$TIMESTAMP'
16116 RM='$RM'
16117 ofile='$ofile'
16124 _ACEOF
16126 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16128 # Handling of arguments.
16129 for ac_config_target in $ac_config_targets
16131 case $ac_config_target in
16132 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
16133 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16134 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16135 "libmpx.spec") CONFIG_FILES="$CONFIG_FILES libmpx.spec" ;;
16136 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16137 "mpxrt/Makefile") CONFIG_FILES="$CONFIG_FILES mpxrt/Makefile" ;;
16138 "mpxwrap/Makefile") CONFIG_FILES="$CONFIG_FILES mpxwrap/Makefile" ;;
16140 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16141 esac
16142 done
16145 # If the user did not use the arguments to specify the items to instantiate,
16146 # then the envvar interface is used. Set only those that are not.
16147 # We use the long form for the default assignment because of an extremely
16148 # bizarre bug on SunOS 4.1.3.
16149 if $ac_need_defaults; then
16150 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16151 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16152 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16155 # Have a temporary directory for convenience. Make it in the build tree
16156 # simply because there is no reason against having it here, and in addition,
16157 # creating and moving files from /tmp can sometimes cause problems.
16158 # Hook for its removal unless debugging.
16159 # Note that there is a small window in which the directory will not be cleaned:
16160 # after its creation but before its name has been assigned to `$tmp'.
16161 $debug ||
16163 tmp=
16164 trap 'exit_status=$?
16165 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16167 trap 'as_fn_exit 1' 1 2 13 15
16169 # Create a (secure) tmp directory for tmp files.
16172 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16173 test -n "$tmp" && test -d "$tmp"
16174 } ||
16176 tmp=./conf$$-$RANDOM
16177 (umask 077 && mkdir "$tmp")
16178 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
16180 # Set up the scripts for CONFIG_FILES section.
16181 # No need to generate them if there are no CONFIG_FILES.
16182 # This happens for instance with `./config.status config.h'.
16183 if test -n "$CONFIG_FILES"; then
16186 ac_cr=`echo X | tr X '\015'`
16187 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16188 # But we know of no other shell where ac_cr would be empty at this
16189 # point, so we can use a bashism as a fallback.
16190 if test "x$ac_cr" = x; then
16191 eval ac_cr=\$\'\\r\'
16193 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16194 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16195 ac_cs_awk_cr='\r'
16196 else
16197 ac_cs_awk_cr=$ac_cr
16200 echo 'BEGIN {' >"$tmp/subs1.awk" &&
16201 _ACEOF
16205 echo "cat >conf$$subs.awk <<_ACEOF" &&
16206 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16207 echo "_ACEOF"
16208 } >conf$$subs.sh ||
16209 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16210 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
16211 ac_delim='%!_!# '
16212 for ac_last_try in false false false false false :; do
16213 . ./conf$$subs.sh ||
16214 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16216 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16217 if test $ac_delim_n = $ac_delim_num; then
16218 break
16219 elif $ac_last_try; then
16220 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
16221 else
16222 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16224 done
16225 rm -f conf$$subs.sh
16227 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16228 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16229 _ACEOF
16230 sed -n '
16232 s/^/S["/; s/!.*/"]=/
16235 s/^[^!]*!//
16236 :repl
16237 t repl
16238 s/'"$ac_delim"'$//
16239 t delim
16242 s/\(.\{148\}\).*/\1/
16243 t more1
16244 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16247 b repl
16248 :more1
16249 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16252 s/.\{148\}//
16253 t nl
16254 :delim
16256 s/\(.\{148\}\).*/\1/
16257 t more2
16258 s/["\\]/\\&/g; s/^/"/; s/$/"/
16261 :more2
16262 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16265 s/.\{148\}//
16266 t delim
16267 ' <conf$$subs.awk | sed '
16268 /^[^""]/{
16270 s/\n//
16272 ' >>$CONFIG_STATUS || ac_write_fail=1
16273 rm -f conf$$subs.awk
16274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16275 _ACAWK
16276 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16277 for (key in S) S_is_set[key] = 1
16278 FS = "\a"
16282 line = $ 0
16283 nfields = split(line, field, "@")
16284 substed = 0
16285 len = length(field[1])
16286 for (i = 2; i < nfields; i++) {
16287 key = field[i]
16288 keylen = length(key)
16289 if (S_is_set[key]) {
16290 value = S[key]
16291 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16292 len += length(value) + length(field[++i])
16293 substed = 1
16294 } else
16295 len += 1 + keylen
16298 print line
16301 _ACAWK
16302 _ACEOF
16303 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16304 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16305 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16306 else
16308 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16309 || as_fn_error "could not setup config files machinery" "$LINENO" 5
16310 _ACEOF
16312 # VPATH may cause trouble with some makes, so we remove $(srcdir),
16313 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16314 # trailing colons and then remove the whole line if VPATH becomes empty
16315 # (actually we leave an empty line to preserve line numbers).
16316 if test "x$srcdir" = x.; then
16317 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16318 s/:*\$(srcdir):*/:/
16319 s/:*\${srcdir}:*/:/
16320 s/:*@srcdir@:*/:/
16321 s/^\([^=]*=[ ]*\):*/\1/
16322 s/:*$//
16323 s/^[^=]*=[ ]*$//
16327 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16328 fi # test -n "$CONFIG_FILES"
16330 # Set up the scripts for CONFIG_HEADERS section.
16331 # No need to generate them if there are no CONFIG_HEADERS.
16332 # This happens for instance with `./config.status Makefile'.
16333 if test -n "$CONFIG_HEADERS"; then
16334 cat >"$tmp/defines.awk" <<\_ACAWK ||
16335 BEGIN {
16336 _ACEOF
16338 # Transform confdefs.h into an awk script `defines.awk', embedded as
16339 # here-document in config.status, that substitutes the proper values into
16340 # config.h.in to produce config.h.
16342 # Create a delimiter string that does not exist in confdefs.h, to ease
16343 # handling of long lines.
16344 ac_delim='%!_!# '
16345 for ac_last_try in false false :; do
16346 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16347 if test -z "$ac_t"; then
16348 break
16349 elif $ac_last_try; then
16350 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
16351 else
16352 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16354 done
16356 # For the awk script, D is an array of macro values keyed by name,
16357 # likewise P contains macro parameters if any. Preserve backslash
16358 # newline sequences.
16360 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16361 sed -n '
16362 s/.\{148\}/&'"$ac_delim"'/g
16363 t rset
16364 :rset
16365 s/^[ ]*#[ ]*define[ ][ ]*/ /
16366 t def
16368 :def
16369 s/\\$//
16370 t bsnl
16371 s/["\\]/\\&/g
16372 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16373 D["\1"]=" \3"/p
16374 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16376 :bsnl
16377 s/["\\]/\\&/g
16378 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16379 D["\1"]=" \3\\\\\\n"\\/p
16380 t cont
16381 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16382 t cont
16384 :cont
16386 s/.\{148\}/&'"$ac_delim"'/g
16387 t clear
16388 :clear
16389 s/\\$//
16390 t bsnlc
16391 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16393 :bsnlc
16394 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16395 b cont
16396 ' <confdefs.h | sed '
16397 s/'"$ac_delim"'/"\\\
16398 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16401 for (key in D) D_is_set[key] = 1
16402 FS = "\a"
16404 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16405 line = \$ 0
16406 split(line, arg, " ")
16407 if (arg[1] == "#") {
16408 defundef = arg[2]
16409 mac1 = arg[3]
16410 } else {
16411 defundef = substr(arg[1], 2)
16412 mac1 = arg[2]
16414 split(mac1, mac2, "(") #)
16415 macro = mac2[1]
16416 prefix = substr(line, 1, index(line, defundef) - 1)
16417 if (D_is_set[macro]) {
16418 # Preserve the white space surrounding the "#".
16419 print prefix "define", macro P[macro] D[macro]
16420 next
16421 } else {
16422 # Replace #undef with comments. This is necessary, for example,
16423 # in the case of _POSIX_SOURCE, which is predefined and required
16424 # on some systems where configure will not decide to define it.
16425 if (defundef == "undef") {
16426 print "/*", prefix defundef, macro, "*/"
16427 next
16431 { print }
16432 _ACAWK
16433 _ACEOF
16434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16435 as_fn_error "could not setup config headers machinery" "$LINENO" 5
16436 fi # test -n "$CONFIG_HEADERS"
16439 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16440 shift
16441 for ac_tag
16443 case $ac_tag in
16444 :[FHLC]) ac_mode=$ac_tag; continue;;
16445 esac
16446 case $ac_mode$ac_tag in
16447 :[FHL]*:*);;
16448 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
16449 :[FH]-) ac_tag=-:-;;
16450 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16451 esac
16452 ac_save_IFS=$IFS
16453 IFS=:
16454 set x $ac_tag
16455 IFS=$ac_save_IFS
16456 shift
16457 ac_file=$1
16458 shift
16460 case $ac_mode in
16461 :L) ac_source=$1;;
16462 :[FH])
16463 ac_file_inputs=
16464 for ac_f
16466 case $ac_f in
16467 -) ac_f="$tmp/stdin";;
16468 *) # Look for the file first in the build tree, then in the source tree
16469 # (if the path is not absolute). The absolute path cannot be DOS-style,
16470 # because $ac_f cannot contain `:'.
16471 test -f "$ac_f" ||
16472 case $ac_f in
16473 [\\/$]*) false;;
16474 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16475 esac ||
16476 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16477 esac
16478 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16479 as_fn_append ac_file_inputs " '$ac_f'"
16480 done
16482 # Let's still pretend it is `configure' which instantiates (i.e., don't
16483 # use $as_me), people would be surprised to read:
16484 # /* config.h. Generated by config.status. */
16485 configure_input='Generated from '`
16486 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16487 `' by configure.'
16488 if test x"$ac_file" != x-; then
16489 configure_input="$ac_file. $configure_input"
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16491 $as_echo "$as_me: creating $ac_file" >&6;}
16493 # Neutralize special characters interpreted by sed in replacement strings.
16494 case $configure_input in #(
16495 *\&* | *\|* | *\\* )
16496 ac_sed_conf_input=`$as_echo "$configure_input" |
16497 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16498 *) ac_sed_conf_input=$configure_input;;
16499 esac
16501 case $ac_tag in
16502 *:-:* | *:-) cat >"$tmp/stdin" \
16503 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
16504 esac
16506 esac
16508 ac_dir=`$as_dirname -- "$ac_file" ||
16509 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16510 X"$ac_file" : 'X\(//\)[^/]' \| \
16511 X"$ac_file" : 'X\(//\)$' \| \
16512 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16513 $as_echo X"$ac_file" |
16514 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16515 s//\1/
16518 /^X\(\/\/\)[^/].*/{
16519 s//\1/
16522 /^X\(\/\/\)$/{
16523 s//\1/
16526 /^X\(\/\).*/{
16527 s//\1/
16530 s/.*/./; q'`
16531 as_dir="$ac_dir"; as_fn_mkdir_p
16532 ac_builddir=.
16534 case "$ac_dir" in
16535 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16537 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16538 # A ".." for each directory in $ac_dir_suffix.
16539 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16540 case $ac_top_builddir_sub in
16541 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16542 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16543 esac ;;
16544 esac
16545 ac_abs_top_builddir=$ac_pwd
16546 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16547 # for backward compatibility:
16548 ac_top_builddir=$ac_top_build_prefix
16550 case $srcdir in
16551 .) # We are building in place.
16552 ac_srcdir=.
16553 ac_top_srcdir=$ac_top_builddir_sub
16554 ac_abs_top_srcdir=$ac_pwd ;;
16555 [\\/]* | ?:[\\/]* ) # Absolute name.
16556 ac_srcdir=$srcdir$ac_dir_suffix;
16557 ac_top_srcdir=$srcdir
16558 ac_abs_top_srcdir=$srcdir ;;
16559 *) # Relative name.
16560 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16561 ac_top_srcdir=$ac_top_build_prefix$srcdir
16562 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16563 esac
16564 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16567 case $ac_mode in
16570 # CONFIG_FILE
16573 case $INSTALL in
16574 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16575 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16576 esac
16577 ac_MKDIR_P=$MKDIR_P
16578 case $MKDIR_P in
16579 [\\/$]* | ?:[\\/]* ) ;;
16580 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16581 esac
16582 _ACEOF
16584 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16585 # If the template does not know about datarootdir, expand it.
16586 # FIXME: This hack should be removed a few years after 2.60.
16587 ac_datarootdir_hack=; ac_datarootdir_seen=
16588 ac_sed_dataroot='
16589 /datarootdir/ {
16593 /@datadir@/p
16594 /@docdir@/p
16595 /@infodir@/p
16596 /@localedir@/p
16597 /@mandir@/p'
16598 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16599 *datarootdir*) ac_datarootdir_seen=yes;;
16600 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16602 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16603 _ACEOF
16604 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16605 ac_datarootdir_hack='
16606 s&@datadir@&$datadir&g
16607 s&@docdir@&$docdir&g
16608 s&@infodir@&$infodir&g
16609 s&@localedir@&$localedir&g
16610 s&@mandir@&$mandir&g
16611 s&\\\${datarootdir}&$datarootdir&g' ;;
16612 esac
16613 _ACEOF
16615 # Neutralize VPATH when `$srcdir' = `.'.
16616 # Shell code in configure.ac might set extrasub.
16617 # FIXME: do we really want to maintain this feature?
16618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16619 ac_sed_extra="$ac_vpsub
16620 $extrasub
16621 _ACEOF
16622 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16624 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16625 s|@configure_input@|$ac_sed_conf_input|;t t
16626 s&@top_builddir@&$ac_top_builddir_sub&;t t
16627 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16628 s&@srcdir@&$ac_srcdir&;t t
16629 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16630 s&@top_srcdir@&$ac_top_srcdir&;t t
16631 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16632 s&@builddir@&$ac_builddir&;t t
16633 s&@abs_builddir@&$ac_abs_builddir&;t t
16634 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16635 s&@INSTALL@&$ac_INSTALL&;t t
16636 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16637 $ac_datarootdir_hack
16639 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16640 || as_fn_error "could not create $ac_file" "$LINENO" 5
16642 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16643 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16646 which seems to be undefined. Please make sure it is defined." >&5
16647 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16648 which seems to be undefined. Please make sure it is defined." >&2;}
16650 rm -f "$tmp/stdin"
16651 case $ac_file in
16652 -) cat "$tmp/out" && rm -f "$tmp/out";;
16653 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16654 esac \
16655 || as_fn_error "could not create $ac_file" "$LINENO" 5
16659 # CONFIG_HEADER
16661 if test x"$ac_file" != x-; then
16663 $as_echo "/* $configure_input */" \
16664 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16665 } >"$tmp/config.h" \
16666 || as_fn_error "could not create $ac_file" "$LINENO" 5
16667 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16669 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16670 else
16671 rm -f "$ac_file"
16672 mv "$tmp/config.h" "$ac_file" \
16673 || as_fn_error "could not create $ac_file" "$LINENO" 5
16675 else
16676 $as_echo "/* $configure_input */" \
16677 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16678 || as_fn_error "could not create -" "$LINENO" 5
16680 # Compute "$ac_file"'s index in $config_headers.
16681 _am_arg="$ac_file"
16682 _am_stamp_count=1
16683 for _am_header in $config_headers :; do
16684 case $_am_header in
16685 $_am_arg | $_am_arg:* )
16686 break ;;
16688 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
16689 esac
16690 done
16691 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16692 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16693 X"$_am_arg" : 'X\(//\)[^/]' \| \
16694 X"$_am_arg" : 'X\(//\)$' \| \
16695 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16696 $as_echo X"$_am_arg" |
16697 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16698 s//\1/
16701 /^X\(\/\/\)[^/].*/{
16702 s//\1/
16705 /^X\(\/\/\)$/{
16706 s//\1/
16709 /^X\(\/\).*/{
16710 s//\1/
16713 s/.*/./; q'`/stamp-h$_am_stamp_count
16716 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16717 $as_echo "$as_me: executing $ac_file commands" >&6;}
16719 esac
16722 case $ac_file$ac_mode in
16723 "default-1":C)
16724 # Only add multilib support code if we just rebuilt the top-level
16725 # Makefile.
16726 case " $CONFIG_FILES " in
16727 *" Makefile "*)
16728 ac_file=Makefile . ${multi_basedir}/config-ml.in
16730 esac ;;
16731 "libtool":C)
16733 # See if we are running on zsh, and set the options which allow our
16734 # commands through without removal of \ escapes.
16735 if test -n "${ZSH_VERSION+set}" ; then
16736 setopt NO_GLOB_SUBST
16739 cfgfile="${ofile}T"
16740 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16741 $RM "$cfgfile"
16743 cat <<_LT_EOF >> "$cfgfile"
16744 #! $SHELL
16746 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16747 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16748 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16749 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16751 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16752 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16753 # Written by Gordon Matzigkeit, 1996
16755 # This file is part of GNU Libtool.
16757 # GNU Libtool is free software; you can redistribute it and/or
16758 # modify it under the terms of the GNU General Public License as
16759 # published by the Free Software Foundation; either version 2 of
16760 # the License, or (at your option) any later version.
16762 # As a special exception to the GNU General Public License,
16763 # if you distribute this file as part of a program or library that
16764 # is built using GNU Libtool, you may include this file under the
16765 # same distribution terms that you use for the rest of that program.
16767 # GNU Libtool is distributed in the hope that it will be useful,
16768 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16769 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16770 # GNU General Public License for more details.
16772 # You should have received a copy of the GNU General Public License
16773 # along with GNU Libtool; see the file COPYING. If not, a copy
16774 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16775 # obtained by writing to the Free Software Foundation, Inc.,
16776 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16779 # The names of the tagged configurations supported by this script.
16780 available_tags="CXX "
16782 # ### BEGIN LIBTOOL CONFIG
16784 # Which release of libtool.m4 was used?
16785 macro_version=$macro_version
16786 macro_revision=$macro_revision
16788 # Whether or not to build shared libraries.
16789 build_libtool_libs=$enable_shared
16791 # Whether or not to build static libraries.
16792 build_old_libs=$enable_static
16794 # What type of objects to build.
16795 pic_mode=$pic_mode
16797 # Whether or not to optimize for fast installation.
16798 fast_install=$enable_fast_install
16800 # Shell to use when invoking shell scripts.
16801 SHELL=$lt_SHELL
16803 # An echo program that protects backslashes.
16804 ECHO=$lt_ECHO
16806 # The host system.
16807 host_alias=$host_alias
16808 host=$host
16809 host_os=$host_os
16811 # The build system.
16812 build_alias=$build_alias
16813 build=$build
16814 build_os=$build_os
16816 # A sed program that does not truncate output.
16817 SED=$lt_SED
16819 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16820 Xsed="\$SED -e 1s/^X//"
16822 # A grep program that handles long lines.
16823 GREP=$lt_GREP
16825 # An ERE matcher.
16826 EGREP=$lt_EGREP
16828 # A literal string matcher.
16829 FGREP=$lt_FGREP
16831 # A BSD- or MS-compatible name lister.
16832 NM=$lt_NM
16834 # Whether we need soft or hard links.
16835 LN_S=$lt_LN_S
16837 # What is the maximum length of a command?
16838 max_cmd_len=$max_cmd_len
16840 # Object file suffix (normally "o").
16841 objext=$ac_objext
16843 # Executable file suffix (normally "").
16844 exeext=$exeext
16846 # whether the shell understands "unset".
16847 lt_unset=$lt_unset
16849 # turn spaces into newlines.
16850 SP2NL=$lt_lt_SP2NL
16852 # turn newlines into spaces.
16853 NL2SP=$lt_lt_NL2SP
16855 # An object symbol dumper.
16856 OBJDUMP=$lt_OBJDUMP
16858 # Method to check whether dependent libraries are shared objects.
16859 deplibs_check_method=$lt_deplibs_check_method
16861 # Command to use when deplibs_check_method == "file_magic".
16862 file_magic_cmd=$lt_file_magic_cmd
16864 # The archiver.
16865 AR=$lt_AR
16866 AR_FLAGS=$lt_AR_FLAGS
16868 # A symbol stripping program.
16869 STRIP=$lt_STRIP
16871 # Commands used to install an old-style archive.
16872 RANLIB=$lt_RANLIB
16873 old_postinstall_cmds=$lt_old_postinstall_cmds
16874 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16876 # Whether to use a lock for old archive extraction.
16877 lock_old_archive_extraction=$lock_old_archive_extraction
16879 # A C compiler.
16880 LTCC=$lt_CC
16882 # LTCC compiler flags.
16883 LTCFLAGS=$lt_CFLAGS
16885 # Take the output of nm and produce a listing of raw symbols and C names.
16886 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16888 # Transform the output of nm in a proper C declaration.
16889 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16891 # Transform the output of nm in a C name address pair.
16892 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16894 # Transform the output of nm in a C name address pair when lib prefix is needed.
16895 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16897 # The name of the directory that contains temporary libtool files.
16898 objdir=$objdir
16900 # Used to examine libraries when file_magic_cmd begins with "file".
16901 MAGIC_CMD=$MAGIC_CMD
16903 # Must we lock files when doing compilation?
16904 need_locks=$lt_need_locks
16906 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16907 DSYMUTIL=$lt_DSYMUTIL
16909 # Tool to change global to local symbols on Mac OS X.
16910 NMEDIT=$lt_NMEDIT
16912 # Tool to manipulate fat objects and archives on Mac OS X.
16913 LIPO=$lt_LIPO
16915 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16916 OTOOL=$lt_OTOOL
16918 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16919 OTOOL64=$lt_OTOOL64
16921 # Old archive suffix (normally "a").
16922 libext=$libext
16924 # Shared library suffix (normally ".so").
16925 shrext_cmds=$lt_shrext_cmds
16927 # The commands to extract the exported symbol list from a shared archive.
16928 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16930 # Variables whose values should be saved in libtool wrapper scripts and
16931 # restored at link time.
16932 variables_saved_for_relink=$lt_variables_saved_for_relink
16934 # Do we need the "lib" prefix for modules?
16935 need_lib_prefix=$need_lib_prefix
16937 # Do we need a version for libraries?
16938 need_version=$need_version
16940 # Library versioning type.
16941 version_type=$version_type
16943 # Shared library runtime path variable.
16944 runpath_var=$runpath_var
16946 # Shared library path variable.
16947 shlibpath_var=$shlibpath_var
16949 # Is shlibpath searched before the hard-coded library search path?
16950 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16952 # Format of library name prefix.
16953 libname_spec=$lt_libname_spec
16955 # List of archive names. First name is the real one, the rest are links.
16956 # The last name is the one that the linker finds with -lNAME
16957 library_names_spec=$lt_library_names_spec
16959 # The coded name of the library, if different from the real name.
16960 soname_spec=$lt_soname_spec
16962 # Permission mode override for installation of shared libraries.
16963 install_override_mode=$lt_install_override_mode
16965 # Command to use after installation of a shared archive.
16966 postinstall_cmds=$lt_postinstall_cmds
16968 # Command to use after uninstallation of a shared archive.
16969 postuninstall_cmds=$lt_postuninstall_cmds
16971 # Commands used to finish a libtool library installation in a directory.
16972 finish_cmds=$lt_finish_cmds
16974 # As "finish_cmds", except a single script fragment to be evaled but
16975 # not shown.
16976 finish_eval=$lt_finish_eval
16978 # Whether we should hardcode library paths into libraries.
16979 hardcode_into_libs=$hardcode_into_libs
16981 # Compile-time system search path for libraries.
16982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16984 # Run-time system search path for libraries.
16985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16987 # Whether dlopen is supported.
16988 dlopen_support=$enable_dlopen
16990 # Whether dlopen of programs is supported.
16991 dlopen_self=$enable_dlopen_self
16993 # Whether dlopen of statically linked programs is supported.
16994 dlopen_self_static=$enable_dlopen_self_static
16996 # Commands to strip libraries.
16997 old_striplib=$lt_old_striplib
16998 striplib=$lt_striplib
17001 # The linker used to build libraries.
17002 LD=$lt_LD
17004 # How to create reloadable object files.
17005 reload_flag=$lt_reload_flag
17006 reload_cmds=$lt_reload_cmds
17008 # Commands used to build an old-style archive.
17009 old_archive_cmds=$lt_old_archive_cmds
17011 # A language specific compiler.
17012 CC=$lt_compiler
17014 # Is the compiler the GNU compiler?
17015 with_gcc=$GCC
17017 # Compiler flag to turn off builtin functions.
17018 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17020 # How to pass a linker flag through the compiler.
17021 wl=$lt_lt_prog_compiler_wl
17023 # Additional compiler flags for building library objects.
17024 pic_flag=$lt_lt_prog_compiler_pic
17026 # Compiler flag to prevent dynamic linking.
17027 link_static_flag=$lt_lt_prog_compiler_static
17029 # Does compiler simultaneously support -c and -o options?
17030 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17032 # Whether or not to add -lc for building shared libraries.
17033 build_libtool_need_lc=$archive_cmds_need_lc
17035 # Whether or not to disallow shared libs when runtime libs are static.
17036 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17038 # Compiler flag to allow reflexive dlopens.
17039 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17041 # Compiler flag to generate shared objects directly from archives.
17042 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17044 # Whether the compiler copes with passing no objects directly.
17045 compiler_needs_object=$lt_compiler_needs_object
17047 # Create an old-style archive from a shared archive.
17048 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17050 # Create a temporary old-style archive to link instead of a shared archive.
17051 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17053 # Commands used to build a shared archive.
17054 archive_cmds=$lt_archive_cmds
17055 archive_expsym_cmds=$lt_archive_expsym_cmds
17057 # Commands used to build a loadable module if different from building
17058 # a shared archive.
17059 module_cmds=$lt_module_cmds
17060 module_expsym_cmds=$lt_module_expsym_cmds
17062 # Whether we are building with GNU ld or not.
17063 with_gnu_ld=$lt_with_gnu_ld
17065 # Flag that allows shared libraries with undefined symbols to be built.
17066 allow_undefined_flag=$lt_allow_undefined_flag
17068 # Flag that enforces no undefined symbols.
17069 no_undefined_flag=$lt_no_undefined_flag
17071 # Flag to hardcode \$libdir into a binary during linking.
17072 # This must work even if \$libdir does not exist
17073 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
17075 # If ld is used when linking, flag to hardcode \$libdir into a binary
17076 # during linking. This must work even if \$libdir does not exist.
17077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
17079 # Whether we need a single "-rpath" flag with a separated argument.
17080 hardcode_libdir_separator=$lt_hardcode_libdir_separator
17082 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17083 # DIR into the resulting binary.
17084 hardcode_direct=$hardcode_direct
17086 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17087 # DIR into the resulting binary and the resulting library dependency is
17088 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17089 # library is relocated.
17090 hardcode_direct_absolute=$hardcode_direct_absolute
17092 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17093 # into the resulting binary.
17094 hardcode_minus_L=$hardcode_minus_L
17096 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17097 # into the resulting binary.
17098 hardcode_shlibpath_var=$hardcode_shlibpath_var
17100 # Set to "yes" if building a shared library automatically hardcodes DIR
17101 # into the library and all subsequent libraries and executables linked
17102 # against it.
17103 hardcode_automatic=$hardcode_automatic
17105 # Set to yes if linker adds runtime paths of dependent libraries
17106 # to runtime path list.
17107 inherit_rpath=$inherit_rpath
17109 # Whether libtool must link a program against all its dependency libraries.
17110 link_all_deplibs=$link_all_deplibs
17112 # Fix the shell variable \$srcfile for the compiler.
17113 fix_srcfile_path=$lt_fix_srcfile_path
17115 # Set to "yes" if exported symbols are required.
17116 always_export_symbols=$always_export_symbols
17118 # The commands to list exported symbols.
17119 export_symbols_cmds=$lt_export_symbols_cmds
17121 # Symbols that should not be listed in the preloaded symbols.
17122 exclude_expsyms=$lt_exclude_expsyms
17124 # Symbols that must always be exported.
17125 include_expsyms=$lt_include_expsyms
17127 # Commands necessary for linking programs (against libraries) with templates.
17128 prelink_cmds=$lt_prelink_cmds
17130 # Specify filename containing input files.
17131 file_list_spec=$lt_file_list_spec
17133 # How to hardcode a shared library path into an executable.
17134 hardcode_action=$hardcode_action
17136 # The directories searched by this compiler when creating a shared library.
17137 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
17139 # Dependencies to place before and after the objects being linked to
17140 # create a shared library.
17141 predep_objects=$lt_predep_objects
17142 postdep_objects=$lt_postdep_objects
17143 predeps=$lt_predeps
17144 postdeps=$lt_postdeps
17146 # The library search path used internally by the compiler when linking
17147 # a shared library.
17148 compiler_lib_search_path=$lt_compiler_lib_search_path
17150 # ### END LIBTOOL CONFIG
17152 _LT_EOF
17154 case $host_os in
17155 aix3*)
17156 cat <<\_LT_EOF >> "$cfgfile"
17157 # AIX sometimes has problems with the GCC collect2 program. For some
17158 # reason, if we set the COLLECT_NAMES environment variable, the problems
17159 # vanish in a puff of smoke.
17160 if test "X${COLLECT_NAMES+set}" != Xset; then
17161 COLLECT_NAMES=
17162 export COLLECT_NAMES
17164 _LT_EOF
17166 esac
17169 ltmain="$ac_aux_dir/ltmain.sh"
17172 # We use sed instead of cat because bash on DJGPP gets confused if
17173 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17174 # text mode, it properly converts lines to CR/LF. This bash problem
17175 # is reportedly fixed, but why not run on old versions too?
17176 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
17177 || (rm -f "$cfgfile"; exit 1)
17179 case $xsi_shell in
17180 yes)
17181 cat << \_LT_EOF >> "$cfgfile"
17183 # func_dirname file append nondir_replacement
17184 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17185 # otherwise set result to NONDIR_REPLACEMENT.
17186 func_dirname ()
17188 case ${1} in
17189 */*) func_dirname_result="${1%/*}${2}" ;;
17190 * ) func_dirname_result="${3}" ;;
17191 esac
17194 # func_basename file
17195 func_basename ()
17197 func_basename_result="${1##*/}"
17200 # func_dirname_and_basename file append nondir_replacement
17201 # perform func_basename and func_dirname in a single function
17202 # call:
17203 # dirname: Compute the dirname of FILE. If nonempty,
17204 # add APPEND to the result, otherwise set result
17205 # to NONDIR_REPLACEMENT.
17206 # value returned in "$func_dirname_result"
17207 # basename: Compute filename of FILE.
17208 # value retuned in "$func_basename_result"
17209 # Implementation must be kept synchronized with func_dirname
17210 # and func_basename. For efficiency, we do not delegate to
17211 # those functions but instead duplicate the functionality here.
17212 func_dirname_and_basename ()
17214 case ${1} in
17215 */*) func_dirname_result="${1%/*}${2}" ;;
17216 * ) func_dirname_result="${3}" ;;
17217 esac
17218 func_basename_result="${1##*/}"
17221 # func_stripname prefix suffix name
17222 # strip PREFIX and SUFFIX off of NAME.
17223 # PREFIX and SUFFIX must not contain globbing or regex special
17224 # characters, hashes, percent signs, but SUFFIX may contain a leading
17225 # dot (in which case that matches only a dot).
17226 func_stripname ()
17228 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
17229 # positional parameters, so assign one to ordinary parameter first.
17230 func_stripname_result=${3}
17231 func_stripname_result=${func_stripname_result#"${1}"}
17232 func_stripname_result=${func_stripname_result%"${2}"}
17235 # func_opt_split
17236 func_opt_split ()
17238 func_opt_split_opt=${1%%=*}
17239 func_opt_split_arg=${1#*=}
17242 # func_lo2o object
17243 func_lo2o ()
17245 case ${1} in
17246 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
17247 *) func_lo2o_result=${1} ;;
17248 esac
17251 # func_xform libobj-or-source
17252 func_xform ()
17254 func_xform_result=${1%.*}.lo
17257 # func_arith arithmetic-term...
17258 func_arith ()
17260 func_arith_result=$(( $* ))
17263 # func_len string
17264 # STRING may not start with a hyphen.
17265 func_len ()
17267 func_len_result=${#1}
17270 _LT_EOF
17272 *) # Bourne compatible functions.
17273 cat << \_LT_EOF >> "$cfgfile"
17275 # func_dirname file append nondir_replacement
17276 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17277 # otherwise set result to NONDIR_REPLACEMENT.
17278 func_dirname ()
17280 # Extract subdirectory from the argument.
17281 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17282 if test "X$func_dirname_result" = "X${1}"; then
17283 func_dirname_result="${3}"
17284 else
17285 func_dirname_result="$func_dirname_result${2}"
17289 # func_basename file
17290 func_basename ()
17292 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17296 # func_stripname prefix suffix name
17297 # strip PREFIX and SUFFIX off of NAME.
17298 # PREFIX and SUFFIX must not contain globbing or regex special
17299 # characters, hashes, percent signs, but SUFFIX may contain a leading
17300 # dot (in which case that matches only a dot).
17301 # func_strip_suffix prefix name
17302 func_stripname ()
17304 case ${2} in
17305 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17306 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17307 esac
17310 # sed scripts:
17311 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17312 my_sed_long_arg='1s/^-[^=]*=//'
17314 # func_opt_split
17315 func_opt_split ()
17317 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17318 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17321 # func_lo2o object
17322 func_lo2o ()
17324 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17327 # func_xform libobj-or-source
17328 func_xform ()
17330 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17333 # func_arith arithmetic-term...
17334 func_arith ()
17336 func_arith_result=`expr "$@"`
17339 # func_len string
17340 # STRING may not start with a hyphen.
17341 func_len ()
17343 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17346 _LT_EOF
17347 esac
17349 case $lt_shell_append in
17350 yes)
17351 cat << \_LT_EOF >> "$cfgfile"
17353 # func_append var value
17354 # Append VALUE to the end of shell variable VAR.
17355 func_append ()
17357 eval "$1+=\$2"
17359 _LT_EOF
17362 cat << \_LT_EOF >> "$cfgfile"
17364 # func_append var value
17365 # Append VALUE to the end of shell variable VAR.
17366 func_append ()
17368 eval "$1=\$$1\$2"
17371 _LT_EOF
17373 esac
17376 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17377 || (rm -f "$cfgfile"; exit 1)
17379 mv -f "$cfgfile" "$ofile" ||
17380 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17381 chmod +x "$ofile"
17384 cat <<_LT_EOF >> "$ofile"
17386 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17388 # The linker used to build libraries.
17389 LD=$lt_LD_CXX
17391 # How to create reloadable object files.
17392 reload_flag=$lt_reload_flag_CXX
17393 reload_cmds=$lt_reload_cmds_CXX
17395 # Commands used to build an old-style archive.
17396 old_archive_cmds=$lt_old_archive_cmds_CXX
17398 # A language specific compiler.
17399 CC=$lt_compiler_CXX
17401 # Is the compiler the GNU compiler?
17402 with_gcc=$GCC_CXX
17404 # Compiler flag to turn off builtin functions.
17405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17407 # How to pass a linker flag through the compiler.
17408 wl=$lt_lt_prog_compiler_wl_CXX
17410 # Additional compiler flags for building library objects.
17411 pic_flag=$lt_lt_prog_compiler_pic_CXX
17413 # Compiler flag to prevent dynamic linking.
17414 link_static_flag=$lt_lt_prog_compiler_static_CXX
17416 # Does compiler simultaneously support -c and -o options?
17417 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17419 # Whether or not to add -lc for building shared libraries.
17420 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17422 # Whether or not to disallow shared libs when runtime libs are static.
17423 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17425 # Compiler flag to allow reflexive dlopens.
17426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17428 # Compiler flag to generate shared objects directly from archives.
17429 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17431 # Whether the compiler copes with passing no objects directly.
17432 compiler_needs_object=$lt_compiler_needs_object_CXX
17434 # Create an old-style archive from a shared archive.
17435 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17437 # Create a temporary old-style archive to link instead of a shared archive.
17438 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17440 # Commands used to build a shared archive.
17441 archive_cmds=$lt_archive_cmds_CXX
17442 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17444 # Commands used to build a loadable module if different from building
17445 # a shared archive.
17446 module_cmds=$lt_module_cmds_CXX
17447 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17449 # Whether we are building with GNU ld or not.
17450 with_gnu_ld=$lt_with_gnu_ld_CXX
17452 # Flag that allows shared libraries with undefined symbols to be built.
17453 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17455 # Flag that enforces no undefined symbols.
17456 no_undefined_flag=$lt_no_undefined_flag_CXX
17458 # Flag to hardcode \$libdir into a binary during linking.
17459 # This must work even if \$libdir does not exist
17460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17462 # If ld is used when linking, flag to hardcode \$libdir into a binary
17463 # during linking. This must work even if \$libdir does not exist.
17464 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17466 # Whether we need a single "-rpath" flag with a separated argument.
17467 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17469 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17470 # DIR into the resulting binary.
17471 hardcode_direct=$hardcode_direct_CXX
17473 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17474 # DIR into the resulting binary and the resulting library dependency is
17475 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17476 # library is relocated.
17477 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17479 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17480 # into the resulting binary.
17481 hardcode_minus_L=$hardcode_minus_L_CXX
17483 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17484 # into the resulting binary.
17485 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17487 # Set to "yes" if building a shared library automatically hardcodes DIR
17488 # into the library and all subsequent libraries and executables linked
17489 # against it.
17490 hardcode_automatic=$hardcode_automatic_CXX
17492 # Set to yes if linker adds runtime paths of dependent libraries
17493 # to runtime path list.
17494 inherit_rpath=$inherit_rpath_CXX
17496 # Whether libtool must link a program against all its dependency libraries.
17497 link_all_deplibs=$link_all_deplibs_CXX
17499 # Fix the shell variable \$srcfile for the compiler.
17500 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17502 # Set to "yes" if exported symbols are required.
17503 always_export_symbols=$always_export_symbols_CXX
17505 # The commands to list exported symbols.
17506 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17508 # Symbols that should not be listed in the preloaded symbols.
17509 exclude_expsyms=$lt_exclude_expsyms_CXX
17511 # Symbols that must always be exported.
17512 include_expsyms=$lt_include_expsyms_CXX
17514 # Commands necessary for linking programs (against libraries) with templates.
17515 prelink_cmds=$lt_prelink_cmds_CXX
17517 # Specify filename containing input files.
17518 file_list_spec=$lt_file_list_spec_CXX
17520 # How to hardcode a shared library path into an executable.
17521 hardcode_action=$hardcode_action_CXX
17523 # The directories searched by this compiler when creating a shared library.
17524 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17526 # Dependencies to place before and after the objects being linked to
17527 # create a shared library.
17528 predep_objects=$lt_predep_objects_CXX
17529 postdep_objects=$lt_postdep_objects_CXX
17530 predeps=$lt_predeps_CXX
17531 postdeps=$lt_postdeps_CXX
17533 # The library search path used internally by the compiler when linking
17534 # a shared library.
17535 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17537 # ### END LIBTOOL TAG CONFIG: CXX
17538 _LT_EOF
17541 "mpxrt/Makefile":F) cat > vpsed$$ << \_EOF
17542 s!`test -f '$<' || echo '$(srcdir)/'`!!
17543 _EOF
17544 sed -f vpsed$$ $ac_file > tmp$$
17545 mv tmp$$ $ac_file
17546 rm vpsed$$
17547 echo 'MULTISUBDIR =' >> $ac_file
17548 ml_norecursion=yes
17549 . ${multi_basedir}/config-ml.in
17550 { ml_norecursion=; unset ml_norecursion;}
17552 "mpxwrap/Makefile":F) cat > vpsed$$ << \_EOF
17553 s!`test -f '$<' || echo '$(srcdir)/'`!!
17554 _EOF
17555 sed -f vpsed$$ $ac_file > tmp$$
17556 mv tmp$$ $ac_file
17557 rm vpsed$$
17558 echo 'MULTISUBDIR =' >> $ac_file
17559 ml_norecursion=yes
17560 . ${multi_basedir}/config-ml.in
17561 { ml_norecursion=; unset ml_norecursion;}
17564 esac
17565 done # for ac_tag
17568 as_fn_exit 0
17569 _ACEOF
17570 ac_clean_files=$ac_clean_files_save
17572 test $ac_write_fail = 0 ||
17573 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
17576 # configure is writing to config.log, and then calls config.status.
17577 # config.status does its own redirection, appending to config.log.
17578 # Unfortunately, on DOS this fails, as config.log is still kept open
17579 # by configure, so config.status won't be able to write to it; its
17580 # output is simply discarded. So we exec the FD to /dev/null,
17581 # effectively closing config.log, so it can be properly (re)opened and
17582 # appended to by config.status. When coming back to configure, we
17583 # need to make the FD available again.
17584 if test "$no_create" != yes; then
17585 ac_cs_success=:
17586 ac_config_status_args=
17587 test "$silent" = yes &&
17588 ac_config_status_args="$ac_config_status_args --quiet"
17589 exec 5>/dev/null
17590 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17591 exec 5>>config.log
17592 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17593 # would make configure fail if this is the last instruction.
17594 $ac_cs_success || as_fn_exit $?
17596 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17598 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}