PR c++/64359
[official-gcc.git] / liboffloadmic / configure
blob46f2f7be1ffd03d6b3c9dd43b48c4138641be402
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for MIC Offload Runtime Library 1.0.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='MIC Offload Runtime Library'
558 PACKAGE_TARNAME='liboffloadmic'
559 PACKAGE_VERSION='1.0'
560 PACKAGE_STRING='MIC Offload Runtime Library 1.0'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL=''
564 enable_option_checking=no
565 # Factoring default headers for most tests.
566 ac_includes_default="\
567 #include <stdio.h>
568 #ifdef HAVE_SYS_TYPES_H
569 # include <sys/types.h>
570 #endif
571 #ifdef HAVE_SYS_STAT_H
572 # include <sys/stat.h>
573 #endif
574 #ifdef STDC_HEADERS
575 # include <stdlib.h>
576 # include <stddef.h>
577 #else
578 # ifdef HAVE_STDLIB_H
579 # include <stdlib.h>
580 # endif
581 #endif
582 #ifdef HAVE_STRING_H
583 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 # include <memory.h>
585 # endif
586 # include <string.h>
587 #endif
588 #ifdef HAVE_STRINGS_H
589 # include <strings.h>
590 #endif
591 #ifdef HAVE_INTTYPES_H
592 # include <inttypes.h>
593 #endif
594 #ifdef HAVE_STDINT_H
595 # include <stdint.h>
596 #endif
597 #ifdef HAVE_UNISTD_H
598 # include <unistd.h>
599 #endif"
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 link_offloadmic_target
606 link_offloadmic_host
607 lt_cv_dlopen_libs
608 toolexeclibdir
609 toolexecdir
610 CXXCPP
611 OTOOL64
612 OTOOL
613 LIPO
614 NMEDIT
615 DSYMUTIL
616 RANLIB
618 OBJDUMP
619 LN_S
621 ac_ct_DUMPBIN
622 DUMPBIN
624 FGREP
626 LIBTOOL
627 LIBOFFLOADMIC_HOST_FALSE
628 LIBOFFLOADMIC_HOST_TRUE
629 EGREP
630 GREP
632 ALLOCA
633 subdirs
634 multi_basedir
635 am__fastdepCXX_FALSE
636 am__fastdepCXX_TRUE
637 CXXDEPMODE
638 ac_ct_CXX
639 CXXFLAGS
641 am__fastdepCC_FALSE
642 am__fastdepCC_TRUE
643 CCDEPMODE
644 AMDEPBACKSLASH
645 AMDEP_FALSE
646 AMDEP_TRUE
647 am__quote
648 am__include
649 DEPDIR
650 OBJEXT
651 EXEEXT
652 ac_ct_CC
653 CPPFLAGS
654 LDFLAGS
655 CFLAGS
657 MAINT
658 MAINTAINER_MODE_FALSE
659 MAINTAINER_MODE_TRUE
660 am__untar
661 am__tar
662 AMTAR
663 am__leading_dot
664 SET_MAKE
666 mkdir_p
667 MKDIR_P
668 INSTALL_STRIP_PROGRAM
669 STRIP
670 install_sh
671 MAKEINFO
672 AUTOHEADER
673 AUTOMAKE
674 AUTOCONF
675 ACLOCAL
676 VERSION
677 PACKAGE
678 CYGPATH_W
679 am__isrc
680 INSTALL_DATA
681 INSTALL_SCRIPT
682 INSTALL_PROGRAM
683 target_os
684 target_vendor
685 target_cpu
686 target
687 host_os
688 host_vendor
689 host_cpu
690 host
691 build_os
692 build_vendor
693 build_cpu
694 build
695 target_alias
696 host_alias
697 build_alias
698 LIBS
699 ECHO_T
700 ECHO_N
701 ECHO_C
702 DEFS
703 mandir
704 localedir
705 libdir
706 psdir
707 pdfdir
708 dvidir
709 htmldir
710 infodir
711 docdir
712 oldincludedir
713 includedir
714 localstatedir
715 sharedstatedir
716 sysconfdir
717 datadir
718 datarootdir
719 libexecdir
720 sbindir
721 bindir
722 program_transform_name
723 prefix
724 exec_prefix
725 PACKAGE_URL
726 PACKAGE_BUGREPORT
727 PACKAGE_STRING
728 PACKAGE_VERSION
729 PACKAGE_TARNAME
730 PACKAGE_NAME
731 PATH_SEPARATOR
732 SHELL'
733 ac_subst_files=''
734 ac_user_opts='
735 enable_option_checking
736 enable_maintainer_mode
737 enable_dependency_tracking
738 enable_multilib
739 enable_version_specific_runtime_libs
740 enable_shared
741 enable_static
742 with_pic
743 enable_fast_install
744 with_gnu_ld
745 enable_libtool_lock
747 ac_precious_vars='build_alias
748 host_alias
749 target_alias
751 CFLAGS
752 LDFLAGS
753 LIBS
754 CPPFLAGS
756 CXXFLAGS
759 CXXCPP'
760 ac_subdirs_all='plugin'
762 # Initialize some variables set by options.
763 ac_init_help=
764 ac_init_version=false
765 ac_unrecognized_opts=
766 ac_unrecognized_sep=
767 # The variables have the same names as the options, with
768 # dashes changed to underlines.
769 cache_file=/dev/null
770 exec_prefix=NONE
771 no_create=
772 no_recursion=
773 prefix=NONE
774 program_prefix=NONE
775 program_suffix=NONE
776 program_transform_name=s,x,x,
777 silent=
778 site=
779 srcdir=
780 verbose=
781 x_includes=NONE
782 x_libraries=NONE
784 # Installation directory options.
785 # These are left unexpanded so users can "make install exec_prefix=/foo"
786 # and all the variables that are supposed to be based on exec_prefix
787 # by default will actually change.
788 # Use braces instead of parens because sh, perl, etc. also accept them.
789 # (The list follows the same order as the GNU Coding Standards.)
790 bindir='${exec_prefix}/bin'
791 sbindir='${exec_prefix}/sbin'
792 libexecdir='${exec_prefix}/libexec'
793 datarootdir='${prefix}/share'
794 datadir='${datarootdir}'
795 sysconfdir='${prefix}/etc'
796 sharedstatedir='${prefix}/com'
797 localstatedir='${prefix}/var'
798 includedir='${prefix}/include'
799 oldincludedir='/usr/include'
800 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
801 infodir='${datarootdir}/info'
802 htmldir='${docdir}'
803 dvidir='${docdir}'
804 pdfdir='${docdir}'
805 psdir='${docdir}'
806 libdir='${exec_prefix}/lib'
807 localedir='${datarootdir}/locale'
808 mandir='${datarootdir}/man'
810 ac_prev=
811 ac_dashdash=
812 for ac_option
814 # If the previous option needs an argument, assign it.
815 if test -n "$ac_prev"; then
816 eval $ac_prev=\$ac_option
817 ac_prev=
818 continue
821 case $ac_option in
822 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
823 *) ac_optarg=yes ;;
824 esac
826 # Accept the important Cygnus configure options, so we can diagnose typos.
828 case $ac_dashdash$ac_option in
830 ac_dashdash=yes ;;
832 -bindir | --bindir | --bindi | --bind | --bin | --bi)
833 ac_prev=bindir ;;
834 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
835 bindir=$ac_optarg ;;
837 -build | --build | --buil | --bui | --bu)
838 ac_prev=build_alias ;;
839 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
840 build_alias=$ac_optarg ;;
842 -cache-file | --cache-file | --cache-fil | --cache-fi \
843 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
844 ac_prev=cache_file ;;
845 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
846 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
847 cache_file=$ac_optarg ;;
849 --config-cache | -C)
850 cache_file=config.cache ;;
852 -datadir | --datadir | --datadi | --datad)
853 ac_prev=datadir ;;
854 -datadir=* | --datadir=* | --datadi=* | --datad=*)
855 datadir=$ac_optarg ;;
857 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
858 | --dataroo | --dataro | --datar)
859 ac_prev=datarootdir ;;
860 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
861 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
862 datarootdir=$ac_optarg ;;
864 -disable-* | --disable-*)
865 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
868 as_fn_error "invalid feature name: $ac_useropt"
869 ac_useropt_orig=$ac_useropt
870 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
871 case $ac_user_opts in
873 "enable_$ac_useropt"
874 "*) ;;
875 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
876 ac_unrecognized_sep=', ';;
877 esac
878 eval enable_$ac_useropt=no ;;
880 -docdir | --docdir | --docdi | --doc | --do)
881 ac_prev=docdir ;;
882 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
883 docdir=$ac_optarg ;;
885 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
886 ac_prev=dvidir ;;
887 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
888 dvidir=$ac_optarg ;;
890 -enable-* | --enable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=\$ac_optarg ;;
906 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
907 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
908 | --exec | --exe | --ex)
909 ac_prev=exec_prefix ;;
910 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
911 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
912 | --exec=* | --exe=* | --ex=*)
913 exec_prefix=$ac_optarg ;;
915 -gas | --gas | --ga | --g)
916 # Obsolete; use --with-gas.
917 with_gas=yes ;;
919 -help | --help | --hel | --he | -h)
920 ac_init_help=long ;;
921 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
922 ac_init_help=recursive ;;
923 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
924 ac_init_help=short ;;
926 -host | --host | --hos | --ho)
927 ac_prev=host_alias ;;
928 -host=* | --host=* | --hos=* | --ho=*)
929 host_alias=$ac_optarg ;;
931 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
932 ac_prev=htmldir ;;
933 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
934 | --ht=*)
935 htmldir=$ac_optarg ;;
937 -includedir | --includedir | --includedi | --included | --include \
938 | --includ | --inclu | --incl | --inc)
939 ac_prev=includedir ;;
940 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
941 | --includ=* | --inclu=* | --incl=* | --inc=*)
942 includedir=$ac_optarg ;;
944 -infodir | --infodir | --infodi | --infod | --info | --inf)
945 ac_prev=infodir ;;
946 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
947 infodir=$ac_optarg ;;
949 -libdir | --libdir | --libdi | --libd)
950 ac_prev=libdir ;;
951 -libdir=* | --libdir=* | --libdi=* | --libd=*)
952 libdir=$ac_optarg ;;
954 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
955 | --libexe | --libex | --libe)
956 ac_prev=libexecdir ;;
957 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
958 | --libexe=* | --libex=* | --libe=*)
959 libexecdir=$ac_optarg ;;
961 -localedir | --localedir | --localedi | --localed | --locale)
962 ac_prev=localedir ;;
963 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
964 localedir=$ac_optarg ;;
966 -localstatedir | --localstatedir | --localstatedi | --localstated \
967 | --localstate | --localstat | --localsta | --localst | --locals)
968 ac_prev=localstatedir ;;
969 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
970 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
971 localstatedir=$ac_optarg ;;
973 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
974 ac_prev=mandir ;;
975 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
976 mandir=$ac_optarg ;;
978 -nfp | --nfp | --nf)
979 # Obsolete; use --without-fp.
980 with_fp=no ;;
982 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
983 | --no-cr | --no-c | -n)
984 no_create=yes ;;
986 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
987 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
988 no_recursion=yes ;;
990 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
991 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
992 | --oldin | --oldi | --old | --ol | --o)
993 ac_prev=oldincludedir ;;
994 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
995 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
996 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
997 oldincludedir=$ac_optarg ;;
999 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1000 ac_prev=prefix ;;
1001 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1002 prefix=$ac_optarg ;;
1004 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1005 | --program-pre | --program-pr | --program-p)
1006 ac_prev=program_prefix ;;
1007 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1008 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1009 program_prefix=$ac_optarg ;;
1011 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1012 | --program-suf | --program-su | --program-s)
1013 ac_prev=program_suffix ;;
1014 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1015 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1016 program_suffix=$ac_optarg ;;
1018 -program-transform-name | --program-transform-name \
1019 | --program-transform-nam | --program-transform-na \
1020 | --program-transform-n | --program-transform- \
1021 | --program-transform | --program-transfor \
1022 | --program-transfo | --program-transf \
1023 | --program-trans | --program-tran \
1024 | --progr-tra | --program-tr | --program-t)
1025 ac_prev=program_transform_name ;;
1026 -program-transform-name=* | --program-transform-name=* \
1027 | --program-transform-nam=* | --program-transform-na=* \
1028 | --program-transform-n=* | --program-transform-=* \
1029 | --program-transform=* | --program-transfor=* \
1030 | --program-transfo=* | --program-transf=* \
1031 | --program-trans=* | --program-tran=* \
1032 | --progr-tra=* | --program-tr=* | --program-t=*)
1033 program_transform_name=$ac_optarg ;;
1035 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1036 ac_prev=pdfdir ;;
1037 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1038 pdfdir=$ac_optarg ;;
1040 -psdir | --psdir | --psdi | --psd | --ps)
1041 ac_prev=psdir ;;
1042 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1043 psdir=$ac_optarg ;;
1045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1046 | -silent | --silent | --silen | --sile | --sil)
1047 silent=yes ;;
1049 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1050 ac_prev=sbindir ;;
1051 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1052 | --sbi=* | --sb=*)
1053 sbindir=$ac_optarg ;;
1055 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1056 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1057 | --sharedst | --shareds | --shared | --share | --shar \
1058 | --sha | --sh)
1059 ac_prev=sharedstatedir ;;
1060 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1061 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1062 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1063 | --sha=* | --sh=*)
1064 sharedstatedir=$ac_optarg ;;
1066 -site | --site | --sit)
1067 ac_prev=site ;;
1068 -site=* | --site=* | --sit=*)
1069 site=$ac_optarg ;;
1071 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1072 ac_prev=srcdir ;;
1073 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1074 srcdir=$ac_optarg ;;
1076 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1077 | --syscon | --sysco | --sysc | --sys | --sy)
1078 ac_prev=sysconfdir ;;
1079 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1080 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1081 sysconfdir=$ac_optarg ;;
1083 -target | --target | --targe | --targ | --tar | --ta | --t)
1084 ac_prev=target_alias ;;
1085 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1086 target_alias=$ac_optarg ;;
1088 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1089 verbose=yes ;;
1091 -version | --version | --versio | --versi | --vers | -V)
1092 ac_init_version=: ;;
1094 -with-* | --with-*)
1095 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1096 # Reject names that are not valid shell variable names.
1097 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1098 as_fn_error "invalid package name: $ac_useropt"
1099 ac_useropt_orig=$ac_useropt
1100 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1101 case $ac_user_opts in
1103 "with_$ac_useropt"
1104 "*) ;;
1105 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1106 ac_unrecognized_sep=', ';;
1107 esac
1108 eval with_$ac_useropt=\$ac_optarg ;;
1110 -without-* | --without-*)
1111 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1112 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid package name: $ac_useropt"
1115 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in
1119 "with_$ac_useropt"
1120 "*) ;;
1121 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1122 ac_unrecognized_sep=', ';;
1123 esac
1124 eval with_$ac_useropt=no ;;
1126 --x)
1127 # Obsolete; use --with-x.
1128 with_x=yes ;;
1130 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1131 | --x-incl | --x-inc | --x-in | --x-i)
1132 ac_prev=x_includes ;;
1133 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1134 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1135 x_includes=$ac_optarg ;;
1137 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1138 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1139 ac_prev=x_libraries ;;
1140 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1141 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1142 x_libraries=$ac_optarg ;;
1144 -*) as_fn_error "unrecognized option: \`$ac_option'
1145 Try \`$0 --help' for more information."
1148 *=*)
1149 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1150 # Reject names that are not valid shell variable names.
1151 case $ac_envvar in #(
1152 '' | [0-9]* | *[!_$as_cr_alnum]* )
1153 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1154 esac
1155 eval $ac_envvar=\$ac_optarg
1156 export $ac_envvar ;;
1159 # FIXME: should be removed in autoconf 3.0.
1160 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1161 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1162 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1163 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1166 esac
1167 done
1169 if test -n "$ac_prev"; then
1170 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1171 as_fn_error "missing argument to $ac_option"
1174 if test -n "$ac_unrecognized_opts"; then
1175 case $enable_option_checking in
1176 no) ;;
1177 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1178 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1179 esac
1182 # Check all directory arguments for consistency.
1183 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1184 datadir sysconfdir sharedstatedir localstatedir includedir \
1185 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1186 libdir localedir mandir
1188 eval ac_val=\$$ac_var
1189 # Remove trailing slashes.
1190 case $ac_val in
1191 */ )
1192 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1193 eval $ac_var=\$ac_val;;
1194 esac
1195 # Be sure to have absolute directory names.
1196 case $ac_val in
1197 [\\/$]* | ?:[\\/]* ) continue;;
1198 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1199 esac
1200 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1201 done
1203 # There might be people who depend on the old broken behavior: `$host'
1204 # used to hold the argument of --host etc.
1205 # FIXME: To remove some day.
1206 build=$build_alias
1207 host=$host_alias
1208 target=$target_alias
1210 # FIXME: To remove some day.
1211 if test "x$host_alias" != x; then
1212 if test "x$build_alias" = x; then
1213 cross_compiling=maybe
1214 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1215 If a cross compiler is detected then cross compile mode will be used." >&2
1216 elif test "x$build_alias" != "x$host_alias"; then
1217 cross_compiling=yes
1221 ac_tool_prefix=
1222 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1224 test "$silent" = yes && exec 6>/dev/null
1227 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1228 ac_ls_di=`ls -di .` &&
1229 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1230 as_fn_error "working directory cannot be determined"
1231 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1232 as_fn_error "pwd does not report name of working directory"
1235 # Find the source files, if location was not specified.
1236 if test -z "$srcdir"; then
1237 ac_srcdir_defaulted=yes
1238 # Try the directory containing this script, then the parent directory.
1239 ac_confdir=`$as_dirname -- "$as_myself" ||
1240 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1241 X"$as_myself" : 'X\(//\)[^/]' \| \
1242 X"$as_myself" : 'X\(//\)$' \| \
1243 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1244 $as_echo X"$as_myself" |
1245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1246 s//\1/
1249 /^X\(\/\/\)[^/].*/{
1250 s//\1/
1253 /^X\(\/\/\)$/{
1254 s//\1/
1257 /^X\(\/\).*/{
1258 s//\1/
1261 s/.*/./; q'`
1262 srcdir=$ac_confdir
1263 if test ! -r "$srcdir/$ac_unique_file"; then
1264 srcdir=..
1266 else
1267 ac_srcdir_defaulted=no
1269 if test ! -r "$srcdir/$ac_unique_file"; then
1270 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1271 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1273 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1274 ac_abs_confdir=`(
1275 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1276 pwd)`
1277 # When building in place, set srcdir=.
1278 if test "$ac_abs_confdir" = "$ac_pwd"; then
1279 srcdir=.
1281 # Remove unnecessary trailing slashes from srcdir.
1282 # Double slashes in file names in object file debugging info
1283 # mess up M-x gdb in Emacs.
1284 case $srcdir in
1285 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1286 esac
1287 for ac_var in $ac_precious_vars; do
1288 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1289 eval ac_env_${ac_var}_value=\$${ac_var}
1290 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1291 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1292 done
1295 # Report the --help message.
1297 if test "$ac_init_help" = "long"; then
1298 # Omit some internal or obsolete options to make the list less imposing.
1299 # This message is too long to be a string in the A/UX 3.1 sh.
1300 cat <<_ACEOF
1301 \`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems.
1303 Usage: $0 [OPTION]... [VAR=VALUE]...
1305 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1306 VAR=VALUE. See below for descriptions of some of the useful variables.
1308 Defaults for the options are specified in brackets.
1310 Configuration:
1311 -h, --help display this help and exit
1312 --help=short display options specific to this package
1313 --help=recursive display the short help of all the included packages
1314 -V, --version display version information and exit
1315 -q, --quiet, --silent do not print \`checking...' messages
1316 --cache-file=FILE cache test results in FILE [disabled]
1317 -C, --config-cache alias for \`--cache-file=config.cache'
1318 -n, --no-create do not create output files
1319 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1321 Installation directories:
1322 --prefix=PREFIX install architecture-independent files in PREFIX
1323 [$ac_default_prefix]
1324 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1325 [PREFIX]
1327 By default, \`make install' will install all the files in
1328 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1329 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1330 for instance \`--prefix=\$HOME'.
1332 For better control, use the options below.
1334 Fine tuning of the installation directories:
1335 --bindir=DIR user executables [EPREFIX/bin]
1336 --sbindir=DIR system admin executables [EPREFIX/sbin]
1337 --libexecdir=DIR program executables [EPREFIX/libexec]
1338 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1339 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1340 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1341 --libdir=DIR object code libraries [EPREFIX/lib]
1342 --includedir=DIR C header files [PREFIX/include]
1343 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1344 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1345 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1346 --infodir=DIR info documentation [DATAROOTDIR/info]
1347 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1348 --mandir=DIR man documentation [DATAROOTDIR/man]
1349 --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic]
1350 --htmldir=DIR html documentation [DOCDIR]
1351 --dvidir=DIR dvi documentation [DOCDIR]
1352 --pdfdir=DIR pdf documentation [DOCDIR]
1353 --psdir=DIR ps documentation [DOCDIR]
1354 _ACEOF
1356 cat <<\_ACEOF
1358 Program names:
1359 --program-prefix=PREFIX prepend PREFIX to installed program names
1360 --program-suffix=SUFFIX append SUFFIX to installed program names
1361 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1363 System types:
1364 --build=BUILD configure for building on BUILD [guessed]
1365 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1366 --target=TARGET configure for building compilers for TARGET [HOST]
1367 _ACEOF
1370 if test -n "$ac_init_help"; then
1371 case $ac_init_help in
1372 short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";;
1373 esac
1374 cat <<\_ACEOF
1376 Optional Features:
1377 --disable-option-checking ignore unrecognized --enable/--with options
1378 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1379 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1380 --enable-maintainer-mode enable make rules and dependencies not useful
1381 (and sometimes confusing) to the casual installer
1382 --disable-dependency-tracking speeds up one-time build
1383 --enable-dependency-tracking do not reject slow dependency extractors
1384 --enable-multilib build many library versions (default)
1385 --enable-version-specific-runtime-libs
1386 Specify that runtime libraries should be installed
1387 in a compiler-specific directory
1388 --enable-shared[=PKGS] build shared libraries [default=yes]
1389 --enable-static[=PKGS] build static libraries [default=yes]
1390 --enable-fast-install[=PKGS]
1391 optimize for fast installation [default=yes]
1392 --disable-libtool-lock avoid locking (might break parallel builds)
1394 Optional Packages:
1395 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1396 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1397 --with-pic try to use only PIC/non-PIC objects [default=use
1398 both]
1399 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1401 Some influential environment variables:
1402 CC C compiler command
1403 CFLAGS C compiler flags
1404 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1405 nonstandard directory <lib dir>
1406 LIBS libraries to pass to the linker, e.g. -l<library>
1407 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1408 you have headers in a nonstandard directory <include dir>
1409 CXX C++ compiler command
1410 CXXFLAGS C++ compiler flags
1411 CPP C preprocessor
1412 CXXCPP C++ preprocessor
1414 Use these variables to override the choices made by `configure' or to help
1415 it to find libraries and programs with nonstandard names/locations.
1417 Report bugs to the package provider.
1418 _ACEOF
1419 ac_status=$?
1422 if test "$ac_init_help" = "recursive"; then
1423 # If there are subdirs, report their specific --help.
1424 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1425 test -d "$ac_dir" ||
1426 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1427 continue
1428 ac_builddir=.
1430 case "$ac_dir" in
1431 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1433 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1434 # A ".." for each directory in $ac_dir_suffix.
1435 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1436 case $ac_top_builddir_sub in
1437 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1438 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1439 esac ;;
1440 esac
1441 ac_abs_top_builddir=$ac_pwd
1442 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1443 # for backward compatibility:
1444 ac_top_builddir=$ac_top_build_prefix
1446 case $srcdir in
1447 .) # We are building in place.
1448 ac_srcdir=.
1449 ac_top_srcdir=$ac_top_builddir_sub
1450 ac_abs_top_srcdir=$ac_pwd ;;
1451 [\\/]* | ?:[\\/]* ) # Absolute name.
1452 ac_srcdir=$srcdir$ac_dir_suffix;
1453 ac_top_srcdir=$srcdir
1454 ac_abs_top_srcdir=$srcdir ;;
1455 *) # Relative name.
1456 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1457 ac_top_srcdir=$ac_top_build_prefix$srcdir
1458 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1459 esac
1460 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1462 cd "$ac_dir" || { ac_status=$?; continue; }
1463 # Check for guested configure.
1464 if test -f "$ac_srcdir/configure.gnu"; then
1465 echo &&
1466 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1467 elif test -f "$ac_srcdir/configure"; then
1468 echo &&
1469 $SHELL "$ac_srcdir/configure" --help=recursive
1470 else
1471 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1472 fi || ac_status=$?
1473 cd "$ac_pwd" || { ac_status=$?; break; }
1474 done
1477 test -n "$ac_init_help" && exit $ac_status
1478 if $ac_init_version; then
1479 cat <<\_ACEOF
1480 MIC Offload Runtime Library configure 1.0
1481 generated by GNU Autoconf 2.64
1483 Copyright (C) 2009 Free Software Foundation, Inc.
1484 This configure script is free software; the Free Software Foundation
1485 gives unlimited permission to copy, distribute and modify it.
1486 _ACEOF
1487 exit
1490 ## ------------------------ ##
1491 ## Autoconf initialization. ##
1492 ## ------------------------ ##
1494 # ac_fn_c_try_compile LINENO
1495 # --------------------------
1496 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1497 ac_fn_c_try_compile ()
1499 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1500 rm -f conftest.$ac_objext
1501 if { { ac_try="$ac_compile"
1502 case "(($ac_try" in
1503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1504 *) ac_try_echo=$ac_try;;
1505 esac
1506 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1507 $as_echo "$ac_try_echo"; } >&5
1508 (eval "$ac_compile") 2>conftest.err
1509 ac_status=$?
1510 if test -s conftest.err; then
1511 grep -v '^ *+' conftest.err >conftest.er1
1512 cat conftest.er1 >&5
1513 mv -f conftest.er1 conftest.err
1515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1516 test $ac_status = 0; } && {
1517 test -z "$ac_c_werror_flag" ||
1518 test ! -s conftest.err
1519 } && test -s conftest.$ac_objext; then :
1520 ac_retval=0
1521 else
1522 $as_echo "$as_me: failed program was:" >&5
1523 sed 's/^/| /' conftest.$ac_ext >&5
1525 ac_retval=1
1527 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1528 return $ac_retval
1530 } # ac_fn_c_try_compile
1532 # ac_fn_cxx_try_compile LINENO
1533 # ----------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_cxx_try_compile ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_cxx_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1563 ac_retval=1
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1566 return $ac_retval
1568 } # ac_fn_cxx_try_compile
1570 # ac_fn_c_try_link LINENO
1571 # -----------------------
1572 # Try to link conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_link ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 rm -f conftest.$ac_objext conftest$ac_exeext
1577 if { { ac_try="$ac_link"
1578 case "(($ac_try" in
1579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580 *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 $as_echo "$ac_try_echo"; } >&5
1584 (eval "$ac_link") 2>conftest.err
1585 ac_status=$?
1586 if test -s conftest.err; then
1587 grep -v '^ *+' conftest.err >conftest.er1
1588 cat conftest.er1 >&5
1589 mv -f conftest.er1 conftest.err
1591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592 test $ac_status = 0; } && {
1593 test -z "$ac_c_werror_flag" ||
1594 test ! -s conftest.err
1595 } && test -s conftest$ac_exeext && {
1596 test "$cross_compiling" = yes ||
1597 $as_test_x conftest$ac_exeext
1598 }; then :
1599 ac_retval=0
1600 else
1601 $as_echo "$as_me: failed program was:" >&5
1602 sed 's/^/| /' conftest.$ac_ext >&5
1604 ac_retval=1
1606 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1607 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1608 # interfere with the next link command; also delete a directory that is
1609 # left behind by Apple's compiler. We do this before executing the actions.
1610 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1611 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1612 return $ac_retval
1614 } # ac_fn_c_try_link
1616 # ac_fn_c_try_cpp LINENO
1617 # ----------------------
1618 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1619 ac_fn_c_try_cpp ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_cpp conftest.$ac_ext"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } >/dev/null && {
1638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 }; then :
1641 ac_retval=0
1642 else
1643 $as_echo "$as_me: failed program was:" >&5
1644 sed 's/^/| /' conftest.$ac_ext >&5
1646 ac_retval=1
1648 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1649 return $ac_retval
1651 } # ac_fn_c_try_cpp
1653 # ac_fn_c_check_func LINENO FUNC VAR
1654 # ----------------------------------
1655 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1656 ac_fn_c_check_func ()
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1660 $as_echo_n "checking for $2... " >&6; }
1661 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1662 $as_echo_n "(cached) " >&6
1663 else
1664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1665 /* end confdefs.h. */
1666 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1668 #define $2 innocuous_$2
1670 /* System header to define __stub macros and hopefully few prototypes,
1671 which can conflict with char $2 (); below.
1672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1673 <limits.h> exists even on freestanding compilers. */
1675 #ifdef __STDC__
1676 # include <limits.h>
1677 #else
1678 # include <assert.h>
1679 #endif
1681 #undef $2
1683 /* Override any GCC internal prototype to avoid an error.
1684 Use char because int might match the return type of a GCC
1685 builtin and then its argument prototype would still apply. */
1686 #ifdef __cplusplus
1687 extern "C"
1688 #endif
1689 char $2 ();
1690 /* The GNU C library defines this for functions which it implements
1691 to always fail with ENOSYS. Some functions are actually named
1692 something starting with __ and the normal name is an alias. */
1693 #if defined __stub_$2 || defined __stub___$2
1694 choke me
1695 #endif
1698 main ()
1700 return $2 ();
1702 return 0;
1704 _ACEOF
1705 if ac_fn_c_try_link "$LINENO"; then :
1706 eval "$3=yes"
1707 else
1708 eval "$3=no"
1710 rm -f core conftest.err conftest.$ac_objext \
1711 conftest$ac_exeext conftest.$ac_ext
1713 eval ac_res=\$$3
1714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1715 $as_echo "$ac_res" >&6; }
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1718 } # ac_fn_c_check_func
1720 # ac_fn_c_try_run LINENO
1721 # ----------------------
1722 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1723 # that executables *can* be run.
1724 ac_fn_c_try_run ()
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_link"
1728 case "(($ac_try" in
1729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1730 *) ac_try_echo=$ac_try;;
1731 esac
1732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_link") 2>&5
1735 ac_status=$?
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1738 { { case "(($ac_try" in
1739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1740 *) ac_try_echo=$ac_try;;
1741 esac
1742 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1743 $as_echo "$ac_try_echo"; } >&5
1744 (eval "$ac_try") 2>&5
1745 ac_status=$?
1746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747 test $ac_status = 0; }; }; then :
1748 ac_retval=0
1749 else
1750 $as_echo "$as_me: program exited with status $ac_status" >&5
1751 $as_echo "$as_me: failed program was:" >&5
1752 sed 's/^/| /' conftest.$ac_ext >&5
1754 ac_retval=$ac_status
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1758 return $ac_retval
1760 } # ac_fn_c_try_run
1762 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1763 # -------------------------------------------------------
1764 # Tests whether HEADER exists and can be compiled using the include files in
1765 # INCLUDES, setting the cache variable VAR accordingly.
1766 ac_fn_c_check_header_compile ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1770 $as_echo_n "checking for $2... " >&6; }
1771 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1772 $as_echo_n "(cached) " >&6
1773 else
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1777 #include <$2>
1778 _ACEOF
1779 if ac_fn_c_try_compile "$LINENO"; then :
1780 eval "$3=yes"
1781 else
1782 eval "$3=no"
1784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1786 eval ac_res=\$$3
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1788 $as_echo "$ac_res" >&6; }
1789 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1791 } # ac_fn_c_check_header_compile
1793 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1794 # -------------------------------------------------------
1795 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1796 # the include files in INCLUDES and setting the cache variable VAR
1797 # accordingly.
1798 ac_fn_c_check_header_mongrel ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1803 $as_echo_n "checking for $2... " >&6; }
1804 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1805 $as_echo_n "(cached) " >&6
1807 eval ac_res=\$$3
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1809 $as_echo "$ac_res" >&6; }
1810 else
1811 # Is the header compilable?
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1813 $as_echo_n "checking $2 usability... " >&6; }
1814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815 /* end confdefs.h. */
1817 #include <$2>
1818 _ACEOF
1819 if ac_fn_c_try_compile "$LINENO"; then :
1820 ac_header_compiler=yes
1821 else
1822 ac_header_compiler=no
1824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1826 $as_echo "$ac_header_compiler" >&6; }
1828 # Is the header present?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1830 $as_echo_n "checking $2 presence... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1833 #include <$2>
1834 _ACEOF
1835 if ac_fn_c_try_cpp "$LINENO"; then :
1836 ac_header_preproc=yes
1837 else
1838 ac_header_preproc=no
1840 rm -f conftest.err conftest.$ac_ext
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1842 $as_echo "$ac_header_preproc" >&6; }
1844 # So? What about this header?
1845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1846 yes:no: )
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1848 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1850 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1852 no:yes:* )
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1854 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1856 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1858 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1860 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1862 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1864 esac
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869 else
1870 eval "$3=\$ac_header_compiler"
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1878 } # ac_fn_c_check_header_mongrel
1880 # ac_fn_cxx_try_cpp LINENO
1881 # ------------------------
1882 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_cpp ()
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } >/dev/null && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1904 }; then :
1905 ac_retval=0
1906 else
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1910 ac_retval=1
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 return $ac_retval
1915 } # ac_fn_cxx_try_cpp
1917 # ac_fn_cxx_try_link LINENO
1918 # -------------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_link ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 $as_test_x conftest$ac_exeext
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=1
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 return $ac_retval
1961 } # ac_fn_cxx_try_link
1962 cat >config.log <<_ACEOF
1963 This file contains any messages produced by compilers while
1964 running configure, to aid debugging if configure makes a mistake.
1966 It was created by MIC Offload Runtime Library $as_me 1.0, which was
1967 generated by GNU Autoconf 2.64. Invocation command line was
1969 $ $0 $@
1971 _ACEOF
1972 exec 5>>config.log
1974 cat <<_ASUNAME
1975 ## --------- ##
1976 ## Platform. ##
1977 ## --------- ##
1979 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1980 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1981 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1982 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1983 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1985 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1986 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1988 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1989 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1990 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1991 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1992 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1993 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1994 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1996 _ASUNAME
1998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1999 for as_dir in $PATH
2001 IFS=$as_save_IFS
2002 test -z "$as_dir" && as_dir=.
2003 $as_echo "PATH: $as_dir"
2004 done
2005 IFS=$as_save_IFS
2007 } >&5
2009 cat >&5 <<_ACEOF
2012 ## ----------- ##
2013 ## Core tests. ##
2014 ## ----------- ##
2016 _ACEOF
2019 # Keep a trace of the command line.
2020 # Strip out --no-create and --no-recursion so they do not pile up.
2021 # Strip out --silent because we don't want to record it for future runs.
2022 # Also quote any args containing shell meta-characters.
2023 # Make two passes to allow for proper duplicate-argument suppression.
2024 ac_configure_args=
2025 ac_configure_args0=
2026 ac_configure_args1=
2027 ac_must_keep_next=false
2028 for ac_pass in 1 2
2030 for ac_arg
2032 case $ac_arg in
2033 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2034 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2035 | -silent | --silent | --silen | --sile | --sil)
2036 continue ;;
2037 *\'*)
2038 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2039 esac
2040 case $ac_pass in
2041 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2043 as_fn_append ac_configure_args1 " '$ac_arg'"
2044 if test $ac_must_keep_next = true; then
2045 ac_must_keep_next=false # Got value, back to normal.
2046 else
2047 case $ac_arg in
2048 *=* | --config-cache | -C | -disable-* | --disable-* \
2049 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2050 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2051 | -with-* | --with-* | -without-* | --without-* | --x)
2052 case "$ac_configure_args0 " in
2053 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2054 esac
2056 -* ) ac_must_keep_next=true ;;
2057 esac
2059 as_fn_append ac_configure_args " '$ac_arg'"
2061 esac
2062 done
2063 done
2064 { ac_configure_args0=; unset ac_configure_args0;}
2065 { ac_configure_args1=; unset ac_configure_args1;}
2067 # When interrupted or exit'd, cleanup temporary files, and complete
2068 # config.log. We remove comments because anyway the quotes in there
2069 # would cause problems or look ugly.
2070 # WARNING: Use '\'' to represent an apostrophe within the trap.
2071 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2072 trap 'exit_status=$?
2073 # Save into config.log some information that might help in debugging.
2075 echo
2077 cat <<\_ASBOX
2078 ## ---------------- ##
2079 ## Cache variables. ##
2080 ## ---------------- ##
2081 _ASBOX
2082 echo
2083 # The following way of writing the cache mishandles newlines in values,
2085 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2086 eval ac_val=\$$ac_var
2087 case $ac_val in #(
2088 *${as_nl}*)
2089 case $ac_var in #(
2090 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2091 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2092 esac
2093 case $ac_var in #(
2094 _ | IFS | as_nl) ;; #(
2095 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2096 *) { eval $ac_var=; unset $ac_var;} ;;
2097 esac ;;
2098 esac
2099 done
2100 (set) 2>&1 |
2101 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2102 *${as_nl}ac_space=\ *)
2103 sed -n \
2104 "s/'\''/'\''\\\\'\'''\''/g;
2105 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2106 ;; #(
2108 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2110 esac |
2111 sort
2113 echo
2115 cat <<\_ASBOX
2116 ## ----------------- ##
2117 ## Output variables. ##
2118 ## ----------------- ##
2119 _ASBOX
2120 echo
2121 for ac_var in $ac_subst_vars
2123 eval ac_val=\$$ac_var
2124 case $ac_val in
2125 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 esac
2127 $as_echo "$ac_var='\''$ac_val'\''"
2128 done | sort
2129 echo
2131 if test -n "$ac_subst_files"; then
2132 cat <<\_ASBOX
2133 ## ------------------- ##
2134 ## File substitutions. ##
2135 ## ------------------- ##
2136 _ASBOX
2137 echo
2138 for ac_var in $ac_subst_files
2140 eval ac_val=\$$ac_var
2141 case $ac_val in
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 esac
2144 $as_echo "$ac_var='\''$ac_val'\''"
2145 done | sort
2146 echo
2149 if test -s confdefs.h; then
2150 cat <<\_ASBOX
2151 ## ----------- ##
2152 ## confdefs.h. ##
2153 ## ----------- ##
2154 _ASBOX
2155 echo
2156 cat confdefs.h
2157 echo
2159 test "$ac_signal" != 0 &&
2160 $as_echo "$as_me: caught signal $ac_signal"
2161 $as_echo "$as_me: exit $exit_status"
2162 } >&5
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165 exit $exit_status
2167 for ac_signal in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169 done
2170 ac_signal=0
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest* confdefs.h
2175 $as_echo "/* confdefs.h */" > confdefs.h
2177 # Predefined preprocessor variables.
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_NAME "$PACKAGE_NAME"
2181 _ACEOF
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185 _ACEOF
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2189 _ACEOF
2191 cat >>confdefs.h <<_ACEOF
2192 #define PACKAGE_STRING "$PACKAGE_STRING"
2193 _ACEOF
2195 cat >>confdefs.h <<_ACEOF
2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197 _ACEOF
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_URL "$PACKAGE_URL"
2201 _ACEOF
2204 # Let the site file select an alternate cache file if it wants to.
2205 # Prefer an explicitly selected file to automatically selected ones.
2206 ac_site_file1=NONE
2207 ac_site_file2=NONE
2208 if test -n "$CONFIG_SITE"; then
2209 ac_site_file1=$CONFIG_SITE
2210 elif test "x$prefix" != xNONE; then
2211 ac_site_file1=$prefix/share/config.site
2212 ac_site_file2=$prefix/etc/config.site
2213 else
2214 ac_site_file1=$ac_default_prefix/share/config.site
2215 ac_site_file2=$ac_default_prefix/etc/config.site
2217 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2219 test "x$ac_site_file" = xNONE && continue
2220 if test -r "$ac_site_file"; then
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2222 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2223 sed 's/^/| /' "$ac_site_file" >&5
2224 . "$ac_site_file"
2226 done
2228 if test -r "$cache_file"; then
2229 # Some versions of bash will fail to source /dev/null (special
2230 # files actually), so we avoid doing that.
2231 if test -f "$cache_file"; then
2232 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2233 $as_echo "$as_me: loading cache $cache_file" >&6;}
2234 case $cache_file in
2235 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2236 *) . "./$cache_file";;
2237 esac
2239 else
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2241 $as_echo "$as_me: creating cache $cache_file" >&6;}
2242 >$cache_file
2245 # Check that the precious variables saved in the cache have kept the same
2246 # value.
2247 ac_cache_corrupted=false
2248 for ac_var in $ac_precious_vars; do
2249 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2250 eval ac_new_set=\$ac_env_${ac_var}_set
2251 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2252 eval ac_new_val=\$ac_env_${ac_var}_value
2253 case $ac_old_set,$ac_new_set in
2254 set,)
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2256 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2257 ac_cache_corrupted=: ;;
2258 ,set)
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2260 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2261 ac_cache_corrupted=: ;;
2262 ,);;
2264 if test "x$ac_old_val" != "x$ac_new_val"; then
2265 # differences in whitespace do not lead to failure.
2266 ac_old_val_w=`echo x $ac_old_val`
2267 ac_new_val_w=`echo x $ac_new_val`
2268 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2270 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2271 ac_cache_corrupted=:
2272 else
2273 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2274 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2275 eval $ac_var=\$ac_old_val
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2278 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2280 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2281 fi;;
2282 esac
2283 # Pass precious variables to config.status.
2284 if test "$ac_new_set" = set; then
2285 case $ac_new_val in
2286 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2287 *) ac_arg=$ac_var=$ac_new_val ;;
2288 esac
2289 case " $ac_configure_args " in
2290 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2291 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2292 esac
2294 done
2295 if $ac_cache_corrupted; then
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2299 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2300 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2302 ## -------------------- ##
2303 ## Main body of script. ##
2304 ## -------------------- ##
2306 ac_ext=c
2307 ac_cpp='$CPP $CPPFLAGS'
2308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317 ac_aux_dir=
2318 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2319 for ac_t in install-sh install.sh shtool; do
2320 if test -f "$ac_dir/$ac_t"; then
2321 ac_aux_dir=$ac_dir
2322 ac_install_sh="$ac_aux_dir/$ac_t -c"
2323 break 2
2325 done
2326 done
2327 if test -z "$ac_aux_dir"; then
2328 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2331 # These three variables are undocumented and unsupported,
2332 # and are intended to be withdrawn in a future Autoconf release.
2333 # They can cause serious problems if a builder's source tree is in a directory
2334 # whose full name contains unusual characters.
2335 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2336 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2337 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2340 # Make sure we can run config.sub.
2341 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2342 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2345 $as_echo_n "checking build system type... " >&6; }
2346 if test "${ac_cv_build+set}" = set; then :
2347 $as_echo_n "(cached) " >&6
2348 else
2349 ac_build_alias=$build_alias
2350 test "x$ac_build_alias" = x &&
2351 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2352 test "x$ac_build_alias" = x &&
2353 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2354 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2355 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2359 $as_echo "$ac_cv_build" >&6; }
2360 case $ac_cv_build in
2361 *-*-*) ;;
2362 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2363 esac
2364 build=$ac_cv_build
2365 ac_save_IFS=$IFS; IFS='-'
2366 set x $ac_cv_build
2367 shift
2368 build_cpu=$1
2369 build_vendor=$2
2370 shift; shift
2371 # Remember, the first character of IFS is used to create $*,
2372 # except with old shells:
2373 build_os=$*
2374 IFS=$ac_save_IFS
2375 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2379 $as_echo_n "checking host system type... " >&6; }
2380 if test "${ac_cv_host+set}" = set; then :
2381 $as_echo_n "(cached) " >&6
2382 else
2383 if test "x$host_alias" = x; then
2384 ac_cv_host=$ac_cv_build
2385 else
2386 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2387 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2392 $as_echo "$ac_cv_host" >&6; }
2393 case $ac_cv_host in
2394 *-*-*) ;;
2395 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2396 esac
2397 host=$ac_cv_host
2398 ac_save_IFS=$IFS; IFS='-'
2399 set x $ac_cv_host
2400 shift
2401 host_cpu=$1
2402 host_vendor=$2
2403 shift; shift
2404 # Remember, the first character of IFS is used to create $*,
2405 # except with old shells:
2406 host_os=$*
2407 IFS=$ac_save_IFS
2408 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2412 $as_echo_n "checking target system type... " >&6; }
2413 if test "${ac_cv_target+set}" = set; then :
2414 $as_echo_n "(cached) " >&6
2415 else
2416 if test "x$target_alias" = x; then
2417 ac_cv_target=$ac_cv_host
2418 else
2419 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2420 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2425 $as_echo "$ac_cv_target" >&6; }
2426 case $ac_cv_target in
2427 *-*-*) ;;
2428 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2429 esac
2430 target=$ac_cv_target
2431 ac_save_IFS=$IFS; IFS='-'
2432 set x $ac_cv_target
2433 shift
2434 target_cpu=$1
2435 target_vendor=$2
2436 shift; shift
2437 # Remember, the first character of IFS is used to create $*,
2438 # except with old shells:
2439 target_os=$*
2440 IFS=$ac_save_IFS
2441 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2444 # The aliases save the names the user supplied, while $host etc.
2445 # will get canonicalized.
2446 test -n "$target_alias" &&
2447 test "$program_prefix$program_suffix$program_transform_name" = \
2448 NONENONEs,x,x, &&
2449 program_prefix=${target_alias}-
2451 target_alias=${target_alias-$host_alias}
2454 am__api_version='1.11'
2456 # Find a good install program. We prefer a C program (faster),
2457 # so one script is as good as another. But avoid the broken or
2458 # incompatible versions:
2459 # SysV /etc/install, /usr/sbin/install
2460 # SunOS /usr/etc/install
2461 # IRIX /sbin/install
2462 # AIX /bin/install
2463 # AmigaOS /C/install, which installs bootblocks on floppy discs
2464 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2465 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2466 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2467 # OS/2's system install, which has a completely different semantic
2468 # ./install, which can be erroneously created by make from ./install.sh.
2469 # Reject install programs that cannot install multiple files.
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2471 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2472 if test -z "$INSTALL"; then
2473 if test "${ac_cv_path_install+set}" = set; then :
2474 $as_echo_n "(cached) " >&6
2475 else
2476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2477 for as_dir in $PATH
2479 IFS=$as_save_IFS
2480 test -z "$as_dir" && as_dir=.
2481 # Account for people who put trailing slashes in PATH elements.
2482 case $as_dir/ in #((
2483 ./ | .// | /[cC]/* | \
2484 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2485 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2486 /usr/ucb/* ) ;;
2488 # OSF1 and SCO ODT 3.0 have their own names for install.
2489 # Don't use installbsd from OSF since it installs stuff as root
2490 # by default.
2491 for ac_prog in ginstall scoinst install; do
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2494 if test $ac_prog = install &&
2495 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2496 # AIX install. It has an incompatible calling convention.
2498 elif test $ac_prog = install &&
2499 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2500 # program-specific install script used by HP pwplus--don't use.
2502 else
2503 rm -rf conftest.one conftest.two conftest.dir
2504 echo one > conftest.one
2505 echo two > conftest.two
2506 mkdir conftest.dir
2507 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2508 test -s conftest.one && test -s conftest.two &&
2509 test -s conftest.dir/conftest.one &&
2510 test -s conftest.dir/conftest.two
2511 then
2512 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2513 break 3
2517 done
2518 done
2520 esac
2522 done
2523 IFS=$as_save_IFS
2525 rm -rf conftest.one conftest.two conftest.dir
2528 if test "${ac_cv_path_install+set}" = set; then
2529 INSTALL=$ac_cv_path_install
2530 else
2531 # As a last resort, use the slow shell script. Don't cache a
2532 # value for INSTALL within a source directory, because that will
2533 # break other packages using the cache if that directory is
2534 # removed, or if the value is a relative name.
2535 INSTALL=$ac_install_sh
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2539 $as_echo "$INSTALL" >&6; }
2541 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2542 # It thinks the first close brace ends the variable substitution.
2543 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2545 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2547 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2550 $as_echo_n "checking whether build environment is sane... " >&6; }
2551 # Just in case
2552 sleep 1
2553 echo timestamp > conftest.file
2554 # Reject unsafe characters in $srcdir or the absolute working directory
2555 # name. Accept space and tab only in the latter.
2556 am_lf='
2558 case `pwd` in
2559 *[\\\"\#\$\&\'\`$am_lf]*)
2560 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2561 esac
2562 case $srcdir in
2563 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2564 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2565 esac
2567 # Do `set' in a subshell so we don't clobber the current shell's
2568 # arguments. Must try -L first in case configure is actually a
2569 # symlink; some systems play weird games with the mod time of symlinks
2570 # (eg FreeBSD returns the mod time of the symlink's containing
2571 # directory).
2572 if (
2573 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2574 if test "$*" = "X"; then
2575 # -L didn't work.
2576 set X `ls -t "$srcdir/configure" conftest.file`
2578 rm -f conftest.file
2579 if test "$*" != "X $srcdir/configure conftest.file" \
2580 && test "$*" != "X conftest.file $srcdir/configure"; then
2582 # If neither matched, then we have a broken ls. This can happen
2583 # if, for instance, CONFIG_SHELL is bash and it inherits a
2584 # broken ls alias from the environment. This has actually
2585 # happened. Such a system could not be considered "sane".
2586 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2587 alias in your environment" "$LINENO" 5
2590 test "$2" = conftest.file
2592 then
2593 # Ok.
2595 else
2596 as_fn_error "newly created file is older than distributed files!
2597 Check your system clock" "$LINENO" 5
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2600 $as_echo "yes" >&6; }
2601 test "$program_prefix" != NONE &&
2602 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2603 # Use a double $ so make ignores it.
2604 test "$program_suffix" != NONE &&
2605 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2606 # Double any \ or $.
2607 # By default was `s,x,x', remove it if useless.
2608 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2609 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2611 # expand $ac_aux_dir to an absolute path
2612 am_aux_dir=`cd $ac_aux_dir && pwd`
2614 if test x"${MISSING+set}" != xset; then
2615 case $am_aux_dir in
2616 *\ * | *\ *)
2617 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2619 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2620 esac
2622 # Use eval to expand $SHELL
2623 if eval "$MISSING --run true"; then
2624 am_missing_run="$MISSING --run "
2625 else
2626 am_missing_run=
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2628 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2631 if test x"${install_sh}" != xset; then
2632 case $am_aux_dir in
2633 *\ * | *\ *)
2634 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2636 install_sh="\${SHELL} $am_aux_dir/install-sh"
2637 esac
2640 # Installed binaries are usually stripped using `strip' when the user
2641 # run `make install-strip'. However `strip' might not be the right
2642 # tool to use in cross-compilation environments, therefore Automake
2643 # will honor the `STRIP' environment variable to overrule this program.
2644 if test "$cross_compiling" != no; then
2645 if test -n "$ac_tool_prefix"; then
2646 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2647 set dummy ${ac_tool_prefix}strip; ac_word=$2
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2649 $as_echo_n "checking for $ac_word... " >&6; }
2650 if test "${ac_cv_prog_STRIP+set}" = set; then :
2651 $as_echo_n "(cached) " >&6
2652 else
2653 if test -n "$STRIP"; then
2654 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2655 else
2656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2657 for as_dir in $PATH
2659 IFS=$as_save_IFS
2660 test -z "$as_dir" && as_dir=.
2661 for ac_exec_ext in '' $ac_executable_extensions; do
2662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2663 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2665 break 2
2667 done
2668 done
2669 IFS=$as_save_IFS
2673 STRIP=$ac_cv_prog_STRIP
2674 if test -n "$STRIP"; then
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2676 $as_echo "$STRIP" >&6; }
2677 else
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2679 $as_echo "no" >&6; }
2684 if test -z "$ac_cv_prog_STRIP"; then
2685 ac_ct_STRIP=$STRIP
2686 # Extract the first word of "strip", so it can be a program name with args.
2687 set dummy strip; ac_word=$2
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2689 $as_echo_n "checking for $ac_word... " >&6; }
2690 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2691 $as_echo_n "(cached) " >&6
2692 else
2693 if test -n "$ac_ct_STRIP"; then
2694 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2695 else
2696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2697 for as_dir in $PATH
2699 IFS=$as_save_IFS
2700 test -z "$as_dir" && as_dir=.
2701 for ac_exec_ext in '' $ac_executable_extensions; do
2702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2703 ac_cv_prog_ac_ct_STRIP="strip"
2704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2705 break 2
2707 done
2708 done
2709 IFS=$as_save_IFS
2713 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2714 if test -n "$ac_ct_STRIP"; then
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2716 $as_echo "$ac_ct_STRIP" >&6; }
2717 else
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719 $as_echo "no" >&6; }
2722 if test "x$ac_ct_STRIP" = x; then
2723 STRIP=":"
2724 else
2725 case $cross_compiling:$ac_tool_warned in
2726 yes:)
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2729 ac_tool_warned=yes ;;
2730 esac
2731 STRIP=$ac_ct_STRIP
2733 else
2734 STRIP="$ac_cv_prog_STRIP"
2738 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2741 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2742 if test -z "$MKDIR_P"; then
2743 if test "${ac_cv_path_mkdir+set}" = set; then :
2744 $as_echo_n "(cached) " >&6
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2749 IFS=$as_save_IFS
2750 test -z "$as_dir" && as_dir=.
2751 for ac_prog in mkdir gmkdir; do
2752 for ac_exec_ext in '' $ac_executable_extensions; do
2753 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2754 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2755 'mkdir (GNU coreutils) '* | \
2756 'mkdir (coreutils) '* | \
2757 'mkdir (fileutils) '4.1*)
2758 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2759 break 3;;
2760 esac
2761 done
2762 done
2763 done
2764 IFS=$as_save_IFS
2768 if test "${ac_cv_path_mkdir+set}" = set; then
2769 MKDIR_P="$ac_cv_path_mkdir -p"
2770 else
2771 # As a last resort, use the slow shell script. Don't cache a
2772 # value for MKDIR_P within a source directory, because that will
2773 # break other packages using the cache if that directory is
2774 # removed, or if the value is a relative name.
2775 test -d ./--version && rmdir ./--version
2776 MKDIR_P="$ac_install_sh -d"
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2780 $as_echo "$MKDIR_P" >&6; }
2782 mkdir_p="$MKDIR_P"
2783 case $mkdir_p in
2784 [\\/$]* | ?:[\\/]*) ;;
2785 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2786 esac
2788 for ac_prog in gawk mawk nawk awk
2790 # Extract the first word of "$ac_prog", so it can be a program name with args.
2791 set dummy $ac_prog; ac_word=$2
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2793 $as_echo_n "checking for $ac_word... " >&6; }
2794 if test "${ac_cv_prog_AWK+set}" = set; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test -n "$AWK"; then
2798 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2799 else
2800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2801 for as_dir in $PATH
2803 IFS=$as_save_IFS
2804 test -z "$as_dir" && as_dir=.
2805 for ac_exec_ext in '' $ac_executable_extensions; do
2806 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807 ac_cv_prog_AWK="$ac_prog"
2808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 break 2
2811 done
2812 done
2813 IFS=$as_save_IFS
2817 AWK=$ac_cv_prog_AWK
2818 if test -n "$AWK"; then
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2820 $as_echo "$AWK" >&6; }
2821 else
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2823 $as_echo "no" >&6; }
2827 test -n "$AWK" && break
2828 done
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2831 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2832 set x ${MAKE-make}
2833 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2834 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2835 $as_echo_n "(cached) " >&6
2836 else
2837 cat >conftest.make <<\_ACEOF
2838 SHELL = /bin/sh
2839 all:
2840 @echo '@@@%%%=$(MAKE)=@@@%%%'
2841 _ACEOF
2842 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2843 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2844 *@@@%%%=?*=@@@%%%*)
2845 eval ac_cv_prog_make_${ac_make}_set=yes;;
2847 eval ac_cv_prog_make_${ac_make}_set=no;;
2848 esac
2849 rm -f conftest.make
2851 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2853 $as_echo "yes" >&6; }
2854 SET_MAKE=
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 SET_MAKE="MAKE=${MAKE-make}"
2861 rm -rf .tst 2>/dev/null
2862 mkdir .tst 2>/dev/null
2863 if test -d .tst; then
2864 am__leading_dot=.
2865 else
2866 am__leading_dot=_
2868 rmdir .tst 2>/dev/null
2870 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2871 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2872 # is not polluted with repeated "-I."
2873 am__isrc=' -I$(srcdir)'
2874 # test to see if srcdir already configured
2875 if test -f $srcdir/config.status; then
2876 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2880 # test whether we have cygpath
2881 if test -z "$CYGPATH_W"; then
2882 if (cygpath --version) >/dev/null 2>/dev/null; then
2883 CYGPATH_W='cygpath -w'
2884 else
2885 CYGPATH_W=echo
2890 # Define the identity of the package.
2891 PACKAGE='liboffloadmic'
2892 VERSION='1.0'
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE "$PACKAGE"
2897 _ACEOF
2900 cat >>confdefs.h <<_ACEOF
2901 #define VERSION "$VERSION"
2902 _ACEOF
2904 # Some tools Automake needs.
2906 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2909 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2912 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2915 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2918 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2920 # We need awk for the "check" target. The system "awk" is bad on
2921 # some platforms.
2922 # Always define AMTAR for backward compatibility.
2924 AMTAR=${AMTAR-"${am_missing_run}tar"}
2926 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2934 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2935 # Check whether --enable-maintainer-mode was given.
2936 if test "${enable_maintainer_mode+set}" = set; then :
2937 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2938 else
2939 USE_MAINTAINER_MODE=no
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2943 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2944 if test $USE_MAINTAINER_MODE = yes; then
2945 MAINTAINER_MODE_TRUE=
2946 MAINTAINER_MODE_FALSE='#'
2947 else
2948 MAINTAINER_MODE_TRUE='#'
2949 MAINTAINER_MODE_FALSE=
2952 MAINT=$MAINTAINER_MODE_TRUE
2956 ac_ext=c
2957 ac_cpp='$CPP $CPPFLAGS'
2958 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2959 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2960 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2961 if test -n "$ac_tool_prefix"; then
2962 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2965 $as_echo_n "checking for $ac_word... " >&6; }
2966 if test "${ac_cv_prog_CC+set}" = set; then :
2967 $as_echo_n "(cached) " >&6
2968 else
2969 if test -n "$CC"; then
2970 ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2975 IFS=$as_save_IFS
2976 test -z "$as_dir" && as_dir=.
2977 for ac_exec_ext in '' $ac_executable_extensions; do
2978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2979 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2981 break 2
2983 done
2984 done
2985 IFS=$as_save_IFS
2989 CC=$ac_cv_prog_CC
2990 if test -n "$CC"; then
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2992 $as_echo "$CC" >&6; }
2993 else
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2995 $as_echo "no" >&6; }
3000 if test -z "$ac_cv_prog_CC"; then
3001 ac_ct_CC=$CC
3002 # Extract the first word of "gcc", so it can be a program name with args.
3003 set dummy gcc; ac_word=$2
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3005 $as_echo_n "checking for $ac_word... " >&6; }
3006 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3007 $as_echo_n "(cached) " >&6
3008 else
3009 if test -n "$ac_ct_CC"; then
3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3011 else
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 ac_cv_prog_ac_ct_CC="gcc"
3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3021 break 2
3023 done
3024 done
3025 IFS=$as_save_IFS
3029 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3030 if test -n "$ac_ct_CC"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3032 $as_echo "$ac_ct_CC" >&6; }
3033 else
3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3035 $as_echo "no" >&6; }
3038 if test "x$ac_ct_CC" = x; then
3039 CC=""
3040 else
3041 case $cross_compiling:$ac_tool_warned in
3042 yes:)
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3045 ac_tool_warned=yes ;;
3046 esac
3047 CC=$ac_ct_CC
3049 else
3050 CC="$ac_cv_prog_CC"
3053 if test -z "$CC"; then
3054 if test -n "$ac_tool_prefix"; then
3055 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3056 set dummy ${ac_tool_prefix}cc; ac_word=$2
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058 $as_echo_n "checking for $ac_word... " >&6; }
3059 if test "${ac_cv_prog_CC+set}" = set; then :
3060 $as_echo_n "(cached) " >&6
3061 else
3062 if test -n "$CC"; then
3063 ac_cv_prog_CC="$CC" # Let the user override the test.
3064 else
3065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066 for as_dir in $PATH
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3072 ac_cv_prog_CC="${ac_tool_prefix}cc"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3076 done
3077 done
3078 IFS=$as_save_IFS
3082 CC=$ac_cv_prog_CC
3083 if test -n "$CC"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3085 $as_echo "$CC" >&6; }
3086 else
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088 $as_echo "no" >&6; }
3094 if test -z "$CC"; then
3095 # Extract the first word of "cc", so it can be a program name with args.
3096 set dummy cc; ac_word=$2
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3098 $as_echo_n "checking for $ac_word... " >&6; }
3099 if test "${ac_cv_prog_CC+set}" = set; then :
3100 $as_echo_n "(cached) " >&6
3101 else
3102 if test -n "$CC"; then
3103 ac_cv_prog_CC="$CC" # Let the user override the test.
3104 else
3105 ac_prog_rejected=no
3106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107 for as_dir in $PATH
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
3111 for ac_exec_ext in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3114 ac_prog_rejected=yes
3115 continue
3117 ac_cv_prog_CC="cc"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3121 done
3122 done
3123 IFS=$as_save_IFS
3125 if test $ac_prog_rejected = yes; then
3126 # We found a bogon in the path, so make sure we never use it.
3127 set dummy $ac_cv_prog_CC
3128 shift
3129 if test $# != 0; then
3130 # We chose a different compiler from the bogus one.
3131 # However, it has the same basename, so the bogon will be chosen
3132 # first if we set CC to just the basename; use the full file name.
3133 shift
3134 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3139 CC=$ac_cv_prog_CC
3140 if test -n "$CC"; then
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142 $as_echo "$CC" >&6; }
3143 else
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145 $as_echo "no" >&6; }
3150 if test -z "$CC"; then
3151 if test -n "$ac_tool_prefix"; then
3152 for ac_prog in cl.exe
3154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3157 $as_echo_n "checking for $ac_word... " >&6; }
3158 if test "${ac_cv_prog_CC+set}" = set; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 if test -n "$CC"; then
3162 ac_cv_prog_CC="$CC" # Let the user override the test.
3163 else
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3165 for as_dir in $PATH
3167 IFS=$as_save_IFS
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3171 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3173 break 2
3175 done
3176 done
3177 IFS=$as_save_IFS
3181 CC=$ac_cv_prog_CC
3182 if test -n "$CC"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3184 $as_echo "$CC" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3191 test -n "$CC" && break
3192 done
3194 if test -z "$CC"; then
3195 ac_ct_CC=$CC
3196 for ac_prog in cl.exe
3198 # Extract the first word of "$ac_prog", so it can be a program name with args.
3199 set dummy $ac_prog; ac_word=$2
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3201 $as_echo_n "checking for $ac_word... " >&6; }
3202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3203 $as_echo_n "(cached) " >&6
3204 else
3205 if test -n "$ac_ct_CC"; then
3206 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3207 else
3208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 for as_dir in $PATH
3211 IFS=$as_save_IFS
3212 test -z "$as_dir" && as_dir=.
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3215 ac_cv_prog_ac_ct_CC="$ac_prog"
3216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3217 break 2
3219 done
3220 done
3221 IFS=$as_save_IFS
3225 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3226 if test -n "$ac_ct_CC"; then
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3228 $as_echo "$ac_ct_CC" >&6; }
3229 else
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3231 $as_echo "no" >&6; }
3235 test -n "$ac_ct_CC" && break
3236 done
3238 if test "x$ac_ct_CC" = x; then
3239 CC=""
3240 else
3241 case $cross_compiling:$ac_tool_warned in
3242 yes:)
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3245 ac_tool_warned=yes ;;
3246 esac
3247 CC=$ac_ct_CC
3254 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3256 as_fn_error "no acceptable C compiler found in \$PATH
3257 See \`config.log' for more details." "$LINENO" 5; }
3259 # Provide some information about the compiler.
3260 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3261 set X $ac_compile
3262 ac_compiler=$2
3263 for ac_option in --version -v -V -qversion; do
3264 { { ac_try="$ac_compiler $ac_option >&5"
3265 case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268 esac
3269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270 $as_echo "$ac_try_echo"; } >&5
3271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3272 ac_status=$?
3273 if test -s conftest.err; then
3274 sed '10a\
3275 ... rest of stderr output deleted ...
3276 10q' conftest.err >conftest.er1
3277 cat conftest.er1 >&5
3278 rm -f conftest.er1 conftest.err
3280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3281 test $ac_status = 0; }
3282 done
3284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3285 /* end confdefs.h. */
3288 main ()
3292 return 0;
3294 _ACEOF
3295 ac_clean_files_save=$ac_clean_files
3296 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3297 # Try to create an executable without -o first, disregard a.out.
3298 # It will help us diagnose broken compilers, and finding out an intuition
3299 # of exeext.
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3301 $as_echo_n "checking for C compiler default output file name... " >&6; }
3302 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3304 # The possible output files:
3305 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3307 ac_rmfiles=
3308 for ac_file in $ac_files
3310 case $ac_file in
3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3312 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3313 esac
3314 done
3315 rm -f $ac_rmfiles
3317 if { { ac_try="$ac_link_default"
3318 case "(($ac_try" in
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3321 esac
3322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3323 $as_echo "$ac_try_echo"; } >&5
3324 (eval "$ac_link_default") 2>&5
3325 ac_status=$?
3326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3327 test $ac_status = 0; }; then :
3328 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3329 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3330 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3331 # so that the user can short-circuit this test for compilers unknown to
3332 # Autoconf.
3333 for ac_file in $ac_files ''
3335 test -f "$ac_file" || continue
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3339 [ab].out )
3340 # We found the default executable, but exeext='' is most
3341 # certainly right.
3342 break;;
3343 *.* )
3344 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3345 then :; else
3346 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3348 # We set ac_cv_exeext here because the later test for it is not
3349 # safe: cross compilers may not add the suffix if given an `-o'
3350 # argument, so we may need to know it at that point already.
3351 # Even if this section looks crufty: it has the advantage of
3352 # actually working.
3353 break;;
3355 break;;
3356 esac
3357 done
3358 test "$ac_cv_exeext" = no && ac_cv_exeext=
3360 else
3361 ac_file=''
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3364 $as_echo "$ac_file" >&6; }
3365 if test -z "$ac_file"; then :
3366 $as_echo "$as_me: failed program was:" >&5
3367 sed 's/^/| /' conftest.$ac_ext >&5
3369 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3370 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3371 { as_fn_set_status 77
3372 as_fn_error "C compiler cannot create executables
3373 See \`config.log' for more details." "$LINENO" 5; }; }
3375 ac_exeext=$ac_cv_exeext
3377 # Check that the compiler produces executables we can run. If not, either
3378 # the compiler is broken, or we cross compile.
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3380 $as_echo_n "checking whether the C compiler works... " >&6; }
3381 # If not cross compiling, check that we can run a simple program.
3382 if test "$cross_compiling" != yes; then
3383 if { ac_try='./$ac_file'
3384 { { case "(($ac_try" in
3385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3386 *) ac_try_echo=$ac_try;;
3387 esac
3388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3389 $as_echo "$ac_try_echo"; } >&5
3390 (eval "$ac_try") 2>&5
3391 ac_status=$?
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }; }; then
3394 cross_compiling=no
3395 else
3396 if test "$cross_compiling" = maybe; then
3397 cross_compiling=yes
3398 else
3399 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3401 as_fn_error "cannot run C compiled programs.
3402 If you meant to cross compile, use \`--host'.
3403 See \`config.log' for more details." "$LINENO" 5; }
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3408 $as_echo "yes" >&6; }
3410 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3411 ac_clean_files=$ac_clean_files_save
3412 # Check that the compiler produces executables we can run. If not, either
3413 # the compiler is broken, or we cross compile.
3414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3415 $as_echo_n "checking whether we are cross compiling... " >&6; }
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3417 $as_echo "$cross_compiling" >&6; }
3419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3420 $as_echo_n "checking for suffix of executables... " >&6; }
3421 if { { ac_try="$ac_link"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427 $as_echo "$ac_try_echo"; } >&5
3428 (eval "$ac_link") 2>&5
3429 ac_status=$?
3430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431 test $ac_status = 0; }; then :
3432 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3433 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3434 # work properly (i.e., refer to `conftest.exe'), while it won't with
3435 # `rm'.
3436 for ac_file in conftest.exe conftest conftest.*; do
3437 test -f "$ac_file" || continue
3438 case $ac_file in
3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3440 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3441 break;;
3442 * ) break;;
3443 esac
3444 done
3445 else
3446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3448 as_fn_error "cannot compute suffix of executables: cannot compile and link
3449 See \`config.log' for more details." "$LINENO" 5; }
3451 rm -f conftest$ac_cv_exeext
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3453 $as_echo "$ac_cv_exeext" >&6; }
3455 rm -f conftest.$ac_ext
3456 EXEEXT=$ac_cv_exeext
3457 ac_exeext=$EXEEXT
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3459 $as_echo_n "checking for suffix of object files... " >&6; }
3460 if test "${ac_cv_objext+set}" = set; then :
3461 $as_echo_n "(cached) " >&6
3462 else
3463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3464 /* end confdefs.h. */
3467 main ()
3471 return 0;
3473 _ACEOF
3474 rm -f conftest.o conftest.obj
3475 if { { ac_try="$ac_compile"
3476 case "(($ac_try" in
3477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3478 *) ac_try_echo=$ac_try;;
3479 esac
3480 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3481 $as_echo "$ac_try_echo"; } >&5
3482 (eval "$ac_compile") 2>&5
3483 ac_status=$?
3484 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3485 test $ac_status = 0; }; then :
3486 for ac_file in conftest.o conftest.obj conftest.*; do
3487 test -f "$ac_file" || continue;
3488 case $ac_file in
3489 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3490 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3491 break;;
3492 esac
3493 done
3494 else
3495 $as_echo "$as_me: failed program was:" >&5
3496 sed 's/^/| /' conftest.$ac_ext >&5
3498 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3500 as_fn_error "cannot compute suffix of object files: cannot compile
3501 See \`config.log' for more details." "$LINENO" 5; }
3503 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3506 $as_echo "$ac_cv_objext" >&6; }
3507 OBJEXT=$ac_cv_objext
3508 ac_objext=$OBJEXT
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3510 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3511 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3512 $as_echo_n "(cached) " >&6
3513 else
3514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3515 /* end confdefs.h. */
3518 main ()
3520 #ifndef __GNUC__
3521 choke me
3522 #endif
3525 return 0;
3527 _ACEOF
3528 if ac_fn_c_try_compile "$LINENO"; then :
3529 ac_compiler_gnu=yes
3530 else
3531 ac_compiler_gnu=no
3533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3534 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3538 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3539 if test $ac_compiler_gnu = yes; then
3540 GCC=yes
3541 else
3542 GCC=
3544 ac_test_CFLAGS=${CFLAGS+set}
3545 ac_save_CFLAGS=$CFLAGS
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3547 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3548 if test "${ac_cv_prog_cc_g+set}" = set; then :
3549 $as_echo_n "(cached) " >&6
3550 else
3551 ac_save_c_werror_flag=$ac_c_werror_flag
3552 ac_c_werror_flag=yes
3553 ac_cv_prog_cc_g=no
3554 CFLAGS="-g"
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3559 main ()
3563 return 0;
3565 _ACEOF
3566 if ac_fn_c_try_compile "$LINENO"; then :
3567 ac_cv_prog_cc_g=yes
3568 else
3569 CFLAGS=""
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3574 main ()
3578 return 0;
3580 _ACEOF
3581 if ac_fn_c_try_compile "$LINENO"; then :
3583 else
3584 ac_c_werror_flag=$ac_save_c_werror_flag
3585 CFLAGS="-g"
3586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3587 /* end confdefs.h. */
3590 main ()
3594 return 0;
3596 _ACEOF
3597 if ac_fn_c_try_compile "$LINENO"; then :
3598 ac_cv_prog_cc_g=yes
3600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605 ac_c_werror_flag=$ac_save_c_werror_flag
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3608 $as_echo "$ac_cv_prog_cc_g" >&6; }
3609 if test "$ac_test_CFLAGS" = set; then
3610 CFLAGS=$ac_save_CFLAGS
3611 elif test $ac_cv_prog_cc_g = yes; then
3612 if test "$GCC" = yes; then
3613 CFLAGS="-g -O2"
3614 else
3615 CFLAGS="-g"
3617 else
3618 if test "$GCC" = yes; then
3619 CFLAGS="-O2"
3620 else
3621 CFLAGS=
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3625 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3626 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3627 $as_echo_n "(cached) " >&6
3628 else
3629 ac_cv_prog_cc_c89=no
3630 ac_save_CC=$CC
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <stdarg.h>
3634 #include <stdio.h>
3635 #include <sys/types.h>
3636 #include <sys/stat.h>
3637 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3638 struct buf { int x; };
3639 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3640 static char *e (p, i)
3641 char **p;
3642 int i;
3644 return p[i];
3646 static char *f (char * (*g) (char **, int), char **p, ...)
3648 char *s;
3649 va_list v;
3650 va_start (v,p);
3651 s = g (p, va_arg (v,int));
3652 va_end (v);
3653 return s;
3656 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3657 function prototypes and stuff, but not '\xHH' hex character constants.
3658 These don't provoke an error unfortunately, instead are silently treated
3659 as 'x'. The following induces an error, until -std is added to get
3660 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3661 array size at least. It's necessary to write '\x00'==0 to get something
3662 that's true only with -std. */
3663 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3665 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3666 inside strings and character constants. */
3667 #define FOO(x) 'x'
3668 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3670 int test (int i, double x);
3671 struct s1 {int (*f) (int a);};
3672 struct s2 {int (*f) (double a);};
3673 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3674 int argc;
3675 char **argv;
3677 main ()
3679 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3681 return 0;
3683 _ACEOF
3684 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3685 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3687 CC="$ac_save_CC $ac_arg"
3688 if ac_fn_c_try_compile "$LINENO"; then :
3689 ac_cv_prog_cc_c89=$ac_arg
3691 rm -f core conftest.err conftest.$ac_objext
3692 test "x$ac_cv_prog_cc_c89" != "xno" && break
3693 done
3694 rm -f conftest.$ac_ext
3695 CC=$ac_save_CC
3698 # AC_CACHE_VAL
3699 case "x$ac_cv_prog_cc_c89" in
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3702 $as_echo "none needed" >&6; } ;;
3703 xno)
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3705 $as_echo "unsupported" >&6; } ;;
3707 CC="$CC $ac_cv_prog_cc_c89"
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3709 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3710 esac
3711 if test "x$ac_cv_prog_cc_c89" != xno; then :
3715 ac_ext=c
3716 ac_cpp='$CPP $CPPFLAGS'
3717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3720 DEPDIR="${am__leading_dot}deps"
3722 ac_config_commands="$ac_config_commands depfiles"
3725 am_make=${MAKE-make}
3726 cat > confinc << 'END'
3727 am__doit:
3728 @echo this is the am__doit target
3729 .PHONY: am__doit
3731 # If we don't find an include directive, just comment out the code.
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3733 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3734 am__include="#"
3735 am__quote=
3736 _am_result=none
3737 # First try GNU make style include.
3738 echo "include confinc" > confmf
3739 # Ignore all kinds of additional output from `make'.
3740 case `$am_make -s -f confmf 2> /dev/null` in #(
3741 *the\ am__doit\ target*)
3742 am__include=include
3743 am__quote=
3744 _am_result=GNU
3746 esac
3747 # Now try BSD make style include.
3748 if test "$am__include" = "#"; then
3749 echo '.include "confinc"' > confmf
3750 case `$am_make -s -f confmf 2> /dev/null` in #(
3751 *the\ am__doit\ target*)
3752 am__include=.include
3753 am__quote="\""
3754 _am_result=BSD
3756 esac
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3761 $as_echo "$_am_result" >&6; }
3762 rm -f confinc confmf
3764 # Check whether --enable-dependency-tracking was given.
3765 if test "${enable_dependency_tracking+set}" = set; then :
3766 enableval=$enable_dependency_tracking;
3769 if test "x$enable_dependency_tracking" != xno; then
3770 am_depcomp="$ac_aux_dir/depcomp"
3771 AMDEPBACKSLASH='\'
3773 if test "x$enable_dependency_tracking" != xno; then
3774 AMDEP_TRUE=
3775 AMDEP_FALSE='#'
3776 else
3777 AMDEP_TRUE='#'
3778 AMDEP_FALSE=
3783 depcc="$CC" am_compiler_list=
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3786 $as_echo_n "checking dependency style of $depcc... " >&6; }
3787 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3788 $as_echo_n "(cached) " >&6
3789 else
3790 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3791 # We make a subdir and do the tests there. Otherwise we can end up
3792 # making bogus files that we don't know about and never remove. For
3793 # instance it was reported that on HP-UX the gcc test will end up
3794 # making a dummy file named `D' -- because `-MD' means `put the output
3795 # in D'.
3796 mkdir conftest.dir
3797 # Copy depcomp to subdir because otherwise we won't find it if we're
3798 # using a relative directory.
3799 cp "$am_depcomp" conftest.dir
3800 cd conftest.dir
3801 # We will build objects and dependencies in a subdirectory because
3802 # it helps to detect inapplicable dependency modes. For instance
3803 # both Tru64's cc and ICC support -MD to output dependencies as a
3804 # side effect of compilation, but ICC will put the dependencies in
3805 # the current directory while Tru64 will put them in the object
3806 # directory.
3807 mkdir sub
3809 am_cv_CC_dependencies_compiler_type=none
3810 if test "$am_compiler_list" = ""; then
3811 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3813 am__universal=false
3814 case " $depcc " in #(
3815 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3816 esac
3818 for depmode in $am_compiler_list; do
3819 # Setup a source with many dependencies, because some compilers
3820 # like to wrap large dependency lists on column 80 (with \), and
3821 # we should not choose a depcomp mode which is confused by this.
3823 # We need to recreate these files for each test, as the compiler may
3824 # overwrite some of them when testing with obscure command lines.
3825 # This happens at least with the AIX C compiler.
3826 : > sub/conftest.c
3827 for i in 1 2 3 4 5 6; do
3828 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3829 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3830 # Solaris 8's {/usr,}/bin/sh.
3831 touch sub/conftst$i.h
3832 done
3833 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3835 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3836 # mode. It turns out that the SunPro C++ compiler does not properly
3837 # handle `-M -o', and we need to detect this. Also, some Intel
3838 # versions had trouble with output in subdirs
3839 am__obj=sub/conftest.${OBJEXT-o}
3840 am__minus_obj="-o $am__obj"
3841 case $depmode in
3842 gcc)
3843 # This depmode causes a compiler race in universal mode.
3844 test "$am__universal" = false || continue
3846 nosideeffect)
3847 # after this tag, mechanisms are not by side-effect, so they'll
3848 # only be used when explicitly requested
3849 if test "x$enable_dependency_tracking" = xyes; then
3850 continue
3851 else
3852 break
3855 msvisualcpp | msvcmsys)
3856 # This compiler won't grok `-c -o', but also, the minuso test has
3857 # not run yet. These depmodes are late enough in the game, and
3858 # so weak that their functioning should not be impacted.
3859 am__obj=conftest.${OBJEXT-o}
3860 am__minus_obj=
3862 none) break ;;
3863 esac
3864 if depmode=$depmode \
3865 source=sub/conftest.c object=$am__obj \
3866 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3867 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3868 >/dev/null 2>conftest.err &&
3869 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3870 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3871 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3872 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3873 # icc doesn't choke on unknown options, it will just issue warnings
3874 # or remarks (even with -Werror). So we grep stderr for any message
3875 # that says an option was ignored or not supported.
3876 # When given -MP, icc 7.0 and 7.1 complain thusly:
3877 # icc: Command line warning: ignoring option '-M'; no argument required
3878 # The diagnosis changed in icc 8.0:
3879 # icc: Command line remark: option '-MP' not supported
3880 if (grep 'ignoring option' conftest.err ||
3881 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3882 am_cv_CC_dependencies_compiler_type=$depmode
3883 break
3886 done
3888 cd ..
3889 rm -rf conftest.dir
3890 else
3891 am_cv_CC_dependencies_compiler_type=none
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3896 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3897 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3900 test "x$enable_dependency_tracking" != xno \
3901 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3902 am__fastdepCC_TRUE=
3903 am__fastdepCC_FALSE='#'
3904 else
3905 am__fastdepCC_TRUE='#'
3906 am__fastdepCC_FALSE=
3910 ac_ext=cpp
3911 ac_cpp='$CXXCPP $CPPFLAGS'
3912 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3915 if test -z "$CXX"; then
3916 if test -n "$CCC"; then
3917 CXX=$CCC
3918 else
3919 if test -n "$ac_tool_prefix"; then
3920 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3922 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3923 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3925 $as_echo_n "checking for $ac_word... " >&6; }
3926 if test "${ac_cv_prog_CXX+set}" = set; then :
3927 $as_echo_n "(cached) " >&6
3928 else
3929 if test -n "$CXX"; then
3930 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3931 else
3932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 for as_dir in $PATH
3935 IFS=$as_save_IFS
3936 test -z "$as_dir" && as_dir=.
3937 for ac_exec_ext in '' $ac_executable_extensions; do
3938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3939 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3941 break 2
3943 done
3944 done
3945 IFS=$as_save_IFS
3949 CXX=$ac_cv_prog_CXX
3950 if test -n "$CXX"; then
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3952 $as_echo "$CXX" >&6; }
3953 else
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3955 $as_echo "no" >&6; }
3959 test -n "$CXX" && break
3960 done
3962 if test -z "$CXX"; then
3963 ac_ct_CXX=$CXX
3964 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3966 # Extract the first word of "$ac_prog", so it can be a program name with args.
3967 set dummy $ac_prog; ac_word=$2
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3969 $as_echo_n "checking for $ac_word... " >&6; }
3970 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3971 $as_echo_n "(cached) " >&6
3972 else
3973 if test -n "$ac_ct_CXX"; then
3974 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3975 else
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3977 for as_dir in $PATH
3979 IFS=$as_save_IFS
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3983 ac_cv_prog_ac_ct_CXX="$ac_prog"
3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3985 break 2
3987 done
3988 done
3989 IFS=$as_save_IFS
3993 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3994 if test -n "$ac_ct_CXX"; then
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3996 $as_echo "$ac_ct_CXX" >&6; }
3997 else
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3999 $as_echo "no" >&6; }
4003 test -n "$ac_ct_CXX" && break
4004 done
4006 if test "x$ac_ct_CXX" = x; then
4007 CXX="g++"
4008 else
4009 case $cross_compiling:$ac_tool_warned in
4010 yes:)
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4012 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4013 ac_tool_warned=yes ;;
4014 esac
4015 CXX=$ac_ct_CXX
4021 # Provide some information about the compiler.
4022 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4023 set X $ac_compile
4024 ac_compiler=$2
4025 for ac_option in --version -v -V -qversion; do
4026 { { ac_try="$ac_compiler $ac_option >&5"
4027 case "(($ac_try" in
4028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4029 *) ac_try_echo=$ac_try;;
4030 esac
4031 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4032 $as_echo "$ac_try_echo"; } >&5
4033 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4034 ac_status=$?
4035 if test -s conftest.err; then
4036 sed '10a\
4037 ... rest of stderr output deleted ...
4038 10q' conftest.err >conftest.er1
4039 cat conftest.er1 >&5
4040 rm -f conftest.er1 conftest.err
4042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4043 test $ac_status = 0; }
4044 done
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4047 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4048 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4049 $as_echo_n "(cached) " >&6
4050 else
4051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4052 /* end confdefs.h. */
4055 main ()
4057 #ifndef __GNUC__
4058 choke me
4059 #endif
4062 return 0;
4064 _ACEOF
4065 if ac_fn_cxx_try_compile "$LINENO"; then :
4066 ac_compiler_gnu=yes
4067 else
4068 ac_compiler_gnu=no
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4075 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4076 if test $ac_compiler_gnu = yes; then
4077 GXX=yes
4078 else
4079 GXX=
4081 ac_test_CXXFLAGS=${CXXFLAGS+set}
4082 ac_save_CXXFLAGS=$CXXFLAGS
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4084 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4085 if test "${ac_cv_prog_cxx_g+set}" = set; then :
4086 $as_echo_n "(cached) " >&6
4087 else
4088 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4089 ac_cxx_werror_flag=yes
4090 ac_cv_prog_cxx_g=no
4091 CXXFLAGS="-g"
4092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4096 main ()
4100 return 0;
4102 _ACEOF
4103 if ac_fn_cxx_try_compile "$LINENO"; then :
4104 ac_cv_prog_cxx_g=yes
4105 else
4106 CXXFLAGS=""
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4111 main ()
4115 return 0;
4117 _ACEOF
4118 if ac_fn_cxx_try_compile "$LINENO"; then :
4120 else
4121 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4122 CXXFLAGS="-g"
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 main ()
4131 return 0;
4133 _ACEOF
4134 if ac_fn_cxx_try_compile "$LINENO"; then :
4135 ac_cv_prog_cxx_g=yes
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4145 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4146 if test "$ac_test_CXXFLAGS" = set; then
4147 CXXFLAGS=$ac_save_CXXFLAGS
4148 elif test $ac_cv_prog_cxx_g = yes; then
4149 if test "$GXX" = yes; then
4150 CXXFLAGS="-g -O2"
4151 else
4152 CXXFLAGS="-g"
4154 else
4155 if test "$GXX" = yes; then
4156 CXXFLAGS="-O2"
4157 else
4158 CXXFLAGS=
4161 ac_ext=c
4162 ac_cpp='$CPP $CPPFLAGS'
4163 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4167 depcc="$CXX" am_compiler_list=
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4170 $as_echo_n "checking dependency style of $depcc... " >&6; }
4171 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
4172 $as_echo_n "(cached) " >&6
4173 else
4174 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4175 # We make a subdir and do the tests there. Otherwise we can end up
4176 # making bogus files that we don't know about and never remove. For
4177 # instance it was reported that on HP-UX the gcc test will end up
4178 # making a dummy file named `D' -- because `-MD' means `put the output
4179 # in D'.
4180 mkdir conftest.dir
4181 # Copy depcomp to subdir because otherwise we won't find it if we're
4182 # using a relative directory.
4183 cp "$am_depcomp" conftest.dir
4184 cd conftest.dir
4185 # We will build objects and dependencies in a subdirectory because
4186 # it helps to detect inapplicable dependency modes. For instance
4187 # both Tru64's cc and ICC support -MD to output dependencies as a
4188 # side effect of compilation, but ICC will put the dependencies in
4189 # the current directory while Tru64 will put them in the object
4190 # directory.
4191 mkdir sub
4193 am_cv_CXX_dependencies_compiler_type=none
4194 if test "$am_compiler_list" = ""; then
4195 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4197 am__universal=false
4198 case " $depcc " in #(
4199 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4200 esac
4202 for depmode in $am_compiler_list; do
4203 # Setup a source with many dependencies, because some compilers
4204 # like to wrap large dependency lists on column 80 (with \), and
4205 # we should not choose a depcomp mode which is confused by this.
4207 # We need to recreate these files for each test, as the compiler may
4208 # overwrite some of them when testing with obscure command lines.
4209 # This happens at least with the AIX C compiler.
4210 : > sub/conftest.c
4211 for i in 1 2 3 4 5 6; do
4212 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4213 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4214 # Solaris 8's {/usr,}/bin/sh.
4215 touch sub/conftst$i.h
4216 done
4217 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4219 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4220 # mode. It turns out that the SunPro C++ compiler does not properly
4221 # handle `-M -o', and we need to detect this. Also, some Intel
4222 # versions had trouble with output in subdirs
4223 am__obj=sub/conftest.${OBJEXT-o}
4224 am__minus_obj="-o $am__obj"
4225 case $depmode in
4226 gcc)
4227 # This depmode causes a compiler race in universal mode.
4228 test "$am__universal" = false || continue
4230 nosideeffect)
4231 # after this tag, mechanisms are not by side-effect, so they'll
4232 # only be used when explicitly requested
4233 if test "x$enable_dependency_tracking" = xyes; then
4234 continue
4235 else
4236 break
4239 msvisualcpp | msvcmsys)
4240 # This compiler won't grok `-c -o', but also, the minuso test has
4241 # not run yet. These depmodes are late enough in the game, and
4242 # so weak that their functioning should not be impacted.
4243 am__obj=conftest.${OBJEXT-o}
4244 am__minus_obj=
4246 none) break ;;
4247 esac
4248 if depmode=$depmode \
4249 source=sub/conftest.c object=$am__obj \
4250 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4251 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4252 >/dev/null 2>conftest.err &&
4253 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4254 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4255 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4256 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4257 # icc doesn't choke on unknown options, it will just issue warnings
4258 # or remarks (even with -Werror). So we grep stderr for any message
4259 # that says an option was ignored or not supported.
4260 # When given -MP, icc 7.0 and 7.1 complain thusly:
4261 # icc: Command line warning: ignoring option '-M'; no argument required
4262 # The diagnosis changed in icc 8.0:
4263 # icc: Command line remark: option '-MP' not supported
4264 if (grep 'ignoring option' conftest.err ||
4265 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4266 am_cv_CXX_dependencies_compiler_type=$depmode
4267 break
4270 done
4272 cd ..
4273 rm -rf conftest.dir
4274 else
4275 am_cv_CXX_dependencies_compiler_type=none
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4280 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4281 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4284 test "x$enable_dependency_tracking" != xno \
4285 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4286 am__fastdepCXX_TRUE=
4287 am__fastdepCXX_FALSE='#'
4288 else
4289 am__fastdepCXX_TRUE='#'
4290 am__fastdepCXX_FALSE=
4294 ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec"
4296 # Default to --enable-multilib
4297 # Check whether --enable-multilib was given.
4298 if test "${enable_multilib+set}" = set; then :
4299 enableval=$enable_multilib; case "$enableval" in
4300 yes) multilib=yes ;;
4301 no) multilib=no ;;
4302 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
4303 esac
4304 else
4305 multilib=yes
4309 # We may get other options which we leave undocumented:
4310 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4311 # See config-ml.in if you want the gory details.
4313 if test "$srcdir" = "."; then
4314 if test "$with_target_subdir" != "."; then
4315 multi_basedir="$srcdir/$with_multisrctop../.."
4316 else
4317 multi_basedir="$srcdir/$with_multisrctop.."
4319 else
4320 multi_basedir="$srcdir/.."
4324 # Even if the default multilib is not a cross compilation,
4325 # it may be that some of the other multilibs are.
4326 if test $cross_compiling = no && test $multilib = yes \
4327 && test "x${with_multisubdir}" != x ; then
4328 cross_compiling=maybe
4331 ac_config_commands="$ac_config_commands default-1"
4335 subdirs="$subdirs plugin"
4338 ac_ext=c
4339 ac_cpp='$CPP $CPPFLAGS'
4340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4344 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4345 # On Suns, sometimes $CPP names a directory.
4346 if test -n "$CPP" && test -d "$CPP"; then
4347 CPP=
4349 if test -z "$CPP"; then
4350 if test "${ac_cv_prog_CPP+set}" = set; then :
4351 $as_echo_n "(cached) " >&6
4352 else
4353 # Double quotes because CPP needs to be expanded
4354 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4356 ac_preproc_ok=false
4357 for ac_c_preproc_warn_flag in '' yes
4359 # Use a header file that comes with gcc, so configuring glibc
4360 # with a fresh cross-compiler works.
4361 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4362 # <limits.h> exists even on freestanding compilers.
4363 # On the NeXT, cc -E runs the code through the compiler's parser,
4364 # not just through cpp. "Syntax error" is here to catch this case.
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 #ifdef __STDC__
4368 # include <limits.h>
4369 #else
4370 # include <assert.h>
4371 #endif
4372 Syntax error
4373 _ACEOF
4374 if ac_fn_c_try_cpp "$LINENO"; then :
4376 else
4377 # Broken: fails on valid input.
4378 continue
4380 rm -f conftest.err conftest.$ac_ext
4382 # OK, works on sane cases. Now check whether nonexistent headers
4383 # can be detected and how.
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4386 #include <ac_nonexistent.h>
4387 _ACEOF
4388 if ac_fn_c_try_cpp "$LINENO"; then :
4389 # Broken: success on invalid input.
4390 continue
4391 else
4392 # Passes both tests.
4393 ac_preproc_ok=:
4394 break
4396 rm -f conftest.err conftest.$ac_ext
4398 done
4399 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4400 rm -f conftest.err conftest.$ac_ext
4401 if $ac_preproc_ok; then :
4402 break
4405 done
4406 ac_cv_prog_CPP=$CPP
4409 CPP=$ac_cv_prog_CPP
4410 else
4411 ac_cv_prog_CPP=$CPP
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4414 $as_echo "$CPP" >&6; }
4415 ac_preproc_ok=false
4416 for ac_c_preproc_warn_flag in '' yes
4418 # Use a header file that comes with gcc, so configuring glibc
4419 # with a fresh cross-compiler works.
4420 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4421 # <limits.h> exists even on freestanding compilers.
4422 # On the NeXT, cc -E runs the code through the compiler's parser,
4423 # not just through cpp. "Syntax error" is here to catch this case.
4424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* end confdefs.h. */
4426 #ifdef __STDC__
4427 # include <limits.h>
4428 #else
4429 # include <assert.h>
4430 #endif
4431 Syntax error
4432 _ACEOF
4433 if ac_fn_c_try_cpp "$LINENO"; then :
4435 else
4436 # Broken: fails on valid input.
4437 continue
4439 rm -f conftest.err conftest.$ac_ext
4441 # OK, works on sane cases. Now check whether nonexistent headers
4442 # can be detected and how.
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4445 #include <ac_nonexistent.h>
4446 _ACEOF
4447 if ac_fn_c_try_cpp "$LINENO"; then :
4448 # Broken: success on invalid input.
4449 continue
4450 else
4451 # Passes both tests.
4452 ac_preproc_ok=:
4453 break
4455 rm -f conftest.err conftest.$ac_ext
4457 done
4458 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4459 rm -f conftest.err conftest.$ac_ext
4460 if $ac_preproc_ok; then :
4462 else
4463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4465 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4466 See \`config.log' for more details." "$LINENO" 5; }
4469 ac_ext=c
4470 ac_cpp='$CPP $CPPFLAGS'
4471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4477 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4478 if test "${ac_cv_path_GREP+set}" = set; then :
4479 $as_echo_n "(cached) " >&6
4480 else
4481 if test -z "$GREP"; then
4482 ac_path_GREP_found=false
4483 # Loop through the user's path and test for each of PROGNAME-LIST
4484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4485 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4487 IFS=$as_save_IFS
4488 test -z "$as_dir" && as_dir=.
4489 for ac_prog in grep ggrep; do
4490 for ac_exec_ext in '' $ac_executable_extensions; do
4491 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4492 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4493 # Check for GNU ac_path_GREP and select it if it is found.
4494 # Check for GNU $ac_path_GREP
4495 case `"$ac_path_GREP" --version 2>&1` in
4496 *GNU*)
4497 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4499 ac_count=0
4500 $as_echo_n 0123456789 >"conftest.in"
4501 while :
4503 cat "conftest.in" "conftest.in" >"conftest.tmp"
4504 mv "conftest.tmp" "conftest.in"
4505 cp "conftest.in" "conftest.nl"
4506 $as_echo 'GREP' >> "conftest.nl"
4507 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4508 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4509 as_fn_arith $ac_count + 1 && ac_count=$as_val
4510 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4511 # Best one so far, save it but keep looking for a better one
4512 ac_cv_path_GREP="$ac_path_GREP"
4513 ac_path_GREP_max=$ac_count
4515 # 10*(2^10) chars as input seems more than enough
4516 test $ac_count -gt 10 && break
4517 done
4518 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4519 esac
4521 $ac_path_GREP_found && break 3
4522 done
4523 done
4524 done
4525 IFS=$as_save_IFS
4526 if test -z "$ac_cv_path_GREP"; then
4527 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4529 else
4530 ac_cv_path_GREP=$GREP
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4535 $as_echo "$ac_cv_path_GREP" >&6; }
4536 GREP="$ac_cv_path_GREP"
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4540 $as_echo_n "checking for egrep... " >&6; }
4541 if test "${ac_cv_path_EGREP+set}" = set; then :
4542 $as_echo_n "(cached) " >&6
4543 else
4544 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4545 then ac_cv_path_EGREP="$GREP -E"
4546 else
4547 if test -z "$EGREP"; then
4548 ac_path_EGREP_found=false
4549 # Loop through the user's path and test for each of PROGNAME-LIST
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_prog in egrep; do
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4558 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4559 # Check for GNU ac_path_EGREP and select it if it is found.
4560 # Check for GNU $ac_path_EGREP
4561 case `"$ac_path_EGREP" --version 2>&1` in
4562 *GNU*)
4563 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4565 ac_count=0
4566 $as_echo_n 0123456789 >"conftest.in"
4567 while :
4569 cat "conftest.in" "conftest.in" >"conftest.tmp"
4570 mv "conftest.tmp" "conftest.in"
4571 cp "conftest.in" "conftest.nl"
4572 $as_echo 'EGREP' >> "conftest.nl"
4573 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4575 as_fn_arith $ac_count + 1 && ac_count=$as_val
4576 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4577 # Best one so far, save it but keep looking for a better one
4578 ac_cv_path_EGREP="$ac_path_EGREP"
4579 ac_path_EGREP_max=$ac_count
4581 # 10*(2^10) chars as input seems more than enough
4582 test $ac_count -gt 10 && break
4583 done
4584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585 esac
4587 $ac_path_EGREP_found && break 3
4588 done
4589 done
4590 done
4591 IFS=$as_save_IFS
4592 if test -z "$ac_cv_path_EGREP"; then
4593 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4595 else
4596 ac_cv_path_EGREP=$EGREP
4601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4602 $as_echo "$ac_cv_path_EGREP" >&6; }
4603 EGREP="$ac_cv_path_EGREP"
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4607 $as_echo_n "checking for ANSI C header files... " >&6; }
4608 if test "${ac_cv_header_stdc+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612 /* end confdefs.h. */
4613 #include <stdlib.h>
4614 #include <stdarg.h>
4615 #include <string.h>
4616 #include <float.h>
4619 main ()
4623 return 0;
4625 _ACEOF
4626 if ac_fn_c_try_compile "$LINENO"; then :
4627 ac_cv_header_stdc=yes
4628 else
4629 ac_cv_header_stdc=no
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 if test $ac_cv_header_stdc = yes; then
4634 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636 /* end confdefs.h. */
4637 #include <string.h>
4639 _ACEOF
4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4641 $EGREP "memchr" >/dev/null 2>&1; then :
4643 else
4644 ac_cv_header_stdc=no
4646 rm -f conftest*
4650 if test $ac_cv_header_stdc = yes; then
4651 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654 #include <stdlib.h>
4656 _ACEOF
4657 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4658 $EGREP "free" >/dev/null 2>&1; then :
4660 else
4661 ac_cv_header_stdc=no
4663 rm -f conftest*
4667 if test $ac_cv_header_stdc = yes; then
4668 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4669 if test "$cross_compiling" = yes; then :
4671 else
4672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4673 /* end confdefs.h. */
4674 #include <ctype.h>
4675 #include <stdlib.h>
4676 #if ((' ' & 0x0FF) == 0x020)
4677 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4678 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4679 #else
4680 # define ISLOWER(c) \
4681 (('a' <= (c) && (c) <= 'i') \
4682 || ('j' <= (c) && (c) <= 'r') \
4683 || ('s' <= (c) && (c) <= 'z'))
4684 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4685 #endif
4687 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4689 main ()
4691 int i;
4692 for (i = 0; i < 256; i++)
4693 if (XOR (islower (i), ISLOWER (i))
4694 || toupper (i) != TOUPPER (i))
4695 return 2;
4696 return 0;
4698 _ACEOF
4699 if ac_fn_c_try_run "$LINENO"; then :
4701 else
4702 ac_cv_header_stdc=no
4704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4705 conftest.$ac_objext conftest.beam conftest.$ac_ext
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4711 $as_echo "$ac_cv_header_stdc" >&6; }
4712 if test $ac_cv_header_stdc = yes; then
4714 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4718 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4719 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4720 inttypes.h stdint.h unistd.h
4721 do :
4722 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4723 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4725 eval as_val=\$$as_ac_Header
4726 if test "x$as_val" = x""yes; then :
4727 cat >>confdefs.h <<_ACEOF
4728 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4729 _ACEOF
4733 done
4736 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
4737 # for constant arguments. Useless!
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
4739 $as_echo_n "checking for working alloca.h... " >&6; }
4740 if test "${ac_cv_working_alloca_h+set}" = set; then :
4741 $as_echo_n "(cached) " >&6
4742 else
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4745 #include <alloca.h>
4747 main ()
4749 char *p = (char *) alloca (2 * sizeof (int));
4750 if (p) return 0;
4752 return 0;
4754 _ACEOF
4755 if ac_fn_c_try_link "$LINENO"; then :
4756 ac_cv_working_alloca_h=yes
4757 else
4758 ac_cv_working_alloca_h=no
4760 rm -f core conftest.err conftest.$ac_objext \
4761 conftest$ac_exeext conftest.$ac_ext
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
4764 $as_echo "$ac_cv_working_alloca_h" >&6; }
4765 if test $ac_cv_working_alloca_h = yes; then
4767 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
4772 $as_echo_n "checking for alloca... " >&6; }
4773 if test "${ac_cv_func_alloca_works+set}" = set; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4778 #ifdef __GNUC__
4779 # define alloca __builtin_alloca
4780 #else
4781 # ifdef _MSC_VER
4782 # include <malloc.h>
4783 # define alloca _alloca
4784 # else
4785 # ifdef HAVE_ALLOCA_H
4786 # include <alloca.h>
4787 # else
4788 # ifdef _AIX
4789 #pragma alloca
4790 # else
4791 # ifndef alloca /* predefined by HP cc +Olibcalls */
4792 char *alloca ();
4793 # endif
4794 # endif
4795 # endif
4796 # endif
4797 #endif
4800 main ()
4802 char *p = (char *) alloca (1);
4803 if (p) return 0;
4805 return 0;
4807 _ACEOF
4808 if ac_fn_c_try_link "$LINENO"; then :
4809 ac_cv_func_alloca_works=yes
4810 else
4811 ac_cv_func_alloca_works=no
4813 rm -f core conftest.err conftest.$ac_objext \
4814 conftest$ac_exeext conftest.$ac_ext
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
4817 $as_echo "$ac_cv_func_alloca_works" >&6; }
4819 if test $ac_cv_func_alloca_works = yes; then
4821 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
4823 else
4824 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
4825 # that cause trouble. Some versions do not even contain alloca or
4826 # contain a buggy version. If you still want to use their alloca,
4827 # use ar to extract alloca.o from them instead of compiling alloca.c.
4829 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
4831 $as_echo "#define C_ALLOCA 1" >>confdefs.h
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
4835 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
4836 if test "${ac_cv_os_cray+set}" = set; then :
4837 $as_echo_n "(cached) " >&6
4838 else
4839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4840 /* end confdefs.h. */
4841 #if defined CRAY && ! defined CRAY2
4842 webecray
4843 #else
4844 wenotbecray
4845 #endif
4847 _ACEOF
4848 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4849 $EGREP "webecray" >/dev/null 2>&1; then :
4850 ac_cv_os_cray=yes
4851 else
4852 ac_cv_os_cray=no
4854 rm -f conftest*
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
4858 $as_echo "$ac_cv_os_cray" >&6; }
4859 if test $ac_cv_os_cray = yes; then
4860 for ac_func in _getb67 GETB67 getb67; do
4861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4862 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4863 eval as_val=\$$as_ac_var
4864 if test "x$as_val" = x""yes; then :
4866 cat >>confdefs.h <<_ACEOF
4867 #define CRAY_STACKSEG_END $ac_func
4868 _ACEOF
4870 break
4873 done
4876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
4877 $as_echo_n "checking stack direction for C alloca... " >&6; }
4878 if test "${ac_cv_c_stack_direction+set}" = set; then :
4879 $as_echo_n "(cached) " >&6
4880 else
4881 if test "$cross_compiling" = yes; then :
4882 ac_cv_c_stack_direction=0
4883 else
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 $ac_includes_default
4888 find_stack_direction ()
4890 static char *addr = 0;
4891 auto char dummy;
4892 if (addr == 0)
4894 addr = &dummy;
4895 return find_stack_direction ();
4897 else
4898 return (&dummy > addr) ? 1 : -1;
4902 main ()
4904 return find_stack_direction () < 0;
4906 _ACEOF
4907 if ac_fn_c_try_run "$LINENO"; then :
4908 ac_cv_c_stack_direction=1
4909 else
4910 ac_cv_c_stack_direction=-1
4912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4913 conftest.$ac_objext conftest.beam conftest.$ac_ext
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
4918 $as_echo "$ac_cv_c_stack_direction" >&6; }
4919 cat >>confdefs.h <<_ACEOF
4920 #define STACK_DIRECTION $ac_cv_c_stack_direction
4921 _ACEOF
4926 for ac_header in mm_malloc.h
4927 do :
4928 ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default"
4929 if test "x$ac_cv_header_mm_malloc_h" = x""yes; then :
4930 cat >>confdefs.h <<_ACEOF
4931 #define HAVE_MM_MALLOC_H 1
4932 _ACEOF
4934 else
4935 as_fn_error "\"Couldn't find mm_malloc.h\"" "$LINENO" 5
4938 done
4940 for ac_func in __secure_getenv secure_getenv
4941 do :
4942 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4943 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4944 eval as_val=\$$as_ac_var
4945 if test "x$as_val" = x""yes; then :
4946 cat >>confdefs.h <<_ACEOF
4947 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4948 _ACEOF
4951 done
4954 # Get target configure.
4955 . ${srcdir}/configure.tgt
4956 if test -n "$UNSUPPORTED"; then
4957 as_fn_error "Configuration ${target} is unsupported" "$LINENO" 5
4960 if test "${multilib}" = "yes"; then
4961 multilib_arg="--enable-multilib"
4962 else
4963 multilib_arg=
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4967 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4968 # Check whether --enable-version-specific-runtime-libs was given.
4969 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4970 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4971 yes) enable_version_specific_runtime_libs=yes ;;
4972 no) enable_version_specific_runtime_libs=no ;;
4973 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4974 esac
4975 else
4976 enable_version_specific_runtime_libs=no
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
4980 $as_echo "$enable_version_specific_runtime_libs" >&6; }
4982 # Make sure liboffloadmic is enabled
4983 case "$enable_liboffloadmic" in
4984 host | target)
4987 as_fn_error "Liboffloadmic is disabled" "$LINENO" 5 ;;
4988 esac
4989 if test x"$enable_liboffloadmic" = xhost; then
4990 LIBOFFLOADMIC_HOST_TRUE=
4991 LIBOFFLOADMIC_HOST_FALSE='#'
4992 else
4993 LIBOFFLOADMIC_HOST_TRUE='#'
4994 LIBOFFLOADMIC_HOST_FALSE=
4998 # Calculate toolexeclibdir.
4999 # Also toolexecdir, though it's only used in toolexeclibdir.
5000 case ${enable_version_specific_runtime_libs} in
5001 yes)
5002 # Need the gcc compiler version to know where to install libraries
5003 # and header files if --enable-version-specific-runtime-libs option
5004 # is selected.
5005 toolexecdir='$(libdir)/gcc/$(target_alias)'
5006 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5009 if test -n "$with_cross_host" &&
5010 test x"$with_cross_host" != x"no"; then
5011 # Install a library built with a cross compiler in tooldir, not libdir.
5012 toolexecdir='$(exec_prefix)/$(target_alias)'
5013 toolexeclibdir='$(toolexecdir)/lib'
5014 else
5015 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5016 toolexeclibdir='$(libdir)'
5018 multi_os_directory=`$CC -print-multi-os-directory`
5019 case $multi_os_directory in
5020 .) ;; # Avoid trailing /.
5021 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5022 esac
5024 esac
5026 enable_dlopen=yes
5030 case `pwd` in
5031 *\ * | *\ *)
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5033 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5034 esac
5038 macro_version='2.2.7a'
5039 macro_revision='1.3134'
5053 ltmain="$ac_aux_dir/ltmain.sh"
5055 # Backslashify metacharacters that are still active within
5056 # double-quoted strings.
5057 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5059 # Same as above, but do not quote variable references.
5060 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5062 # Sed substitution to delay expansion of an escaped shell variable in a
5063 # double_quote_subst'ed string.
5064 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5066 # Sed substitution to delay expansion of an escaped single quote.
5067 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5069 # Sed substitution to avoid accidental globbing in evaled expressions
5070 no_glob_subst='s/\*/\\\*/g'
5072 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5073 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5074 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5077 $as_echo_n "checking how to print strings... " >&6; }
5078 # Test print first, because it will be a builtin if present.
5079 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5080 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5081 ECHO='print -r --'
5082 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5083 ECHO='printf %s\n'
5084 else
5085 # Use this function as a fallback that always works.
5086 func_fallback_echo ()
5088 eval 'cat <<_LTECHO_EOF
5090 _LTECHO_EOF'
5092 ECHO='func_fallback_echo'
5095 # func_echo_all arg...
5096 # Invoke $ECHO with all args, space-separated.
5097 func_echo_all ()
5099 $ECHO ""
5102 case "$ECHO" in
5103 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5104 $as_echo "printf" >&6; } ;;
5105 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5106 $as_echo "print -r" >&6; } ;;
5107 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5108 $as_echo "cat" >&6; } ;;
5109 esac
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5125 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5126 if test "${ac_cv_path_SED+set}" = set; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5130 for ac_i in 1 2 3 4 5 6 7; do
5131 ac_script="$ac_script$as_nl$ac_script"
5132 done
5133 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5134 { ac_script=; unset ac_script;}
5135 if test -z "$SED"; then
5136 ac_path_SED_found=false
5137 # Loop through the user's path and test for each of PROGNAME-LIST
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_prog in sed gsed; do
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5146 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5147 # Check for GNU ac_path_SED and select it if it is found.
5148 # Check for GNU $ac_path_SED
5149 case `"$ac_path_SED" --version 2>&1` in
5150 *GNU*)
5151 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5153 ac_count=0
5154 $as_echo_n 0123456789 >"conftest.in"
5155 while :
5157 cat "conftest.in" "conftest.in" >"conftest.tmp"
5158 mv "conftest.tmp" "conftest.in"
5159 cp "conftest.in" "conftest.nl"
5160 $as_echo '' >> "conftest.nl"
5161 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5163 as_fn_arith $ac_count + 1 && ac_count=$as_val
5164 if test $ac_count -gt ${ac_path_SED_max-0}; then
5165 # Best one so far, save it but keep looking for a better one
5166 ac_cv_path_SED="$ac_path_SED"
5167 ac_path_SED_max=$ac_count
5169 # 10*(2^10) chars as input seems more than enough
5170 test $ac_count -gt 10 && break
5171 done
5172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5173 esac
5175 $ac_path_SED_found && break 3
5176 done
5177 done
5178 done
5179 IFS=$as_save_IFS
5180 if test -z "$ac_cv_path_SED"; then
5181 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5183 else
5184 ac_cv_path_SED=$SED
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5189 $as_echo "$ac_cv_path_SED" >&6; }
5190 SED="$ac_cv_path_SED"
5191 rm -f conftest.sed
5193 test -z "$SED" && SED=sed
5194 Xsed="$SED -e 1s/^X//"
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5207 $as_echo_n "checking for fgrep... " >&6; }
5208 if test "${ac_cv_path_FGREP+set}" = set; then :
5209 $as_echo_n "(cached) " >&6
5210 else
5211 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5212 then ac_cv_path_FGREP="$GREP -F"
5213 else
5214 if test -z "$FGREP"; then
5215 ac_path_FGREP_found=false
5216 # Loop through the user's path and test for each of PROGNAME-LIST
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_prog in fgrep; do
5223 for ac_exec_ext in '' $ac_executable_extensions; do
5224 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5225 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5226 # Check for GNU ac_path_FGREP and select it if it is found.
5227 # Check for GNU $ac_path_FGREP
5228 case `"$ac_path_FGREP" --version 2>&1` in
5229 *GNU*)
5230 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5232 ac_count=0
5233 $as_echo_n 0123456789 >"conftest.in"
5234 while :
5236 cat "conftest.in" "conftest.in" >"conftest.tmp"
5237 mv "conftest.tmp" "conftest.in"
5238 cp "conftest.in" "conftest.nl"
5239 $as_echo 'FGREP' >> "conftest.nl"
5240 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5241 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5242 as_fn_arith $ac_count + 1 && ac_count=$as_val
5243 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5244 # Best one so far, save it but keep looking for a better one
5245 ac_cv_path_FGREP="$ac_path_FGREP"
5246 ac_path_FGREP_max=$ac_count
5248 # 10*(2^10) chars as input seems more than enough
5249 test $ac_count -gt 10 && break
5250 done
5251 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5252 esac
5254 $ac_path_FGREP_found && break 3
5255 done
5256 done
5257 done
5258 IFS=$as_save_IFS
5259 if test -z "$ac_cv_path_FGREP"; then
5260 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5262 else
5263 ac_cv_path_FGREP=$FGREP
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5269 $as_echo "$ac_cv_path_FGREP" >&6; }
5270 FGREP="$ac_cv_path_FGREP"
5273 test -z "$GREP" && GREP=grep
5293 # Check whether --with-gnu-ld was given.
5294 if test "${with_gnu_ld+set}" = set; then :
5295 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5296 else
5297 with_gnu_ld=no
5300 ac_prog=ld
5301 if test "$GCC" = yes; then
5302 # Check if gcc -print-prog-name=ld gives a path.
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5304 $as_echo_n "checking for ld used by $CC... " >&6; }
5305 case $host in
5306 *-*-mingw*)
5307 # gcc leaves a trailing carriage return which upsets mingw
5308 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5310 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5311 esac
5312 case $ac_prog in
5313 # Accept absolute paths.
5314 [\\/]* | ?:[\\/]*)
5315 re_direlt='/[^/][^/]*/\.\./'
5316 # Canonicalize the pathname of ld
5317 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5318 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5319 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5320 done
5321 test -z "$LD" && LD="$ac_prog"
5324 # If it fails, then pretend we aren't using GCC.
5325 ac_prog=ld
5328 # If it is relative, then search for the first ld in PATH.
5329 with_gnu_ld=unknown
5331 esac
5332 elif test "$with_gnu_ld" = yes; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5334 $as_echo_n "checking for GNU ld... " >&6; }
5335 else
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5337 $as_echo_n "checking for non-GNU ld... " >&6; }
5339 if test "${lt_cv_path_LD+set}" = set; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -z "$LD"; then
5343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5344 for ac_dir in $PATH; do
5345 IFS="$lt_save_ifs"
5346 test -z "$ac_dir" && ac_dir=.
5347 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5348 lt_cv_path_LD="$ac_dir/$ac_prog"
5349 # Check to see if the program is GNU ld. I'd rather use --version,
5350 # but apparently some variants of GNU ld only accept -v.
5351 # Break only if it was the GNU/non-GNU ld that we prefer.
5352 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5353 *GNU* | *'with BFD'*)
5354 test "$with_gnu_ld" != no && break
5357 test "$with_gnu_ld" != yes && break
5359 esac
5361 done
5362 IFS="$lt_save_ifs"
5363 else
5364 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5368 LD="$lt_cv_path_LD"
5369 if test -n "$LD"; then
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5371 $as_echo "$LD" >&6; }
5372 else
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5374 $as_echo "no" >&6; }
5376 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5378 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5379 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5383 case `$LD -v 2>&1 </dev/null` in
5384 *GNU* | *'with BFD'*)
5385 lt_cv_prog_gnu_ld=yes
5388 lt_cv_prog_gnu_ld=no
5390 esac
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5393 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5394 with_gnu_ld=$lt_cv_prog_gnu_ld
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5405 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5406 if test "${lt_cv_path_NM+set}" = set; then :
5407 $as_echo_n "(cached) " >&6
5408 else
5409 if test -n "$NM"; then
5410 # Let the user override the test.
5411 lt_cv_path_NM="$NM"
5412 else
5413 lt_nm_to_check="${ac_tool_prefix}nm"
5414 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5415 lt_nm_to_check="$lt_nm_to_check nm"
5417 for lt_tmp_nm in $lt_nm_to_check; do
5418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5419 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5420 IFS="$lt_save_ifs"
5421 test -z "$ac_dir" && ac_dir=.
5422 tmp_nm="$ac_dir/$lt_tmp_nm"
5423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5424 # Check to see if the nm accepts a BSD-compat flag.
5425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5426 # nm: unknown option "B" ignored
5427 # Tru64's nm complains that /dev/null is an invalid object file
5428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5429 */dev/null* | *'Invalid file or object type'*)
5430 lt_cv_path_NM="$tmp_nm -B"
5431 break
5434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5435 */dev/null*)
5436 lt_cv_path_NM="$tmp_nm -p"
5437 break
5440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5441 continue # so that we can try to find one that supports BSD flags
5443 esac
5445 esac
5447 done
5448 IFS="$lt_save_ifs"
5449 done
5450 : ${lt_cv_path_NM=no}
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5454 $as_echo "$lt_cv_path_NM" >&6; }
5455 if test "$lt_cv_path_NM" != "no"; then
5456 NM="$lt_cv_path_NM"
5457 else
5458 # Didn't find any BSD compatible name lister, look for dumpbin.
5459 if test -n "$DUMPBIN"; then :
5460 # Let the user override the test.
5461 else
5462 if test -n "$ac_tool_prefix"; then
5463 for ac_prog in dumpbin "link -dump"
5465 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5466 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5468 $as_echo_n "checking for $ac_word... " >&6; }
5469 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5470 $as_echo_n "(cached) " >&6
5471 else
5472 if test -n "$DUMPBIN"; then
5473 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5474 else
5475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5476 for as_dir in $PATH
5478 IFS=$as_save_IFS
5479 test -z "$as_dir" && as_dir=.
5480 for ac_exec_ext in '' $ac_executable_extensions; do
5481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5482 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 break 2
5486 done
5487 done
5488 IFS=$as_save_IFS
5492 DUMPBIN=$ac_cv_prog_DUMPBIN
5493 if test -n "$DUMPBIN"; then
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5495 $as_echo "$DUMPBIN" >&6; }
5496 else
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5498 $as_echo "no" >&6; }
5502 test -n "$DUMPBIN" && break
5503 done
5505 if test -z "$DUMPBIN"; then
5506 ac_ct_DUMPBIN=$DUMPBIN
5507 for ac_prog in dumpbin "link -dump"
5509 # Extract the first word of "$ac_prog", so it can be a program name with args.
5510 set dummy $ac_prog; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 if test -n "$ac_ct_DUMPBIN"; then
5517 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5518 else
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 for as_dir in $PATH
5522 IFS=$as_save_IFS
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5526 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 break 2
5530 done
5531 done
5532 IFS=$as_save_IFS
5536 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5537 if test -n "$ac_ct_DUMPBIN"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5539 $as_echo "$ac_ct_DUMPBIN" >&6; }
5540 else
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5546 test -n "$ac_ct_DUMPBIN" && break
5547 done
5549 if test "x$ac_ct_DUMPBIN" = x; then
5550 DUMPBIN=":"
5551 else
5552 case $cross_compiling:$ac_tool_warned in
5553 yes:)
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5555 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5556 ac_tool_warned=yes ;;
5557 esac
5558 DUMPBIN=$ac_ct_DUMPBIN
5562 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5563 *COFF*)
5564 DUMPBIN="$DUMPBIN -symbols"
5567 DUMPBIN=:
5569 esac
5572 if test "$DUMPBIN" != ":"; then
5573 NM="$DUMPBIN"
5576 test -z "$NM" && NM=nm
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5584 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5585 if test "${lt_cv_nm_interface+set}" = set; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 lt_cv_nm_interface="BSD nm"
5589 echo "int some_variable = 0;" > conftest.$ac_ext
5590 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5591 (eval "$ac_compile" 2>conftest.err)
5592 cat conftest.err >&5
5593 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5594 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5595 cat conftest.err >&5
5596 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5597 cat conftest.out >&5
5598 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5599 lt_cv_nm_interface="MS dumpbin"
5601 rm -f conftest*
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5604 $as_echo "$lt_cv_nm_interface" >&6; }
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5607 $as_echo_n "checking whether ln -s works... " >&6; }
5608 LN_S=$as_ln_s
5609 if test "$LN_S" = "ln -s"; then
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5611 $as_echo "yes" >&6; }
5612 else
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5614 $as_echo "no, using $LN_S" >&6; }
5617 # find the maximum length of command line arguments
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5619 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5620 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5621 $as_echo_n "(cached) " >&6
5622 else
5624 teststring="ABCD"
5626 case $build_os in
5627 msdosdjgpp*)
5628 # On DJGPP, this test can blow up pretty badly due to problems in libc
5629 # (any single argument exceeding 2000 bytes causes a buffer overrun
5630 # during glob expansion). Even if it were fixed, the result of this
5631 # check would be larger than it should be.
5632 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5635 gnu*)
5636 # Under GNU Hurd, this test is not required because there is
5637 # no limit to the length of command line arguments.
5638 # Libtool will interpret -1 as no limit whatsoever
5639 lt_cv_sys_max_cmd_len=-1;
5642 cygwin* | mingw* | cegcc*)
5643 # On Win9x/ME, this test blows up -- it succeeds, but takes
5644 # about 5 minutes as the teststring grows exponentially.
5645 # Worse, since 9x/ME are not pre-emptively multitasking,
5646 # you end up with a "frozen" computer, even though with patience
5647 # the test eventually succeeds (with a max line length of 256k).
5648 # Instead, let's just punt: use the minimum linelength reported by
5649 # all of the supported platforms: 8192 (on NT/2K/XP).
5650 lt_cv_sys_max_cmd_len=8192;
5653 mint*)
5654 # On MiNT this can take a long time and run out of memory.
5655 lt_cv_sys_max_cmd_len=8192;
5658 amigaos*)
5659 # On AmigaOS with pdksh, this test takes hours, literally.
5660 # So we just punt and use a minimum line length of 8192.
5661 lt_cv_sys_max_cmd_len=8192;
5664 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5665 # This has been around since 386BSD, at least. Likely further.
5666 if test -x /sbin/sysctl; then
5667 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5668 elif test -x /usr/sbin/sysctl; then
5669 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5670 else
5671 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5673 # And add a safety zone
5674 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5678 interix*)
5679 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5680 lt_cv_sys_max_cmd_len=196608
5683 osf*)
5684 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5685 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5686 # nice to cause kernel panics so lets avoid the loop below.
5687 # First set a reasonable default.
5688 lt_cv_sys_max_cmd_len=16384
5690 if test -x /sbin/sysconfig; then
5691 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5692 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5693 esac
5696 sco3.2v5*)
5697 lt_cv_sys_max_cmd_len=102400
5699 sysv5* | sco5v6* | sysv4.2uw2*)
5700 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5701 if test -n "$kargmax"; then
5702 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5703 else
5704 lt_cv_sys_max_cmd_len=32768
5708 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5709 if test -n "$lt_cv_sys_max_cmd_len"; then
5710 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5711 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5712 else
5713 # Make teststring a little bigger before we do anything with it.
5714 # a 1K string should be a reasonable start.
5715 for i in 1 2 3 4 5 6 7 8 ; do
5716 teststring=$teststring$teststring
5717 done
5718 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5719 # If test is not a shell built-in, we'll probably end up computing a
5720 # maximum length that is only half of the actual maximum length, but
5721 # we can't tell.
5722 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5723 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5724 test $i != 17 # 1/2 MB should be enough
5726 i=`expr $i + 1`
5727 teststring=$teststring$teststring
5728 done
5729 # Only check the string length outside the loop.
5730 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5731 teststring=
5732 # Add a significant safety factor because C++ compilers can tack on
5733 # massive amounts of additional arguments before passing them to the
5734 # linker. It appears as though 1/2 is a usable value.
5735 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5738 esac
5742 if test -n $lt_cv_sys_max_cmd_len ; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5744 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5745 else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5747 $as_echo "none" >&6; }
5749 max_cmd_len=$lt_cv_sys_max_cmd_len
5756 : ${CP="cp -f"}
5757 : ${MV="mv -f"}
5758 : ${RM="rm -f"}
5760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5761 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5762 # Try some XSI features
5763 xsi_shell=no
5764 ( _lt_dummy="a/b/c"
5765 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5766 = c,a/b,, \
5767 && eval 'test $(( 1 + 1 )) -eq 2 \
5768 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5769 && xsi_shell=yes
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5771 $as_echo "$xsi_shell" >&6; }
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5775 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5776 lt_shell_append=no
5777 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5778 >/dev/null 2>&1 \
5779 && lt_shell_append=yes
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5781 $as_echo "$lt_shell_append" >&6; }
5784 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5785 lt_unset=unset
5786 else
5787 lt_unset=false
5794 # test EBCDIC or ASCII
5795 case `echo X|tr X '\101'` in
5796 A) # ASCII based system
5797 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5798 lt_SP2NL='tr \040 \012'
5799 lt_NL2SP='tr \015\012 \040\040'
5801 *) # EBCDIC based system
5802 lt_SP2NL='tr \100 \n'
5803 lt_NL2SP='tr \r\n \100\100'
5805 esac
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5816 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5817 if test "${lt_cv_ld_reload_flag+set}" = set; then :
5818 $as_echo_n "(cached) " >&6
5819 else
5820 lt_cv_ld_reload_flag='-r'
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5823 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5824 reload_flag=$lt_cv_ld_reload_flag
5825 case $reload_flag in
5826 "" | " "*) ;;
5827 *) reload_flag=" $reload_flag" ;;
5828 esac
5829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5830 case $host_os in
5831 darwin*)
5832 if test "$GCC" = yes; then
5833 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5834 else
5835 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5838 esac
5848 if test -n "$ac_tool_prefix"; then
5849 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5850 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5852 $as_echo_n "checking for $ac_word... " >&6; }
5853 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
5854 $as_echo_n "(cached) " >&6
5855 else
5856 if test -n "$OBJDUMP"; then
5857 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5858 else
5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5860 for as_dir in $PATH
5862 IFS=$as_save_IFS
5863 test -z "$as_dir" && as_dir=.
5864 for ac_exec_ext in '' $ac_executable_extensions; do
5865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5866 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 break 2
5870 done
5871 done
5872 IFS=$as_save_IFS
5876 OBJDUMP=$ac_cv_prog_OBJDUMP
5877 if test -n "$OBJDUMP"; then
5878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5879 $as_echo "$OBJDUMP" >&6; }
5880 else
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5882 $as_echo "no" >&6; }
5887 if test -z "$ac_cv_prog_OBJDUMP"; then
5888 ac_ct_OBJDUMP=$OBJDUMP
5889 # Extract the first word of "objdump", so it can be a program name with args.
5890 set dummy objdump; ac_word=$2
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5892 $as_echo_n "checking for $ac_word... " >&6; }
5893 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
5894 $as_echo_n "(cached) " >&6
5895 else
5896 if test -n "$ac_ct_OBJDUMP"; then
5897 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5902 IFS=$as_save_IFS
5903 test -z "$as_dir" && as_dir=.
5904 for ac_exec_ext in '' $ac_executable_extensions; do
5905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5906 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5908 break 2
5910 done
5911 done
5912 IFS=$as_save_IFS
5916 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5917 if test -n "$ac_ct_OBJDUMP"; then
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5919 $as_echo "$ac_ct_OBJDUMP" >&6; }
5920 else
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5922 $as_echo "no" >&6; }
5925 if test "x$ac_ct_OBJDUMP" = x; then
5926 OBJDUMP="false"
5927 else
5928 case $cross_compiling:$ac_tool_warned in
5929 yes:)
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5931 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5932 ac_tool_warned=yes ;;
5933 esac
5934 OBJDUMP=$ac_ct_OBJDUMP
5936 else
5937 OBJDUMP="$ac_cv_prog_OBJDUMP"
5940 test -z "$OBJDUMP" && OBJDUMP=objdump
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5951 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5952 if test "${lt_cv_deplibs_check_method+set}" = set; then :
5953 $as_echo_n "(cached) " >&6
5954 else
5955 lt_cv_file_magic_cmd='$MAGIC_CMD'
5956 lt_cv_file_magic_test_file=
5957 lt_cv_deplibs_check_method='unknown'
5958 # Need to set the preceding variable on all platforms that support
5959 # interlibrary dependencies.
5960 # 'none' -- dependencies not supported.
5961 # `unknown' -- same as none, but documents that we really don't know.
5962 # 'pass_all' -- all dependencies passed with no checks.
5963 # 'test_compile' -- check by making test program.
5964 # 'file_magic [[regex]]' -- check by looking for files in library path
5965 # which responds to the $file_magic_cmd with a given extended regex.
5966 # If you have `file' or equivalent on your system and you're not sure
5967 # whether `pass_all' will *always* work, you probably want this one.
5969 case $host_os in
5970 aix[4-9]*)
5971 lt_cv_deplibs_check_method=pass_all
5974 beos*)
5975 lt_cv_deplibs_check_method=pass_all
5978 bsdi[45]*)
5979 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5980 lt_cv_file_magic_cmd='/usr/bin/file -L'
5981 lt_cv_file_magic_test_file=/shlib/libc.so
5984 cygwin*)
5985 # func_win32_libid is a shell function defined in ltmain.sh
5986 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5987 lt_cv_file_magic_cmd='func_win32_libid'
5990 mingw* | pw32*)
5991 # Base MSYS/MinGW do not provide the 'file' command needed by
5992 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5993 # unless we find 'file', for example because we are cross-compiling.
5994 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5995 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5996 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5997 lt_cv_file_magic_cmd='func_win32_libid'
5998 else
5999 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6000 lt_cv_file_magic_cmd='$OBJDUMP -f'
6004 cegcc*)
6005 # use the weaker test based on 'objdump'. See mingw*.
6006 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6007 lt_cv_file_magic_cmd='$OBJDUMP -f'
6010 darwin* | rhapsody*)
6011 lt_cv_deplibs_check_method=pass_all
6014 freebsd* | dragonfly*)
6015 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6016 case $host_cpu in
6017 i*86 )
6018 # Not sure whether the presence of OpenBSD here was a mistake.
6019 # Let's accept both of them until this is cleared up.
6020 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6021 lt_cv_file_magic_cmd=/usr/bin/file
6022 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6024 esac
6025 else
6026 lt_cv_deplibs_check_method=pass_all
6030 gnu*)
6031 lt_cv_deplibs_check_method=pass_all
6034 haiku*)
6035 lt_cv_deplibs_check_method=pass_all
6038 hpux10.20* | hpux11*)
6039 lt_cv_file_magic_cmd=/usr/bin/file
6040 case $host_cpu in
6041 ia64*)
6042 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6043 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6045 hppa*64*)
6046 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]'
6047 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6050 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6051 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6053 esac
6056 interix[3-9]*)
6057 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6058 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6061 irix5* | irix6* | nonstopux*)
6062 case $LD in
6063 *-32|*"-32 ") libmagic=32-bit;;
6064 *-n32|*"-n32 ") libmagic=N32;;
6065 *-64|*"-64 ") libmagic=64-bit;;
6066 *) libmagic=never-match;;
6067 esac
6068 lt_cv_deplibs_check_method=pass_all
6071 # This must be Linux ELF.
6072 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6073 lt_cv_deplibs_check_method=pass_all
6076 netbsd*)
6077 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6078 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6079 else
6080 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6084 newos6*)
6085 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6086 lt_cv_file_magic_cmd=/usr/bin/file
6087 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6090 *nto* | *qnx*)
6091 lt_cv_deplibs_check_method=pass_all
6094 openbsd*)
6095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6096 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6097 else
6098 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6102 osf3* | osf4* | osf5*)
6103 lt_cv_deplibs_check_method=pass_all
6106 rdos*)
6107 lt_cv_deplibs_check_method=pass_all
6110 solaris*)
6111 lt_cv_deplibs_check_method=pass_all
6114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6115 lt_cv_deplibs_check_method=pass_all
6118 sysv4 | sysv4.3*)
6119 case $host_vendor in
6120 motorola)
6121 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]'
6122 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6124 ncr)
6125 lt_cv_deplibs_check_method=pass_all
6127 sequent)
6128 lt_cv_file_magic_cmd='/bin/file'
6129 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6131 sni)
6132 lt_cv_file_magic_cmd='/bin/file'
6133 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6134 lt_cv_file_magic_test_file=/lib/libc.so
6136 siemens)
6137 lt_cv_deplibs_check_method=pass_all
6140 lt_cv_deplibs_check_method=pass_all
6142 esac
6145 tpf*)
6146 lt_cv_deplibs_check_method=pass_all
6148 esac
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6152 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6153 file_magic_cmd=$lt_cv_file_magic_cmd
6154 deplibs_check_method=$lt_cv_deplibs_check_method
6155 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}ar; ac_word=$2
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6172 $as_echo_n "checking for $ac_word... " >&6; }
6173 if test "${ac_cv_prog_AR+set}" = set; then :
6174 $as_echo_n "(cached) " >&6
6175 else
6176 if test -n "$AR"; then
6177 ac_cv_prog_AR="$AR" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6186 ac_cv_prog_AR="${ac_tool_prefix}ar"
6187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6190 done
6191 done
6192 IFS=$as_save_IFS
6196 AR=$ac_cv_prog_AR
6197 if test -n "$AR"; then
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6199 $as_echo "$AR" >&6; }
6200 else
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6202 $as_echo "no" >&6; }
6207 if test -z "$ac_cv_prog_AR"; then
6208 ac_ct_AR=$AR
6209 # Extract the first word of "ar", so it can be a program name with args.
6210 set dummy ar; ac_word=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6215 else
6216 if test -n "$ac_ct_AR"; then
6217 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6222 IFS=$as_save_IFS
6223 test -z "$as_dir" && as_dir=.
6224 for ac_exec_ext in '' $ac_executable_extensions; do
6225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6226 ac_cv_prog_ac_ct_AR="ar"
6227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6228 break 2
6230 done
6231 done
6232 IFS=$as_save_IFS
6236 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6237 if test -n "$ac_ct_AR"; then
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6239 $as_echo "$ac_ct_AR" >&6; }
6240 else
6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6242 $as_echo "no" >&6; }
6245 if test "x$ac_ct_AR" = x; then
6246 AR="false"
6247 else
6248 case $cross_compiling:$ac_tool_warned in
6249 yes:)
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6252 ac_tool_warned=yes ;;
6253 esac
6254 AR=$ac_ct_AR
6256 else
6257 AR="$ac_cv_prog_AR"
6260 test -z "$AR" && AR=ar
6261 test -z "$AR_FLAGS" && AR_FLAGS=cru
6273 if test -n "$ac_tool_prefix"; then
6274 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6275 set dummy ${ac_tool_prefix}strip; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if test "${ac_cv_prog_STRIP+set}" = set; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if test -n "$STRIP"; then
6282 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6291 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6295 done
6296 done
6297 IFS=$as_save_IFS
6301 STRIP=$ac_cv_prog_STRIP
6302 if test -n "$STRIP"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6304 $as_echo "$STRIP" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6312 if test -z "$ac_cv_prog_STRIP"; then
6313 ac_ct_STRIP=$STRIP
6314 # Extract the first word of "strip", so it can be a program name with args.
6315 set dummy strip; ac_word=$2
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6317 $as_echo_n "checking for $ac_word... " >&6; }
6318 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6319 $as_echo_n "(cached) " >&6
6320 else
6321 if test -n "$ac_ct_STRIP"; then
6322 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6323 else
6324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6325 for as_dir in $PATH
6327 IFS=$as_save_IFS
6328 test -z "$as_dir" && as_dir=.
6329 for ac_exec_ext in '' $ac_executable_extensions; do
6330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6331 ac_cv_prog_ac_ct_STRIP="strip"
6332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6333 break 2
6335 done
6336 done
6337 IFS=$as_save_IFS
6341 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6342 if test -n "$ac_ct_STRIP"; then
6343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6344 $as_echo "$ac_ct_STRIP" >&6; }
6345 else
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6347 $as_echo "no" >&6; }
6350 if test "x$ac_ct_STRIP" = x; then
6351 STRIP=":"
6352 else
6353 case $cross_compiling:$ac_tool_warned in
6354 yes:)
6355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6357 ac_tool_warned=yes ;;
6358 esac
6359 STRIP=$ac_ct_STRIP
6361 else
6362 STRIP="$ac_cv_prog_STRIP"
6365 test -z "$STRIP" && STRIP=:
6372 if test -n "$ac_tool_prefix"; then
6373 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6374 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6379 else
6380 if test -n "$RANLIB"; then
6381 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6382 else
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384 for as_dir in $PATH
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6394 done
6395 done
6396 IFS=$as_save_IFS
6400 RANLIB=$ac_cv_prog_RANLIB
6401 if test -n "$RANLIB"; then
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6403 $as_echo "$RANLIB" >&6; }
6404 else
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6406 $as_echo "no" >&6; }
6411 if test -z "$ac_cv_prog_RANLIB"; then
6412 ac_ct_RANLIB=$RANLIB
6413 # Extract the first word of "ranlib", so it can be a program name with args.
6414 set dummy ranlib; ac_word=$2
6415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6416 $as_echo_n "checking for $ac_word... " >&6; }
6417 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6418 $as_echo_n "(cached) " >&6
6419 else
6420 if test -n "$ac_ct_RANLIB"; then
6421 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6422 else
6423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6424 for as_dir in $PATH
6426 IFS=$as_save_IFS
6427 test -z "$as_dir" && as_dir=.
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6430 ac_cv_prog_ac_ct_RANLIB="ranlib"
6431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 break 2
6434 done
6435 done
6436 IFS=$as_save_IFS
6440 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6441 if test -n "$ac_ct_RANLIB"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6443 $as_echo "$ac_ct_RANLIB" >&6; }
6444 else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446 $as_echo "no" >&6; }
6449 if test "x$ac_ct_RANLIB" = x; then
6450 RANLIB=":"
6451 else
6452 case $cross_compiling:$ac_tool_warned in
6453 yes:)
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456 ac_tool_warned=yes ;;
6457 esac
6458 RANLIB=$ac_ct_RANLIB
6460 else
6461 RANLIB="$ac_cv_prog_RANLIB"
6464 test -z "$RANLIB" && RANLIB=:
6471 # Determine commands to create old-style static archives.
6472 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6473 old_postinstall_cmds='chmod 644 $oldlib'
6474 old_postuninstall_cmds=
6476 if test -n "$RANLIB"; then
6477 case $host_os in
6478 openbsd*)
6479 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6482 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6484 esac
6485 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6488 case $host_os in
6489 darwin*)
6490 lock_old_archive_extraction=yes ;;
6492 lock_old_archive_extraction=no ;;
6493 esac
6533 # If no C compiler was specified, use CC.
6534 LTCC=${LTCC-"$CC"}
6536 # If no C compiler flags were specified, use CFLAGS.
6537 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6539 # Allow CC to be a program name with arguments.
6540 compiler=$CC
6543 # Check for command to grab the raw symbol name followed by C symbol from nm.
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6545 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6546 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6547 $as_echo_n "(cached) " >&6
6548 else
6550 # These are sane defaults that work on at least a few old systems.
6551 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6553 # Character class describing NM global symbol codes.
6554 symcode='[BCDEGRST]'
6556 # Regexp to match symbols that can be accessed directly from C.
6557 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6559 # Define system-specific variables.
6560 case $host_os in
6561 aix*)
6562 symcode='[BCDT]'
6564 cygwin* | mingw* | pw32* | cegcc*)
6565 symcode='[ABCDGISTW]'
6567 hpux*)
6568 if test "$host_cpu" = ia64; then
6569 symcode='[ABCDEGRST]'
6572 irix* | nonstopux*)
6573 symcode='[BCDEGRST]'
6575 osf*)
6576 symcode='[BCDEGQRST]'
6578 solaris*)
6579 symcode='[BDRT]'
6581 sco3.2v5*)
6582 symcode='[DT]'
6584 sysv4.2uw2*)
6585 symcode='[DT]'
6587 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6588 symcode='[ABDT]'
6590 sysv4)
6591 symcode='[DFNSTU]'
6593 esac
6595 # If we're using GNU nm, then use its standard symbol codes.
6596 case `$NM -V 2>&1` in
6597 *GNU* | *'with BFD'*)
6598 symcode='[ABCDGIRSTW]' ;;
6599 esac
6601 # Transform an extracted symbol line into a proper C declaration.
6602 # Some systems (esp. on ia64) link data and code symbols differently,
6603 # so use this general approach.
6604 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6606 # Transform an extracted symbol line into symbol name and symbol address
6607 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6608 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'"
6610 # Handle CRLF in mingw tool chain
6611 opt_cr=
6612 case $build_os in
6613 mingw*)
6614 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6616 esac
6618 # Try without a prefix underscore, then with it.
6619 for ac_symprfx in "" "_"; do
6621 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6622 symxfrm="\\1 $ac_symprfx\\2 \\2"
6624 # Write the raw and C identifiers.
6625 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6626 # Fake it for dumpbin and say T for any non-static function
6627 # and D for any global variable.
6628 # Also find C++ and __fastcall symbols from MSVC++,
6629 # which start with @ or ?.
6630 lt_cv_sys_global_symbol_pipe="$AWK '"\
6631 " {last_section=section; section=\$ 3};"\
6632 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6633 " \$ 0!~/External *\|/{next};"\
6634 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6635 " {if(hide[section]) next};"\
6636 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6637 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6638 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6639 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6640 " ' prfx=^$ac_symprfx"
6641 else
6642 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6645 # Check to see that the pipe works correctly.
6646 pipe_works=no
6648 rm -f conftest*
6649 cat > conftest.$ac_ext <<_LT_EOF
6650 #ifdef __cplusplus
6651 extern "C" {
6652 #endif
6653 char nm_test_var;
6654 void nm_test_func(void);
6655 void nm_test_func(void){}
6656 #ifdef __cplusplus
6658 #endif
6659 int main(){nm_test_var='a';nm_test_func();return(0);}
6660 _LT_EOF
6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6663 (eval $ac_compile) 2>&5
6664 ac_status=$?
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; }; then
6667 # Now try to grab the symbols.
6668 nlist=conftest.nm
6669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6670 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6671 ac_status=$?
6672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6673 test $ac_status = 0; } && test -s "$nlist"; then
6674 # Try sorting and uniquifying the output.
6675 if sort "$nlist" | uniq > "$nlist"T; then
6676 mv -f "$nlist"T "$nlist"
6677 else
6678 rm -f "$nlist"T
6681 # Make sure that we snagged all the symbols we need.
6682 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6683 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6684 cat <<_LT_EOF > conftest.$ac_ext
6685 #ifdef __cplusplus
6686 extern "C" {
6687 #endif
6689 _LT_EOF
6690 # Now generate the symbol file.
6691 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6693 cat <<_LT_EOF >> conftest.$ac_ext
6695 /* The mapping between symbol names and symbols. */
6696 const struct {
6697 const char *name;
6698 void *address;
6700 lt__PROGRAM__LTX_preloaded_symbols[] =
6702 { "@PROGRAM@", (void *) 0 },
6703 _LT_EOF
6704 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6705 cat <<\_LT_EOF >> conftest.$ac_ext
6706 {0, (void *) 0}
6709 /* This works around a problem in FreeBSD linker */
6710 #ifdef FREEBSD_WORKAROUND
6711 static const void *lt_preloaded_setup() {
6712 return lt__PROGRAM__LTX_preloaded_symbols;
6714 #endif
6716 #ifdef __cplusplus
6718 #endif
6719 _LT_EOF
6720 # Now try linking the two files.
6721 mv conftest.$ac_objext conftstm.$ac_objext
6722 lt_save_LIBS="$LIBS"
6723 lt_save_CFLAGS="$CFLAGS"
6724 LIBS="conftstm.$ac_objext"
6725 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6727 (eval $ac_link) 2>&5
6728 ac_status=$?
6729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6730 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6731 pipe_works=yes
6733 LIBS="$lt_save_LIBS"
6734 CFLAGS="$lt_save_CFLAGS"
6735 else
6736 echo "cannot find nm_test_func in $nlist" >&5
6738 else
6739 echo "cannot find nm_test_var in $nlist" >&5
6741 else
6742 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6744 else
6745 echo "$progname: failed program was:" >&5
6746 cat conftest.$ac_ext >&5
6748 rm -rf conftest* conftst*
6750 # Do not use the global_symbol_pipe unless it works.
6751 if test "$pipe_works" = yes; then
6752 break
6753 else
6754 lt_cv_sys_global_symbol_pipe=
6756 done
6760 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6761 lt_cv_sys_global_symbol_to_cdecl=
6763 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6765 $as_echo "failed" >&6; }
6766 else
6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6768 $as_echo "ok" >&6; }
6792 # Check whether --enable-libtool-lock was given.
6793 if test "${enable_libtool_lock+set}" = set; then :
6794 enableval=$enable_libtool_lock;
6797 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6799 # Some flags need to be propagated to the compiler or linker for good
6800 # libtool support.
6801 case $host in
6802 ia64-*-hpux*)
6803 # Find out which ABI we are using.
6804 echo 'int i;' > conftest.$ac_ext
6805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6806 (eval $ac_compile) 2>&5
6807 ac_status=$?
6808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6809 test $ac_status = 0; }; then
6810 case `/usr/bin/file conftest.$ac_objext` in
6811 *ELF-32*)
6812 HPUX_IA64_MODE="32"
6814 *ELF-64*)
6815 HPUX_IA64_MODE="64"
6817 esac
6819 rm -rf conftest*
6821 *-*-irix6*)
6822 # Find out which ABI we are using.
6823 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6825 (eval $ac_compile) 2>&5
6826 ac_status=$?
6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6828 test $ac_status = 0; }; then
6829 if test "$lt_cv_prog_gnu_ld" = yes; then
6830 case `/usr/bin/file conftest.$ac_objext` in
6831 *32-bit*)
6832 LD="${LD-ld} -melf32bsmip"
6834 *N32*)
6835 LD="${LD-ld} -melf32bmipn32"
6837 *64-bit*)
6838 LD="${LD-ld} -melf64bmip"
6840 esac
6841 else
6842 case `/usr/bin/file conftest.$ac_objext` in
6843 *32-bit*)
6844 LD="${LD-ld} -32"
6846 *N32*)
6847 LD="${LD-ld} -n32"
6849 *64-bit*)
6850 LD="${LD-ld} -64"
6852 esac
6855 rm -rf conftest*
6858 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6859 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6860 # Find out which ABI we are using.
6861 echo 'int i;' > conftest.$ac_ext
6862 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6863 (eval $ac_compile) 2>&5
6864 ac_status=$?
6865 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6866 test $ac_status = 0; }; then
6867 case `/usr/bin/file conftest.o` in
6868 *32-bit*)
6869 case $host in
6870 x86_64-*kfreebsd*-gnu)
6871 LD="${LD-ld} -m elf_i386_fbsd"
6873 x86_64-*linux*)
6874 case `/usr/bin/file conftest.o` in
6875 *x86-64*)
6876 LD="${LD-ld} -m elf32_x86_64"
6879 LD="${LD-ld} -m elf_i386"
6881 esac
6883 powerpc64le-*linux*)
6884 LD="${LD-ld} -m elf32lppclinux"
6886 powerpc64-*linux*)
6887 LD="${LD-ld} -m elf32ppclinux"
6889 s390x-*linux*)
6890 LD="${LD-ld} -m elf_s390"
6892 sparc64-*linux*)
6893 LD="${LD-ld} -m elf32_sparc"
6895 esac
6897 *64-bit*)
6898 case $host in
6899 x86_64-*kfreebsd*-gnu)
6900 LD="${LD-ld} -m elf_x86_64_fbsd"
6902 x86_64-*linux*)
6903 LD="${LD-ld} -m elf_x86_64"
6905 powerpcle-*linux*)
6906 LD="${LD-ld} -m elf64lppc"
6908 powerpc-*linux*)
6909 LD="${LD-ld} -m elf64ppc"
6911 s390*-*linux*|s390*-*tpf*)
6912 LD="${LD-ld} -m elf64_s390"
6914 sparc*-*linux*)
6915 LD="${LD-ld} -m elf64_sparc"
6917 esac
6919 esac
6921 rm -rf conftest*
6924 *-*-sco3.2v5*)
6925 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6926 SAVE_CFLAGS="$CFLAGS"
6927 CFLAGS="$CFLAGS -belf"
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6929 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6930 if test "${lt_cv_cc_needs_belf+set}" = set; then :
6931 $as_echo_n "(cached) " >&6
6932 else
6933 ac_ext=c
6934 ac_cpp='$CPP $CPPFLAGS'
6935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6940 /* end confdefs.h. */
6943 main ()
6947 return 0;
6949 _ACEOF
6950 if ac_fn_c_try_link "$LINENO"; then :
6951 lt_cv_cc_needs_belf=yes
6952 else
6953 lt_cv_cc_needs_belf=no
6955 rm -f core conftest.err conftest.$ac_objext \
6956 conftest$ac_exeext conftest.$ac_ext
6957 ac_ext=c
6958 ac_cpp='$CPP $CPPFLAGS'
6959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6965 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6966 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6967 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6968 CFLAGS="$SAVE_CFLAGS"
6971 sparc*-*solaris*)
6972 # Find out which ABI we are using.
6973 echo 'int i;' > conftest.$ac_ext
6974 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6975 (eval $ac_compile) 2>&5
6976 ac_status=$?
6977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6978 test $ac_status = 0; }; then
6979 case `/usr/bin/file conftest.o` in
6980 *64-bit*)
6981 case $lt_cv_prog_gnu_ld in
6982 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6984 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6985 LD="${LD-ld} -64"
6988 esac
6990 esac
6992 rm -rf conftest*
6994 esac
6996 need_locks="$enable_libtool_lock"
6999 case $host_os in
7000 rhapsody* | darwin*)
7001 if test -n "$ac_tool_prefix"; then
7002 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7003 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7005 $as_echo_n "checking for $ac_word... " >&6; }
7006 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7007 $as_echo_n "(cached) " >&6
7008 else
7009 if test -n "$DSYMUTIL"; then
7010 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7011 else
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7013 for as_dir in $PATH
7015 IFS=$as_save_IFS
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7021 break 2
7023 done
7024 done
7025 IFS=$as_save_IFS
7029 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7030 if test -n "$DSYMUTIL"; then
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7032 $as_echo "$DSYMUTIL" >&6; }
7033 else
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7035 $as_echo "no" >&6; }
7040 if test -z "$ac_cv_prog_DSYMUTIL"; then
7041 ac_ct_DSYMUTIL=$DSYMUTIL
7042 # Extract the first word of "dsymutil", so it can be a program name with args.
7043 set dummy dsymutil; ac_word=$2
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7045 $as_echo_n "checking for $ac_word... " >&6; }
7046 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7047 $as_echo_n "(cached) " >&6
7048 else
7049 if test -n "$ac_ct_DSYMUTIL"; then
7050 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7051 else
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7053 for as_dir in $PATH
7055 IFS=$as_save_IFS
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 break 2
7063 done
7064 done
7065 IFS=$as_save_IFS
7069 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7070 if test -n "$ac_ct_DSYMUTIL"; then
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7072 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7073 else
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7075 $as_echo "no" >&6; }
7078 if test "x$ac_ct_DSYMUTIL" = x; then
7079 DSYMUTIL=":"
7080 else
7081 case $cross_compiling:$ac_tool_warned in
7082 yes:)
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7084 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7085 ac_tool_warned=yes ;;
7086 esac
7087 DSYMUTIL=$ac_ct_DSYMUTIL
7089 else
7090 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7093 if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7095 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$NMEDIT"; then
7102 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7115 done
7116 done
7117 IFS=$as_save_IFS
7121 NMEDIT=$ac_cv_prog_NMEDIT
7122 if test -n "$NMEDIT"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7124 $as_echo "$NMEDIT" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7132 if test -z "$ac_cv_prog_NMEDIT"; then
7133 ac_ct_NMEDIT=$NMEDIT
7134 # Extract the first word of "nmedit", so it can be a program name with args.
7135 set dummy nmedit; ac_word=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 if test -n "$ac_ct_NMEDIT"; then
7142 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7143 else
7144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145 for as_dir in $PATH
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7155 done
7156 done
7157 IFS=$as_save_IFS
7161 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7162 if test -n "$ac_ct_NMEDIT"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7164 $as_echo "$ac_ct_NMEDIT" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7170 if test "x$ac_ct_NMEDIT" = x; then
7171 NMEDIT=":"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174 yes:)
7175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177 ac_tool_warned=yes ;;
7178 esac
7179 NMEDIT=$ac_ct_NMEDIT
7181 else
7182 NMEDIT="$ac_cv_prog_NMEDIT"
7185 if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7187 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189 $as_echo_n "checking for $ac_word... " >&6; }
7190 if test "${ac_cv_prog_LIPO+set}" = set; then :
7191 $as_echo_n "(cached) " >&6
7192 else
7193 if test -n "$LIPO"; then
7194 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7195 else
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 for as_dir in $PATH
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7203 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7207 done
7208 done
7209 IFS=$as_save_IFS
7213 LIPO=$ac_cv_prog_LIPO
7214 if test -n "$LIPO"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7216 $as_echo "$LIPO" >&6; }
7217 else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219 $as_echo "no" >&6; }
7224 if test -z "$ac_cv_prog_LIPO"; then
7225 ac_ct_LIPO=$LIPO
7226 # Extract the first word of "lipo", so it can be a program name with args.
7227 set dummy lipo; ac_word=$2
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229 $as_echo_n "checking for $ac_word... " >&6; }
7230 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7231 $as_echo_n "(cached) " >&6
7232 else
7233 if test -n "$ac_ct_LIPO"; then
7234 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7235 else
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 for as_dir in $PATH
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7243 ac_cv_prog_ac_ct_LIPO="lipo"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7247 done
7248 done
7249 IFS=$as_save_IFS
7253 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7254 if test -n "$ac_ct_LIPO"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7256 $as_echo "$ac_ct_LIPO" >&6; }
7257 else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259 $as_echo "no" >&6; }
7262 if test "x$ac_ct_LIPO" = x; then
7263 LIPO=":"
7264 else
7265 case $cross_compiling:$ac_tool_warned in
7266 yes:)
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269 ac_tool_warned=yes ;;
7270 esac
7271 LIPO=$ac_ct_LIPO
7273 else
7274 LIPO="$ac_cv_prog_LIPO"
7277 if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7279 set dummy ${ac_tool_prefix}otool; ac_word=$2
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281 $as_echo_n "checking for $ac_word... " >&6; }
7282 if test "${ac_cv_prog_OTOOL+set}" = set; then :
7283 $as_echo_n "(cached) " >&6
7284 else
7285 if test -n "$OTOOL"; then
7286 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7287 else
7288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289 for as_dir in $PATH
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7295 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7299 done
7300 done
7301 IFS=$as_save_IFS
7305 OTOOL=$ac_cv_prog_OTOOL
7306 if test -n "$OTOOL"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7308 $as_echo "$OTOOL" >&6; }
7309 else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311 $as_echo "no" >&6; }
7316 if test -z "$ac_cv_prog_OTOOL"; then
7317 ac_ct_OTOOL=$OTOOL
7318 # Extract the first word of "otool", so it can be a program name with args.
7319 set dummy otool; ac_word=$2
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321 $as_echo_n "checking for $ac_word... " >&6; }
7322 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 if test -n "$ac_ct_OTOOL"; then
7326 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7327 else
7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329 for as_dir in $PATH
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7335 ac_cv_prog_ac_ct_OTOOL="otool"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7339 done
7340 done
7341 IFS=$as_save_IFS
7345 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7346 if test -n "$ac_ct_OTOOL"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7348 $as_echo "$ac_ct_OTOOL" >&6; }
7349 else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }
7354 if test "x$ac_ct_OTOOL" = x; then
7355 OTOOL=":"
7356 else
7357 case $cross_compiling:$ac_tool_warned in
7358 yes:)
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361 ac_tool_warned=yes ;;
7362 esac
7363 OTOOL=$ac_ct_OTOOL
7365 else
7366 OTOOL="$ac_cv_prog_OTOOL"
7369 if test -n "$ac_tool_prefix"; then
7370 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7371 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7373 $as_echo_n "checking for $ac_word... " >&6; }
7374 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7375 $as_echo_n "(cached) " >&6
7376 else
7377 if test -n "$OTOOL64"; then
7378 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7379 else
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH
7383 IFS=$as_save_IFS
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 break 2
7391 done
7392 done
7393 IFS=$as_save_IFS
7397 OTOOL64=$ac_cv_prog_OTOOL64
7398 if test -n "$OTOOL64"; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7400 $as_echo "$OTOOL64" >&6; }
7401 else
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7403 $as_echo "no" >&6; }
7408 if test -z "$ac_cv_prog_OTOOL64"; then
7409 ac_ct_OTOOL64=$OTOOL64
7410 # Extract the first word of "otool64", so it can be a program name with args.
7411 set dummy otool64; ac_word=$2
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7413 $as_echo_n "checking for $ac_word... " >&6; }
7414 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7415 $as_echo_n "(cached) " >&6
7416 else
7417 if test -n "$ac_ct_OTOOL64"; then
7418 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7419 else
7420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7421 for as_dir in $PATH
7423 IFS=$as_save_IFS
7424 test -z "$as_dir" && as_dir=.
7425 for ac_exec_ext in '' $ac_executable_extensions; do
7426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7427 ac_cv_prog_ac_ct_OTOOL64="otool64"
7428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7429 break 2
7431 done
7432 done
7433 IFS=$as_save_IFS
7437 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7438 if test -n "$ac_ct_OTOOL64"; then
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7440 $as_echo "$ac_ct_OTOOL64" >&6; }
7441 else
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7443 $as_echo "no" >&6; }
7446 if test "x$ac_ct_OTOOL64" = x; then
7447 OTOOL64=":"
7448 else
7449 case $cross_compiling:$ac_tool_warned in
7450 yes:)
7451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7453 ac_tool_warned=yes ;;
7454 esac
7455 OTOOL64=$ac_ct_OTOOL64
7457 else
7458 OTOOL64="$ac_cv_prog_OTOOL64"
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7488 $as_echo_n "checking for -single_module linker flag... " >&6; }
7489 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 lt_cv_apple_cc_single_mod=no
7493 if test -z "${LT_MULTI_MODULE}"; then
7494 # By default we will add the -single_module flag. You can override
7495 # by either setting the environment variable LT_MULTI_MODULE
7496 # non-empty at configure time, or by adding -multi_module to the
7497 # link flags.
7498 rm -rf libconftest.dylib*
7499 echo "int foo(void){return 1;}" > conftest.c
7500 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7501 -dynamiclib -Wl,-single_module conftest.c" >&5
7502 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7503 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7504 _lt_result=$?
7505 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7506 lt_cv_apple_cc_single_mod=yes
7507 else
7508 cat conftest.err >&5
7510 rm -rf libconftest.dylib*
7511 rm -f conftest.*
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7515 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7517 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7518 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7519 $as_echo_n "(cached) " >&6
7520 else
7521 lt_cv_ld_exported_symbols_list=no
7522 save_LDFLAGS=$LDFLAGS
7523 echo "_main" > conftest.sym
7524 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7526 /* end confdefs.h. */
7529 main ()
7533 return 0;
7535 _ACEOF
7536 if ac_fn_c_try_link "$LINENO"; then :
7537 lt_cv_ld_exported_symbols_list=yes
7538 else
7539 lt_cv_ld_exported_symbols_list=no
7541 rm -f core conftest.err conftest.$ac_objext \
7542 conftest$ac_exeext conftest.$ac_ext
7543 LDFLAGS="$save_LDFLAGS"
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7547 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7549 $as_echo_n "checking for -force_load linker flag... " >&6; }
7550 if test "${lt_cv_ld_force_load+set}" = set; then :
7551 $as_echo_n "(cached) " >&6
7552 else
7553 lt_cv_ld_force_load=no
7554 cat > conftest.c << _LT_EOF
7555 int forced_loaded() { return 2;}
7556 _LT_EOF
7557 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7558 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7559 echo "$AR cru libconftest.a conftest.o" >&5
7560 $AR cru libconftest.a conftest.o 2>&5
7561 cat > conftest.c << _LT_EOF
7562 int main() { return 0;}
7563 _LT_EOF
7564 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7565 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7566 _lt_result=$?
7567 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7568 lt_cv_ld_force_load=yes
7569 else
7570 cat conftest.err >&5
7572 rm -f conftest.err libconftest.a conftest conftest.c
7573 rm -rf conftest.dSYM
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7577 $as_echo "$lt_cv_ld_force_load" >&6; }
7578 case $host_os in
7579 rhapsody* | darwin1.[012])
7580 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7581 darwin1.*)
7582 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7583 darwin*) # darwin 5.x on
7584 # if running on 10.5 or later, the deployment target defaults
7585 # to the OS version, if on x86, and 10.4, the deployment
7586 # target defaults to 10.4. Don't you love it?
7587 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7588 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7589 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7590 10.[012]*)
7591 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7592 10.*)
7593 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7594 esac
7596 esac
7597 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7598 _lt_dar_single_mod='$single_module'
7600 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7601 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7602 else
7603 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7605 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7606 _lt_dsymutil='~$DSYMUTIL $lib || :'
7607 else
7608 _lt_dsymutil=
7611 esac
7613 for ac_header in dlfcn.h
7614 do :
7615 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7617 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7618 cat >>confdefs.h <<_ACEOF
7619 #define HAVE_DLFCN_H 1
7620 _ACEOF
7624 done
7631 # Set options
7636 enable_win32_dll=no
7639 # Check whether --enable-shared was given.
7640 if test "${enable_shared+set}" = set; then :
7641 enableval=$enable_shared; p=${PACKAGE-default}
7642 case $enableval in
7643 yes) enable_shared=yes ;;
7644 no) enable_shared=no ;;
7646 enable_shared=no
7647 # Look at the argument we got. We use all the common list separators.
7648 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7649 for pkg in $enableval; do
7650 IFS="$lt_save_ifs"
7651 if test "X$pkg" = "X$p"; then
7652 enable_shared=yes
7654 done
7655 IFS="$lt_save_ifs"
7657 esac
7658 else
7659 enable_shared=yes
7670 # Check whether --enable-static was given.
7671 if test "${enable_static+set}" = set; then :
7672 enableval=$enable_static; p=${PACKAGE-default}
7673 case $enableval in
7674 yes) enable_static=yes ;;
7675 no) enable_static=no ;;
7677 enable_static=no
7678 # Look at the argument we got. We use all the common list separators.
7679 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7680 for pkg in $enableval; do
7681 IFS="$lt_save_ifs"
7682 if test "X$pkg" = "X$p"; then
7683 enable_static=yes
7685 done
7686 IFS="$lt_save_ifs"
7688 esac
7689 else
7690 enable_static=yes
7702 # Check whether --with-pic was given.
7703 if test "${with_pic+set}" = set; then :
7704 withval=$with_pic; pic_mode="$withval"
7705 else
7706 pic_mode=default
7710 test -z "$pic_mode" && pic_mode=default
7718 # Check whether --enable-fast-install was given.
7719 if test "${enable_fast_install+set}" = set; then :
7720 enableval=$enable_fast_install; p=${PACKAGE-default}
7721 case $enableval in
7722 yes) enable_fast_install=yes ;;
7723 no) enable_fast_install=no ;;
7725 enable_fast_install=no
7726 # Look at the argument we got. We use all the common list separators.
7727 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7728 for pkg in $enableval; do
7729 IFS="$lt_save_ifs"
7730 if test "X$pkg" = "X$p"; then
7731 enable_fast_install=yes
7733 done
7734 IFS="$lt_save_ifs"
7736 esac
7737 else
7738 enable_fast_install=yes
7751 # This can be used to rebuild libtool when needed
7752 LIBTOOL_DEPS="$ltmain"
7754 # Always use our own libtool.
7755 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7782 test -z "$LN_S" && LN_S="ln -s"
7797 if test -n "${ZSH_VERSION+set}" ; then
7798 setopt NO_GLOB_SUBST
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7802 $as_echo_n "checking for objdir... " >&6; }
7803 if test "${lt_cv_objdir+set}" = set; then :
7804 $as_echo_n "(cached) " >&6
7805 else
7806 rm -f .libs 2>/dev/null
7807 mkdir .libs 2>/dev/null
7808 if test -d .libs; then
7809 lt_cv_objdir=.libs
7810 else
7811 # MS-DOS does not allow filenames that begin with a dot.
7812 lt_cv_objdir=_libs
7814 rmdir .libs 2>/dev/null
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7817 $as_echo "$lt_cv_objdir" >&6; }
7818 objdir=$lt_cv_objdir
7824 cat >>confdefs.h <<_ACEOF
7825 #define LT_OBJDIR "$lt_cv_objdir/"
7826 _ACEOF
7831 case $host_os in
7832 aix3*)
7833 # AIX sometimes has problems with the GCC collect2 program. For some
7834 # reason, if we set the COLLECT_NAMES environment variable, the problems
7835 # vanish in a puff of smoke.
7836 if test "X${COLLECT_NAMES+set}" != Xset; then
7837 COLLECT_NAMES=
7838 export COLLECT_NAMES
7841 esac
7843 # Global variables:
7844 ofile=libtool
7845 can_build_shared=yes
7847 # All known linkers require a `.a' archive for static linking (except MSVC,
7848 # which needs '.lib').
7849 libext=a
7851 with_gnu_ld="$lt_cv_prog_gnu_ld"
7853 old_CC="$CC"
7854 old_CFLAGS="$CFLAGS"
7856 # Set sane defaults for various variables
7857 test -z "$CC" && CC=cc
7858 test -z "$LTCC" && LTCC=$CC
7859 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7860 test -z "$LD" && LD=ld
7861 test -z "$ac_objext" && ac_objext=o
7863 for cc_temp in $compiler""; do
7864 case $cc_temp in
7865 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7866 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7867 \-*) ;;
7868 *) break;;
7869 esac
7870 done
7871 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7874 # Only perform the check for file, if the check method requires it
7875 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7876 case $deplibs_check_method in
7877 file_magic*)
7878 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7880 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7881 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7882 $as_echo_n "(cached) " >&6
7883 else
7884 case $MAGIC_CMD in
7885 [\\/*] | ?:[\\/]*)
7886 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7889 lt_save_MAGIC_CMD="$MAGIC_CMD"
7890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7891 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7892 for ac_dir in $ac_dummy; do
7893 IFS="$lt_save_ifs"
7894 test -z "$ac_dir" && ac_dir=.
7895 if test -f $ac_dir/${ac_tool_prefix}file; then
7896 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7897 if test -n "$file_magic_test_file"; then
7898 case $deplibs_check_method in
7899 "file_magic "*)
7900 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7901 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7902 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7903 $EGREP "$file_magic_regex" > /dev/null; then
7905 else
7906 cat <<_LT_EOF 1>&2
7908 *** Warning: the command libtool uses to detect shared libraries,
7909 *** $file_magic_cmd, produces output that libtool cannot recognize.
7910 *** The result is that libtool may fail to recognize shared libraries
7911 *** as such. This will affect the creation of libtool libraries that
7912 *** depend on shared libraries, but programs linked with such libtool
7913 *** libraries will work regardless of this problem. Nevertheless, you
7914 *** may want to report the problem to your system manager and/or to
7915 *** bug-libtool@gnu.org
7917 _LT_EOF
7918 fi ;;
7919 esac
7921 break
7923 done
7924 IFS="$lt_save_ifs"
7925 MAGIC_CMD="$lt_save_MAGIC_CMD"
7927 esac
7930 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7931 if test -n "$MAGIC_CMD"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7933 $as_echo "$MAGIC_CMD" >&6; }
7934 else
7935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7936 $as_echo "no" >&6; }
7943 if test -z "$lt_cv_path_MAGIC_CMD"; then
7944 if test -n "$ac_tool_prefix"; then
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7946 $as_echo_n "checking for file... " >&6; }
7947 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
7948 $as_echo_n "(cached) " >&6
7949 else
7950 case $MAGIC_CMD in
7951 [\\/*] | ?:[\\/]*)
7952 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7955 lt_save_MAGIC_CMD="$MAGIC_CMD"
7956 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7957 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7958 for ac_dir in $ac_dummy; do
7959 IFS="$lt_save_ifs"
7960 test -z "$ac_dir" && ac_dir=.
7961 if test -f $ac_dir/file; then
7962 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7963 if test -n "$file_magic_test_file"; then
7964 case $deplibs_check_method in
7965 "file_magic "*)
7966 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7967 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7968 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7969 $EGREP "$file_magic_regex" > /dev/null; then
7971 else
7972 cat <<_LT_EOF 1>&2
7974 *** Warning: the command libtool uses to detect shared libraries,
7975 *** $file_magic_cmd, produces output that libtool cannot recognize.
7976 *** The result is that libtool may fail to recognize shared libraries
7977 *** as such. This will affect the creation of libtool libraries that
7978 *** depend on shared libraries, but programs linked with such libtool
7979 *** libraries will work regardless of this problem. Nevertheless, you
7980 *** may want to report the problem to your system manager and/or to
7981 *** bug-libtool@gnu.org
7983 _LT_EOF
7984 fi ;;
7985 esac
7987 break
7989 done
7990 IFS="$lt_save_ifs"
7991 MAGIC_CMD="$lt_save_MAGIC_CMD"
7993 esac
7996 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7997 if test -n "$MAGIC_CMD"; then
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7999 $as_echo "$MAGIC_CMD" >&6; }
8000 else
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8002 $as_echo "no" >&6; }
8006 else
8007 MAGIC_CMD=:
8013 esac
8015 # Use C for the default configuration in the libtool script
8017 lt_save_CC="$CC"
8018 ac_ext=c
8019 ac_cpp='$CPP $CPPFLAGS'
8020 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8021 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8022 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8025 # Source file extension for C test sources.
8026 ac_ext=c
8028 # Object file extension for compiled C test sources.
8029 objext=o
8030 objext=$objext
8032 # Code to be used in simple compile tests
8033 lt_simple_compile_test_code="int some_variable = 0;"
8035 # Code to be used in simple link tests
8036 lt_simple_link_test_code='int main(){return(0);}'
8044 # If no C compiler was specified, use CC.
8045 LTCC=${LTCC-"$CC"}
8047 # If no C compiler flags were specified, use CFLAGS.
8048 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8050 # Allow CC to be a program name with arguments.
8051 compiler=$CC
8053 # Save the default compiler, since it gets overwritten when the other
8054 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8055 compiler_DEFAULT=$CC
8057 # save warnings/boilerplate of simple test code
8058 ac_outfile=conftest.$ac_objext
8059 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8060 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8061 _lt_compiler_boilerplate=`cat conftest.err`
8062 $RM conftest*
8064 ac_outfile=conftest.$ac_objext
8065 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8066 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8067 _lt_linker_boilerplate=`cat conftest.err`
8068 $RM -r conftest*
8071 ## CAVEAT EMPTOR:
8072 ## There is no encapsulation within the following macros, do not change
8073 ## the running order or otherwise move them around unless you know exactly
8074 ## what you are doing...
8075 if test -n "$compiler"; then
8077 lt_prog_compiler_no_builtin_flag=
8079 if test "$GCC" = yes; then
8080 case $cc_basename in
8081 nvcc*)
8082 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8084 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8085 esac
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8088 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8089 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8090 $as_echo_n "(cached) " >&6
8091 else
8092 lt_cv_prog_compiler_rtti_exceptions=no
8093 ac_outfile=conftest.$ac_objext
8094 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8095 lt_compiler_flag="-fno-rtti -fno-exceptions"
8096 # Insert the option either (1) after the last *FLAGS variable, or
8097 # (2) before a word containing "conftest.", or (3) at the end.
8098 # Note that $ac_compile itself does not contain backslashes and begins
8099 # with a dollar sign (not a hyphen), so the echo should work correctly.
8100 # The option is referenced via a variable to avoid confusing sed.
8101 lt_compile=`echo "$ac_compile" | $SED \
8102 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8103 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8104 -e 's:$: $lt_compiler_flag:'`
8105 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8106 (eval "$lt_compile" 2>conftest.err)
8107 ac_status=$?
8108 cat conftest.err >&5
8109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8110 if (exit $ac_status) && test -s "$ac_outfile"; then
8111 # The compiler can only warn and ignore the option if not recognized
8112 # So say no if there are warnings other than the usual output.
8113 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8114 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8115 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8116 lt_cv_prog_compiler_rtti_exceptions=yes
8119 $RM conftest*
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8123 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8125 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8126 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8127 else
8138 lt_prog_compiler_wl=
8139 lt_prog_compiler_pic=
8140 lt_prog_compiler_static=
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8143 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8145 if test "$GCC" = yes; then
8146 lt_prog_compiler_wl='-Wl,'
8147 lt_prog_compiler_static='-static'
8149 case $host_os in
8150 aix*)
8151 # All AIX code is PIC.
8152 if test "$host_cpu" = ia64; then
8153 # AIX 5 now supports IA64 processor
8154 lt_prog_compiler_static='-Bstatic'
8156 lt_prog_compiler_pic='-fPIC'
8159 amigaos*)
8160 case $host_cpu in
8161 powerpc)
8162 # see comment about AmigaOS4 .so support
8163 lt_prog_compiler_pic='-fPIC'
8165 m68k)
8166 # FIXME: we need at least 68020 code to build shared libraries, but
8167 # adding the `-m68020' flag to GCC prevents building anything better,
8168 # like `-m68040'.
8169 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8171 esac
8174 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8175 # PIC is the default for these OSes.
8178 mingw* | cygwin* | pw32* | os2* | cegcc*)
8179 # This hack is so that the source file can tell whether it is being
8180 # built for inclusion in a dll (and should export symbols for example).
8181 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8182 # (--disable-auto-import) libraries
8183 lt_prog_compiler_pic='-DDLL_EXPORT'
8186 darwin* | rhapsody*)
8187 # PIC is the default on this platform
8188 # Common symbols not allowed in MH_DYLIB files
8189 lt_prog_compiler_pic='-fno-common'
8192 haiku*)
8193 # PIC is the default for Haiku.
8194 # The "-static" flag exists, but is broken.
8195 lt_prog_compiler_static=
8198 hpux*)
8199 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8200 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8201 # sets the default TLS model and affects inlining.
8202 case $host_cpu in
8203 hppa*64*)
8204 # +Z the default
8207 lt_prog_compiler_pic='-fPIC'
8209 esac
8212 interix[3-9]*)
8213 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8214 # Instead, we relocate shared libraries at runtime.
8217 msdosdjgpp*)
8218 # Just because we use GCC doesn't mean we suddenly get shared libraries
8219 # on systems that don't support them.
8220 lt_prog_compiler_can_build_shared=no
8221 enable_shared=no
8224 *nto* | *qnx*)
8225 # QNX uses GNU C++, but need to define -shared option too, otherwise
8226 # it will coredump.
8227 lt_prog_compiler_pic='-fPIC -shared'
8230 sysv4*MP*)
8231 if test -d /usr/nec; then
8232 lt_prog_compiler_pic=-Kconform_pic
8237 lt_prog_compiler_pic='-fPIC'
8239 esac
8241 case $cc_basename in
8242 nvcc*) # Cuda Compiler Driver 2.2
8243 lt_prog_compiler_wl='-Xlinker '
8244 lt_prog_compiler_pic='-Xcompiler -fPIC'
8246 esac
8247 else
8248 # PORTME Check for flag to pass linker flags through the system compiler.
8249 case $host_os in
8250 aix*)
8251 lt_prog_compiler_wl='-Wl,'
8252 if test "$host_cpu" = ia64; then
8253 # AIX 5 now supports IA64 processor
8254 lt_prog_compiler_static='-Bstatic'
8255 else
8256 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8260 mingw* | cygwin* | pw32* | os2* | cegcc*)
8261 # This hack is so that the source file can tell whether it is being
8262 # built for inclusion in a dll (and should export symbols for example).
8263 lt_prog_compiler_pic='-DDLL_EXPORT'
8266 hpux9* | hpux10* | hpux11*)
8267 lt_prog_compiler_wl='-Wl,'
8268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8269 # not for PA HP-UX.
8270 case $host_cpu in
8271 hppa*64*|ia64*)
8272 # +Z the default
8275 lt_prog_compiler_pic='+Z'
8277 esac
8278 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8279 lt_prog_compiler_static='${wl}-a ${wl}archive'
8282 irix5* | irix6* | nonstopux*)
8283 lt_prog_compiler_wl='-Wl,'
8284 # PIC (with -KPIC) is the default.
8285 lt_prog_compiler_static='-non_shared'
8288 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8289 case $cc_basename in
8290 # old Intel for x86_64 which still supported -KPIC.
8291 ecc*)
8292 lt_prog_compiler_wl='-Wl,'
8293 lt_prog_compiler_pic='-KPIC'
8294 lt_prog_compiler_static='-static'
8296 # icc used to be incompatible with GCC.
8297 # ICC 10 doesn't accept -KPIC any more.
8298 icc* | ifort*)
8299 lt_prog_compiler_wl='-Wl,'
8300 lt_prog_compiler_pic='-fPIC'
8301 lt_prog_compiler_static='-static'
8303 # Lahey Fortran 8.1.
8304 lf95*)
8305 lt_prog_compiler_wl='-Wl,'
8306 lt_prog_compiler_pic='--shared'
8307 lt_prog_compiler_static='--static'
8309 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8310 # Portland Group compilers (*not* the Pentium gcc compiler,
8311 # which looks to be a dead project)
8312 lt_prog_compiler_wl='-Wl,'
8313 lt_prog_compiler_pic='-fpic'
8314 lt_prog_compiler_static='-Bstatic'
8316 ccc*)
8317 lt_prog_compiler_wl='-Wl,'
8318 # All Alpha code is PIC.
8319 lt_prog_compiler_static='-non_shared'
8321 xl* | bgxl* | bgf* | mpixl*)
8322 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8323 lt_prog_compiler_wl='-Wl,'
8324 lt_prog_compiler_pic='-qpic'
8325 lt_prog_compiler_static='-qstaticlink'
8328 case `$CC -V 2>&1 | sed 5q` in
8329 *Sun\ F* | *Sun*Fortran*)
8330 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8331 lt_prog_compiler_pic='-KPIC'
8332 lt_prog_compiler_static='-Bstatic'
8333 lt_prog_compiler_wl=''
8335 *Sun\ C*)
8336 # Sun C 5.9
8337 lt_prog_compiler_pic='-KPIC'
8338 lt_prog_compiler_static='-Bstatic'
8339 lt_prog_compiler_wl='-Wl,'
8341 esac
8343 esac
8346 newsos6)
8347 lt_prog_compiler_pic='-KPIC'
8348 lt_prog_compiler_static='-Bstatic'
8351 *nto* | *qnx*)
8352 # QNX uses GNU C++, but need to define -shared option too, otherwise
8353 # it will coredump.
8354 lt_prog_compiler_pic='-fPIC -shared'
8357 osf3* | osf4* | osf5*)
8358 lt_prog_compiler_wl='-Wl,'
8359 # All OSF/1 code is PIC.
8360 lt_prog_compiler_static='-non_shared'
8363 rdos*)
8364 lt_prog_compiler_static='-non_shared'
8367 solaris*)
8368 lt_prog_compiler_pic='-KPIC'
8369 lt_prog_compiler_static='-Bstatic'
8370 case $cc_basename in
8371 f77* | f90* | f95*)
8372 lt_prog_compiler_wl='-Qoption ld ';;
8374 lt_prog_compiler_wl='-Wl,';;
8375 esac
8378 sunos4*)
8379 lt_prog_compiler_wl='-Qoption ld '
8380 lt_prog_compiler_pic='-PIC'
8381 lt_prog_compiler_static='-Bstatic'
8384 sysv4 | sysv4.2uw2* | sysv4.3*)
8385 lt_prog_compiler_wl='-Wl,'
8386 lt_prog_compiler_pic='-KPIC'
8387 lt_prog_compiler_static='-Bstatic'
8390 sysv4*MP*)
8391 if test -d /usr/nec ;then
8392 lt_prog_compiler_pic='-Kconform_pic'
8393 lt_prog_compiler_static='-Bstatic'
8397 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8398 lt_prog_compiler_wl='-Wl,'
8399 lt_prog_compiler_pic='-KPIC'
8400 lt_prog_compiler_static='-Bstatic'
8403 unicos*)
8404 lt_prog_compiler_wl='-Wl,'
8405 lt_prog_compiler_can_build_shared=no
8408 uts4*)
8409 lt_prog_compiler_pic='-pic'
8410 lt_prog_compiler_static='-Bstatic'
8414 lt_prog_compiler_can_build_shared=no
8416 esac
8419 case $host_os in
8420 # For platforms which do not support PIC, -DPIC is meaningless:
8421 *djgpp*)
8422 lt_prog_compiler_pic=
8425 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8427 esac
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8429 $as_echo "$lt_prog_compiler_pic" >&6; }
8437 # Check to make sure the PIC flag actually works.
8439 if test -n "$lt_prog_compiler_pic"; then
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8441 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8442 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8443 $as_echo_n "(cached) " >&6
8444 else
8445 lt_cv_prog_compiler_pic_works=no
8446 ac_outfile=conftest.$ac_objext
8447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8448 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8449 # Insert the option either (1) after the last *FLAGS variable, or
8450 # (2) before a word containing "conftest.", or (3) at the end.
8451 # Note that $ac_compile itself does not contain backslashes and begins
8452 # with a dollar sign (not a hyphen), so the echo should work correctly.
8453 # The option is referenced via a variable to avoid confusing sed.
8454 lt_compile=`echo "$ac_compile" | $SED \
8455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8457 -e 's:$: $lt_compiler_flag:'`
8458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8459 (eval "$lt_compile" 2>conftest.err)
8460 ac_status=$?
8461 cat conftest.err >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 if (exit $ac_status) && test -s "$ac_outfile"; then
8464 # The compiler can only warn and ignore the option if not recognized
8465 # So say no if there are warnings other than the usual output.
8466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8469 lt_cv_prog_compiler_pic_works=yes
8472 $RM conftest*
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8476 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8478 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8479 case $lt_prog_compiler_pic in
8480 "" | " "*) ;;
8481 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8482 esac
8483 else
8484 lt_prog_compiler_pic=
8485 lt_prog_compiler_can_build_shared=no
8496 # Check to make sure the static flag actually works.
8498 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8500 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8501 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8502 $as_echo_n "(cached) " >&6
8503 else
8504 lt_cv_prog_compiler_static_works=no
8505 save_LDFLAGS="$LDFLAGS"
8506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8507 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8509 # The linker can only warn and ignore the option if not recognized
8510 # So say no if there are warnings
8511 if test -s conftest.err; then
8512 # Append any errors to the config.log.
8513 cat conftest.err 1>&5
8514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8516 if diff conftest.exp conftest.er2 >/dev/null; then
8517 lt_cv_prog_compiler_static_works=yes
8519 else
8520 lt_cv_prog_compiler_static_works=yes
8523 $RM -r conftest*
8524 LDFLAGS="$save_LDFLAGS"
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8528 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8530 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8532 else
8533 lt_prog_compiler_static=
8542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8543 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8544 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8545 $as_echo_n "(cached) " >&6
8546 else
8547 lt_cv_prog_compiler_c_o=no
8548 $RM -r conftest 2>/dev/null
8549 mkdir conftest
8550 cd conftest
8551 mkdir out
8552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8554 lt_compiler_flag="-o out/conftest2.$ac_objext"
8555 # Insert the option either (1) after the last *FLAGS variable, or
8556 # (2) before a word containing "conftest.", or (3) at the end.
8557 # Note that $ac_compile itself does not contain backslashes and begins
8558 # with a dollar sign (not a hyphen), so the echo should work correctly.
8559 lt_compile=`echo "$ac_compile" | $SED \
8560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8562 -e 's:$: $lt_compiler_flag:'`
8563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8564 (eval "$lt_compile" 2>out/conftest.err)
8565 ac_status=$?
8566 cat out/conftest.err >&5
8567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8569 then
8570 # The compiler can only warn and ignore the option if not recognized
8571 # So say no if there are warnings
8572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8575 lt_cv_prog_compiler_c_o=yes
8578 chmod u+w . 2>&5
8579 $RM conftest*
8580 # SGI C++ compiler will create directory out/ii_files/ for
8581 # template instantiation
8582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8583 $RM out/* && rmdir out
8584 cd ..
8585 $RM -r conftest
8586 $RM conftest*
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8598 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8599 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 lt_cv_prog_compiler_c_o=no
8603 $RM -r conftest 2>/dev/null
8604 mkdir conftest
8605 cd conftest
8606 mkdir out
8607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8609 lt_compiler_flag="-o out/conftest2.$ac_objext"
8610 # Insert the option either (1) after the last *FLAGS variable, or
8611 # (2) before a word containing "conftest.", or (3) at the end.
8612 # Note that $ac_compile itself does not contain backslashes and begins
8613 # with a dollar sign (not a hyphen), so the echo should work correctly.
8614 lt_compile=`echo "$ac_compile" | $SED \
8615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8617 -e 's:$: $lt_compiler_flag:'`
8618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8619 (eval "$lt_compile" 2>out/conftest.err)
8620 ac_status=$?
8621 cat out/conftest.err >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8624 then
8625 # The compiler can only warn and ignore the option if not recognized
8626 # So say no if there are warnings
8627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8630 lt_cv_prog_compiler_c_o=yes
8633 chmod u+w . 2>&5
8634 $RM conftest*
8635 # SGI C++ compiler will create directory out/ii_files/ for
8636 # template instantiation
8637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8638 $RM out/* && rmdir out
8639 cd ..
8640 $RM -r conftest
8641 $RM conftest*
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8645 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8650 hard_links="nottested"
8651 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8652 # do not overwrite the value of need_locks provided by the user
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8654 $as_echo_n "checking if we can lock with hard links... " >&6; }
8655 hard_links=yes
8656 $RM conftest*
8657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8658 touch conftest.a
8659 ln conftest.a conftest.b 2>&5 || hard_links=no
8660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8662 $as_echo "$hard_links" >&6; }
8663 if test "$hard_links" = no; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8665 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8666 need_locks=warn
8668 else
8669 need_locks=no
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8678 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8680 runpath_var=
8681 allow_undefined_flag=
8682 always_export_symbols=no
8683 archive_cmds=
8684 archive_expsym_cmds=
8685 compiler_needs_object=no
8686 enable_shared_with_static_runtimes=no
8687 export_dynamic_flag_spec=
8688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8689 hardcode_automatic=no
8690 hardcode_direct=no
8691 hardcode_direct_absolute=no
8692 hardcode_libdir_flag_spec=
8693 hardcode_libdir_flag_spec_ld=
8694 hardcode_libdir_separator=
8695 hardcode_minus_L=no
8696 hardcode_shlibpath_var=unsupported
8697 inherit_rpath=no
8698 link_all_deplibs=unknown
8699 module_cmds=
8700 module_expsym_cmds=
8701 old_archive_from_new_cmds=
8702 old_archive_from_expsyms_cmds=
8703 thread_safe_flag_spec=
8704 whole_archive_flag_spec=
8705 # include_expsyms should be a list of space-separated symbols to be *always*
8706 # included in the symbol list
8707 include_expsyms=
8708 # exclude_expsyms can be an extended regexp of symbols to exclude
8709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8711 # as well as any symbol that contains `d'.
8712 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8714 # platforms (ab)use it in PIC code, but their linkers get confused if
8715 # the symbol is explicitly referenced. Since portable code cannot
8716 # rely on this symbol name, it's probably fine to never include it in
8717 # preloaded symbol tables.
8718 # Exclude shared library initialization/finalization symbols.
8719 extract_expsyms_cmds=
8721 case $host_os in
8722 cygwin* | mingw* | pw32* | cegcc*)
8723 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8724 # When not using gcc, we currently assume that we are using
8725 # Microsoft Visual C++.
8726 if test "$GCC" != yes; then
8727 with_gnu_ld=no
8730 interix*)
8731 # we just hope/assume this is gcc and not c89 (= MSVC++)
8732 with_gnu_ld=yes
8734 openbsd*)
8735 with_gnu_ld=no
8737 esac
8739 ld_shlibs=yes
8741 # On some targets, GNU ld is compatible enough with the native linker
8742 # that we're better off using the native interface for both.
8743 lt_use_gnu_ld_interface=no
8744 if test "$with_gnu_ld" = yes; then
8745 case $host_os in
8746 aix*)
8747 # The AIX port of GNU ld has always aspired to compatibility
8748 # with the native linker. However, as the warning in the GNU ld
8749 # block says, versions before 2.19.5* couldn't really create working
8750 # shared libraries, regardless of the interface used.
8751 case `$LD -v 2>&1` in
8752 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8753 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8754 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8756 lt_use_gnu_ld_interface=yes
8758 esac
8761 lt_use_gnu_ld_interface=yes
8763 esac
8766 if test "$lt_use_gnu_ld_interface" = yes; then
8767 # If archive_cmds runs LD, not CC, wlarc should be empty
8768 wlarc='${wl}'
8770 # Set some defaults for GNU ld with shared library support. These
8771 # are reset later if shared libraries are not supported. Putting them
8772 # here allows them to be overridden if necessary.
8773 runpath_var=LD_RUN_PATH
8774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8775 export_dynamic_flag_spec='${wl}--export-dynamic'
8776 # ancient GNU ld didn't support --whole-archive et. al.
8777 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8778 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8779 else
8780 whole_archive_flag_spec=
8782 supports_anon_versioning=no
8783 case `$LD -v 2>&1` in
8784 *GNU\ gold*) supports_anon_versioning=yes ;;
8785 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8786 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8787 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8788 *\ 2.11.*) ;; # other 2.11 versions
8789 *) supports_anon_versioning=yes ;;
8790 esac
8792 # See if GNU ld supports shared libraries.
8793 case $host_os in
8794 aix[3-9]*)
8795 # On AIX/PPC, the GNU linker is very broken
8796 if test "$host_cpu" != ia64; then
8797 ld_shlibs=no
8798 cat <<_LT_EOF 1>&2
8800 *** Warning: the GNU linker, at least up to release 2.19, is reported
8801 *** to be unable to reliably create shared libraries on AIX.
8802 *** Therefore, libtool is disabling shared libraries support. If you
8803 *** really care for shared libraries, you may want to install binutils
8804 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8805 *** You will then need to restart the configuration process.
8807 _LT_EOF
8811 amigaos*)
8812 case $host_cpu in
8813 powerpc)
8814 # see comment about AmigaOS4 .so support
8815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8816 archive_expsym_cmds=''
8818 m68k)
8819 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)'
8820 hardcode_libdir_flag_spec='-L$libdir'
8821 hardcode_minus_L=yes
8823 esac
8826 beos*)
8827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8828 allow_undefined_flag=unsupported
8829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8830 # support --undefined. This deserves some investigation. FIXME
8831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8832 else
8833 ld_shlibs=no
8837 cygwin* | mingw* | pw32* | cegcc*)
8838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8839 # as there is no search path for DLLs.
8840 hardcode_libdir_flag_spec='-L$libdir'
8841 export_dynamic_flag_spec='${wl}--export-all-symbols'
8842 allow_undefined_flag=unsupported
8843 always_export_symbols=no
8844 enable_shared_with_static_runtimes=yes
8845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8847 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8849 # If the export-symbols file already is a .def file (1st line
8850 # is EXPORTS), use it as is; otherwise, prepend...
8851 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8852 cp $export_symbols $output_objdir/$soname.def;
8853 else
8854 echo EXPORTS > $output_objdir/$soname.def;
8855 cat $export_symbols >> $output_objdir/$soname.def;
8857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8858 else
8859 ld_shlibs=no
8863 haiku*)
8864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8865 link_all_deplibs=yes
8868 interix[3-9]*)
8869 hardcode_direct=no
8870 hardcode_shlibpath_var=no
8871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8872 export_dynamic_flag_spec='${wl}-E'
8873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8874 # Instead, shared libraries are loaded at an image base (0x10000000 by
8875 # default) and relocated if they conflict, which is a slow very memory
8876 # consuming and fragmenting process. To avoid this, we pick a random,
8877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8880 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'
8883 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8884 tmp_diet=no
8885 if test "$host_os" = linux-dietlibc; then
8886 case $cc_basename in
8887 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8888 esac
8890 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8891 && test "$tmp_diet" = no
8892 then
8893 tmp_addflag=
8894 tmp_sharedflag='-shared'
8895 case $cc_basename,$host_cpu in
8896 pgcc*) # Portland Group C compiler
8897 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'
8898 tmp_addflag=' $pic_flag'
8900 pgf77* | pgf90* | pgf95* | pgfortran*)
8901 # Portland Group f77 and f90 compilers
8902 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'
8903 tmp_addflag=' $pic_flag -Mnomain' ;;
8904 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8905 tmp_addflag=' -i_dynamic' ;;
8906 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8907 tmp_addflag=' -i_dynamic -nofor_main' ;;
8908 ifc* | ifort*) # Intel Fortran compiler
8909 tmp_addflag=' -nofor_main' ;;
8910 lf95*) # Lahey Fortran 8.1
8911 whole_archive_flag_spec=
8912 tmp_sharedflag='--shared' ;;
8913 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8914 tmp_sharedflag='-qmkshrobj'
8915 tmp_addflag= ;;
8916 nvcc*) # Cuda Compiler Driver 2.2
8917 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'
8918 compiler_needs_object=yes
8920 esac
8921 case `$CC -V 2>&1 | sed 5q` in
8922 *Sun\ C*) # Sun C 5.9
8923 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'
8924 compiler_needs_object=yes
8925 tmp_sharedflag='-G' ;;
8926 *Sun\ F*) # Sun Fortran 8.3
8927 tmp_sharedflag='-G' ;;
8928 esac
8929 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931 if test "x$supports_anon_versioning" = xyes; then
8932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8934 echo "local: *; };" >> $output_objdir/$libname.ver~
8935 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8938 case $cc_basename in
8939 xlf* | bgf* | bgxlf* | mpixlf*)
8940 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8941 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8942 hardcode_libdir_flag_spec=
8943 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8944 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8945 if test "x$supports_anon_versioning" = xyes; then
8946 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8948 echo "local: *; };" >> $output_objdir/$libname.ver~
8949 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8952 esac
8953 else
8954 ld_shlibs=no
8958 netbsd*)
8959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8961 wlarc=
8962 else
8963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8968 solaris*)
8969 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8970 ld_shlibs=no
8971 cat <<_LT_EOF 1>&2
8973 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8974 *** create shared libraries on Solaris systems. Therefore, libtool
8975 *** is disabling shared libraries support. We urge you to upgrade GNU
8976 *** binutils to release 2.9.1 or newer. Another option is to modify
8977 *** your PATH or compiler configuration so that the native linker is
8978 *** used, and then restart.
8980 _LT_EOF
8981 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8984 else
8985 ld_shlibs=no
8989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8990 case `$LD -v 2>&1` in
8991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8992 ld_shlibs=no
8993 cat <<_LT_EOF 1>&2
8995 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8996 *** reliably create shared libraries on SCO systems. Therefore, libtool
8997 *** is disabling shared libraries support. We urge you to upgrade GNU
8998 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8999 *** your PATH or compiler configuration so that the native linker is
9000 *** used, and then restart.
9002 _LT_EOF
9005 # For security reasons, it is highly recommended that you always
9006 # use absolute paths for naming shared libraries, and exclude the
9007 # DT_RUNPATH tag from executables and libraries. But doing so
9008 # requires that you compile everything twice, which is a pain.
9009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9013 else
9014 ld_shlibs=no
9017 esac
9020 sunos4*)
9021 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9022 wlarc=
9023 hardcode_direct=yes
9024 hardcode_shlibpath_var=no
9028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9031 else
9032 ld_shlibs=no
9035 esac
9037 if test "$ld_shlibs" = no; then
9038 runpath_var=
9039 hardcode_libdir_flag_spec=
9040 export_dynamic_flag_spec=
9041 whole_archive_flag_spec=
9043 else
9044 # PORTME fill in a description of your system's linker (not GNU ld)
9045 case $host_os in
9046 aix3*)
9047 allow_undefined_flag=unsupported
9048 always_export_symbols=yes
9049 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'
9050 # Note: this linker hardcodes the directories in LIBPATH if there
9051 # are no directories specified by -L.
9052 hardcode_minus_L=yes
9053 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9054 # Neither direct hardcoding nor static linking is supported with a
9055 # broken collect2.
9056 hardcode_direct=unsupported
9060 aix[4-9]*)
9061 if test "$host_cpu" = ia64; then
9062 # On IA64, the linker does run time linking by default, so we don't
9063 # have to do anything special.
9064 aix_use_runtimelinking=no
9065 exp_sym_flag='-Bexport'
9066 no_entry_flag=""
9067 else
9068 # If we're using GNU nm, then we don't want the "-C" option.
9069 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9070 # Also, AIX nm treats weak defined symbols like other global
9071 # defined symbols, whereas GNU nm marks them as "W".
9072 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9073 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'
9074 else
9075 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'
9077 aix_use_runtimelinking=no
9079 # Test if we are trying to use run time linking or normal
9080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9081 # need to do runtime linking.
9082 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9083 for ld_flag in $LDFLAGS; do
9084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9085 aix_use_runtimelinking=yes
9086 break
9088 done
9090 esac
9092 exp_sym_flag='-bexport'
9093 no_entry_flag='-bnoentry'
9096 # When large executables or shared objects are built, AIX ld can
9097 # have problems creating the table of contents. If linking a library
9098 # or program results in "error TOC overflow" add -mminimal-toc to
9099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9102 archive_cmds=''
9103 hardcode_direct=yes
9104 hardcode_direct_absolute=yes
9105 hardcode_libdir_separator=':'
9106 link_all_deplibs=yes
9107 file_list_spec='${wl}-f,'
9109 if test "$GCC" = yes; then
9110 case $host_os in aix4.[012]|aix4.[012].*)
9111 # We only want to do this on AIX 4.2 and lower, the check
9112 # below for broken collect2 doesn't work under 4.3+
9113 collect2name=`${CC} -print-prog-name=collect2`
9114 if test -f "$collect2name" &&
9115 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9116 then
9117 # We have reworked collect2
9119 else
9120 # We have old collect2
9121 hardcode_direct=unsupported
9122 # It fails to find uninstalled libraries when the uninstalled
9123 # path is not listed in the libpath. Setting hardcode_minus_L
9124 # to unsupported forces relinking
9125 hardcode_minus_L=yes
9126 hardcode_libdir_flag_spec='-L$libdir'
9127 hardcode_libdir_separator=
9130 esac
9131 shared_flag='-shared'
9132 if test "$aix_use_runtimelinking" = yes; then
9133 shared_flag="$shared_flag "'${wl}-G'
9135 else
9136 # not using gcc
9137 if test "$host_cpu" = ia64; then
9138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9139 # chokes on -Wl,-G. The following line is correct:
9140 shared_flag='-G'
9141 else
9142 if test "$aix_use_runtimelinking" = yes; then
9143 shared_flag='${wl}-G'
9144 else
9145 shared_flag='${wl}-bM:SRE'
9150 export_dynamic_flag_spec='${wl}-bexpall'
9151 # It seems that -bexpall does not export symbols beginning with
9152 # underscore (_), so it is better to generate a list of symbols to export.
9153 always_export_symbols=yes
9154 if test "$aix_use_runtimelinking" = yes; then
9155 # Warning - without using the other runtime loading flags (-brtl),
9156 # -berok will link without error, but may produce a broken library.
9157 allow_undefined_flag='-berok'
9158 # Determine the default libpath from the value encoded in an
9159 # empty executable.
9160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9161 /* end confdefs.h. */
9164 main ()
9168 return 0;
9170 _ACEOF
9171 if ac_fn_c_try_link "$LINENO"; then :
9173 lt_aix_libpath_sed='
9174 /Import File Strings/,/^$/ {
9175 /^0/ {
9176 s/^0 *\(.*\)$/\1/
9180 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9181 # Check for a 64-bit object if we didn't find anything.
9182 if test -z "$aix_libpath"; then
9183 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9186 rm -f core conftest.err conftest.$ac_objext \
9187 conftest$ac_exeext conftest.$ac_ext
9188 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9190 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9191 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"
9192 else
9193 if test "$host_cpu" = ia64; then
9194 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9195 allow_undefined_flag="-z nodefs"
9196 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"
9197 else
9198 # Determine the default libpath from the value encoded in an
9199 # empty executable.
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201 /* end confdefs.h. */
9204 main ()
9208 return 0;
9210 _ACEOF
9211 if ac_fn_c_try_link "$LINENO"; then :
9213 lt_aix_libpath_sed='
9214 /Import File Strings/,/^$/ {
9215 /^0/ {
9216 s/^0 *\(.*\)$/\1/
9220 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9221 # Check for a 64-bit object if we didn't find anything.
9222 if test -z "$aix_libpath"; then
9223 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9226 rm -f core conftest.err conftest.$ac_objext \
9227 conftest$ac_exeext conftest.$ac_ext
9228 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9230 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9231 # Warning - without using the other run time loading flags,
9232 # -berok will link without error, but may produce a broken library.
9233 no_undefined_flag=' ${wl}-bernotok'
9234 allow_undefined_flag=' ${wl}-berok'
9235 if test "$with_gnu_ld" = yes; then
9236 # We only use this code for GNU lds that support --whole-archive.
9237 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9238 else
9239 # Exported symbols can be pulled into shared objects from archives
9240 whole_archive_flag_spec='$convenience'
9242 archive_cmds_need_lc=yes
9243 # This is similar to how AIX traditionally builds its shared libraries.
9244 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'
9249 amigaos*)
9250 case $host_cpu in
9251 powerpc)
9252 # see comment about AmigaOS4 .so support
9253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254 archive_expsym_cmds=''
9256 m68k)
9257 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)'
9258 hardcode_libdir_flag_spec='-L$libdir'
9259 hardcode_minus_L=yes
9261 esac
9264 bsdi[45]*)
9265 export_dynamic_flag_spec=-rdynamic
9268 cygwin* | mingw* | pw32* | cegcc*)
9269 # When not using gcc, we currently assume that we are using
9270 # Microsoft Visual C++.
9271 # hardcode_libdir_flag_spec is actually meaningless, as there is
9272 # no search path for DLLs.
9273 hardcode_libdir_flag_spec=' '
9274 allow_undefined_flag=unsupported
9275 # Tell ltmain to make .lib files, not .a files.
9276 libext=lib
9277 # Tell ltmain to make .dll files, not .so files.
9278 shrext_cmds=".dll"
9279 # FIXME: Setting linknames here is a bad hack.
9280 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9281 # The linker will automatically build a .lib file if we build a DLL.
9282 old_archive_from_new_cmds='true'
9283 # FIXME: Should let the user specify the lib program.
9284 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9285 fix_srcfile_path='`cygpath -w "$srcfile"`'
9286 enable_shared_with_static_runtimes=yes
9289 darwin* | rhapsody*)
9292 archive_cmds_need_lc=no
9293 hardcode_direct=no
9294 hardcode_automatic=yes
9295 hardcode_shlibpath_var=unsupported
9296 if test "$lt_cv_ld_force_load" = "yes"; then
9297 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\"`'
9298 else
9299 whole_archive_flag_spec=''
9301 link_all_deplibs=yes
9302 allow_undefined_flag="$_lt_dar_allow_undefined"
9303 case $cc_basename in
9304 ifort*) _lt_dar_can_shared=yes ;;
9305 *) _lt_dar_can_shared=$GCC ;;
9306 esac
9307 if test "$_lt_dar_can_shared" = "yes"; then
9308 output_verbose_link_cmd=func_echo_all
9309 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9310 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9311 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}"
9312 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}"
9314 else
9315 ld_shlibs=no
9320 dgux*)
9321 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9322 hardcode_libdir_flag_spec='-L$libdir'
9323 hardcode_shlibpath_var=no
9326 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9327 # support. Future versions do this automatically, but an explicit c++rt0.o
9328 # does not break anything, and helps significantly (at the cost of a little
9329 # extra space).
9330 freebsd2.2*)
9331 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9332 hardcode_libdir_flag_spec='-R$libdir'
9333 hardcode_direct=yes
9334 hardcode_shlibpath_var=no
9337 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9338 freebsd2.*)
9339 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9340 hardcode_direct=yes
9341 hardcode_minus_L=yes
9342 hardcode_shlibpath_var=no
9345 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9346 freebsd* | dragonfly*)
9347 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9348 hardcode_libdir_flag_spec='-R$libdir'
9349 hardcode_direct=yes
9350 hardcode_shlibpath_var=no
9353 hpux9*)
9354 if test "$GCC" = yes; then
9355 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'
9356 else
9357 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'
9359 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9360 hardcode_libdir_separator=:
9361 hardcode_direct=yes
9363 # hardcode_minus_L: Not really in the search PATH,
9364 # but as the default location of the library.
9365 hardcode_minus_L=yes
9366 export_dynamic_flag_spec='${wl}-E'
9369 hpux10*)
9370 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9371 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9372 else
9373 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9375 if test "$with_gnu_ld" = no; then
9376 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9377 hardcode_libdir_flag_spec_ld='+b $libdir'
9378 hardcode_libdir_separator=:
9379 hardcode_direct=yes
9380 hardcode_direct_absolute=yes
9381 export_dynamic_flag_spec='${wl}-E'
9382 # hardcode_minus_L: Not really in the search PATH,
9383 # but as the default location of the library.
9384 hardcode_minus_L=yes
9388 hpux11*)
9389 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9390 case $host_cpu in
9391 hppa*64*)
9392 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9394 ia64*)
9395 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9398 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9400 esac
9401 else
9402 case $host_cpu in
9403 hppa*64*)
9404 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9406 ia64*)
9407 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9411 # Older versions of the 11.00 compiler do not understand -b yet
9412 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9414 $as_echo_n "checking if $CC understands -b... " >&6; }
9415 if test "${lt_cv_prog_compiler__b+set}" = set; then :
9416 $as_echo_n "(cached) " >&6
9417 else
9418 lt_cv_prog_compiler__b=no
9419 save_LDFLAGS="$LDFLAGS"
9420 LDFLAGS="$LDFLAGS -b"
9421 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9422 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9423 # The linker can only warn and ignore the option if not recognized
9424 # So say no if there are warnings
9425 if test -s conftest.err; then
9426 # Append any errors to the config.log.
9427 cat conftest.err 1>&5
9428 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9429 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9430 if diff conftest.exp conftest.er2 >/dev/null; then
9431 lt_cv_prog_compiler__b=yes
9433 else
9434 lt_cv_prog_compiler__b=yes
9437 $RM -r conftest*
9438 LDFLAGS="$save_LDFLAGS"
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9442 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9444 if test x"$lt_cv_prog_compiler__b" = xyes; then
9445 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9446 else
9447 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9451 esac
9453 if test "$with_gnu_ld" = no; then
9454 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9455 hardcode_libdir_separator=:
9457 case $host_cpu in
9458 hppa*64*|ia64*)
9459 hardcode_direct=no
9460 hardcode_shlibpath_var=no
9463 hardcode_direct=yes
9464 hardcode_direct_absolute=yes
9465 export_dynamic_flag_spec='${wl}-E'
9467 # hardcode_minus_L: Not really in the search PATH,
9468 # but as the default location of the library.
9469 hardcode_minus_L=yes
9471 esac
9475 irix5* | irix6* | nonstopux*)
9476 if test "$GCC" = yes; then
9477 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'
9478 # Try to use the -exported_symbol ld option, if it does not
9479 # work, assume that -exports_file does not work either and
9480 # implicitly export all symbols.
9481 save_LDFLAGS="$LDFLAGS"
9482 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9484 /* end confdefs.h. */
9485 int foo(void) {}
9486 _ACEOF
9487 if ac_fn_c_try_link "$LINENO"; then :
9488 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'
9491 rm -f core conftest.err conftest.$ac_objext \
9492 conftest$ac_exeext conftest.$ac_ext
9493 LDFLAGS="$save_LDFLAGS"
9494 else
9495 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'
9496 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'
9498 archive_cmds_need_lc='no'
9499 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9500 hardcode_libdir_separator=:
9501 inherit_rpath=yes
9502 link_all_deplibs=yes
9505 netbsd*)
9506 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9507 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9508 else
9509 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9511 hardcode_libdir_flag_spec='-R$libdir'
9512 hardcode_direct=yes
9513 hardcode_shlibpath_var=no
9516 newsos6)
9517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9518 hardcode_direct=yes
9519 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9520 hardcode_libdir_separator=:
9521 hardcode_shlibpath_var=no
9524 *nto* | *qnx*)
9527 openbsd*)
9528 if test -f /usr/libexec/ld.so; then
9529 hardcode_direct=yes
9530 hardcode_shlibpath_var=no
9531 hardcode_direct_absolute=yes
9532 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9533 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9534 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9535 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9536 export_dynamic_flag_spec='${wl}-E'
9537 else
9538 case $host_os in
9539 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9540 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9541 hardcode_libdir_flag_spec='-R$libdir'
9544 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9545 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9547 esac
9549 else
9550 ld_shlibs=no
9554 os2*)
9555 hardcode_libdir_flag_spec='-L$libdir'
9556 hardcode_minus_L=yes
9557 allow_undefined_flag=unsupported
9558 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'
9559 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9562 osf3*)
9563 if test "$GCC" = yes; then
9564 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9565 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'
9566 else
9567 allow_undefined_flag=' -expect_unresolved \*'
9568 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'
9570 archive_cmds_need_lc='no'
9571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572 hardcode_libdir_separator=:
9575 osf4* | osf5*) # as osf3* with the addition of -msym flag
9576 if test "$GCC" = yes; then
9577 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9578 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'
9579 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9580 else
9581 allow_undefined_flag=' -expect_unresolved \*'
9582 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'
9583 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~
9584 $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'
9586 # Both c and cxx compiler support -rpath directly
9587 hardcode_libdir_flag_spec='-rpath $libdir'
9589 archive_cmds_need_lc='no'
9590 hardcode_libdir_separator=:
9593 solaris*)
9594 no_undefined_flag=' -z defs'
9595 if test "$GCC" = yes; then
9596 wlarc='${wl}'
9597 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9598 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9599 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9600 else
9601 case `$CC -V 2>&1` in
9602 *"Compilers 5.0"*)
9603 wlarc=''
9604 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9605 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9606 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9609 wlarc='${wl}'
9610 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9611 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9612 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9614 esac
9616 hardcode_libdir_flag_spec='-R$libdir'
9617 hardcode_shlibpath_var=no
9618 case $host_os in
9619 solaris2.[0-5] | solaris2.[0-5].*) ;;
9621 # The compiler driver will combine and reorder linker options,
9622 # but understands `-z linker_flag'. GCC discards it without `$wl',
9623 # but is careful enough not to reorder.
9624 # Supported since Solaris 2.6 (maybe 2.5.1?)
9625 if test "$GCC" = yes; then
9626 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9627 else
9628 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9631 esac
9632 link_all_deplibs=yes
9635 sunos4*)
9636 if test "x$host_vendor" = xsequent; then
9637 # Use $CC to link under sequent, because it throws in some extra .o
9638 # files that make .init and .fini sections work.
9639 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9640 else
9641 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9643 hardcode_libdir_flag_spec='-L$libdir'
9644 hardcode_direct=yes
9645 hardcode_minus_L=yes
9646 hardcode_shlibpath_var=no
9649 sysv4)
9650 case $host_vendor in
9651 sni)
9652 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653 hardcode_direct=yes # is this really true???
9655 siemens)
9656 ## LD is ld it makes a PLAMLIB
9657 ## CC just makes a GrossModule.
9658 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9659 reload_cmds='$CC -r -o $output$reload_objs'
9660 hardcode_direct=no
9662 motorola)
9663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9666 esac
9667 runpath_var='LD_RUN_PATH'
9668 hardcode_shlibpath_var=no
9671 sysv4.3*)
9672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9673 hardcode_shlibpath_var=no
9674 export_dynamic_flag_spec='-Bexport'
9677 sysv4*MP*)
9678 if test -d /usr/nec; then
9679 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9680 hardcode_shlibpath_var=no
9681 runpath_var=LD_RUN_PATH
9682 hardcode_runpath_var=yes
9683 ld_shlibs=yes
9687 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9688 no_undefined_flag='${wl}-z,text'
9689 archive_cmds_need_lc=no
9690 hardcode_shlibpath_var=no
9691 runpath_var='LD_RUN_PATH'
9693 if test "$GCC" = yes; then
9694 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9695 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696 else
9697 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9698 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9702 sysv5* | sco3.2v5* | sco5v6*)
9703 # Note: We can NOT use -z defs as we might desire, because we do not
9704 # link with -lc, and that would cause any symbols used from libc to
9705 # always be unresolved, which means just about no library would
9706 # ever link correctly. If we're not using GNU ld we use -z text
9707 # though, which does catch some bad symbols but isn't as heavy-handed
9708 # as -z defs.
9709 no_undefined_flag='${wl}-z,text'
9710 allow_undefined_flag='${wl}-z,nodefs'
9711 archive_cmds_need_lc=no
9712 hardcode_shlibpath_var=no
9713 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9714 hardcode_libdir_separator=':'
9715 link_all_deplibs=yes
9716 export_dynamic_flag_spec='${wl}-Bexport'
9717 runpath_var='LD_RUN_PATH'
9719 if test "$GCC" = yes; then
9720 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9721 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9722 else
9723 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9724 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9728 uts4*)
9729 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9730 hardcode_libdir_flag_spec='-L$libdir'
9731 hardcode_shlibpath_var=no
9735 ld_shlibs=no
9737 esac
9739 if test x$host_vendor = xsni; then
9740 case $host in
9741 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9742 export_dynamic_flag_spec='${wl}-Blargedynsym'
9744 esac
9748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9749 $as_echo "$ld_shlibs" >&6; }
9750 test "$ld_shlibs" = no && can_build_shared=no
9752 with_gnu_ld=$with_gnu_ld
9769 # Do we need to explicitly link libc?
9771 case "x$archive_cmds_need_lc" in
9772 x|xyes)
9773 # Assume -lc should be added
9774 archive_cmds_need_lc=yes
9776 if test "$enable_shared" = yes && test "$GCC" = yes; then
9777 case $archive_cmds in
9778 *'~'*)
9779 # FIXME: we may have to deal with multi-command sequences.
9781 '$CC '*)
9782 # Test whether the compiler implicitly links with -lc since on some
9783 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9784 # to ld, don't add -lc before -lgcc.
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9786 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9787 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
9788 $as_echo_n "(cached) " >&6
9789 else
9790 $RM conftest*
9791 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9793 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9794 (eval $ac_compile) 2>&5
9795 ac_status=$?
9796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9797 test $ac_status = 0; } 2>conftest.err; then
9798 soname=conftest
9799 lib=conftest
9800 libobjs=conftest.$ac_objext
9801 deplibs=
9802 wl=$lt_prog_compiler_wl
9803 pic_flag=$lt_prog_compiler_pic
9804 compiler_flags=-v
9805 linker_flags=-v
9806 verstring=
9807 output_objdir=.
9808 libname=conftest
9809 lt_save_allow_undefined_flag=$allow_undefined_flag
9810 allow_undefined_flag=
9811 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9812 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9813 ac_status=$?
9814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9815 test $ac_status = 0; }
9816 then
9817 lt_cv_archive_cmds_need_lc=no
9818 else
9819 lt_cv_archive_cmds_need_lc=yes
9821 allow_undefined_flag=$lt_save_allow_undefined_flag
9822 else
9823 cat conftest.err 1>&5
9825 $RM conftest*
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9829 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9830 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9832 esac
9835 esac
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9994 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9996 if test "$GCC" = yes; then
9997 case $host_os in
9998 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9999 *) lt_awk_arg="/^libraries:/" ;;
10000 esac
10001 case $host_os in
10002 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10003 *) lt_sed_strip_eq="s,=/,/,g" ;;
10004 esac
10005 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10006 case $lt_search_path_spec in
10007 *\;*)
10008 # if the path contains ";" then we assume it to be the separator
10009 # otherwise default to the standard path separator (i.e. ":") - it is
10010 # assumed that no part of a normal pathname contains ";" but that should
10011 # okay in the real world where ";" in dirpaths is itself problematic.
10012 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10015 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10017 esac
10018 # Ok, now we have the path, separated by spaces, we can step through it
10019 # and add multilib dir if necessary.
10020 lt_tmp_lt_search_path_spec=
10021 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10022 for lt_sys_path in $lt_search_path_spec; do
10023 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10024 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10025 else
10026 test -d "$lt_sys_path" && \
10027 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10029 done
10030 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10031 BEGIN {RS=" "; FS="/|\n";} {
10032 lt_foo="";
10033 lt_count=0;
10034 for (lt_i = NF; lt_i > 0; lt_i--) {
10035 if ($lt_i != "" && $lt_i != ".") {
10036 if ($lt_i == "..") {
10037 lt_count++;
10038 } else {
10039 if (lt_count == 0) {
10040 lt_foo="/" $lt_i lt_foo;
10041 } else {
10042 lt_count--;
10047 if (lt_foo != "") { lt_freq[lt_foo]++; }
10048 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10050 # AWK program above erroneously prepends '/' to C:/dos/paths
10051 # for these hosts.
10052 case $host_os in
10053 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10054 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10055 esac
10056 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10057 else
10058 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10060 library_names_spec=
10061 libname_spec='lib$name'
10062 soname_spec=
10063 shrext_cmds=".so"
10064 postinstall_cmds=
10065 postuninstall_cmds=
10066 finish_cmds=
10067 finish_eval=
10068 shlibpath_var=
10069 shlibpath_overrides_runpath=unknown
10070 version_type=none
10071 dynamic_linker="$host_os ld.so"
10072 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10073 need_lib_prefix=unknown
10074 hardcode_into_libs=no
10076 # when you set need_version to no, make sure it does not cause -set_version
10077 # flags to be left without arguments
10078 need_version=unknown
10080 case $host_os in
10081 aix3*)
10082 version_type=linux
10083 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10084 shlibpath_var=LIBPATH
10086 # AIX 3 has no versioning support, so we append a major version to the name.
10087 soname_spec='${libname}${release}${shared_ext}$major'
10090 aix[4-9]*)
10091 version_type=linux
10092 need_lib_prefix=no
10093 need_version=no
10094 hardcode_into_libs=yes
10095 if test "$host_cpu" = ia64; then
10096 # AIX 5 supports IA64
10097 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10098 shlibpath_var=LD_LIBRARY_PATH
10099 else
10100 # With GCC up to 2.95.x, collect2 would create an import file
10101 # for dependence libraries. The import file would start with
10102 # the line `#! .'. This would cause the generated library to
10103 # depend on `.', always an invalid library. This was fixed in
10104 # development snapshots of GCC prior to 3.0.
10105 case $host_os in
10106 aix4 | aix4.[01] | aix4.[01].*)
10107 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10108 echo ' yes '
10109 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10111 else
10112 can_build_shared=no
10115 esac
10116 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10117 # soname into executable. Probably we can add versioning support to
10118 # collect2, so additional links can be useful in future.
10119 if test "$aix_use_runtimelinking" = yes; then
10120 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10121 # instead of lib<name>.a to let people know that these are not
10122 # typical AIX shared libraries.
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 else
10125 # We preserve .a as extension for shared libraries through AIX4.2
10126 # and later when we are not doing run time linking.
10127 library_names_spec='${libname}${release}.a $libname.a'
10128 soname_spec='${libname}${release}${shared_ext}$major'
10130 shlibpath_var=LIBPATH
10134 amigaos*)
10135 case $host_cpu in
10136 powerpc)
10137 # Since July 2007 AmigaOS4 officially supports .so libraries.
10138 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10141 m68k)
10142 library_names_spec='$libname.ixlibrary $libname.a'
10143 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10144 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'
10146 esac
10149 beos*)
10150 library_names_spec='${libname}${shared_ext}'
10151 dynamic_linker="$host_os ld.so"
10152 shlibpath_var=LIBRARY_PATH
10155 bsdi[45]*)
10156 version_type=linux
10157 need_version=no
10158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10159 soname_spec='${libname}${release}${shared_ext}$major'
10160 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10161 shlibpath_var=LD_LIBRARY_PATH
10162 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10163 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10164 # the default ld.so.conf also contains /usr/contrib/lib and
10165 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10166 # libtool to hard-code these into programs
10169 cygwin* | mingw* | pw32* | cegcc*)
10170 version_type=windows
10171 shrext_cmds=".dll"
10172 need_version=no
10173 need_lib_prefix=no
10175 case $GCC,$host_os in
10176 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10177 library_names_spec='$libname.dll.a'
10178 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10179 postinstall_cmds='base_file=`basename \${file}`~
10180 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10181 dldir=$destdir/`dirname \$dlpath`~
10182 test -d \$dldir || mkdir -p \$dldir~
10183 $install_prog $dir/$dlname \$dldir/$dlname~
10184 chmod a+x \$dldir/$dlname~
10185 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10186 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10188 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10189 dlpath=$dir/\$dldll~
10190 $RM \$dlpath'
10191 shlibpath_overrides_runpath=yes
10193 case $host_os in
10194 cygwin*)
10195 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10196 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10198 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10200 mingw* | cegcc*)
10201 # MinGW DLLs use traditional 'lib' prefix
10202 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10204 pw32*)
10205 # pw32 DLLs use 'pw' prefix rather than 'lib'
10206 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10208 esac
10212 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10214 esac
10215 dynamic_linker='Win32 ld.exe'
10216 # FIXME: first we should search . and the directory the executable is in
10217 shlibpath_var=PATH
10220 darwin* | rhapsody*)
10221 dynamic_linker="$host_os dyld"
10222 version_type=darwin
10223 need_lib_prefix=no
10224 need_version=no
10225 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10226 soname_spec='${libname}${release}${major}$shared_ext'
10227 shlibpath_overrides_runpath=yes
10228 shlibpath_var=DYLD_LIBRARY_PATH
10229 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10231 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10232 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10235 dgux*)
10236 version_type=linux
10237 need_lib_prefix=no
10238 need_version=no
10239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10240 soname_spec='${libname}${release}${shared_ext}$major'
10241 shlibpath_var=LD_LIBRARY_PATH
10244 freebsd* | dragonfly*)
10245 # DragonFly does not have aout. When/if they implement a new
10246 # versioning mechanism, adjust this.
10247 if test -x /usr/bin/objformat; then
10248 objformat=`/usr/bin/objformat`
10249 else
10250 case $host_os in
10251 freebsd[23].*) objformat=aout ;;
10252 *) objformat=elf ;;
10253 esac
10255 version_type=freebsd-$objformat
10256 case $version_type in
10257 freebsd-elf*)
10258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10259 need_version=no
10260 need_lib_prefix=no
10262 freebsd-*)
10263 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10264 need_version=yes
10266 esac
10267 shlibpath_var=LD_LIBRARY_PATH
10268 case $host_os in
10269 freebsd2.*)
10270 shlibpath_overrides_runpath=yes
10272 freebsd3.[01]* | freebsdelf3.[01]*)
10273 shlibpath_overrides_runpath=yes
10274 hardcode_into_libs=yes
10276 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10277 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10278 shlibpath_overrides_runpath=no
10279 hardcode_into_libs=yes
10281 *) # from 4.6 on, and DragonFly
10282 shlibpath_overrides_runpath=yes
10283 hardcode_into_libs=yes
10285 esac
10288 gnu*)
10289 version_type=linux
10290 need_lib_prefix=no
10291 need_version=no
10292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 shlibpath_var=LD_LIBRARY_PATH
10295 hardcode_into_libs=yes
10298 haiku*)
10299 version_type=linux
10300 need_lib_prefix=no
10301 need_version=no
10302 dynamic_linker="$host_os runtime_loader"
10303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10304 soname_spec='${libname}${release}${shared_ext}$major'
10305 shlibpath_var=LIBRARY_PATH
10306 shlibpath_overrides_runpath=yes
10307 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10308 hardcode_into_libs=yes
10311 hpux9* | hpux10* | hpux11*)
10312 # Give a soname corresponding to the major version so that dld.sl refuses to
10313 # link against other versions.
10314 version_type=sunos
10315 need_lib_prefix=no
10316 need_version=no
10317 case $host_cpu in
10318 ia64*)
10319 shrext_cmds='.so'
10320 hardcode_into_libs=yes
10321 dynamic_linker="$host_os dld.so"
10322 shlibpath_var=LD_LIBRARY_PATH
10323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10325 soname_spec='${libname}${release}${shared_ext}$major'
10326 if test "X$HPUX_IA64_MODE" = X32; then
10327 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10328 else
10329 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10331 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10333 hppa*64*)
10334 shrext_cmds='.sl'
10335 hardcode_into_libs=yes
10336 dynamic_linker="$host_os dld.sl"
10337 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10338 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10340 soname_spec='${libname}${release}${shared_ext}$major'
10341 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10345 shrext_cmds='.sl'
10346 dynamic_linker="$host_os dld.sl"
10347 shlibpath_var=SHLIB_PATH
10348 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10350 soname_spec='${libname}${release}${shared_ext}$major'
10352 esac
10353 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10354 postinstall_cmds='chmod 555 $lib'
10355 # or fails outright, so override atomically:
10356 install_override_mode=555
10359 interix[3-9]*)
10360 version_type=linux
10361 need_lib_prefix=no
10362 need_version=no
10363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10364 soname_spec='${libname}${release}${shared_ext}$major'
10365 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10366 shlibpath_var=LD_LIBRARY_PATH
10367 shlibpath_overrides_runpath=no
10368 hardcode_into_libs=yes
10371 irix5* | irix6* | nonstopux*)
10372 case $host_os in
10373 nonstopux*) version_type=nonstopux ;;
10375 if test "$lt_cv_prog_gnu_ld" = yes; then
10376 version_type=linux
10377 else
10378 version_type=irix
10379 fi ;;
10380 esac
10381 need_lib_prefix=no
10382 need_version=no
10383 soname_spec='${libname}${release}${shared_ext}$major'
10384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10385 case $host_os in
10386 irix5* | nonstopux*)
10387 libsuff= shlibsuff=
10390 case $LD in # libtool.m4 will add one of these switches to LD
10391 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10392 libsuff= shlibsuff= libmagic=32-bit;;
10393 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10394 libsuff=32 shlibsuff=N32 libmagic=N32;;
10395 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10396 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10397 *) libsuff= shlibsuff= libmagic=never-match;;
10398 esac
10400 esac
10401 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10402 shlibpath_overrides_runpath=no
10403 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10404 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10405 hardcode_into_libs=yes
10408 # No shared lib support for Linux oldld, aout, or coff.
10409 linux*oldld* | linux*aout* | linux*coff*)
10410 dynamic_linker=no
10413 # This must be Linux ELF.
10414 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10415 version_type=linux
10416 need_lib_prefix=no
10417 need_version=no
10418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10419 soname_spec='${libname}${release}${shared_ext}$major'
10420 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10421 shlibpath_var=LD_LIBRARY_PATH
10422 shlibpath_overrides_runpath=no
10424 # Some binutils ld are patched to set DT_RUNPATH
10425 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10426 $as_echo_n "(cached) " >&6
10427 else
10428 lt_cv_shlibpath_overrides_runpath=no
10429 save_LDFLAGS=$LDFLAGS
10430 save_libdir=$libdir
10431 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10432 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10434 /* end confdefs.h. */
10437 main ()
10441 return 0;
10443 _ACEOF
10444 if ac_fn_c_try_link "$LINENO"; then :
10445 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10446 lt_cv_shlibpath_overrides_runpath=yes
10449 rm -f core conftest.err conftest.$ac_objext \
10450 conftest$ac_exeext conftest.$ac_ext
10451 LDFLAGS=$save_LDFLAGS
10452 libdir=$save_libdir
10456 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10458 # This implies no fast_install, which is unacceptable.
10459 # Some rework will be needed to allow for fast_install
10460 # before this can be enabled.
10461 hardcode_into_libs=yes
10463 # Append ld.so.conf contents to the search path
10464 if test -f /etc/ld.so.conf; then
10465 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' ' '`
10466 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10469 # We used to test for /lib/ld.so.1 and disable shared libraries on
10470 # powerpc, because MkLinux only supported shared libraries with the
10471 # GNU dynamic linker. Since this was broken with cross compilers,
10472 # most powerpc-linux boxes support dynamic linking these days and
10473 # people can always --disable-shared, the test was removed, and we
10474 # assume the GNU/Linux dynamic linker is in use.
10475 dynamic_linker='GNU/Linux ld.so'
10478 netbsd*)
10479 version_type=sunos
10480 need_lib_prefix=no
10481 need_version=no
10482 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10484 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10485 dynamic_linker='NetBSD (a.out) ld.so'
10486 else
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10488 soname_spec='${libname}${release}${shared_ext}$major'
10489 dynamic_linker='NetBSD ld.elf_so'
10491 shlibpath_var=LD_LIBRARY_PATH
10492 shlibpath_overrides_runpath=yes
10493 hardcode_into_libs=yes
10496 newsos6)
10497 version_type=linux
10498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10499 shlibpath_var=LD_LIBRARY_PATH
10500 shlibpath_overrides_runpath=yes
10503 *nto* | *qnx*)
10504 version_type=qnx
10505 need_lib_prefix=no
10506 need_version=no
10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10508 soname_spec='${libname}${release}${shared_ext}$major'
10509 shlibpath_var=LD_LIBRARY_PATH
10510 shlibpath_overrides_runpath=no
10511 hardcode_into_libs=yes
10512 dynamic_linker='ldqnx.so'
10515 openbsd*)
10516 version_type=sunos
10517 sys_lib_dlsearch_path_spec="/usr/lib"
10518 need_lib_prefix=no
10519 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10520 case $host_os in
10521 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10522 *) need_version=no ;;
10523 esac
10524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10525 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10526 shlibpath_var=LD_LIBRARY_PATH
10527 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10528 case $host_os in
10529 openbsd2.[89] | openbsd2.[89].*)
10530 shlibpath_overrides_runpath=no
10533 shlibpath_overrides_runpath=yes
10535 esac
10536 else
10537 shlibpath_overrides_runpath=yes
10541 os2*)
10542 libname_spec='$name'
10543 shrext_cmds=".dll"
10544 need_lib_prefix=no
10545 library_names_spec='$libname${shared_ext} $libname.a'
10546 dynamic_linker='OS/2 ld.exe'
10547 shlibpath_var=LIBPATH
10550 osf3* | osf4* | osf5*)
10551 version_type=osf
10552 need_lib_prefix=no
10553 need_version=no
10554 soname_spec='${libname}${release}${shared_ext}$major'
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10556 shlibpath_var=LD_LIBRARY_PATH
10557 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10558 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10561 rdos*)
10562 dynamic_linker=no
10565 solaris*)
10566 version_type=linux
10567 need_lib_prefix=no
10568 need_version=no
10569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10570 soname_spec='${libname}${release}${shared_ext}$major'
10571 shlibpath_var=LD_LIBRARY_PATH
10572 shlibpath_overrides_runpath=yes
10573 hardcode_into_libs=yes
10574 # ldd complains unless libraries are executable
10575 postinstall_cmds='chmod +x $lib'
10578 sunos4*)
10579 version_type=sunos
10580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10581 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10582 shlibpath_var=LD_LIBRARY_PATH
10583 shlibpath_overrides_runpath=yes
10584 if test "$with_gnu_ld" = yes; then
10585 need_lib_prefix=no
10587 need_version=yes
10590 sysv4 | sysv4.3*)
10591 version_type=linux
10592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10593 soname_spec='${libname}${release}${shared_ext}$major'
10594 shlibpath_var=LD_LIBRARY_PATH
10595 case $host_vendor in
10596 sni)
10597 shlibpath_overrides_runpath=no
10598 need_lib_prefix=no
10599 runpath_var=LD_RUN_PATH
10601 siemens)
10602 need_lib_prefix=no
10604 motorola)
10605 need_lib_prefix=no
10606 need_version=no
10607 shlibpath_overrides_runpath=no
10608 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10610 esac
10613 sysv4*MP*)
10614 if test -d /usr/nec ;then
10615 version_type=linux
10616 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10617 soname_spec='$libname${shared_ext}.$major'
10618 shlibpath_var=LD_LIBRARY_PATH
10622 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10623 version_type=freebsd-elf
10624 need_lib_prefix=no
10625 need_version=no
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10627 soname_spec='${libname}${release}${shared_ext}$major'
10628 shlibpath_var=LD_LIBRARY_PATH
10629 shlibpath_overrides_runpath=yes
10630 hardcode_into_libs=yes
10631 if test "$with_gnu_ld" = yes; then
10632 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10633 else
10634 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10635 case $host_os in
10636 sco3.2v5*)
10637 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10639 esac
10641 sys_lib_dlsearch_path_spec='/usr/lib'
10644 tpf*)
10645 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10646 version_type=linux
10647 need_lib_prefix=no
10648 need_version=no
10649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10650 shlibpath_var=LD_LIBRARY_PATH
10651 shlibpath_overrides_runpath=no
10652 hardcode_into_libs=yes
10655 uts4*)
10656 version_type=linux
10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10658 soname_spec='${libname}${release}${shared_ext}$major'
10659 shlibpath_var=LD_LIBRARY_PATH
10663 dynamic_linker=no
10665 esac
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10667 $as_echo "$dynamic_linker" >&6; }
10668 test "$dynamic_linker" = no && can_build_shared=no
10670 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10671 if test "$GCC" = yes; then
10672 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10675 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10676 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10678 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10679 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10774 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10775 hardcode_action=
10776 if test -n "$hardcode_libdir_flag_spec" ||
10777 test -n "$runpath_var" ||
10778 test "X$hardcode_automatic" = "Xyes" ; then
10780 # We can hardcode non-existent directories.
10781 if test "$hardcode_direct" != no &&
10782 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10783 # have to relink, otherwise we might link with an installed library
10784 # when we should be linking with a yet-to-be-installed one
10785 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10786 test "$hardcode_minus_L" != no; then
10787 # Linking always hardcodes the temporary library directory.
10788 hardcode_action=relink
10789 else
10790 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10791 hardcode_action=immediate
10793 else
10794 # We cannot hardcode anything, or else we can only hardcode existing
10795 # directories.
10796 hardcode_action=unsupported
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10799 $as_echo "$hardcode_action" >&6; }
10801 if test "$hardcode_action" = relink ||
10802 test "$inherit_rpath" = yes; then
10803 # Fast installation is not supported
10804 enable_fast_install=no
10805 elif test "$shlibpath_overrides_runpath" = yes ||
10806 test "$enable_shared" = no; then
10807 # Fast installation is not necessary
10808 enable_fast_install=needless
10816 if test "x$enable_dlopen" != xyes; then
10817 enable_dlopen=unknown
10818 enable_dlopen_self=unknown
10819 enable_dlopen_self_static=unknown
10820 else
10821 lt_cv_dlopen=no
10822 lt_cv_dlopen_libs=
10824 case $host_os in
10825 beos*)
10826 lt_cv_dlopen="load_add_on"
10827 lt_cv_dlopen_libs=
10828 lt_cv_dlopen_self=yes
10831 mingw* | pw32* | cegcc*)
10832 lt_cv_dlopen="LoadLibrary"
10833 lt_cv_dlopen_libs=
10836 cygwin*)
10837 lt_cv_dlopen="dlopen"
10838 lt_cv_dlopen_libs=
10841 darwin*)
10842 # if libdl is installed we need to link against it
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10844 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10845 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10846 $as_echo_n "(cached) " >&6
10847 else
10848 ac_check_lib_save_LIBS=$LIBS
10849 LIBS="-ldl $LIBS"
10850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10853 /* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
10856 #ifdef __cplusplus
10857 extern "C"
10858 #endif
10859 char dlopen ();
10861 main ()
10863 return dlopen ();
10865 return 0;
10867 _ACEOF
10868 if ac_fn_c_try_link "$LINENO"; then :
10869 ac_cv_lib_dl_dlopen=yes
10870 else
10871 ac_cv_lib_dl_dlopen=no
10873 rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875 LIBS=$ac_check_lib_save_LIBS
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10878 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10879 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10881 else
10883 lt_cv_dlopen="dyld"
10884 lt_cv_dlopen_libs=
10885 lt_cv_dlopen_self=yes
10892 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10893 if test "x$ac_cv_func_shl_load" = x""yes; then :
10894 lt_cv_dlopen="shl_load"
10895 else
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10897 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10898 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
10899 $as_echo_n "(cached) " >&6
10900 else
10901 ac_check_lib_save_LIBS=$LIBS
10902 LIBS="-ldld $LIBS"
10903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10904 /* end confdefs.h. */
10906 /* Override any GCC internal prototype to avoid an error.
10907 Use char because int might match the return type of a GCC
10908 builtin and then its argument prototype would still apply. */
10909 #ifdef __cplusplus
10910 extern "C"
10911 #endif
10912 char shl_load ();
10914 main ()
10916 return shl_load ();
10918 return 0;
10920 _ACEOF
10921 if ac_fn_c_try_link "$LINENO"; then :
10922 ac_cv_lib_dld_shl_load=yes
10923 else
10924 ac_cv_lib_dld_shl_load=no
10926 rm -f core conftest.err conftest.$ac_objext \
10927 conftest$ac_exeext conftest.$ac_ext
10928 LIBS=$ac_check_lib_save_LIBS
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10931 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10932 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
10933 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10934 else
10935 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10936 if test "x$ac_cv_func_dlopen" = x""yes; then :
10937 lt_cv_dlopen="dlopen"
10938 else
10939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10940 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10941 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
10942 $as_echo_n "(cached) " >&6
10943 else
10944 ac_check_lib_save_LIBS=$LIBS
10945 LIBS="-ldl $LIBS"
10946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10947 /* end confdefs.h. */
10949 /* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10952 #ifdef __cplusplus
10953 extern "C"
10954 #endif
10955 char dlopen ();
10957 main ()
10959 return dlopen ();
10961 return 0;
10963 _ACEOF
10964 if ac_fn_c_try_link "$LINENO"; then :
10965 ac_cv_lib_dl_dlopen=yes
10966 else
10967 ac_cv_lib_dl_dlopen=no
10969 rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10974 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10975 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
10976 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10977 else
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10979 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10980 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
10981 $as_echo_n "(cached) " >&6
10982 else
10983 ac_check_lib_save_LIBS=$LIBS
10984 LIBS="-lsvld $LIBS"
10985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10986 /* end confdefs.h. */
10988 /* Override any GCC internal prototype to avoid an error.
10989 Use char because int might match the return type of a GCC
10990 builtin and then its argument prototype would still apply. */
10991 #ifdef __cplusplus
10992 extern "C"
10993 #endif
10994 char dlopen ();
10996 main ()
10998 return dlopen ();
11000 return 0;
11002 _ACEOF
11003 if ac_fn_c_try_link "$LINENO"; then :
11004 ac_cv_lib_svld_dlopen=yes
11005 else
11006 ac_cv_lib_svld_dlopen=no
11008 rm -f core conftest.err conftest.$ac_objext \
11009 conftest$ac_exeext conftest.$ac_ext
11010 LIBS=$ac_check_lib_save_LIBS
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11013 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11014 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11015 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11016 else
11017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11018 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11019 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11020 $as_echo_n "(cached) " >&6
11021 else
11022 ac_check_lib_save_LIBS=$LIBS
11023 LIBS="-ldld $LIBS"
11024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11025 /* end confdefs.h. */
11027 /* Override any GCC internal prototype to avoid an error.
11028 Use char because int might match the return type of a GCC
11029 builtin and then its argument prototype would still apply. */
11030 #ifdef __cplusplus
11031 extern "C"
11032 #endif
11033 char dld_link ();
11035 main ()
11037 return dld_link ();
11039 return 0;
11041 _ACEOF
11042 if ac_fn_c_try_link "$LINENO"; then :
11043 ac_cv_lib_dld_dld_link=yes
11044 else
11045 ac_cv_lib_dld_dld_link=no
11047 rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11052 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11053 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11054 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11073 esac
11075 if test "x$lt_cv_dlopen" != xno; then
11076 enable_dlopen=yes
11077 else
11078 enable_dlopen=no
11081 case $lt_cv_dlopen in
11082 dlopen)
11083 save_CPPFLAGS="$CPPFLAGS"
11084 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11086 save_LDFLAGS="$LDFLAGS"
11087 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11089 save_LIBS="$LIBS"
11090 LIBS="$lt_cv_dlopen_libs $LIBS"
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11093 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11094 if test "${lt_cv_dlopen_self+set}" = set; then :
11095 $as_echo_n "(cached) " >&6
11096 else
11097 if test "$cross_compiling" = yes; then :
11098 lt_cv_dlopen_self=cross
11099 else
11100 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11101 lt_status=$lt_dlunknown
11102 cat > conftest.$ac_ext <<_LT_EOF
11103 #line 11103 "configure"
11104 #include "confdefs.h"
11106 #if HAVE_DLFCN_H
11107 #include <dlfcn.h>
11108 #endif
11110 #include <stdio.h>
11112 #ifdef RTLD_GLOBAL
11113 # define LT_DLGLOBAL RTLD_GLOBAL
11114 #else
11115 # ifdef DL_GLOBAL
11116 # define LT_DLGLOBAL DL_GLOBAL
11117 # else
11118 # define LT_DLGLOBAL 0
11119 # endif
11120 #endif
11122 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11123 find out it does not work in some platform. */
11124 #ifndef LT_DLLAZY_OR_NOW
11125 # ifdef RTLD_LAZY
11126 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11127 # else
11128 # ifdef DL_LAZY
11129 # define LT_DLLAZY_OR_NOW DL_LAZY
11130 # else
11131 # ifdef RTLD_NOW
11132 # define LT_DLLAZY_OR_NOW RTLD_NOW
11133 # else
11134 # ifdef DL_NOW
11135 # define LT_DLLAZY_OR_NOW DL_NOW
11136 # else
11137 # define LT_DLLAZY_OR_NOW 0
11138 # endif
11139 # endif
11140 # endif
11141 # endif
11142 #endif
11144 /* When -fvisbility=hidden is used, assume the code has been annotated
11145 correspondingly for the symbols needed. */
11146 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11147 void fnord () __attribute__((visibility("default")));
11148 #endif
11150 void fnord () { int i=42; }
11151 int main ()
11153 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11154 int status = $lt_dlunknown;
11156 if (self)
11158 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11159 else
11161 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11162 else puts (dlerror ());
11164 /* dlclose (self); */
11166 else
11167 puts (dlerror ());
11169 return status;
11171 _LT_EOF
11172 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11173 (eval $ac_link) 2>&5
11174 ac_status=$?
11175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11176 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11177 (./conftest; exit; ) >&5 2>/dev/null
11178 lt_status=$?
11179 case x$lt_status in
11180 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11181 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11182 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11183 esac
11184 else :
11185 # compilation failed
11186 lt_cv_dlopen_self=no
11189 rm -fr conftest*
11193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11194 $as_echo "$lt_cv_dlopen_self" >&6; }
11196 if test "x$lt_cv_dlopen_self" = xyes; then
11197 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11199 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11200 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11201 $as_echo_n "(cached) " >&6
11202 else
11203 if test "$cross_compiling" = yes; then :
11204 lt_cv_dlopen_self_static=cross
11205 else
11206 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11207 lt_status=$lt_dlunknown
11208 cat > conftest.$ac_ext <<_LT_EOF
11209 #line 11209 "configure"
11210 #include "confdefs.h"
11212 #if HAVE_DLFCN_H
11213 #include <dlfcn.h>
11214 #endif
11216 #include <stdio.h>
11218 #ifdef RTLD_GLOBAL
11219 # define LT_DLGLOBAL RTLD_GLOBAL
11220 #else
11221 # ifdef DL_GLOBAL
11222 # define LT_DLGLOBAL DL_GLOBAL
11223 # else
11224 # define LT_DLGLOBAL 0
11225 # endif
11226 #endif
11228 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11229 find out it does not work in some platform. */
11230 #ifndef LT_DLLAZY_OR_NOW
11231 # ifdef RTLD_LAZY
11232 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11233 # else
11234 # ifdef DL_LAZY
11235 # define LT_DLLAZY_OR_NOW DL_LAZY
11236 # else
11237 # ifdef RTLD_NOW
11238 # define LT_DLLAZY_OR_NOW RTLD_NOW
11239 # else
11240 # ifdef DL_NOW
11241 # define LT_DLLAZY_OR_NOW DL_NOW
11242 # else
11243 # define LT_DLLAZY_OR_NOW 0
11244 # endif
11245 # endif
11246 # endif
11247 # endif
11248 #endif
11250 /* When -fvisbility=hidden is used, assume the code has been annotated
11251 correspondingly for the symbols needed. */
11252 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11253 void fnord () __attribute__((visibility("default")));
11254 #endif
11256 void fnord () { int i=42; }
11257 int main ()
11259 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11260 int status = $lt_dlunknown;
11262 if (self)
11264 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11265 else
11267 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11268 else puts (dlerror ());
11270 /* dlclose (self); */
11272 else
11273 puts (dlerror ());
11275 return status;
11277 _LT_EOF
11278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11279 (eval $ac_link) 2>&5
11280 ac_status=$?
11281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11282 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11283 (./conftest; exit; ) >&5 2>/dev/null
11284 lt_status=$?
11285 case x$lt_status in
11286 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11287 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11288 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11289 esac
11290 else :
11291 # compilation failed
11292 lt_cv_dlopen_self_static=no
11295 rm -fr conftest*
11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11300 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11303 CPPFLAGS="$save_CPPFLAGS"
11304 LDFLAGS="$save_LDFLAGS"
11305 LIBS="$save_LIBS"
11307 esac
11309 case $lt_cv_dlopen_self in
11310 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11311 *) enable_dlopen_self=unknown ;;
11312 esac
11314 case $lt_cv_dlopen_self_static in
11315 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11316 *) enable_dlopen_self_static=unknown ;;
11317 esac
11336 striplib=
11337 old_striplib=
11338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11339 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11340 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11341 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11342 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11344 $as_echo "yes" >&6; }
11345 else
11346 # FIXME - insert some real tests, host_os isn't really good enough
11347 case $host_os in
11348 darwin*)
11349 if test -n "$STRIP" ; then
11350 striplib="$STRIP -x"
11351 old_striplib="$STRIP -S"
11352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11353 $as_echo "yes" >&6; }
11354 else
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11356 $as_echo "no" >&6; }
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11363 esac
11377 # Report which library types will actually be built
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11379 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11381 $as_echo "$can_build_shared" >&6; }
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11384 $as_echo_n "checking whether to build shared libraries... " >&6; }
11385 test "$can_build_shared" = "no" && enable_shared=no
11387 # On AIX, shared libraries and static libraries use the same namespace, and
11388 # are all built from PIC.
11389 case $host_os in
11390 aix3*)
11391 test "$enable_shared" = yes && enable_static=no
11392 if test -n "$RANLIB"; then
11393 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11394 postinstall_cmds='$RANLIB $lib'
11398 aix[4-9]*)
11399 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11400 test "$enable_shared" = yes && enable_static=no
11403 esac
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11405 $as_echo "$enable_shared" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11408 $as_echo_n "checking whether to build static libraries... " >&6; }
11409 # Make sure either enable_shared or enable_static is yes.
11410 test "$enable_shared" = yes || enable_static=yes
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11412 $as_echo "$enable_static" >&6; }
11418 ac_ext=c
11419 ac_cpp='$CPP $CPPFLAGS'
11420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11422 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11424 CC="$lt_save_CC"
11426 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11427 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11428 (test "X$CXX" != "Xg++"))) ; then
11429 ac_ext=cpp
11430 ac_cpp='$CXXCPP $CPPFLAGS'
11431 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11432 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11433 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11435 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11436 if test -z "$CXXCPP"; then
11437 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11438 $as_echo_n "(cached) " >&6
11439 else
11440 # Double quotes because CXXCPP needs to be expanded
11441 for CXXCPP in "$CXX -E" "/lib/cpp"
11443 ac_preproc_ok=false
11444 for ac_cxx_preproc_warn_flag in '' yes
11446 # Use a header file that comes with gcc, so configuring glibc
11447 # with a fresh cross-compiler works.
11448 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11449 # <limits.h> exists even on freestanding compilers.
11450 # On the NeXT, cc -E runs the code through the compiler's parser,
11451 # not just through cpp. "Syntax error" is here to catch this case.
11452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11453 /* end confdefs.h. */
11454 #ifdef __STDC__
11455 # include <limits.h>
11456 #else
11457 # include <assert.h>
11458 #endif
11459 Syntax error
11460 _ACEOF
11461 if ac_fn_cxx_try_cpp "$LINENO"; then :
11463 else
11464 # Broken: fails on valid input.
11465 continue
11467 rm -f conftest.err conftest.$ac_ext
11469 # OK, works on sane cases. Now check whether nonexistent headers
11470 # can be detected and how.
11471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11472 /* end confdefs.h. */
11473 #include <ac_nonexistent.h>
11474 _ACEOF
11475 if ac_fn_cxx_try_cpp "$LINENO"; then :
11476 # Broken: success on invalid input.
11477 continue
11478 else
11479 # Passes both tests.
11480 ac_preproc_ok=:
11481 break
11483 rm -f conftest.err conftest.$ac_ext
11485 done
11486 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11487 rm -f conftest.err conftest.$ac_ext
11488 if $ac_preproc_ok; then :
11489 break
11492 done
11493 ac_cv_prog_CXXCPP=$CXXCPP
11496 CXXCPP=$ac_cv_prog_CXXCPP
11497 else
11498 ac_cv_prog_CXXCPP=$CXXCPP
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11501 $as_echo "$CXXCPP" >&6; }
11502 ac_preproc_ok=false
11503 for ac_cxx_preproc_warn_flag in '' yes
11505 # Use a header file that comes with gcc, so configuring glibc
11506 # with a fresh cross-compiler works.
11507 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11508 # <limits.h> exists even on freestanding compilers.
11509 # On the NeXT, cc -E runs the code through the compiler's parser,
11510 # not just through cpp. "Syntax error" is here to catch this case.
11511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512 /* end confdefs.h. */
11513 #ifdef __STDC__
11514 # include <limits.h>
11515 #else
11516 # include <assert.h>
11517 #endif
11518 Syntax error
11519 _ACEOF
11520 if ac_fn_cxx_try_cpp "$LINENO"; then :
11522 else
11523 # Broken: fails on valid input.
11524 continue
11526 rm -f conftest.err conftest.$ac_ext
11528 # OK, works on sane cases. Now check whether nonexistent headers
11529 # can be detected and how.
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11532 #include <ac_nonexistent.h>
11533 _ACEOF
11534 if ac_fn_cxx_try_cpp "$LINENO"; then :
11535 # Broken: success on invalid input.
11536 continue
11537 else
11538 # Passes both tests.
11539 ac_preproc_ok=:
11540 break
11542 rm -f conftest.err conftest.$ac_ext
11544 done
11545 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11546 rm -f conftest.err conftest.$ac_ext
11547 if $ac_preproc_ok; then :
11549 else
11550 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11551 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11552 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
11553 See \`config.log' for more details." "$LINENO" 5; }
11556 ac_ext=c
11557 ac_cpp='$CPP $CPPFLAGS'
11558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11562 else
11563 _lt_caught_CXX_error=yes
11566 ac_ext=cpp
11567 ac_cpp='$CXXCPP $CPPFLAGS'
11568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11572 archive_cmds_need_lc_CXX=no
11573 allow_undefined_flag_CXX=
11574 always_export_symbols_CXX=no
11575 archive_expsym_cmds_CXX=
11576 compiler_needs_object_CXX=no
11577 export_dynamic_flag_spec_CXX=
11578 hardcode_direct_CXX=no
11579 hardcode_direct_absolute_CXX=no
11580 hardcode_libdir_flag_spec_CXX=
11581 hardcode_libdir_flag_spec_ld_CXX=
11582 hardcode_libdir_separator_CXX=
11583 hardcode_minus_L_CXX=no
11584 hardcode_shlibpath_var_CXX=unsupported
11585 hardcode_automatic_CXX=no
11586 inherit_rpath_CXX=no
11587 module_cmds_CXX=
11588 module_expsym_cmds_CXX=
11589 link_all_deplibs_CXX=unknown
11590 old_archive_cmds_CXX=$old_archive_cmds
11591 reload_flag_CXX=$reload_flag
11592 reload_cmds_CXX=$reload_cmds
11593 no_undefined_flag_CXX=
11594 whole_archive_flag_spec_CXX=
11595 enable_shared_with_static_runtimes_CXX=no
11597 # Source file extension for C++ test sources.
11598 ac_ext=cpp
11600 # Object file extension for compiled C++ test sources.
11601 objext=o
11602 objext_CXX=$objext
11604 # No sense in running all these tests if we already determined that
11605 # the CXX compiler isn't working. Some variables (like enable_shared)
11606 # are currently assumed to apply to all compilers on this platform,
11607 # and will be corrupted by setting them based on a non-working compiler.
11608 if test "$_lt_caught_CXX_error" != yes; then
11609 # Code to be used in simple compile tests
11610 lt_simple_compile_test_code="int some_variable = 0;"
11612 # Code to be used in simple link tests
11613 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11615 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11622 # If no C compiler was specified, use CC.
11623 LTCC=${LTCC-"$CC"}
11625 # If no C compiler flags were specified, use CFLAGS.
11626 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11628 # Allow CC to be a program name with arguments.
11629 compiler=$CC
11632 # save warnings/boilerplate of simple test code
11633 ac_outfile=conftest.$ac_objext
11634 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11635 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11636 _lt_compiler_boilerplate=`cat conftest.err`
11637 $RM conftest*
11639 ac_outfile=conftest.$ac_objext
11640 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11641 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11642 _lt_linker_boilerplate=`cat conftest.err`
11643 $RM -r conftest*
11646 # Allow CC to be a program name with arguments.
11647 lt_save_CC=$CC
11648 lt_save_LD=$LD
11649 lt_save_GCC=$GCC
11650 GCC=$GXX
11651 lt_save_with_gnu_ld=$with_gnu_ld
11652 lt_save_path_LD=$lt_cv_path_LD
11653 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11654 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11655 else
11656 $as_unset lt_cv_prog_gnu_ld
11658 if test -n "${lt_cv_path_LDCXX+set}"; then
11659 lt_cv_path_LD=$lt_cv_path_LDCXX
11660 else
11661 $as_unset lt_cv_path_LD
11663 test -z "${LDCXX+set}" || LD=$LDCXX
11664 CC=${CXX-"c++"}
11665 compiler=$CC
11666 compiler_CXX=$CC
11667 for cc_temp in $compiler""; do
11668 case $cc_temp in
11669 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11670 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11671 \-*) ;;
11672 *) break;;
11673 esac
11674 done
11675 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11678 if test -n "$compiler"; then
11679 # We don't want -fno-exception when compiling C++ code, so set the
11680 # no_builtin_flag separately
11681 if test "$GXX" = yes; then
11682 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11683 else
11684 lt_prog_compiler_no_builtin_flag_CXX=
11687 if test "$GXX" = yes; then
11688 # Set up default GNU C++ configuration
11692 # Check whether --with-gnu-ld was given.
11693 if test "${with_gnu_ld+set}" = set; then :
11694 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11695 else
11696 with_gnu_ld=no
11699 ac_prog=ld
11700 if test "$GCC" = yes; then
11701 # Check if gcc -print-prog-name=ld gives a path.
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
11703 $as_echo_n "checking for ld used by $CC... " >&6; }
11704 case $host in
11705 *-*-mingw*)
11706 # gcc leaves a trailing carriage return which upsets mingw
11707 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11709 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11710 esac
11711 case $ac_prog in
11712 # Accept absolute paths.
11713 [\\/]* | ?:[\\/]*)
11714 re_direlt='/[^/][^/]*/\.\./'
11715 # Canonicalize the pathname of ld
11716 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
11717 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
11718 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
11719 done
11720 test -z "$LD" && LD="$ac_prog"
11723 # If it fails, then pretend we aren't using GCC.
11724 ac_prog=ld
11727 # If it is relative, then search for the first ld in PATH.
11728 with_gnu_ld=unknown
11730 esac
11731 elif test "$with_gnu_ld" = yes; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
11733 $as_echo_n "checking for GNU ld... " >&6; }
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
11736 $as_echo_n "checking for non-GNU ld... " >&6; }
11738 if test "${lt_cv_path_LD+set}" = set; then :
11739 $as_echo_n "(cached) " >&6
11740 else
11741 if test -z "$LD"; then
11742 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11743 for ac_dir in $PATH; do
11744 IFS="$lt_save_ifs"
11745 test -z "$ac_dir" && ac_dir=.
11746 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11747 lt_cv_path_LD="$ac_dir/$ac_prog"
11748 # Check to see if the program is GNU ld. I'd rather use --version,
11749 # but apparently some variants of GNU ld only accept -v.
11750 # Break only if it was the GNU/non-GNU ld that we prefer.
11751 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11752 *GNU* | *'with BFD'*)
11753 test "$with_gnu_ld" != no && break
11756 test "$with_gnu_ld" != yes && break
11758 esac
11760 done
11761 IFS="$lt_save_ifs"
11762 else
11763 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11767 LD="$lt_cv_path_LD"
11768 if test -n "$LD"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11770 $as_echo "$LD" >&6; }
11771 else
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773 $as_echo "no" >&6; }
11775 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
11777 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11778 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
11779 $as_echo_n "(cached) " >&6
11780 else
11781 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11782 case `$LD -v 2>&1 </dev/null` in
11783 *GNU* | *'with BFD'*)
11784 lt_cv_prog_gnu_ld=yes
11787 lt_cv_prog_gnu_ld=no
11789 esac
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
11792 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11793 with_gnu_ld=$lt_cv_prog_gnu_ld
11801 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11802 # archiving commands below assume that GNU ld is being used.
11803 if test "$with_gnu_ld" = yes; then
11804 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11805 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11807 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11808 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11810 # If archive_cmds runs LD, not CC, wlarc should be empty
11811 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11812 # investigate it a little bit more. (MM)
11813 wlarc='${wl}'
11815 # ancient GNU ld didn't support --whole-archive et. al.
11816 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
11817 $GREP 'no-whole-archive' > /dev/null; then
11818 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11819 else
11820 whole_archive_flag_spec_CXX=
11822 else
11823 with_gnu_ld=no
11824 wlarc=
11826 # A generic and very simple default shared library creation
11827 # command for GNU C++ for the case where it uses the native
11828 # linker, instead of GNU ld. If possible, this setting should
11829 # overridden to take advantage of the native linker features on
11830 # the platform it is being used on.
11831 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11834 # Commands to make compiler produce verbose output that lists
11835 # what "hidden" libraries, object files and flags are used when
11836 # linking a shared library.
11837 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
11839 else
11840 GXX=no
11841 with_gnu_ld=no
11842 wlarc=
11845 # PORTME: fill in a description of your system's C++ link characteristics
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11848 ld_shlibs_CXX=yes
11849 case $host_os in
11850 aix3*)
11851 # FIXME: insert proper C++ library support
11852 ld_shlibs_CXX=no
11854 aix[4-9]*)
11855 if test "$host_cpu" = ia64; then
11856 # On IA64, the linker does run time linking by default, so we don't
11857 # have to do anything special.
11858 aix_use_runtimelinking=no
11859 exp_sym_flag='-Bexport'
11860 no_entry_flag=""
11861 else
11862 aix_use_runtimelinking=no
11864 # Test if we are trying to use run time linking or normal
11865 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11866 # need to do runtime linking.
11867 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11868 for ld_flag in $LDFLAGS; do
11869 case $ld_flag in
11870 *-brtl*)
11871 aix_use_runtimelinking=yes
11872 break
11874 esac
11875 done
11877 esac
11879 exp_sym_flag='-bexport'
11880 no_entry_flag='-bnoentry'
11883 # When large executables or shared objects are built, AIX ld can
11884 # have problems creating the table of contents. If linking a library
11885 # or program results in "error TOC overflow" add -mminimal-toc to
11886 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11887 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11889 archive_cmds_CXX=''
11890 hardcode_direct_CXX=yes
11891 hardcode_direct_absolute_CXX=yes
11892 hardcode_libdir_separator_CXX=':'
11893 link_all_deplibs_CXX=yes
11894 file_list_spec_CXX='${wl}-f,'
11896 if test "$GXX" = yes; then
11897 case $host_os in aix4.[012]|aix4.[012].*)
11898 # We only want to do this on AIX 4.2 and lower, the check
11899 # below for broken collect2 doesn't work under 4.3+
11900 collect2name=`${CC} -print-prog-name=collect2`
11901 if test -f "$collect2name" &&
11902 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
11903 then
11904 # We have reworked collect2
11906 else
11907 # We have old collect2
11908 hardcode_direct_CXX=unsupported
11909 # It fails to find uninstalled libraries when the uninstalled
11910 # path is not listed in the libpath. Setting hardcode_minus_L
11911 # to unsupported forces relinking
11912 hardcode_minus_L_CXX=yes
11913 hardcode_libdir_flag_spec_CXX='-L$libdir'
11914 hardcode_libdir_separator_CXX=
11916 esac
11917 shared_flag='-shared'
11918 if test "$aix_use_runtimelinking" = yes; then
11919 shared_flag="$shared_flag "'${wl}-G'
11921 else
11922 # not using gcc
11923 if test "$host_cpu" = ia64; then
11924 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11925 # chokes on -Wl,-G. The following line is correct:
11926 shared_flag='-G'
11927 else
11928 if test "$aix_use_runtimelinking" = yes; then
11929 shared_flag='${wl}-G'
11930 else
11931 shared_flag='${wl}-bM:SRE'
11936 export_dynamic_flag_spec_CXX='${wl}-bexpall'
11937 # It seems that -bexpall does not export symbols beginning with
11938 # underscore (_), so it is better to generate a list of symbols to
11939 # export.
11940 always_export_symbols_CXX=yes
11941 if test "$aix_use_runtimelinking" = yes; then
11942 # Warning - without using the other runtime loading flags (-brtl),
11943 # -berok will link without error, but may produce a broken library.
11944 allow_undefined_flag_CXX='-berok'
11945 # Determine the default libpath from the value encoded in an empty
11946 # executable.
11947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11948 /* end confdefs.h. */
11951 main ()
11955 return 0;
11957 _ACEOF
11958 if ac_fn_cxx_try_link "$LINENO"; then :
11960 lt_aix_libpath_sed='
11961 /Import File Strings/,/^$/ {
11962 /^0/ {
11963 s/^0 *\(.*\)$/\1/
11967 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11968 # Check for a 64-bit object if we didn't find anything.
11969 if test -z "$aix_libpath"; then
11970 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11973 rm -f core conftest.err conftest.$ac_objext \
11974 conftest$ac_exeext conftest.$ac_ext
11975 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11977 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11979 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"
11980 else
11981 if test "$host_cpu" = ia64; then
11982 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11983 allow_undefined_flag_CXX="-z nodefs"
11984 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"
11985 else
11986 # Determine the default libpath from the value encoded in an
11987 # empty executable.
11988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11989 /* end confdefs.h. */
11992 main ()
11996 return 0;
11998 _ACEOF
11999 if ac_fn_cxx_try_link "$LINENO"; then :
12001 lt_aix_libpath_sed='
12002 /Import File Strings/,/^$/ {
12003 /^0/ {
12004 s/^0 *\(.*\)$/\1/
12008 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12009 # Check for a 64-bit object if we didn't find anything.
12010 if test -z "$aix_libpath"; then
12011 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12014 rm -f core conftest.err conftest.$ac_objext \
12015 conftest$ac_exeext conftest.$ac_ext
12016 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12018 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12019 # Warning - without using the other run time loading flags,
12020 # -berok will link without error, but may produce a broken library.
12021 no_undefined_flag_CXX=' ${wl}-bernotok'
12022 allow_undefined_flag_CXX=' ${wl}-berok'
12023 if test "$with_gnu_ld" = yes; then
12024 # We only use this code for GNU lds that support --whole-archive.
12025 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12026 else
12027 # Exported symbols can be pulled into shared objects from archives
12028 whole_archive_flag_spec_CXX='$convenience'
12030 archive_cmds_need_lc_CXX=yes
12031 # This is similar to how AIX traditionally builds its shared
12032 # libraries.
12033 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'
12038 beos*)
12039 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12040 allow_undefined_flag_CXX=unsupported
12041 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12042 # support --undefined. This deserves some investigation. FIXME
12043 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12044 else
12045 ld_shlibs_CXX=no
12049 chorus*)
12050 case $cc_basename in
12052 # FIXME: insert proper C++ library support
12053 ld_shlibs_CXX=no
12055 esac
12058 cygwin* | mingw* | pw32* | cegcc*)
12059 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12060 # as there is no search path for DLLs.
12061 hardcode_libdir_flag_spec_CXX='-L$libdir'
12062 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12063 allow_undefined_flag_CXX=unsupported
12064 always_export_symbols_CXX=no
12065 enable_shared_with_static_runtimes_CXX=yes
12067 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12068 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'
12069 # If the export-symbols file already is a .def file (1st line
12070 # is EXPORTS), use it as is; otherwise, prepend...
12071 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12072 cp $export_symbols $output_objdir/$soname.def;
12073 else
12074 echo EXPORTS > $output_objdir/$soname.def;
12075 cat $export_symbols >> $output_objdir/$soname.def;
12077 $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'
12078 else
12079 ld_shlibs_CXX=no
12082 darwin* | rhapsody*)
12085 archive_cmds_need_lc_CXX=no
12086 hardcode_direct_CXX=no
12087 hardcode_automatic_CXX=yes
12088 hardcode_shlibpath_var_CXX=unsupported
12089 if test "$lt_cv_ld_force_load" = "yes"; then
12090 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\"`'
12091 else
12092 whole_archive_flag_spec_CXX=''
12094 link_all_deplibs_CXX=yes
12095 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12096 case $cc_basename in
12097 ifort*) _lt_dar_can_shared=yes ;;
12098 *) _lt_dar_can_shared=$GCC ;;
12099 esac
12100 if test "$_lt_dar_can_shared" = "yes"; then
12101 output_verbose_link_cmd=func_echo_all
12102 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}"
12103 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12104 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}"
12105 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}"
12106 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12107 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}"
12108 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}"
12111 else
12112 ld_shlibs_CXX=no
12117 dgux*)
12118 case $cc_basename in
12119 ec++*)
12120 # FIXME: insert proper C++ library support
12121 ld_shlibs_CXX=no
12123 ghcx*)
12124 # Green Hills C++ Compiler
12125 # FIXME: insert proper C++ library support
12126 ld_shlibs_CXX=no
12129 # FIXME: insert proper C++ library support
12130 ld_shlibs_CXX=no
12132 esac
12135 freebsd2.*)
12136 # C++ shared libraries reported to be fairly broken before
12137 # switch to ELF
12138 ld_shlibs_CXX=no
12141 freebsd-elf*)
12142 archive_cmds_need_lc_CXX=no
12145 freebsd* | dragonfly*)
12146 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12147 # conventions
12148 ld_shlibs_CXX=yes
12151 gnu*)
12154 haiku*)
12155 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12156 link_all_deplibs_CXX=yes
12159 hpux9*)
12160 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12161 hardcode_libdir_separator_CXX=:
12162 export_dynamic_flag_spec_CXX='${wl}-E'
12163 hardcode_direct_CXX=yes
12164 hardcode_minus_L_CXX=yes # Not in the search PATH,
12165 # but as the default
12166 # location of the library.
12168 case $cc_basename in
12169 CC*)
12170 # FIXME: insert proper C++ library support
12171 ld_shlibs_CXX=no
12173 aCC*)
12174 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'
12175 # Commands to make compiler produce verbose output that lists
12176 # what "hidden" libraries, object files and flags are used when
12177 # linking a shared library.
12179 # There doesn't appear to be a way to prevent this compiler from
12180 # explicitly linking system object files so we need to strip them
12181 # from the output so that they don't get included in the library
12182 # dependencies.
12183 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"'
12186 if test "$GXX" = yes; then
12187 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'
12188 else
12189 # FIXME: insert proper C++ library support
12190 ld_shlibs_CXX=no
12193 esac
12196 hpux10*|hpux11*)
12197 if test $with_gnu_ld = no; then
12198 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12199 hardcode_libdir_separator_CXX=:
12201 case $host_cpu in
12202 hppa*64*|ia64*)
12205 export_dynamic_flag_spec_CXX='${wl}-E'
12207 esac
12209 case $host_cpu in
12210 hppa*64*|ia64*)
12211 hardcode_direct_CXX=no
12212 hardcode_shlibpath_var_CXX=no
12215 hardcode_direct_CXX=yes
12216 hardcode_direct_absolute_CXX=yes
12217 hardcode_minus_L_CXX=yes # Not in the search PATH,
12218 # but as the default
12219 # location of the library.
12221 esac
12223 case $cc_basename in
12224 CC*)
12225 # FIXME: insert proper C++ library support
12226 ld_shlibs_CXX=no
12228 aCC*)
12229 case $host_cpu in
12230 hppa*64*)
12231 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12233 ia64*)
12234 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12237 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12239 esac
12240 # Commands to make compiler produce verbose output that lists
12241 # what "hidden" libraries, object files and flags are used when
12242 # linking a shared library.
12244 # There doesn't appear to be a way to prevent this compiler from
12245 # explicitly linking system object files so we need to strip them
12246 # from the output so that they don't get included in the library
12247 # dependencies.
12248 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"'
12251 if test "$GXX" = yes; then
12252 if test $with_gnu_ld = no; then
12253 case $host_cpu in
12254 hppa*64*)
12255 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12257 ia64*)
12258 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12261 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'
12263 esac
12265 else
12266 # FIXME: insert proper C++ library support
12267 ld_shlibs_CXX=no
12270 esac
12273 interix[3-9]*)
12274 hardcode_direct_CXX=no
12275 hardcode_shlibpath_var_CXX=no
12276 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12277 export_dynamic_flag_spec_CXX='${wl}-E'
12278 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12279 # Instead, shared libraries are loaded at an image base (0x10000000 by
12280 # default) and relocated if they conflict, which is a slow very memory
12281 # consuming and fragmenting process. To avoid this, we pick a random,
12282 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12283 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12284 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'
12285 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'
12287 irix5* | irix6*)
12288 case $cc_basename in
12289 CC*)
12290 # SGI C++
12291 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'
12293 # Archives containing C++ object files must be created using
12294 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12295 # necessary to make sure instantiated templates are included
12296 # in the archive.
12297 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12300 if test "$GXX" = yes; then
12301 if test "$with_gnu_ld" = no; then
12302 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'
12303 else
12304 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'
12307 link_all_deplibs_CXX=yes
12309 esac
12310 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12311 hardcode_libdir_separator_CXX=:
12312 inherit_rpath_CXX=yes
12315 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12316 case $cc_basename in
12317 KCC*)
12318 # Kuck and Associates, Inc. (KAI) C++ Compiler
12320 # KCC will only create a shared library if the output file
12321 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12322 # to its proper name (with version) after linking.
12323 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'
12324 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'
12325 # Commands to make compiler produce verbose output that lists
12326 # what "hidden" libraries, object files and flags are used when
12327 # linking a shared library.
12329 # There doesn't appear to be a way to prevent this compiler from
12330 # explicitly linking system object files so we need to strip them
12331 # from the output so that they don't get included in the library
12332 # dependencies.
12333 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"'
12335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12338 # Archives containing C++ object files must be created using
12339 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12340 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12342 icpc* | ecpc* )
12343 # Intel C++
12344 with_gnu_ld=yes
12345 # version 8.0 and above of icpc choke on multiply defined symbols
12346 # if we add $predep_objects and $postdep_objects, however 7.1 and
12347 # earlier do not add the objects themselves.
12348 case `$CC -V 2>&1` in
12349 *"Version 7."*)
12350 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12351 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'
12353 *) # Version 8.0 or newer
12354 tmp_idyn=
12355 case $host_cpu in
12356 ia64*) tmp_idyn=' -i_dynamic';;
12357 esac
12358 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12359 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'
12361 esac
12362 archive_cmds_need_lc_CXX=no
12363 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12364 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12365 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12367 pgCC* | pgcpp*)
12368 # Portland Group C++ compiler
12369 case `$CC -V` in
12370 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12371 prelink_cmds_CXX='tpldir=Template.dir~
12372 rm -rf $tpldir~
12373 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12374 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
12375 old_archive_cmds_CXX='tpldir=Template.dir~
12376 rm -rf $tpldir~
12377 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12378 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
12379 $RANLIB $oldlib'
12380 archive_cmds_CXX='tpldir=Template.dir~
12381 rm -rf $tpldir~
12382 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12383 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12384 archive_expsym_cmds_CXX='tpldir=Template.dir~
12385 rm -rf $tpldir~
12386 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12387 $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'
12389 *) # Version 6 and above use weak symbols
12390 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12391 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'
12393 esac
12395 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12396 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12397 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'
12399 cxx*)
12400 # Compaq C++
12401 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12402 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'
12404 runpath_var=LD_RUN_PATH
12405 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12406 hardcode_libdir_separator_CXX=:
12408 # Commands to make compiler produce verbose output that lists
12409 # what "hidden" libraries, object files and flags are used when
12410 # linking a shared library.
12412 # There doesn't appear to be a way to prevent this compiler from
12413 # explicitly linking system object files so we need to strip them
12414 # from the output so that they don't get included in the library
12415 # dependencies.
12416 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'
12418 xl* | mpixl* | bgxl*)
12419 # IBM XL 8.0 on PPC, with GNU ld
12420 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12421 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12422 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12423 if test "x$supports_anon_versioning" = xyes; then
12424 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12425 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12426 echo "local: *; };" >> $output_objdir/$libname.ver~
12427 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12431 case `$CC -V 2>&1 | sed 5q` in
12432 *Sun\ C*)
12433 # Sun C++ 5.9
12434 no_undefined_flag_CXX=' -zdefs'
12435 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12436 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'
12437 hardcode_libdir_flag_spec_CXX='-R$libdir'
12438 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'
12439 compiler_needs_object_CXX=yes
12441 # Not sure whether something based on
12442 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12443 # would be better.
12444 output_verbose_link_cmd='func_echo_all'
12446 # Archives containing C++ object files must be created using
12447 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12448 # necessary to make sure instantiated templates are included
12449 # in the archive.
12450 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12452 esac
12454 esac
12457 lynxos*)
12458 # FIXME: insert proper C++ library support
12459 ld_shlibs_CXX=no
12462 m88k*)
12463 # FIXME: insert proper C++ library support
12464 ld_shlibs_CXX=no
12467 mvs*)
12468 case $cc_basename in
12469 cxx*)
12470 # FIXME: insert proper C++ library support
12471 ld_shlibs_CXX=no
12474 # FIXME: insert proper C++ library support
12475 ld_shlibs_CXX=no
12477 esac
12480 netbsd*)
12481 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12482 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12483 wlarc=
12484 hardcode_libdir_flag_spec_CXX='-R$libdir'
12485 hardcode_direct_CXX=yes
12486 hardcode_shlibpath_var_CXX=no
12488 # Workaround some broken pre-1.5 toolchains
12489 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12492 *nto* | *qnx*)
12493 ld_shlibs_CXX=yes
12496 openbsd2*)
12497 # C++ shared libraries are fairly broken
12498 ld_shlibs_CXX=no
12501 openbsd*)
12502 if test -f /usr/libexec/ld.so; then
12503 hardcode_direct_CXX=yes
12504 hardcode_shlibpath_var_CXX=no
12505 hardcode_direct_absolute_CXX=yes
12506 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12507 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12508 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12509 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12510 export_dynamic_flag_spec_CXX='${wl}-E'
12511 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12513 output_verbose_link_cmd=func_echo_all
12514 else
12515 ld_shlibs_CXX=no
12519 osf3* | osf4* | osf5*)
12520 case $cc_basename in
12521 KCC*)
12522 # Kuck and Associates, Inc. (KAI) C++ Compiler
12524 # KCC will only create a shared library if the output file
12525 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12526 # to its proper name (with version) after linking.
12527 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'
12529 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12530 hardcode_libdir_separator_CXX=:
12532 # Archives containing C++ object files must be created using
12533 # the KAI C++ compiler.
12534 case $host in
12535 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12536 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12537 esac
12539 RCC*)
12540 # Rational C++ 2.4.1
12541 # FIXME: insert proper C++ library support
12542 ld_shlibs_CXX=no
12544 cxx*)
12545 case $host in
12546 osf3*)
12547 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12548 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'
12549 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12552 allow_undefined_flag_CXX=' -expect_unresolved \*'
12553 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'
12554 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12555 echo "-hidden">> $lib.exp~
12556 $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~
12557 $RM $lib.exp'
12558 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12560 esac
12562 hardcode_libdir_separator_CXX=:
12564 # Commands to make compiler produce verbose output that lists
12565 # what "hidden" libraries, object files and flags are used when
12566 # linking a shared library.
12568 # There doesn't appear to be a way to prevent this compiler from
12569 # explicitly linking system object files so we need to strip them
12570 # from the output so that they don't get included in the library
12571 # dependencies.
12572 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"'
12575 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12576 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12577 case $host in
12578 osf3*)
12579 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'
12582 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'
12584 esac
12586 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12587 hardcode_libdir_separator_CXX=:
12589 # Commands to make compiler produce verbose output that lists
12590 # what "hidden" libraries, object files and flags are used when
12591 # linking a shared library.
12592 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12594 else
12595 # FIXME: insert proper C++ library support
12596 ld_shlibs_CXX=no
12599 esac
12602 psos*)
12603 # FIXME: insert proper C++ library support
12604 ld_shlibs_CXX=no
12607 sunos4*)
12608 case $cc_basename in
12609 CC*)
12610 # Sun C++ 4.x
12611 # FIXME: insert proper C++ library support
12612 ld_shlibs_CXX=no
12614 lcc*)
12615 # Lucid
12616 # FIXME: insert proper C++ library support
12617 ld_shlibs_CXX=no
12620 # FIXME: insert proper C++ library support
12621 ld_shlibs_CXX=no
12623 esac
12626 solaris*)
12627 case $cc_basename in
12628 CC*)
12629 # Sun C++ 4.2, 5.x and Centerline C++
12630 archive_cmds_need_lc_CXX=yes
12631 no_undefined_flag_CXX=' -zdefs'
12632 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12633 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12634 $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'
12636 hardcode_libdir_flag_spec_CXX='-R$libdir'
12637 hardcode_shlibpath_var_CXX=no
12638 case $host_os in
12639 solaris2.[0-5] | solaris2.[0-5].*) ;;
12641 # The compiler driver will combine and reorder linker options,
12642 # but understands `-z linker_flag'.
12643 # Supported since Solaris 2.6 (maybe 2.5.1?)
12644 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12646 esac
12647 link_all_deplibs_CXX=yes
12649 output_verbose_link_cmd='func_echo_all'
12651 # Archives containing C++ object files must be created using
12652 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12653 # necessary to make sure instantiated templates are included
12654 # in the archive.
12655 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12657 gcx*)
12658 # Green Hills C++ Compiler
12659 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12661 # The C++ compiler must be used to create the archive.
12662 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12665 # GNU C++ compiler with Solaris linker
12666 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12667 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12668 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12669 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12670 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12671 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12673 # Commands to make compiler produce verbose output that lists
12674 # what "hidden" libraries, object files and flags are used when
12675 # linking a shared library.
12676 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12677 else
12678 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12679 # platform.
12680 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12681 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12682 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12684 # Commands to make compiler produce verbose output that lists
12685 # what "hidden" libraries, object files and flags are used when
12686 # linking a shared library.
12687 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12690 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12691 case $host_os in
12692 solaris2.[0-5] | solaris2.[0-5].*) ;;
12694 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12696 esac
12699 esac
12702 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12703 no_undefined_flag_CXX='${wl}-z,text'
12704 archive_cmds_need_lc_CXX=no
12705 hardcode_shlibpath_var_CXX=no
12706 runpath_var='LD_RUN_PATH'
12708 case $cc_basename in
12709 CC*)
12710 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12711 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12714 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12715 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12717 esac
12720 sysv5* | sco3.2v5* | sco5v6*)
12721 # Note: We can NOT use -z defs as we might desire, because we do not
12722 # link with -lc, and that would cause any symbols used from libc to
12723 # always be unresolved, which means just about no library would
12724 # ever link correctly. If we're not using GNU ld we use -z text
12725 # though, which does catch some bad symbols but isn't as heavy-handed
12726 # as -z defs.
12727 no_undefined_flag_CXX='${wl}-z,text'
12728 allow_undefined_flag_CXX='${wl}-z,nodefs'
12729 archive_cmds_need_lc_CXX=no
12730 hardcode_shlibpath_var_CXX=no
12731 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
12732 hardcode_libdir_separator_CXX=':'
12733 link_all_deplibs_CXX=yes
12734 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12735 runpath_var='LD_RUN_PATH'
12737 case $cc_basename in
12738 CC*)
12739 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12740 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12741 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
12742 '"$old_archive_cmds_CXX"
12743 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
12744 '"$reload_cmds_CXX"
12747 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12748 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12750 esac
12753 tandem*)
12754 case $cc_basename in
12755 NCC*)
12756 # NonStop-UX NCC 3.20
12757 # FIXME: insert proper C++ library support
12758 ld_shlibs_CXX=no
12761 # FIXME: insert proper C++ library support
12762 ld_shlibs_CXX=no
12764 esac
12767 vxworks*)
12768 # FIXME: insert proper C++ library support
12769 ld_shlibs_CXX=no
12773 # FIXME: insert proper C++ library support
12774 ld_shlibs_CXX=no
12776 esac
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12779 $as_echo "$ld_shlibs_CXX" >&6; }
12780 test "$ld_shlibs_CXX" = no && can_build_shared=no
12782 GCC_CXX="$GXX"
12783 LD_CXX="$LD"
12785 ## CAVEAT EMPTOR:
12786 ## There is no encapsulation within the following macros, do not change
12787 ## the running order or otherwise move them around unless you know exactly
12788 ## what you are doing...
12789 # Dependencies to place before and after the object being linked:
12790 predep_objects_CXX=
12791 postdep_objects_CXX=
12792 predeps_CXX=
12793 postdeps_CXX=
12794 compiler_lib_search_path_CXX=
12796 cat > conftest.$ac_ext <<_LT_EOF
12797 class Foo
12799 public:
12800 Foo (void) { a = 0; }
12801 private:
12802 int a;
12804 _LT_EOF
12806 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12807 (eval $ac_compile) 2>&5
12808 ac_status=$?
12809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12810 test $ac_status = 0; }; then
12811 # Parse the compiler output and extract the necessary
12812 # objects, libraries and library flags.
12814 # Sentinel used to keep track of whether or not we are before
12815 # the conftest object file.
12816 pre_test_object_deps_done=no
12818 for p in `eval "$output_verbose_link_cmd"`; do
12819 case $p in
12821 -L* | -R* | -l*)
12822 # Some compilers place space between "-{L,R}" and the path.
12823 # Remove the space.
12824 if test $p = "-L" ||
12825 test $p = "-R"; then
12826 prev=$p
12827 continue
12828 else
12829 prev=
12832 if test "$pre_test_object_deps_done" = no; then
12833 case $p in
12834 -L* | -R*)
12835 # Internal compiler library paths should come after those
12836 # provided the user. The postdeps already come after the
12837 # user supplied libs so there is no need to process them.
12838 if test -z "$compiler_lib_search_path_CXX"; then
12839 compiler_lib_search_path_CXX="${prev}${p}"
12840 else
12841 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12844 # The "-l" case would never come before the object being
12845 # linked, so don't bother handling this case.
12846 esac
12847 else
12848 if test -z "$postdeps_CXX"; then
12849 postdeps_CXX="${prev}${p}"
12850 else
12851 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12856 *.$objext)
12857 # This assumes that the test object file only shows up
12858 # once in the compiler output.
12859 if test "$p" = "conftest.$objext"; then
12860 pre_test_object_deps_done=yes
12861 continue
12864 if test "$pre_test_object_deps_done" = no; then
12865 if test -z "$predep_objects_CXX"; then
12866 predep_objects_CXX="$p"
12867 else
12868 predep_objects_CXX="$predep_objects_CXX $p"
12870 else
12871 if test -z "$postdep_objects_CXX"; then
12872 postdep_objects_CXX="$p"
12873 else
12874 postdep_objects_CXX="$postdep_objects_CXX $p"
12879 *) ;; # Ignore the rest.
12881 esac
12882 done
12884 # Clean up.
12885 rm -f a.out a.exe
12886 else
12887 echo "libtool.m4: error: problem compiling CXX test program"
12890 $RM -f confest.$objext
12892 # PORTME: override above test on systems where it is broken
12893 case $host_os in
12894 interix[3-9]*)
12895 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12896 # hack all around it, let's just trust "g++" to DTRT.
12897 predep_objects_CXX=
12898 postdep_objects_CXX=
12899 postdeps_CXX=
12902 linux*)
12903 case `$CC -V 2>&1 | sed 5q` in
12904 *Sun\ C*)
12905 # Sun C++ 5.9
12907 # The more standards-conforming stlport4 library is
12908 # incompatible with the Cstd library. Avoid specifying
12909 # it if it's in CXXFLAGS. Ignore libCrun as
12910 # -library=stlport4 depends on it.
12911 case " $CXX $CXXFLAGS " in
12912 *" -library=stlport4 "*)
12913 solaris_use_stlport4=yes
12915 esac
12917 if test "$solaris_use_stlport4" != yes; then
12918 postdeps_CXX='-library=Cstd -library=Crun'
12921 esac
12924 solaris*)
12925 case $cc_basename in
12926 CC*)
12927 # The more standards-conforming stlport4 library is
12928 # incompatible with the Cstd library. Avoid specifying
12929 # it if it's in CXXFLAGS. Ignore libCrun as
12930 # -library=stlport4 depends on it.
12931 case " $CXX $CXXFLAGS " in
12932 *" -library=stlport4 "*)
12933 solaris_use_stlport4=yes
12935 esac
12937 # Adding this requires a known-good setup of shared libraries for
12938 # Sun compiler versions before 5.6, else PIC objects from an old
12939 # archive will be linked into the output, leading to subtle bugs.
12940 if test "$solaris_use_stlport4" != yes; then
12941 postdeps_CXX='-library=Cstd -library=Crun'
12944 esac
12946 esac
12949 case " $postdeps_CXX " in
12950 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12951 esac
12952 compiler_lib_search_dirs_CXX=
12953 if test -n "${compiler_lib_search_path_CXX}"; then
12954 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12987 lt_prog_compiler_wl_CXX=
12988 lt_prog_compiler_pic_CXX=
12989 lt_prog_compiler_static_CXX=
12991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12992 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12994 # C++ specific cases for pic, static, wl, etc.
12995 if test "$GXX" = yes; then
12996 lt_prog_compiler_wl_CXX='-Wl,'
12997 lt_prog_compiler_static_CXX='-static'
12999 case $host_os in
13000 aix*)
13001 # All AIX code is PIC.
13002 if test "$host_cpu" = ia64; then
13003 # AIX 5 now supports IA64 processor
13004 lt_prog_compiler_static_CXX='-Bstatic'
13006 lt_prog_compiler_pic_CXX='-fPIC'
13009 amigaos*)
13010 case $host_cpu in
13011 powerpc)
13012 # see comment about AmigaOS4 .so support
13013 lt_prog_compiler_pic_CXX='-fPIC'
13015 m68k)
13016 # FIXME: we need at least 68020 code to build shared libraries, but
13017 # adding the `-m68020' flag to GCC prevents building anything better,
13018 # like `-m68040'.
13019 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13021 esac
13024 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13025 # PIC is the default for these OSes.
13027 mingw* | cygwin* | os2* | pw32* | cegcc*)
13028 # This hack is so that the source file can tell whether it is being
13029 # built for inclusion in a dll (and should export symbols for example).
13030 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13031 # (--disable-auto-import) libraries
13032 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13034 darwin* | rhapsody*)
13035 # PIC is the default on this platform
13036 # Common symbols not allowed in MH_DYLIB files
13037 lt_prog_compiler_pic_CXX='-fno-common'
13039 *djgpp*)
13040 # DJGPP does not support shared libraries at all
13041 lt_prog_compiler_pic_CXX=
13043 haiku*)
13044 # PIC is the default for Haiku.
13045 # The "-static" flag exists, but is broken.
13046 lt_prog_compiler_static_CXX=
13048 interix[3-9]*)
13049 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13050 # Instead, we relocate shared libraries at runtime.
13052 sysv4*MP*)
13053 if test -d /usr/nec; then
13054 lt_prog_compiler_pic_CXX=-Kconform_pic
13057 hpux*)
13058 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13059 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13060 # sets the default TLS model and affects inlining.
13061 case $host_cpu in
13062 hppa*64*)
13065 lt_prog_compiler_pic_CXX='-fPIC'
13067 esac
13069 *qnx* | *nto*)
13070 # QNX uses GNU C++, but need to define -shared option too, otherwise
13071 # it will coredump.
13072 lt_prog_compiler_pic_CXX='-fPIC -shared'
13075 lt_prog_compiler_pic_CXX='-fPIC'
13077 esac
13078 else
13079 case $host_os in
13080 aix[4-9]*)
13081 # All AIX code is PIC.
13082 if test "$host_cpu" = ia64; then
13083 # AIX 5 now supports IA64 processor
13084 lt_prog_compiler_static_CXX='-Bstatic'
13085 else
13086 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13089 chorus*)
13090 case $cc_basename in
13091 cxch68*)
13092 # Green Hills C++ Compiler
13093 # _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"
13095 esac
13097 dgux*)
13098 case $cc_basename in
13099 ec++*)
13100 lt_prog_compiler_pic_CXX='-KPIC'
13102 ghcx*)
13103 # Green Hills C++ Compiler
13104 lt_prog_compiler_pic_CXX='-pic'
13108 esac
13110 freebsd* | dragonfly*)
13111 # FreeBSD uses GNU C++
13113 hpux9* | hpux10* | hpux11*)
13114 case $cc_basename in
13115 CC*)
13116 lt_prog_compiler_wl_CXX='-Wl,'
13117 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13118 if test "$host_cpu" != ia64; then
13119 lt_prog_compiler_pic_CXX='+Z'
13122 aCC*)
13123 lt_prog_compiler_wl_CXX='-Wl,'
13124 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13125 case $host_cpu in
13126 hppa*64*|ia64*)
13127 # +Z the default
13130 lt_prog_compiler_pic_CXX='+Z'
13132 esac
13136 esac
13138 interix*)
13139 # This is c89, which is MS Visual C++ (no shared libs)
13140 # Anyone wants to do a port?
13142 irix5* | irix6* | nonstopux*)
13143 case $cc_basename in
13144 CC*)
13145 lt_prog_compiler_wl_CXX='-Wl,'
13146 lt_prog_compiler_static_CXX='-non_shared'
13147 # CC pic flag -KPIC is the default.
13151 esac
13153 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13154 case $cc_basename in
13155 KCC*)
13156 # KAI C++ Compiler
13157 lt_prog_compiler_wl_CXX='--backend -Wl,'
13158 lt_prog_compiler_pic_CXX='-fPIC'
13160 ecpc* )
13161 # old Intel C++ for x86_64 which still supported -KPIC.
13162 lt_prog_compiler_wl_CXX='-Wl,'
13163 lt_prog_compiler_pic_CXX='-KPIC'
13164 lt_prog_compiler_static_CXX='-static'
13166 icpc* )
13167 # Intel C++, used to be incompatible with GCC.
13168 # ICC 10 doesn't accept -KPIC any more.
13169 lt_prog_compiler_wl_CXX='-Wl,'
13170 lt_prog_compiler_pic_CXX='-fPIC'
13171 lt_prog_compiler_static_CXX='-static'
13173 pgCC* | pgcpp*)
13174 # Portland Group C++ compiler
13175 lt_prog_compiler_wl_CXX='-Wl,'
13176 lt_prog_compiler_pic_CXX='-fpic'
13177 lt_prog_compiler_static_CXX='-Bstatic'
13179 cxx*)
13180 # Compaq C++
13181 # Make sure the PIC flag is empty. It appears that all Alpha
13182 # Linux and Compaq Tru64 Unix objects are PIC.
13183 lt_prog_compiler_pic_CXX=
13184 lt_prog_compiler_static_CXX='-non_shared'
13186 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13187 # IBM XL 8.0, 9.0 on PPC and BlueGene
13188 lt_prog_compiler_wl_CXX='-Wl,'
13189 lt_prog_compiler_pic_CXX='-qpic'
13190 lt_prog_compiler_static_CXX='-qstaticlink'
13193 case `$CC -V 2>&1 | sed 5q` in
13194 *Sun\ C*)
13195 # Sun C++ 5.9
13196 lt_prog_compiler_pic_CXX='-KPIC'
13197 lt_prog_compiler_static_CXX='-Bstatic'
13198 lt_prog_compiler_wl_CXX='-Qoption ld '
13200 esac
13202 esac
13204 lynxos*)
13206 m88k*)
13208 mvs*)
13209 case $cc_basename in
13210 cxx*)
13211 lt_prog_compiler_pic_CXX='-W c,exportall'
13215 esac
13217 netbsd*)
13219 *qnx* | *nto*)
13220 # QNX uses GNU C++, but need to define -shared option too, otherwise
13221 # it will coredump.
13222 lt_prog_compiler_pic_CXX='-fPIC -shared'
13224 osf3* | osf4* | osf5*)
13225 case $cc_basename in
13226 KCC*)
13227 lt_prog_compiler_wl_CXX='--backend -Wl,'
13229 RCC*)
13230 # Rational C++ 2.4.1
13231 lt_prog_compiler_pic_CXX='-pic'
13233 cxx*)
13234 # Digital/Compaq C++
13235 lt_prog_compiler_wl_CXX='-Wl,'
13236 # Make sure the PIC flag is empty. It appears that all Alpha
13237 # Linux and Compaq Tru64 Unix objects are PIC.
13238 lt_prog_compiler_pic_CXX=
13239 lt_prog_compiler_static_CXX='-non_shared'
13243 esac
13245 psos*)
13247 solaris*)
13248 case $cc_basename in
13249 CC*)
13250 # Sun C++ 4.2, 5.x and Centerline C++
13251 lt_prog_compiler_pic_CXX='-KPIC'
13252 lt_prog_compiler_static_CXX='-Bstatic'
13253 lt_prog_compiler_wl_CXX='-Qoption ld '
13255 gcx*)
13256 # Green Hills C++ Compiler
13257 lt_prog_compiler_pic_CXX='-PIC'
13261 esac
13263 sunos4*)
13264 case $cc_basename in
13265 CC*)
13266 # Sun C++ 4.x
13267 lt_prog_compiler_pic_CXX='-pic'
13268 lt_prog_compiler_static_CXX='-Bstatic'
13270 lcc*)
13271 # Lucid
13272 lt_prog_compiler_pic_CXX='-pic'
13276 esac
13278 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13279 case $cc_basename in
13280 CC*)
13281 lt_prog_compiler_wl_CXX='-Wl,'
13282 lt_prog_compiler_pic_CXX='-KPIC'
13283 lt_prog_compiler_static_CXX='-Bstatic'
13285 esac
13287 tandem*)
13288 case $cc_basename in
13289 NCC*)
13290 # NonStop-UX NCC 3.20
13291 lt_prog_compiler_pic_CXX='-KPIC'
13295 esac
13297 vxworks*)
13300 lt_prog_compiler_can_build_shared_CXX=no
13302 esac
13305 case $host_os in
13306 # For platforms which do not support PIC, -DPIC is meaningless:
13307 *djgpp*)
13308 lt_prog_compiler_pic_CXX=
13311 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13313 esac
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13315 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13320 # Check to make sure the PIC flag actually works.
13322 if test -n "$lt_prog_compiler_pic_CXX"; then
13323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13324 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13325 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13326 $as_echo_n "(cached) " >&6
13327 else
13328 lt_cv_prog_compiler_pic_works_CXX=no
13329 ac_outfile=conftest.$ac_objext
13330 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13331 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13332 # Insert the option either (1) after the last *FLAGS variable, or
13333 # (2) before a word containing "conftest.", or (3) at the end.
13334 # Note that $ac_compile itself does not contain backslashes and begins
13335 # with a dollar sign (not a hyphen), so the echo should work correctly.
13336 # The option is referenced via a variable to avoid confusing sed.
13337 lt_compile=`echo "$ac_compile" | $SED \
13338 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13339 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13340 -e 's:$: $lt_compiler_flag:'`
13341 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13342 (eval "$lt_compile" 2>conftest.err)
13343 ac_status=$?
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 if (exit $ac_status) && test -s "$ac_outfile"; then
13347 # The compiler can only warn and ignore the option if not recognized
13348 # So say no if there are warnings other than the usual output.
13349 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13350 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13351 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13352 lt_cv_prog_compiler_pic_works_CXX=yes
13355 $RM conftest*
13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13359 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13361 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13362 case $lt_prog_compiler_pic_CXX in
13363 "" | " "*) ;;
13364 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13365 esac
13366 else
13367 lt_prog_compiler_pic_CXX=
13368 lt_prog_compiler_can_build_shared_CXX=no
13376 # Check to make sure the static flag actually works.
13378 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13380 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13381 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13382 $as_echo_n "(cached) " >&6
13383 else
13384 lt_cv_prog_compiler_static_works_CXX=no
13385 save_LDFLAGS="$LDFLAGS"
13386 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13387 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13388 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13389 # The linker can only warn and ignore the option if not recognized
13390 # So say no if there are warnings
13391 if test -s conftest.err; then
13392 # Append any errors to the config.log.
13393 cat conftest.err 1>&5
13394 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13395 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13396 if diff conftest.exp conftest.er2 >/dev/null; then
13397 lt_cv_prog_compiler_static_works_CXX=yes
13399 else
13400 lt_cv_prog_compiler_static_works_CXX=yes
13403 $RM -r conftest*
13404 LDFLAGS="$save_LDFLAGS"
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13408 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13410 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13412 else
13413 lt_prog_compiler_static_CXX=
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13420 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13421 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13422 $as_echo_n "(cached) " >&6
13423 else
13424 lt_cv_prog_compiler_c_o_CXX=no
13425 $RM -r conftest 2>/dev/null
13426 mkdir conftest
13427 cd conftest
13428 mkdir out
13429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13431 lt_compiler_flag="-o out/conftest2.$ac_objext"
13432 # Insert the option either (1) after the last *FLAGS variable, or
13433 # (2) before a word containing "conftest.", or (3) at the end.
13434 # Note that $ac_compile itself does not contain backslashes and begins
13435 # with a dollar sign (not a hyphen), so the echo should work correctly.
13436 lt_compile=`echo "$ac_compile" | $SED \
13437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13439 -e 's:$: $lt_compiler_flag:'`
13440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13441 (eval "$lt_compile" 2>out/conftest.err)
13442 ac_status=$?
13443 cat out/conftest.err >&5
13444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13445 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13446 then
13447 # The compiler can only warn and ignore the option if not recognized
13448 # So say no if there are warnings
13449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13450 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13451 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13452 lt_cv_prog_compiler_c_o_CXX=yes
13455 chmod u+w . 2>&5
13456 $RM conftest*
13457 # SGI C++ compiler will create directory out/ii_files/ for
13458 # template instantiation
13459 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13460 $RM out/* && rmdir out
13461 cd ..
13462 $RM -r conftest
13463 $RM conftest*
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13467 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13472 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13473 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13474 $as_echo_n "(cached) " >&6
13475 else
13476 lt_cv_prog_compiler_c_o_CXX=no
13477 $RM -r conftest 2>/dev/null
13478 mkdir conftest
13479 cd conftest
13480 mkdir out
13481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13483 lt_compiler_flag="-o out/conftest2.$ac_objext"
13484 # Insert the option either (1) after the last *FLAGS variable, or
13485 # (2) before a word containing "conftest.", or (3) at the end.
13486 # Note that $ac_compile itself does not contain backslashes and begins
13487 # with a dollar sign (not a hyphen), so the echo should work correctly.
13488 lt_compile=`echo "$ac_compile" | $SED \
13489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13491 -e 's:$: $lt_compiler_flag:'`
13492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13493 (eval "$lt_compile" 2>out/conftest.err)
13494 ac_status=$?
13495 cat out/conftest.err >&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13498 then
13499 # The compiler can only warn and ignore the option if not recognized
13500 # So say no if there are warnings
13501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13504 lt_cv_prog_compiler_c_o_CXX=yes
13507 chmod u+w . 2>&5
13508 $RM conftest*
13509 # SGI C++ compiler will create directory out/ii_files/ for
13510 # template instantiation
13511 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13512 $RM out/* && rmdir out
13513 cd ..
13514 $RM -r conftest
13515 $RM conftest*
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13519 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13524 hard_links="nottested"
13525 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13526 # do not overwrite the value of need_locks provided by the user
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13528 $as_echo_n "checking if we can lock with hard links... " >&6; }
13529 hard_links=yes
13530 $RM conftest*
13531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13532 touch conftest.a
13533 ln conftest.a conftest.b 2>&5 || hard_links=no
13534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13536 $as_echo "$hard_links" >&6; }
13537 if test "$hard_links" = no; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13539 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13540 need_locks=warn
13542 else
13543 need_locks=no
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13549 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13551 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13552 case $host_os in
13553 aix[4-9]*)
13554 # If we're using GNU nm, then we don't want the "-C" option.
13555 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13556 # Also, AIX nm treats weak defined symbols like other global defined
13557 # symbols, whereas GNU nm marks them as "W".
13558 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13559 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'
13560 else
13561 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'
13564 pw32*)
13565 export_symbols_cmds_CXX="$ltdll_cmds"
13567 cygwin* | mingw* | cegcc*)
13568 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'
13571 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13573 esac
13574 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13577 $as_echo "$ld_shlibs_CXX" >&6; }
13578 test "$ld_shlibs_CXX" = no && can_build_shared=no
13580 with_gnu_ld_CXX=$with_gnu_ld
13588 # Do we need to explicitly link libc?
13590 case "x$archive_cmds_need_lc_CXX" in
13591 x|xyes)
13592 # Assume -lc should be added
13593 archive_cmds_need_lc_CXX=yes
13595 if test "$enable_shared" = yes && test "$GCC" = yes; then
13596 case $archive_cmds_CXX in
13597 *'~'*)
13598 # FIXME: we may have to deal with multi-command sequences.
13600 '$CC '*)
13601 # Test whether the compiler implicitly links with -lc since on some
13602 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13603 # to ld, don't add -lc before -lgcc.
13604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13605 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13606 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13607 $as_echo_n "(cached) " >&6
13608 else
13609 $RM conftest*
13610 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13612 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13613 (eval $ac_compile) 2>&5
13614 ac_status=$?
13615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13616 test $ac_status = 0; } 2>conftest.err; then
13617 soname=conftest
13618 lib=conftest
13619 libobjs=conftest.$ac_objext
13620 deplibs=
13621 wl=$lt_prog_compiler_wl_CXX
13622 pic_flag=$lt_prog_compiler_pic_CXX
13623 compiler_flags=-v
13624 linker_flags=-v
13625 verstring=
13626 output_objdir=.
13627 libname=conftest
13628 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13629 allow_undefined_flag_CXX=
13630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13631 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13632 ac_status=$?
13633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13634 test $ac_status = 0; }
13635 then
13636 lt_cv_archive_cmds_need_lc_CXX=no
13637 else
13638 lt_cv_archive_cmds_need_lc_CXX=yes
13640 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13641 else
13642 cat conftest.err 1>&5
13644 $RM conftest*
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13648 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13649 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13651 esac
13654 esac
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13720 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13722 library_names_spec=
13723 libname_spec='lib$name'
13724 soname_spec=
13725 shrext_cmds=".so"
13726 postinstall_cmds=
13727 postuninstall_cmds=
13728 finish_cmds=
13729 finish_eval=
13730 shlibpath_var=
13731 shlibpath_overrides_runpath=unknown
13732 version_type=none
13733 dynamic_linker="$host_os ld.so"
13734 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13735 need_lib_prefix=unknown
13736 hardcode_into_libs=no
13738 # when you set need_version to no, make sure it does not cause -set_version
13739 # flags to be left without arguments
13740 need_version=unknown
13742 case $host_os in
13743 aix3*)
13744 version_type=linux
13745 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13746 shlibpath_var=LIBPATH
13748 # AIX 3 has no versioning support, so we append a major version to the name.
13749 soname_spec='${libname}${release}${shared_ext}$major'
13752 aix[4-9]*)
13753 version_type=linux
13754 need_lib_prefix=no
13755 need_version=no
13756 hardcode_into_libs=yes
13757 if test "$host_cpu" = ia64; then
13758 # AIX 5 supports IA64
13759 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13760 shlibpath_var=LD_LIBRARY_PATH
13761 else
13762 # With GCC up to 2.95.x, collect2 would create an import file
13763 # for dependence libraries. The import file would start with
13764 # the line `#! .'. This would cause the generated library to
13765 # depend on `.', always an invalid library. This was fixed in
13766 # development snapshots of GCC prior to 3.0.
13767 case $host_os in
13768 aix4 | aix4.[01] | aix4.[01].*)
13769 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13770 echo ' yes '
13771 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13773 else
13774 can_build_shared=no
13777 esac
13778 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13779 # soname into executable. Probably we can add versioning support to
13780 # collect2, so additional links can be useful in future.
13781 if test "$aix_use_runtimelinking" = yes; then
13782 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13783 # instead of lib<name>.a to let people know that these are not
13784 # typical AIX shared libraries.
13785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13786 else
13787 # We preserve .a as extension for shared libraries through AIX4.2
13788 # and later when we are not doing run time linking.
13789 library_names_spec='${libname}${release}.a $libname.a'
13790 soname_spec='${libname}${release}${shared_ext}$major'
13792 shlibpath_var=LIBPATH
13796 amigaos*)
13797 case $host_cpu in
13798 powerpc)
13799 # Since July 2007 AmigaOS4 officially supports .so libraries.
13800 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13803 m68k)
13804 library_names_spec='$libname.ixlibrary $libname.a'
13805 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13806 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'
13808 esac
13811 beos*)
13812 library_names_spec='${libname}${shared_ext}'
13813 dynamic_linker="$host_os ld.so"
13814 shlibpath_var=LIBRARY_PATH
13817 bsdi[45]*)
13818 version_type=linux
13819 need_version=no
13820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13821 soname_spec='${libname}${release}${shared_ext}$major'
13822 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13823 shlibpath_var=LD_LIBRARY_PATH
13824 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13825 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13826 # the default ld.so.conf also contains /usr/contrib/lib and
13827 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13828 # libtool to hard-code these into programs
13831 cygwin* | mingw* | pw32* | cegcc*)
13832 version_type=windows
13833 shrext_cmds=".dll"
13834 need_version=no
13835 need_lib_prefix=no
13837 case $GCC,$host_os in
13838 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13839 library_names_spec='$libname.dll.a'
13840 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13841 postinstall_cmds='base_file=`basename \${file}`~
13842 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13843 dldir=$destdir/`dirname \$dlpath`~
13844 test -d \$dldir || mkdir -p \$dldir~
13845 $install_prog $dir/$dlname \$dldir/$dlname~
13846 chmod a+x \$dldir/$dlname~
13847 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13848 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13850 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13851 dlpath=$dir/\$dldll~
13852 $RM \$dlpath'
13853 shlibpath_overrides_runpath=yes
13855 case $host_os in
13856 cygwin*)
13857 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13858 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13861 mingw* | cegcc*)
13862 # MinGW DLLs use traditional 'lib' prefix
13863 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13865 pw32*)
13866 # pw32 DLLs use 'pw' prefix rather than 'lib'
13867 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13869 esac
13873 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13875 esac
13876 dynamic_linker='Win32 ld.exe'
13877 # FIXME: first we should search . and the directory the executable is in
13878 shlibpath_var=PATH
13881 darwin* | rhapsody*)
13882 dynamic_linker="$host_os dyld"
13883 version_type=darwin
13884 need_lib_prefix=no
13885 need_version=no
13886 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13887 soname_spec='${libname}${release}${major}$shared_ext'
13888 shlibpath_overrides_runpath=yes
13889 shlibpath_var=DYLD_LIBRARY_PATH
13890 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13892 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13895 dgux*)
13896 version_type=linux
13897 need_lib_prefix=no
13898 need_version=no
13899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13900 soname_spec='${libname}${release}${shared_ext}$major'
13901 shlibpath_var=LD_LIBRARY_PATH
13904 freebsd* | dragonfly*)
13905 # DragonFly does not have aout. When/if they implement a new
13906 # versioning mechanism, adjust this.
13907 if test -x /usr/bin/objformat; then
13908 objformat=`/usr/bin/objformat`
13909 else
13910 case $host_os in
13911 freebsd[23].*) objformat=aout ;;
13912 *) objformat=elf ;;
13913 esac
13915 version_type=freebsd-$objformat
13916 case $version_type in
13917 freebsd-elf*)
13918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13919 need_version=no
13920 need_lib_prefix=no
13922 freebsd-*)
13923 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13924 need_version=yes
13926 esac
13927 shlibpath_var=LD_LIBRARY_PATH
13928 case $host_os in
13929 freebsd2.*)
13930 shlibpath_overrides_runpath=yes
13932 freebsd3.[01]* | freebsdelf3.[01]*)
13933 shlibpath_overrides_runpath=yes
13934 hardcode_into_libs=yes
13936 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13937 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13938 shlibpath_overrides_runpath=no
13939 hardcode_into_libs=yes
13941 *) # from 4.6 on, and DragonFly
13942 shlibpath_overrides_runpath=yes
13943 hardcode_into_libs=yes
13945 esac
13948 gnu*)
13949 version_type=linux
13950 need_lib_prefix=no
13951 need_version=no
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13953 soname_spec='${libname}${release}${shared_ext}$major'
13954 shlibpath_var=LD_LIBRARY_PATH
13955 hardcode_into_libs=yes
13958 haiku*)
13959 version_type=linux
13960 need_lib_prefix=no
13961 need_version=no
13962 dynamic_linker="$host_os runtime_loader"
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 shlibpath_var=LIBRARY_PATH
13966 shlibpath_overrides_runpath=yes
13967 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
13968 hardcode_into_libs=yes
13971 hpux9* | hpux10* | hpux11*)
13972 # Give a soname corresponding to the major version so that dld.sl refuses to
13973 # link against other versions.
13974 version_type=sunos
13975 need_lib_prefix=no
13976 need_version=no
13977 case $host_cpu in
13978 ia64*)
13979 shrext_cmds='.so'
13980 hardcode_into_libs=yes
13981 dynamic_linker="$host_os dld.so"
13982 shlibpath_var=LD_LIBRARY_PATH
13983 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13985 soname_spec='${libname}${release}${shared_ext}$major'
13986 if test "X$HPUX_IA64_MODE" = X32; then
13987 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13988 else
13989 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13991 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13993 hppa*64*)
13994 shrext_cmds='.sl'
13995 hardcode_into_libs=yes
13996 dynamic_linker="$host_os dld.sl"
13997 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13998 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000 soname_spec='${libname}${release}${shared_ext}$major'
14001 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14002 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14005 shrext_cmds='.sl'
14006 dynamic_linker="$host_os dld.sl"
14007 shlibpath_var=SHLIB_PATH
14008 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14010 soname_spec='${libname}${release}${shared_ext}$major'
14012 esac
14013 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14014 postinstall_cmds='chmod 555 $lib'
14015 # or fails outright, so override atomically:
14016 install_override_mode=555
14019 interix[3-9]*)
14020 version_type=linux
14021 need_lib_prefix=no
14022 need_version=no
14023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14024 soname_spec='${libname}${release}${shared_ext}$major'
14025 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14026 shlibpath_var=LD_LIBRARY_PATH
14027 shlibpath_overrides_runpath=no
14028 hardcode_into_libs=yes
14031 irix5* | irix6* | nonstopux*)
14032 case $host_os in
14033 nonstopux*) version_type=nonstopux ;;
14035 if test "$lt_cv_prog_gnu_ld" = yes; then
14036 version_type=linux
14037 else
14038 version_type=irix
14039 fi ;;
14040 esac
14041 need_lib_prefix=no
14042 need_version=no
14043 soname_spec='${libname}${release}${shared_ext}$major'
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14045 case $host_os in
14046 irix5* | nonstopux*)
14047 libsuff= shlibsuff=
14050 case $LD in # libtool.m4 will add one of these switches to LD
14051 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14052 libsuff= shlibsuff= libmagic=32-bit;;
14053 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14054 libsuff=32 shlibsuff=N32 libmagic=N32;;
14055 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14056 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14057 *) libsuff= shlibsuff= libmagic=never-match;;
14058 esac
14060 esac
14061 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14062 shlibpath_overrides_runpath=no
14063 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14064 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14065 hardcode_into_libs=yes
14068 # No shared lib support for Linux oldld, aout, or coff.
14069 linux*oldld* | linux*aout* | linux*coff*)
14070 dynamic_linker=no
14073 # This must be Linux ELF.
14074 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14075 version_type=linux
14076 need_lib_prefix=no
14077 need_version=no
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 soname_spec='${libname}${release}${shared_ext}$major'
14080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14081 shlibpath_var=LD_LIBRARY_PATH
14082 shlibpath_overrides_runpath=no
14084 # Some binutils ld are patched to set DT_RUNPATH
14085 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14086 $as_echo_n "(cached) " >&6
14087 else
14088 lt_cv_shlibpath_overrides_runpath=no
14089 save_LDFLAGS=$LDFLAGS
14090 save_libdir=$libdir
14091 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14092 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14097 main ()
14101 return 0;
14103 _ACEOF
14104 if ac_fn_cxx_try_link "$LINENO"; then :
14105 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14106 lt_cv_shlibpath_overrides_runpath=yes
14109 rm -f core conftest.err conftest.$ac_objext \
14110 conftest$ac_exeext conftest.$ac_ext
14111 LDFLAGS=$save_LDFLAGS
14112 libdir=$save_libdir
14116 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14118 # This implies no fast_install, which is unacceptable.
14119 # Some rework will be needed to allow for fast_install
14120 # before this can be enabled.
14121 hardcode_into_libs=yes
14123 # Append ld.so.conf contents to the search path
14124 if test -f /etc/ld.so.conf; then
14125 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' ' '`
14126 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14129 # We used to test for /lib/ld.so.1 and disable shared libraries on
14130 # powerpc, because MkLinux only supported shared libraries with the
14131 # GNU dynamic linker. Since this was broken with cross compilers,
14132 # most powerpc-linux boxes support dynamic linking these days and
14133 # people can always --disable-shared, the test was removed, and we
14134 # assume the GNU/Linux dynamic linker is in use.
14135 dynamic_linker='GNU/Linux ld.so'
14138 netbsd*)
14139 version_type=sunos
14140 need_lib_prefix=no
14141 need_version=no
14142 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14145 dynamic_linker='NetBSD (a.out) ld.so'
14146 else
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14148 soname_spec='${libname}${release}${shared_ext}$major'
14149 dynamic_linker='NetBSD ld.elf_so'
14151 shlibpath_var=LD_LIBRARY_PATH
14152 shlibpath_overrides_runpath=yes
14153 hardcode_into_libs=yes
14156 newsos6)
14157 version_type=linux
14158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14159 shlibpath_var=LD_LIBRARY_PATH
14160 shlibpath_overrides_runpath=yes
14163 *nto* | *qnx*)
14164 version_type=qnx
14165 need_lib_prefix=no
14166 need_version=no
14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14168 soname_spec='${libname}${release}${shared_ext}$major'
14169 shlibpath_var=LD_LIBRARY_PATH
14170 shlibpath_overrides_runpath=no
14171 hardcode_into_libs=yes
14172 dynamic_linker='ldqnx.so'
14175 openbsd*)
14176 version_type=sunos
14177 sys_lib_dlsearch_path_spec="/usr/lib"
14178 need_lib_prefix=no
14179 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14180 case $host_os in
14181 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14182 *) need_version=no ;;
14183 esac
14184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14185 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14186 shlibpath_var=LD_LIBRARY_PATH
14187 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14188 case $host_os in
14189 openbsd2.[89] | openbsd2.[89].*)
14190 shlibpath_overrides_runpath=no
14193 shlibpath_overrides_runpath=yes
14195 esac
14196 else
14197 shlibpath_overrides_runpath=yes
14201 os2*)
14202 libname_spec='$name'
14203 shrext_cmds=".dll"
14204 need_lib_prefix=no
14205 library_names_spec='$libname${shared_ext} $libname.a'
14206 dynamic_linker='OS/2 ld.exe'
14207 shlibpath_var=LIBPATH
14210 osf3* | osf4* | osf5*)
14211 version_type=osf
14212 need_lib_prefix=no
14213 need_version=no
14214 soname_spec='${libname}${release}${shared_ext}$major'
14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14216 shlibpath_var=LD_LIBRARY_PATH
14217 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14218 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14221 rdos*)
14222 dynamic_linker=no
14225 solaris*)
14226 version_type=linux
14227 need_lib_prefix=no
14228 need_version=no
14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14230 soname_spec='${libname}${release}${shared_ext}$major'
14231 shlibpath_var=LD_LIBRARY_PATH
14232 shlibpath_overrides_runpath=yes
14233 hardcode_into_libs=yes
14234 # ldd complains unless libraries are executable
14235 postinstall_cmds='chmod +x $lib'
14238 sunos4*)
14239 version_type=sunos
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14241 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14242 shlibpath_var=LD_LIBRARY_PATH
14243 shlibpath_overrides_runpath=yes
14244 if test "$with_gnu_ld" = yes; then
14245 need_lib_prefix=no
14247 need_version=yes
14250 sysv4 | sysv4.3*)
14251 version_type=linux
14252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14253 soname_spec='${libname}${release}${shared_ext}$major'
14254 shlibpath_var=LD_LIBRARY_PATH
14255 case $host_vendor in
14256 sni)
14257 shlibpath_overrides_runpath=no
14258 need_lib_prefix=no
14259 runpath_var=LD_RUN_PATH
14261 siemens)
14262 need_lib_prefix=no
14264 motorola)
14265 need_lib_prefix=no
14266 need_version=no
14267 shlibpath_overrides_runpath=no
14268 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14270 esac
14273 sysv4*MP*)
14274 if test -d /usr/nec ;then
14275 version_type=linux
14276 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14277 soname_spec='$libname${shared_ext}.$major'
14278 shlibpath_var=LD_LIBRARY_PATH
14282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14283 version_type=freebsd-elf
14284 need_lib_prefix=no
14285 need_version=no
14286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14287 soname_spec='${libname}${release}${shared_ext}$major'
14288 shlibpath_var=LD_LIBRARY_PATH
14289 shlibpath_overrides_runpath=yes
14290 hardcode_into_libs=yes
14291 if test "$with_gnu_ld" = yes; then
14292 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14293 else
14294 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14295 case $host_os in
14296 sco3.2v5*)
14297 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14299 esac
14301 sys_lib_dlsearch_path_spec='/usr/lib'
14304 tpf*)
14305 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14306 version_type=linux
14307 need_lib_prefix=no
14308 need_version=no
14309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14310 shlibpath_var=LD_LIBRARY_PATH
14311 shlibpath_overrides_runpath=no
14312 hardcode_into_libs=yes
14315 uts4*)
14316 version_type=linux
14317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14318 soname_spec='${libname}${release}${shared_ext}$major'
14319 shlibpath_var=LD_LIBRARY_PATH
14323 dynamic_linker=no
14325 esac
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14327 $as_echo "$dynamic_linker" >&6; }
14328 test "$dynamic_linker" = no && can_build_shared=no
14330 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14331 if test "$GCC" = yes; then
14332 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14335 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14336 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14338 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14339 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14380 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14381 hardcode_action_CXX=
14382 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14383 test -n "$runpath_var_CXX" ||
14384 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14386 # We can hardcode non-existent directories.
14387 if test "$hardcode_direct_CXX" != no &&
14388 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14389 # have to relink, otherwise we might link with an installed library
14390 # when we should be linking with a yet-to-be-installed one
14391 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14392 test "$hardcode_minus_L_CXX" != no; then
14393 # Linking always hardcodes the temporary library directory.
14394 hardcode_action_CXX=relink
14395 else
14396 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14397 hardcode_action_CXX=immediate
14399 else
14400 # We cannot hardcode anything, or else we can only hardcode existing
14401 # directories.
14402 hardcode_action_CXX=unsupported
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14405 $as_echo "$hardcode_action_CXX" >&6; }
14407 if test "$hardcode_action_CXX" = relink ||
14408 test "$inherit_rpath_CXX" = yes; then
14409 # Fast installation is not supported
14410 enable_fast_install=no
14411 elif test "$shlibpath_overrides_runpath" = yes ||
14412 test "$enable_shared" = no; then
14413 # Fast installation is not necessary
14414 enable_fast_install=needless
14423 fi # test -n "$compiler"
14425 CC=$lt_save_CC
14426 LDCXX=$LD
14427 LD=$lt_save_LD
14428 GCC=$lt_save_GCC
14429 with_gnu_ld=$lt_save_with_gnu_ld
14430 lt_cv_path_LDCXX=$lt_cv_path_LD
14431 lt_cv_path_LD=$lt_save_path_LD
14432 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14433 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14434 fi # test "$_lt_caught_CXX_error" != yes
14436 ac_ext=c
14437 ac_cpp='$CPP $CPPFLAGS'
14438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14454 ac_config_commands="$ac_config_commands libtool"
14459 # Only expand once:
14462 # Forbid libtool to hardcode RPATH, because we want to be able to specify
14463 # library search directory using LD_LIBRARY_PATH
14464 hardcode_into_libs=no
14470 if test $enable_shared = yes; then
14471 link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
14472 link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
14473 else
14474 link_offloadmic_host="-loffloadmic_host $LIBS"
14475 link_offloadmic_target="-loffloadmic_target $LIBS"
14480 # Must be last
14481 cat >confcache <<\_ACEOF
14482 # This file is a shell script that caches the results of configure
14483 # tests run on this system so they can be shared between configure
14484 # scripts and configure runs, see configure's option --config-cache.
14485 # It is not useful on other systems. If it contains results you don't
14486 # want to keep, you may remove or edit it.
14488 # config.status only pays attention to the cache file if you give it
14489 # the --recheck option to rerun configure.
14491 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14492 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14493 # following values.
14495 _ACEOF
14497 # The following way of writing the cache mishandles newlines in values,
14498 # but we know of no workaround that is simple, portable, and efficient.
14499 # So, we kill variables containing newlines.
14500 # Ultrix sh set writes to stderr and can't be redirected directly,
14501 # and sets the high bit in the cache file unless we assign to the vars.
14503 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14504 eval ac_val=\$$ac_var
14505 case $ac_val in #(
14506 *${as_nl}*)
14507 case $ac_var in #(
14508 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14509 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14510 esac
14511 case $ac_var in #(
14512 _ | IFS | as_nl) ;; #(
14513 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14514 *) { eval $ac_var=; unset $ac_var;} ;;
14515 esac ;;
14516 esac
14517 done
14519 (set) 2>&1 |
14520 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14521 *${as_nl}ac_space=\ *)
14522 # `set' does not quote correctly, so add quotes: double-quote
14523 # substitution turns \\\\ into \\, and sed turns \\ into \.
14524 sed -n \
14525 "s/'/'\\\\''/g;
14526 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14527 ;; #(
14529 # `set' quotes correctly as required by POSIX, so do not add quotes.
14530 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14532 esac |
14533 sort
14535 sed '
14536 /^ac_cv_env_/b end
14537 t clear
14538 :clear
14539 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14540 t end
14541 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14542 :end' >>confcache
14543 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14544 if test -w "$cache_file"; then
14545 test "x$cache_file" != "x/dev/null" &&
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14547 $as_echo "$as_me: updating cache $cache_file" >&6;}
14548 cat confcache >$cache_file
14549 else
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14551 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14554 rm -f confcache
14556 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14557 # Let make expand exec_prefix.
14558 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14560 # Transform confdefs.h into DEFS.
14561 # Protect against shell expansion while executing Makefile rules.
14562 # Protect against Makefile macro expansion.
14564 # If the first sed substitution is executed (which looks for macros that
14565 # take arguments), then branch to the quote section. Otherwise,
14566 # look for a macro that doesn't take arguments.
14567 ac_script='
14568 :mline
14569 /\\$/{
14571 s,\\\n,,
14572 b mline
14574 t clear
14575 :clear
14576 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14577 t quote
14578 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14579 t quote
14580 b any
14581 :quote
14582 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14583 s/\[/\\&/g
14584 s/\]/\\&/g
14585 s/\$/$$/g
14587 :any
14590 s/^\n//
14591 s/\n/ /g
14595 DEFS=`sed -n "$ac_script" confdefs.h`
14598 ac_libobjs=
14599 ac_ltlibobjs=
14600 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14601 # 1. Remove the extension, and $U if already installed.
14602 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14603 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14604 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14605 # will be set to the directory where LIBOBJS objects are built.
14606 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14607 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14608 done
14609 LIBOBJS=$ac_libobjs
14611 LTLIBOBJS=$ac_ltlibobjs
14614 if test -n "$EXEEXT"; then
14615 am__EXEEXT_TRUE=
14616 am__EXEEXT_FALSE='#'
14617 else
14618 am__EXEEXT_TRUE='#'
14619 am__EXEEXT_FALSE=
14622 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14623 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
14624 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14626 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14627 as_fn_error "conditional \"AMDEP\" was never defined.
14628 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14630 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14631 as_fn_error "conditional \"am__fastdepCC\" was never defined.
14632 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14634 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14635 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
14636 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14638 if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
14639 as_fn_error "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
14640 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14643 : ${CONFIG_STATUS=./config.status}
14644 ac_write_fail=0
14645 ac_clean_files_save=$ac_clean_files
14646 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14648 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14649 as_write_fail=0
14650 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14651 #! $SHELL
14652 # Generated by $as_me.
14653 # Run this file to recreate the current configuration.
14654 # Compiler output produced by configure, useful for debugging
14655 # configure, is in config.log if it exists.
14657 debug=false
14658 ac_cs_recheck=false
14659 ac_cs_silent=false
14661 SHELL=\${CONFIG_SHELL-$SHELL}
14662 export SHELL
14663 _ASEOF
14664 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14665 ## -------------------- ##
14666 ## M4sh Initialization. ##
14667 ## -------------------- ##
14669 # Be more Bourne compatible
14670 DUALCASE=1; export DUALCASE # for MKS sh
14671 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14672 emulate sh
14673 NULLCMD=:
14674 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14675 # is contrary to our usage. Disable this feature.
14676 alias -g '${1+"$@"}'='"$@"'
14677 setopt NO_GLOB_SUBST
14678 else
14679 case `(set -o) 2>/dev/null` in #(
14680 *posix*) :
14681 set -o posix ;; #(
14682 *) :
14684 esac
14688 as_nl='
14690 export as_nl
14691 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14692 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14693 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14694 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14695 # Prefer a ksh shell builtin over an external printf program on Solaris,
14696 # but without wasting forks for bash or zsh.
14697 if test -z "$BASH_VERSION$ZSH_VERSION" \
14698 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14699 as_echo='print -r --'
14700 as_echo_n='print -rn --'
14701 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14702 as_echo='printf %s\n'
14703 as_echo_n='printf %s'
14704 else
14705 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14706 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14707 as_echo_n='/usr/ucb/echo -n'
14708 else
14709 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14710 as_echo_n_body='eval
14711 arg=$1;
14712 case $arg in #(
14713 *"$as_nl"*)
14714 expr "X$arg" : "X\\(.*\\)$as_nl";
14715 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14716 esac;
14717 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14719 export as_echo_n_body
14720 as_echo_n='sh -c $as_echo_n_body as_echo'
14722 export as_echo_body
14723 as_echo='sh -c $as_echo_body as_echo'
14726 # The user is always right.
14727 if test "${PATH_SEPARATOR+set}" != set; then
14728 PATH_SEPARATOR=:
14729 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14730 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14731 PATH_SEPARATOR=';'
14736 # IFS
14737 # We need space, tab and new line, in precisely that order. Quoting is
14738 # there to prevent editors from complaining about space-tab.
14739 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14740 # splitting by setting IFS to empty value.)
14741 IFS=" "" $as_nl"
14743 # Find who we are. Look in the path if we contain no directory separator.
14744 case $0 in #((
14745 *[\\/]* ) as_myself=$0 ;;
14746 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14747 for as_dir in $PATH
14749 IFS=$as_save_IFS
14750 test -z "$as_dir" && as_dir=.
14751 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14752 done
14753 IFS=$as_save_IFS
14756 esac
14757 # We did not find ourselves, most probably we were run as `sh COMMAND'
14758 # in which case we are not to be found in the path.
14759 if test "x$as_myself" = x; then
14760 as_myself=$0
14762 if test ! -f "$as_myself"; then
14763 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14764 exit 1
14767 # Unset variables that we do not need and which cause bugs (e.g. in
14768 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14769 # suppresses any "Segmentation fault" message there. '((' could
14770 # trigger a bug in pdksh 5.2.14.
14771 for as_var in BASH_ENV ENV MAIL MAILPATH
14772 do eval test x\${$as_var+set} = xset \
14773 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14774 done
14775 PS1='$ '
14776 PS2='> '
14777 PS4='+ '
14779 # NLS nuisances.
14780 LC_ALL=C
14781 export LC_ALL
14782 LANGUAGE=C
14783 export LANGUAGE
14785 # CDPATH.
14786 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14789 # as_fn_error ERROR [LINENO LOG_FD]
14790 # ---------------------------------
14791 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14792 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14793 # script with status $?, using 1 if that was 0.
14794 as_fn_error ()
14796 as_status=$?; test $as_status -eq 0 && as_status=1
14797 if test "$3"; then
14798 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14799 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14801 $as_echo "$as_me: error: $1" >&2
14802 as_fn_exit $as_status
14803 } # as_fn_error
14806 # as_fn_set_status STATUS
14807 # -----------------------
14808 # Set $? to STATUS, without forking.
14809 as_fn_set_status ()
14811 return $1
14812 } # as_fn_set_status
14814 # as_fn_exit STATUS
14815 # -----------------
14816 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14817 as_fn_exit ()
14819 set +e
14820 as_fn_set_status $1
14821 exit $1
14822 } # as_fn_exit
14824 # as_fn_unset VAR
14825 # ---------------
14826 # Portably unset VAR.
14827 as_fn_unset ()
14829 { eval $1=; unset $1;}
14831 as_unset=as_fn_unset
14832 # as_fn_append VAR VALUE
14833 # ----------------------
14834 # Append the text in VALUE to the end of the definition contained in VAR. Take
14835 # advantage of any shell optimizations that allow amortized linear growth over
14836 # repeated appends, instead of the typical quadratic growth present in naive
14837 # implementations.
14838 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14839 eval 'as_fn_append ()
14841 eval $1+=\$2
14843 else
14844 as_fn_append ()
14846 eval $1=\$$1\$2
14848 fi # as_fn_append
14850 # as_fn_arith ARG...
14851 # ------------------
14852 # Perform arithmetic evaluation on the ARGs, and store the result in the
14853 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14854 # must be portable across $(()) and expr.
14855 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14856 eval 'as_fn_arith ()
14858 as_val=$(( $* ))
14860 else
14861 as_fn_arith ()
14863 as_val=`expr "$@" || test $? -eq 1`
14865 fi # as_fn_arith
14868 if expr a : '\(a\)' >/dev/null 2>&1 &&
14869 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14870 as_expr=expr
14871 else
14872 as_expr=false
14875 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14876 as_basename=basename
14877 else
14878 as_basename=false
14881 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14882 as_dirname=dirname
14883 else
14884 as_dirname=false
14887 as_me=`$as_basename -- "$0" ||
14888 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14889 X"$0" : 'X\(//\)$' \| \
14890 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14891 $as_echo X/"$0" |
14892 sed '/^.*\/\([^/][^/]*\)\/*$/{
14893 s//\1/
14896 /^X\/\(\/\/\)$/{
14897 s//\1/
14900 /^X\/\(\/\).*/{
14901 s//\1/
14904 s/.*/./; q'`
14906 # Avoid depending upon Character Ranges.
14907 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14908 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14909 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14910 as_cr_digits='0123456789'
14911 as_cr_alnum=$as_cr_Letters$as_cr_digits
14913 ECHO_C= ECHO_N= ECHO_T=
14914 case `echo -n x` in #(((((
14915 -n*)
14916 case `echo 'xy\c'` in
14917 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14918 xy) ECHO_C='\c';;
14919 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14920 ECHO_T=' ';;
14921 esac;;
14923 ECHO_N='-n';;
14924 esac
14926 rm -f conf$$ conf$$.exe conf$$.file
14927 if test -d conf$$.dir; then
14928 rm -f conf$$.dir/conf$$.file
14929 else
14930 rm -f conf$$.dir
14931 mkdir conf$$.dir 2>/dev/null
14933 if (echo >conf$$.file) 2>/dev/null; then
14934 if ln -s conf$$.file conf$$ 2>/dev/null; then
14935 as_ln_s='ln -s'
14936 # ... but there are two gotchas:
14937 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14938 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14939 # In both cases, we have to default to `cp -p'.
14940 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
14941 as_ln_s='cp -p'
14942 elif ln conf$$.file conf$$ 2>/dev/null; then
14943 as_ln_s=ln
14944 else
14945 as_ln_s='cp -p'
14947 else
14948 as_ln_s='cp -p'
14950 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14951 rmdir conf$$.dir 2>/dev/null
14954 # as_fn_mkdir_p
14955 # -------------
14956 # Create "$as_dir" as a directory, including parents if necessary.
14957 as_fn_mkdir_p ()
14960 case $as_dir in #(
14961 -*) as_dir=./$as_dir;;
14962 esac
14963 test -d "$as_dir" || eval $as_mkdir_p || {
14964 as_dirs=
14965 while :; do
14966 case $as_dir in #(
14967 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14968 *) as_qdir=$as_dir;;
14969 esac
14970 as_dirs="'$as_qdir' $as_dirs"
14971 as_dir=`$as_dirname -- "$as_dir" ||
14972 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14973 X"$as_dir" : 'X\(//\)[^/]' \| \
14974 X"$as_dir" : 'X\(//\)$' \| \
14975 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14976 $as_echo X"$as_dir" |
14977 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14978 s//\1/
14981 /^X\(\/\/\)[^/].*/{
14982 s//\1/
14985 /^X\(\/\/\)$/{
14986 s//\1/
14989 /^X\(\/\).*/{
14990 s//\1/
14993 s/.*/./; q'`
14994 test -d "$as_dir" && break
14995 done
14996 test -z "$as_dirs" || eval "mkdir $as_dirs"
14997 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
15000 } # as_fn_mkdir_p
15001 if mkdir -p . 2>/dev/null; then
15002 as_mkdir_p='mkdir -p "$as_dir"'
15003 else
15004 test -d ./-p && rmdir ./-p
15005 as_mkdir_p=false
15008 if test -x / >/dev/null 2>&1; then
15009 as_test_x='test -x'
15010 else
15011 if ls -dL / >/dev/null 2>&1; then
15012 as_ls_L_option=L
15013 else
15014 as_ls_L_option=
15016 as_test_x='
15017 eval sh -c '\''
15018 if test -d "$1"; then
15019 test -d "$1/.";
15020 else
15021 case $1 in #(
15022 -*)set "./$1";;
15023 esac;
15024 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15025 ???[sx]*):;;*)false;;esac;fi
15026 '\'' sh
15029 as_executable_p=$as_test_x
15031 # Sed expression to map a string onto a valid CPP name.
15032 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15034 # Sed expression to map a string onto a valid variable name.
15035 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15038 exec 6>&1
15039 ## ----------------------------------- ##
15040 ## Main body of $CONFIG_STATUS script. ##
15041 ## ----------------------------------- ##
15042 _ASEOF
15043 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15046 # Save the log message, to keep $0 and so on meaningful, and to
15047 # report actual input values of CONFIG_FILES etc. instead of their
15048 # values after options handling.
15049 ac_log="
15050 This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
15051 generated by GNU Autoconf 2.64. Invocation command line was
15053 CONFIG_FILES = $CONFIG_FILES
15054 CONFIG_HEADERS = $CONFIG_HEADERS
15055 CONFIG_LINKS = $CONFIG_LINKS
15056 CONFIG_COMMANDS = $CONFIG_COMMANDS
15057 $ $0 $@
15059 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15062 _ACEOF
15064 case $ac_config_files in *"
15065 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15066 esac
15070 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15071 # Files that config.status was made for.
15072 config_files="$ac_config_files"
15073 config_commands="$ac_config_commands"
15075 _ACEOF
15077 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15078 ac_cs_usage="\
15079 \`$as_me' instantiates files and other configuration actions
15080 from templates according to the current configuration. Unless the files
15081 and actions are specified as TAGs, all are instantiated by default.
15083 Usage: $0 [OPTION]... [TAG]...
15085 -h, --help print this help, then exit
15086 -V, --version print version number and configuration settings, then exit
15087 -q, --quiet, --silent
15088 do not print progress messages
15089 -d, --debug don't remove temporary files
15090 --recheck update $as_me by reconfiguring in the same conditions
15091 --file=FILE[:TEMPLATE]
15092 instantiate the configuration file FILE
15094 Configuration files:
15095 $config_files
15097 Configuration commands:
15098 $config_commands
15100 Report bugs to the package provider."
15102 _ACEOF
15103 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15104 ac_cs_version="\\
15105 MIC Offload Runtime Library config.status 1.0
15106 configured by $0, generated by GNU Autoconf 2.64,
15107 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
15109 Copyright (C) 2009 Free Software Foundation, Inc.
15110 This config.status script is free software; the Free Software Foundation
15111 gives unlimited permission to copy, distribute and modify it."
15113 ac_pwd='$ac_pwd'
15114 srcdir='$srcdir'
15115 INSTALL='$INSTALL'
15116 MKDIR_P='$MKDIR_P'
15117 AWK='$AWK'
15118 test -n "\$AWK" || AWK=awk
15119 _ACEOF
15121 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15122 # The default lists apply if the user does not specify any file.
15123 ac_need_defaults=:
15124 while test $# != 0
15126 case $1 in
15127 --*=*)
15128 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15129 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15130 ac_shift=:
15133 ac_option=$1
15134 ac_optarg=$2
15135 ac_shift=shift
15137 esac
15139 case $ac_option in
15140 # Handling of the options.
15141 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15142 ac_cs_recheck=: ;;
15143 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15144 $as_echo "$ac_cs_version"; exit ;;
15145 --debug | --debu | --deb | --de | --d | -d )
15146 debug=: ;;
15147 --file | --fil | --fi | --f )
15148 $ac_shift
15149 case $ac_optarg in
15150 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15151 esac
15152 as_fn_append CONFIG_FILES " '$ac_optarg'"
15153 ac_need_defaults=false;;
15154 --he | --h | --help | --hel | -h )
15155 $as_echo "$ac_cs_usage"; exit ;;
15156 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15157 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15158 ac_cs_silent=: ;;
15160 # This is an error.
15161 -*) as_fn_error "unrecognized option: \`$1'
15162 Try \`$0 --help' for more information." ;;
15164 *) as_fn_append ac_config_targets " $1"
15165 ac_need_defaults=false ;;
15167 esac
15168 shift
15169 done
15171 ac_configure_extra_args=
15173 if $ac_cs_silent; then
15174 exec 6>/dev/null
15175 ac_configure_extra_args="$ac_configure_extra_args --silent"
15178 _ACEOF
15179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15180 if \$ac_cs_recheck; then
15181 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15182 shift
15183 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15184 CONFIG_SHELL='$SHELL'
15185 export CONFIG_SHELL
15186 exec "\$@"
15189 _ACEOF
15190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15191 exec 5>>config.log
15193 echo
15194 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15195 ## Running $as_me. ##
15196 _ASBOX
15197 $as_echo "$ac_log"
15198 } >&5
15200 _ACEOF
15201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15203 # INIT-COMMANDS
15205 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15207 srcdir="$srcdir"
15208 host="$host"
15209 target="$target"
15210 with_multisubdir="$with_multisubdir"
15211 with_multisrctop="$with_multisrctop"
15212 with_target_subdir="$with_target_subdir"
15213 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15214 multi_basedir="$multi_basedir"
15215 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15216 CC="$CC"
15217 CXX="$CXX"
15218 GFORTRAN="$GFORTRAN"
15219 GCJ="$GCJ"
15222 # The HP-UX ksh and POSIX shell print the target directory to stdout
15223 # if CDPATH is set.
15224 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15226 sed_quote_subst='$sed_quote_subst'
15227 double_quote_subst='$double_quote_subst'
15228 delay_variable_subst='$delay_variable_subst'
15229 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15230 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15231 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15232 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15233 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15234 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15235 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15236 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15237 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15238 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15239 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15240 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15241 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15242 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15243 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15244 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15245 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15246 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15247 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15248 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15249 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15250 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15251 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15252 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15253 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15254 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15255 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15256 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15257 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15258 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15259 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15260 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15261 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15262 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15263 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15264 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15265 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15266 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15267 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15268 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15269 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15270 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15271 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15272 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15273 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15274 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15275 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15276 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15277 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"`'
15278 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15279 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15280 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15281 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15282 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15283 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15284 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15285 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15286 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15287 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15288 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15289 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15290 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15291 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15292 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15293 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15294 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15295 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15296 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15297 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15298 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15299 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15300 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15301 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15302 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15303 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15304 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15305 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15306 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15307 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15308 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15309 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15310 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15311 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15312 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15313 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15314 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15315 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15316 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15317 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15318 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15319 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15320 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15321 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15322 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15323 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15324 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15325 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15326 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15327 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15328 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15329 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15330 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15331 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15332 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15333 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15334 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15335 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15336 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15337 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15338 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15339 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15340 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15341 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15342 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15343 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15344 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15345 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15346 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15347 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15348 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15349 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15350 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15351 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15352 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15353 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15354 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15355 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15356 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15357 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15358 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15359 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15360 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15361 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15362 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15363 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15364 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15365 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15366 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15367 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15368 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15369 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15370 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15371 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15372 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15373 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15374 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15375 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15376 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15377 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15378 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15379 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15380 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15381 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15382 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15383 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15384 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15385 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15386 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15387 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15388 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15389 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15390 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15391 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15392 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15393 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15394 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15395 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15396 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15397 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15398 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15399 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15400 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15401 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15402 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15403 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15405 LTCC='$LTCC'
15406 LTCFLAGS='$LTCFLAGS'
15407 compiler='$compiler_DEFAULT'
15409 # A function that is used when there is no print builtin or printf.
15410 func_fallback_echo ()
15412 eval 'cat <<_LTECHO_EOF
15414 _LTECHO_EOF'
15417 # Quote evaled strings.
15418 for var in SHELL \
15419 ECHO \
15420 SED \
15421 GREP \
15422 EGREP \
15423 FGREP \
15424 LD \
15425 NM \
15426 LN_S \
15427 lt_SP2NL \
15428 lt_NL2SP \
15429 reload_flag \
15430 OBJDUMP \
15431 deplibs_check_method \
15432 file_magic_cmd \
15433 AR \
15434 AR_FLAGS \
15435 STRIP \
15436 RANLIB \
15437 CC \
15438 CFLAGS \
15439 compiler \
15440 lt_cv_sys_global_symbol_pipe \
15441 lt_cv_sys_global_symbol_to_cdecl \
15442 lt_cv_sys_global_symbol_to_c_name_address \
15443 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15444 lt_prog_compiler_no_builtin_flag \
15445 lt_prog_compiler_wl \
15446 lt_prog_compiler_pic \
15447 lt_prog_compiler_static \
15448 lt_cv_prog_compiler_c_o \
15449 need_locks \
15450 DSYMUTIL \
15451 NMEDIT \
15452 LIPO \
15453 OTOOL \
15454 OTOOL64 \
15455 shrext_cmds \
15456 export_dynamic_flag_spec \
15457 whole_archive_flag_spec \
15458 compiler_needs_object \
15459 with_gnu_ld \
15460 allow_undefined_flag \
15461 no_undefined_flag \
15462 hardcode_libdir_flag_spec \
15463 hardcode_libdir_flag_spec_ld \
15464 hardcode_libdir_separator \
15465 fix_srcfile_path \
15466 exclude_expsyms \
15467 include_expsyms \
15468 file_list_spec \
15469 variables_saved_for_relink \
15470 libname_spec \
15471 library_names_spec \
15472 soname_spec \
15473 install_override_mode \
15474 finish_eval \
15475 old_striplib \
15476 striplib \
15477 compiler_lib_search_dirs \
15478 predep_objects \
15479 postdep_objects \
15480 predeps \
15481 postdeps \
15482 compiler_lib_search_path \
15483 LD_CXX \
15484 reload_flag_CXX \
15485 compiler_CXX \
15486 lt_prog_compiler_no_builtin_flag_CXX \
15487 lt_prog_compiler_wl_CXX \
15488 lt_prog_compiler_pic_CXX \
15489 lt_prog_compiler_static_CXX \
15490 lt_cv_prog_compiler_c_o_CXX \
15491 export_dynamic_flag_spec_CXX \
15492 whole_archive_flag_spec_CXX \
15493 compiler_needs_object_CXX \
15494 with_gnu_ld_CXX \
15495 allow_undefined_flag_CXX \
15496 no_undefined_flag_CXX \
15497 hardcode_libdir_flag_spec_CXX \
15498 hardcode_libdir_flag_spec_ld_CXX \
15499 hardcode_libdir_separator_CXX \
15500 fix_srcfile_path_CXX \
15501 exclude_expsyms_CXX \
15502 include_expsyms_CXX \
15503 file_list_spec_CXX \
15504 compiler_lib_search_dirs_CXX \
15505 predep_objects_CXX \
15506 postdep_objects_CXX \
15507 predeps_CXX \
15508 postdeps_CXX \
15509 compiler_lib_search_path_CXX; do
15510 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15511 *[\\\\\\\`\\"\\\$]*)
15512 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15515 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15517 esac
15518 done
15520 # Double-quote double-evaled strings.
15521 for var in reload_cmds \
15522 old_postinstall_cmds \
15523 old_postuninstall_cmds \
15524 old_archive_cmds \
15525 extract_expsyms_cmds \
15526 old_archive_from_new_cmds \
15527 old_archive_from_expsyms_cmds \
15528 archive_cmds \
15529 archive_expsym_cmds \
15530 module_cmds \
15531 module_expsym_cmds \
15532 export_symbols_cmds \
15533 prelink_cmds \
15534 postinstall_cmds \
15535 postuninstall_cmds \
15536 finish_cmds \
15537 sys_lib_search_path_spec \
15538 sys_lib_dlsearch_path_spec \
15539 reload_cmds_CXX \
15540 old_archive_cmds_CXX \
15541 old_archive_from_new_cmds_CXX \
15542 old_archive_from_expsyms_cmds_CXX \
15543 archive_cmds_CXX \
15544 archive_expsym_cmds_CXX \
15545 module_cmds_CXX \
15546 module_expsym_cmds_CXX \
15547 export_symbols_cmds_CXX \
15548 prelink_cmds_CXX; do
15549 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15550 *[\\\\\\\`\\"\\\$]*)
15551 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15554 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15556 esac
15557 done
15559 ac_aux_dir='$ac_aux_dir'
15560 xsi_shell='$xsi_shell'
15561 lt_shell_append='$lt_shell_append'
15563 # See if we are running on zsh, and set the options which allow our
15564 # commands through without removal of \ escapes INIT.
15565 if test -n "\${ZSH_VERSION+set}" ; then
15566 setopt NO_GLOB_SUBST
15570 PACKAGE='$PACKAGE'
15571 VERSION='$VERSION'
15572 TIMESTAMP='$TIMESTAMP'
15573 RM='$RM'
15574 ofile='$ofile'
15581 _ACEOF
15583 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15585 # Handling of arguments.
15586 for ac_config_target in $ac_config_targets
15588 case $ac_config_target in
15589 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15590 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15591 "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
15592 "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
15593 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15594 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15596 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15597 esac
15598 done
15601 # If the user did not use the arguments to specify the items to instantiate,
15602 # then the envvar interface is used. Set only those that are not.
15603 # We use the long form for the default assignment because of an extremely
15604 # bizarre bug on SunOS 4.1.3.
15605 if $ac_need_defaults; then
15606 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15607 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15610 # Have a temporary directory for convenience. Make it in the build tree
15611 # simply because there is no reason against having it here, and in addition,
15612 # creating and moving files from /tmp can sometimes cause problems.
15613 # Hook for its removal unless debugging.
15614 # Note that there is a small window in which the directory will not be cleaned:
15615 # after its creation but before its name has been assigned to `$tmp'.
15616 $debug ||
15618 tmp=
15619 trap 'exit_status=$?
15620 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15622 trap 'as_fn_exit 1' 1 2 13 15
15624 # Create a (secure) tmp directory for tmp files.
15627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15628 test -n "$tmp" && test -d "$tmp"
15629 } ||
15631 tmp=./conf$$-$RANDOM
15632 (umask 077 && mkdir "$tmp")
15633 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
15635 # Set up the scripts for CONFIG_FILES section.
15636 # No need to generate them if there are no CONFIG_FILES.
15637 # This happens for instance with `./config.status config.h'.
15638 if test -n "$CONFIG_FILES"; then
15641 ac_cr=`echo X | tr X '\015'`
15642 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15643 # But we know of no other shell where ac_cr would be empty at this
15644 # point, so we can use a bashism as a fallback.
15645 if test "x$ac_cr" = x; then
15646 eval ac_cr=\$\'\\r\'
15648 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15649 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15650 ac_cs_awk_cr='\r'
15651 else
15652 ac_cs_awk_cr=$ac_cr
15655 echo 'BEGIN {' >"$tmp/subs1.awk" &&
15656 _ACEOF
15660 echo "cat >conf$$subs.awk <<_ACEOF" &&
15661 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15662 echo "_ACEOF"
15663 } >conf$$subs.sh ||
15664 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15665 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
15666 ac_delim='%!_!# '
15667 for ac_last_try in false false false false false :; do
15668 . ./conf$$subs.sh ||
15669 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15671 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15672 if test $ac_delim_n = $ac_delim_num; then
15673 break
15674 elif $ac_last_try; then
15675 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
15676 else
15677 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15679 done
15680 rm -f conf$$subs.sh
15682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15683 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
15684 _ACEOF
15685 sed -n '
15687 s/^/S["/; s/!.*/"]=/
15690 s/^[^!]*!//
15691 :repl
15692 t repl
15693 s/'"$ac_delim"'$//
15694 t delim
15697 s/\(.\{148\}\).*/\1/
15698 t more1
15699 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15702 b repl
15703 :more1
15704 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15707 s/.\{148\}//
15708 t nl
15709 :delim
15711 s/\(.\{148\}\).*/\1/
15712 t more2
15713 s/["\\]/\\&/g; s/^/"/; s/$/"/
15716 :more2
15717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15720 s/.\{148\}//
15721 t delim
15722 ' <conf$$subs.awk | sed '
15723 /^[^""]/{
15725 s/\n//
15727 ' >>$CONFIG_STATUS || ac_write_fail=1
15728 rm -f conf$$subs.awk
15729 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15730 _ACAWK
15731 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
15732 for (key in S) S_is_set[key] = 1
15733 FS = "\a"
15737 line = $ 0
15738 nfields = split(line, field, "@")
15739 substed = 0
15740 len = length(field[1])
15741 for (i = 2; i < nfields; i++) {
15742 key = field[i]
15743 keylen = length(key)
15744 if (S_is_set[key]) {
15745 value = S[key]
15746 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15747 len += length(value) + length(field[++i])
15748 substed = 1
15749 } else
15750 len += 1 + keylen
15753 print line
15756 _ACAWK
15757 _ACEOF
15758 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15759 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15760 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15761 else
15763 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
15764 || as_fn_error "could not setup config files machinery" "$LINENO" 5
15765 _ACEOF
15767 # VPATH may cause trouble with some makes, so we remove $(srcdir),
15768 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
15769 # trailing colons and then remove the whole line if VPATH becomes empty
15770 # (actually we leave an empty line to preserve line numbers).
15771 if test "x$srcdir" = x.; then
15772 ac_vpsub='/^[ ]*VPATH[ ]*=/{
15773 s/:*\$(srcdir):*/:/
15774 s/:*\${srcdir}:*/:/
15775 s/:*@srcdir@:*/:/
15776 s/^\([^=]*=[ ]*\):*/\1/
15777 s/:*$//
15778 s/^[^=]*=[ ]*$//
15782 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15783 fi # test -n "$CONFIG_FILES"
15786 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
15787 shift
15788 for ac_tag
15790 case $ac_tag in
15791 :[FHLC]) ac_mode=$ac_tag; continue;;
15792 esac
15793 case $ac_mode$ac_tag in
15794 :[FHL]*:*);;
15795 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
15796 :[FH]-) ac_tag=-:-;;
15797 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15798 esac
15799 ac_save_IFS=$IFS
15800 IFS=:
15801 set x $ac_tag
15802 IFS=$ac_save_IFS
15803 shift
15804 ac_file=$1
15805 shift
15807 case $ac_mode in
15808 :L) ac_source=$1;;
15809 :[FH])
15810 ac_file_inputs=
15811 for ac_f
15813 case $ac_f in
15814 -) ac_f="$tmp/stdin";;
15815 *) # Look for the file first in the build tree, then in the source tree
15816 # (if the path is not absolute). The absolute path cannot be DOS-style,
15817 # because $ac_f cannot contain `:'.
15818 test -f "$ac_f" ||
15819 case $ac_f in
15820 [\\/$]*) false;;
15821 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15822 esac ||
15823 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
15824 esac
15825 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
15826 as_fn_append ac_file_inputs " '$ac_f'"
15827 done
15829 # Let's still pretend it is `configure' which instantiates (i.e., don't
15830 # use $as_me), people would be surprised to read:
15831 # /* config.h. Generated by config.status. */
15832 configure_input='Generated from '`
15833 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15834 `' by configure.'
15835 if test x"$ac_file" != x-; then
15836 configure_input="$ac_file. $configure_input"
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
15838 $as_echo "$as_me: creating $ac_file" >&6;}
15840 # Neutralize special characters interpreted by sed in replacement strings.
15841 case $configure_input in #(
15842 *\&* | *\|* | *\\* )
15843 ac_sed_conf_input=`$as_echo "$configure_input" |
15844 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15845 *) ac_sed_conf_input=$configure_input;;
15846 esac
15848 case $ac_tag in
15849 *:-:* | *:-) cat >"$tmp/stdin" \
15850 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
15851 esac
15853 esac
15855 ac_dir=`$as_dirname -- "$ac_file" ||
15856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15857 X"$ac_file" : 'X\(//\)[^/]' \| \
15858 X"$ac_file" : 'X\(//\)$' \| \
15859 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
15860 $as_echo X"$ac_file" |
15861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15862 s//\1/
15865 /^X\(\/\/\)[^/].*/{
15866 s//\1/
15869 /^X\(\/\/\)$/{
15870 s//\1/
15873 /^X\(\/\).*/{
15874 s//\1/
15877 s/.*/./; q'`
15878 as_dir="$ac_dir"; as_fn_mkdir_p
15879 ac_builddir=.
15881 case "$ac_dir" in
15882 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15884 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
15885 # A ".." for each directory in $ac_dir_suffix.
15886 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
15887 case $ac_top_builddir_sub in
15888 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15889 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15890 esac ;;
15891 esac
15892 ac_abs_top_builddir=$ac_pwd
15893 ac_abs_builddir=$ac_pwd$ac_dir_suffix
15894 # for backward compatibility:
15895 ac_top_builddir=$ac_top_build_prefix
15897 case $srcdir in
15898 .) # We are building in place.
15899 ac_srcdir=.
15900 ac_top_srcdir=$ac_top_builddir_sub
15901 ac_abs_top_srcdir=$ac_pwd ;;
15902 [\\/]* | ?:[\\/]* ) # Absolute name.
15903 ac_srcdir=$srcdir$ac_dir_suffix;
15904 ac_top_srcdir=$srcdir
15905 ac_abs_top_srcdir=$srcdir ;;
15906 *) # Relative name.
15907 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15908 ac_top_srcdir=$ac_top_build_prefix$srcdir
15909 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
15910 esac
15911 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
15914 case $ac_mode in
15917 # CONFIG_FILE
15920 case $INSTALL in
15921 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
15922 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
15923 esac
15924 ac_MKDIR_P=$MKDIR_P
15925 case $MKDIR_P in
15926 [\\/$]* | ?:[\\/]* ) ;;
15927 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15928 esac
15929 _ACEOF
15931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15932 # If the template does not know about datarootdir, expand it.
15933 # FIXME: This hack should be removed a few years after 2.60.
15934 ac_datarootdir_hack=; ac_datarootdir_seen=
15935 ac_sed_dataroot='
15936 /datarootdir/ {
15940 /@datadir@/p
15941 /@docdir@/p
15942 /@infodir@/p
15943 /@localedir@/p
15944 /@mandir@/p'
15945 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15946 *datarootdir*) ac_datarootdir_seen=yes;;
15947 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15949 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15950 _ACEOF
15951 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15952 ac_datarootdir_hack='
15953 s&@datadir@&$datadir&g
15954 s&@docdir@&$docdir&g
15955 s&@infodir@&$infodir&g
15956 s&@localedir@&$localedir&g
15957 s&@mandir@&$mandir&g
15958 s&\\\${datarootdir}&$datarootdir&g' ;;
15959 esac
15960 _ACEOF
15962 # Neutralize VPATH when `$srcdir' = `.'.
15963 # Shell code in configure.ac might set extrasub.
15964 # FIXME: do we really want to maintain this feature?
15965 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15966 ac_sed_extra="$ac_vpsub
15967 $extrasub
15968 _ACEOF
15969 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15972 s|@configure_input@|$ac_sed_conf_input|;t t
15973 s&@top_builddir@&$ac_top_builddir_sub&;t t
15974 s&@top_build_prefix@&$ac_top_build_prefix&;t t
15975 s&@srcdir@&$ac_srcdir&;t t
15976 s&@abs_srcdir@&$ac_abs_srcdir&;t t
15977 s&@top_srcdir@&$ac_top_srcdir&;t t
15978 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15979 s&@builddir@&$ac_builddir&;t t
15980 s&@abs_builddir@&$ac_abs_builddir&;t t
15981 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15982 s&@INSTALL@&$ac_INSTALL&;t t
15983 s&@MKDIR_P@&$ac_MKDIR_P&;t t
15984 $ac_datarootdir_hack
15986 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15987 || as_fn_error "could not create $ac_file" "$LINENO" 5
15989 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15990 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15991 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15993 which seems to be undefined. Please make sure it is defined." >&5
15994 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15995 which seems to be undefined. Please make sure it is defined." >&2;}
15997 rm -f "$tmp/stdin"
15998 case $ac_file in
15999 -) cat "$tmp/out" && rm -f "$tmp/out";;
16000 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16001 esac \
16002 || as_fn_error "could not create $ac_file" "$LINENO" 5
16006 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16007 $as_echo "$as_me: executing $ac_file commands" >&6;}
16009 esac
16012 case $ac_file$ac_mode in
16013 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16014 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16015 # are listed without --file. Let's play safe and only enable the eval
16016 # if we detect the quoting.
16017 case $CONFIG_FILES in
16018 *\'*) eval set x "$CONFIG_FILES" ;;
16019 *) set x $CONFIG_FILES ;;
16020 esac
16021 shift
16022 for mf
16024 # Strip MF so we end up with the name of the file.
16025 mf=`echo "$mf" | sed -e 's/:.*$//'`
16026 # Check whether this is an Automake generated Makefile or not.
16027 # We used to match only the files named `Makefile.in', but
16028 # some people rename them; so instead we look at the file content.
16029 # Grep'ing the first line is not enough: some people post-process
16030 # each Makefile.in and add a new line on top of each file to say so.
16031 # Grep'ing the whole file is not good either: AIX grep has a line
16032 # limit of 2048, but all sed's we know have understand at least 4000.
16033 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16034 dirpart=`$as_dirname -- "$mf" ||
16035 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16036 X"$mf" : 'X\(//\)[^/]' \| \
16037 X"$mf" : 'X\(//\)$' \| \
16038 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16039 $as_echo X"$mf" |
16040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16041 s//\1/
16044 /^X\(\/\/\)[^/].*/{
16045 s//\1/
16048 /^X\(\/\/\)$/{
16049 s//\1/
16052 /^X\(\/\).*/{
16053 s//\1/
16056 s/.*/./; q'`
16057 else
16058 continue
16060 # Extract the definition of DEPDIR, am__include, and am__quote
16061 # from the Makefile without running `make'.
16062 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16063 test -z "$DEPDIR" && continue
16064 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16065 test -z "am__include" && continue
16066 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16067 # When using ansi2knr, U may be empty or an underscore; expand it
16068 U=`sed -n 's/^U = //p' < "$mf"`
16069 # Find all dependency output files, they are included files with
16070 # $(DEPDIR) in their names. We invoke sed twice because it is the
16071 # simplest approach to changing $(DEPDIR) to its actual value in the
16072 # expansion.
16073 for file in `sed -n "
16074 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16075 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16076 # Make sure the directory exists.
16077 test -f "$dirpart/$file" && continue
16078 fdir=`$as_dirname -- "$file" ||
16079 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16080 X"$file" : 'X\(//\)[^/]' \| \
16081 X"$file" : 'X\(//\)$' \| \
16082 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16083 $as_echo X"$file" |
16084 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16085 s//\1/
16088 /^X\(\/\/\)[^/].*/{
16089 s//\1/
16092 /^X\(\/\/\)$/{
16093 s//\1/
16096 /^X\(\/\).*/{
16097 s//\1/
16100 s/.*/./; q'`
16101 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16102 # echo "creating $dirpart/$file"
16103 echo '# dummy' > "$dirpart/$file"
16104 done
16105 done
16108 "default-1":C)
16109 # Only add multilib support code if we just rebuilt the top-level
16110 # Makefile.
16111 case " $CONFIG_FILES " in
16112 *" Makefile "*)
16113 ac_file=Makefile . ${multi_basedir}/config-ml.in
16115 esac ;;
16116 "libtool":C)
16118 # See if we are running on zsh, and set the options which allow our
16119 # commands through without removal of \ escapes.
16120 if test -n "${ZSH_VERSION+set}" ; then
16121 setopt NO_GLOB_SUBST
16124 cfgfile="${ofile}T"
16125 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16126 $RM "$cfgfile"
16128 cat <<_LT_EOF >> "$cfgfile"
16129 #! $SHELL
16131 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16132 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16133 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16134 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16136 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16137 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16138 # Written by Gordon Matzigkeit, 1996
16140 # This file is part of GNU Libtool.
16142 # GNU Libtool is free software; you can redistribute it and/or
16143 # modify it under the terms of the GNU General Public License as
16144 # published by the Free Software Foundation; either version 2 of
16145 # the License, or (at your option) any later version.
16147 # As a special exception to the GNU General Public License,
16148 # if you distribute this file as part of a program or library that
16149 # is built using GNU Libtool, you may include this file under the
16150 # same distribution terms that you use for the rest of that program.
16152 # GNU Libtool is distributed in the hope that it will be useful,
16153 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16154 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16155 # GNU General Public License for more details.
16157 # You should have received a copy of the GNU General Public License
16158 # along with GNU Libtool; see the file COPYING. If not, a copy
16159 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16160 # obtained by writing to the Free Software Foundation, Inc.,
16161 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16164 # The names of the tagged configurations supported by this script.
16165 available_tags="CXX "
16167 # ### BEGIN LIBTOOL CONFIG
16169 # Which release of libtool.m4 was used?
16170 macro_version=$macro_version
16171 macro_revision=$macro_revision
16173 # Whether or not to build shared libraries.
16174 build_libtool_libs=$enable_shared
16176 # Whether or not to build static libraries.
16177 build_old_libs=$enable_static
16179 # What type of objects to build.
16180 pic_mode=$pic_mode
16182 # Whether or not to optimize for fast installation.
16183 fast_install=$enable_fast_install
16185 # Shell to use when invoking shell scripts.
16186 SHELL=$lt_SHELL
16188 # An echo program that protects backslashes.
16189 ECHO=$lt_ECHO
16191 # The host system.
16192 host_alias=$host_alias
16193 host=$host
16194 host_os=$host_os
16196 # The build system.
16197 build_alias=$build_alias
16198 build=$build
16199 build_os=$build_os
16201 # A sed program that does not truncate output.
16202 SED=$lt_SED
16204 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16205 Xsed="\$SED -e 1s/^X//"
16207 # A grep program that handles long lines.
16208 GREP=$lt_GREP
16210 # An ERE matcher.
16211 EGREP=$lt_EGREP
16213 # A literal string matcher.
16214 FGREP=$lt_FGREP
16216 # A BSD- or MS-compatible name lister.
16217 NM=$lt_NM
16219 # Whether we need soft or hard links.
16220 LN_S=$lt_LN_S
16222 # What is the maximum length of a command?
16223 max_cmd_len=$max_cmd_len
16225 # Object file suffix (normally "o").
16226 objext=$ac_objext
16228 # Executable file suffix (normally "").
16229 exeext=$exeext
16231 # whether the shell understands "unset".
16232 lt_unset=$lt_unset
16234 # turn spaces into newlines.
16235 SP2NL=$lt_lt_SP2NL
16237 # turn newlines into spaces.
16238 NL2SP=$lt_lt_NL2SP
16240 # An object symbol dumper.
16241 OBJDUMP=$lt_OBJDUMP
16243 # Method to check whether dependent libraries are shared objects.
16244 deplibs_check_method=$lt_deplibs_check_method
16246 # Command to use when deplibs_check_method == "file_magic".
16247 file_magic_cmd=$lt_file_magic_cmd
16249 # The archiver.
16250 AR=$lt_AR
16251 AR_FLAGS=$lt_AR_FLAGS
16253 # A symbol stripping program.
16254 STRIP=$lt_STRIP
16256 # Commands used to install an old-style archive.
16257 RANLIB=$lt_RANLIB
16258 old_postinstall_cmds=$lt_old_postinstall_cmds
16259 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16261 # Whether to use a lock for old archive extraction.
16262 lock_old_archive_extraction=$lock_old_archive_extraction
16264 # A C compiler.
16265 LTCC=$lt_CC
16267 # LTCC compiler flags.
16268 LTCFLAGS=$lt_CFLAGS
16270 # Take the output of nm and produce a listing of raw symbols and C names.
16271 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16273 # Transform the output of nm in a proper C declaration.
16274 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16276 # Transform the output of nm in a C name address pair.
16277 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16279 # Transform the output of nm in a C name address pair when lib prefix is needed.
16280 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16282 # The name of the directory that contains temporary libtool files.
16283 objdir=$objdir
16285 # Used to examine libraries when file_magic_cmd begins with "file".
16286 MAGIC_CMD=$MAGIC_CMD
16288 # Must we lock files when doing compilation?
16289 need_locks=$lt_need_locks
16291 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16292 DSYMUTIL=$lt_DSYMUTIL
16294 # Tool to change global to local symbols on Mac OS X.
16295 NMEDIT=$lt_NMEDIT
16297 # Tool to manipulate fat objects and archives on Mac OS X.
16298 LIPO=$lt_LIPO
16300 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16301 OTOOL=$lt_OTOOL
16303 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16304 OTOOL64=$lt_OTOOL64
16306 # Old archive suffix (normally "a").
16307 libext=$libext
16309 # Shared library suffix (normally ".so").
16310 shrext_cmds=$lt_shrext_cmds
16312 # The commands to extract the exported symbol list from a shared archive.
16313 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16315 # Variables whose values should be saved in libtool wrapper scripts and
16316 # restored at link time.
16317 variables_saved_for_relink=$lt_variables_saved_for_relink
16319 # Do we need the "lib" prefix for modules?
16320 need_lib_prefix=$need_lib_prefix
16322 # Do we need a version for libraries?
16323 need_version=$need_version
16325 # Library versioning type.
16326 version_type=$version_type
16328 # Shared library runtime path variable.
16329 runpath_var=$runpath_var
16331 # Shared library path variable.
16332 shlibpath_var=$shlibpath_var
16334 # Is shlibpath searched before the hard-coded library search path?
16335 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16337 # Format of library name prefix.
16338 libname_spec=$lt_libname_spec
16340 # List of archive names. First name is the real one, the rest are links.
16341 # The last name is the one that the linker finds with -lNAME
16342 library_names_spec=$lt_library_names_spec
16344 # The coded name of the library, if different from the real name.
16345 soname_spec=$lt_soname_spec
16347 # Permission mode override for installation of shared libraries.
16348 install_override_mode=$lt_install_override_mode
16350 # Command to use after installation of a shared archive.
16351 postinstall_cmds=$lt_postinstall_cmds
16353 # Command to use after uninstallation of a shared archive.
16354 postuninstall_cmds=$lt_postuninstall_cmds
16356 # Commands used to finish a libtool library installation in a directory.
16357 finish_cmds=$lt_finish_cmds
16359 # As "finish_cmds", except a single script fragment to be evaled but
16360 # not shown.
16361 finish_eval=$lt_finish_eval
16363 # Whether we should hardcode library paths into libraries.
16364 hardcode_into_libs=$hardcode_into_libs
16366 # Compile-time system search path for libraries.
16367 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16369 # Run-time system search path for libraries.
16370 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16372 # Whether dlopen is supported.
16373 dlopen_support=$enable_dlopen
16375 # Whether dlopen of programs is supported.
16376 dlopen_self=$enable_dlopen_self
16378 # Whether dlopen of statically linked programs is supported.
16379 dlopen_self_static=$enable_dlopen_self_static
16381 # Commands to strip libraries.
16382 old_striplib=$lt_old_striplib
16383 striplib=$lt_striplib
16386 # The linker used to build libraries.
16387 LD=$lt_LD
16389 # How to create reloadable object files.
16390 reload_flag=$lt_reload_flag
16391 reload_cmds=$lt_reload_cmds
16393 # Commands used to build an old-style archive.
16394 old_archive_cmds=$lt_old_archive_cmds
16396 # A language specific compiler.
16397 CC=$lt_compiler
16399 # Is the compiler the GNU compiler?
16400 with_gcc=$GCC
16402 # Compiler flag to turn off builtin functions.
16403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16405 # How to pass a linker flag through the compiler.
16406 wl=$lt_lt_prog_compiler_wl
16408 # Additional compiler flags for building library objects.
16409 pic_flag=$lt_lt_prog_compiler_pic
16411 # Compiler flag to prevent dynamic linking.
16412 link_static_flag=$lt_lt_prog_compiler_static
16414 # Does compiler simultaneously support -c and -o options?
16415 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16417 # Whether or not to add -lc for building shared libraries.
16418 build_libtool_need_lc=$archive_cmds_need_lc
16420 # Whether or not to disallow shared libs when runtime libs are static.
16421 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16423 # Compiler flag to allow reflexive dlopens.
16424 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16426 # Compiler flag to generate shared objects directly from archives.
16427 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16429 # Whether the compiler copes with passing no objects directly.
16430 compiler_needs_object=$lt_compiler_needs_object
16432 # Create an old-style archive from a shared archive.
16433 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16435 # Create a temporary old-style archive to link instead of a shared archive.
16436 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16438 # Commands used to build a shared archive.
16439 archive_cmds=$lt_archive_cmds
16440 archive_expsym_cmds=$lt_archive_expsym_cmds
16442 # Commands used to build a loadable module if different from building
16443 # a shared archive.
16444 module_cmds=$lt_module_cmds
16445 module_expsym_cmds=$lt_module_expsym_cmds
16447 # Whether we are building with GNU ld or not.
16448 with_gnu_ld=$lt_with_gnu_ld
16450 # Flag that allows shared libraries with undefined symbols to be built.
16451 allow_undefined_flag=$lt_allow_undefined_flag
16453 # Flag that enforces no undefined symbols.
16454 no_undefined_flag=$lt_no_undefined_flag
16456 # Flag to hardcode \$libdir into a binary during linking.
16457 # This must work even if \$libdir does not exist
16458 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16460 # If ld is used when linking, flag to hardcode \$libdir into a binary
16461 # during linking. This must work even if \$libdir does not exist.
16462 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16464 # Whether we need a single "-rpath" flag with a separated argument.
16465 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16467 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16468 # DIR into the resulting binary.
16469 hardcode_direct=$hardcode_direct
16471 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16472 # DIR into the resulting binary and the resulting library dependency is
16473 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16474 # library is relocated.
16475 hardcode_direct_absolute=$hardcode_direct_absolute
16477 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16478 # into the resulting binary.
16479 hardcode_minus_L=$hardcode_minus_L
16481 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16482 # into the resulting binary.
16483 hardcode_shlibpath_var=$hardcode_shlibpath_var
16485 # Set to "yes" if building a shared library automatically hardcodes DIR
16486 # into the library and all subsequent libraries and executables linked
16487 # against it.
16488 hardcode_automatic=$hardcode_automatic
16490 # Set to yes if linker adds runtime paths of dependent libraries
16491 # to runtime path list.
16492 inherit_rpath=$inherit_rpath
16494 # Whether libtool must link a program against all its dependency libraries.
16495 link_all_deplibs=$link_all_deplibs
16497 # Fix the shell variable \$srcfile for the compiler.
16498 fix_srcfile_path=$lt_fix_srcfile_path
16500 # Set to "yes" if exported symbols are required.
16501 always_export_symbols=$always_export_symbols
16503 # The commands to list exported symbols.
16504 export_symbols_cmds=$lt_export_symbols_cmds
16506 # Symbols that should not be listed in the preloaded symbols.
16507 exclude_expsyms=$lt_exclude_expsyms
16509 # Symbols that must always be exported.
16510 include_expsyms=$lt_include_expsyms
16512 # Commands necessary for linking programs (against libraries) with templates.
16513 prelink_cmds=$lt_prelink_cmds
16515 # Specify filename containing input files.
16516 file_list_spec=$lt_file_list_spec
16518 # How to hardcode a shared library path into an executable.
16519 hardcode_action=$hardcode_action
16521 # The directories searched by this compiler when creating a shared library.
16522 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16524 # Dependencies to place before and after the objects being linked to
16525 # create a shared library.
16526 predep_objects=$lt_predep_objects
16527 postdep_objects=$lt_postdep_objects
16528 predeps=$lt_predeps
16529 postdeps=$lt_postdeps
16531 # The library search path used internally by the compiler when linking
16532 # a shared library.
16533 compiler_lib_search_path=$lt_compiler_lib_search_path
16535 # ### END LIBTOOL CONFIG
16537 _LT_EOF
16539 case $host_os in
16540 aix3*)
16541 cat <<\_LT_EOF >> "$cfgfile"
16542 # AIX sometimes has problems with the GCC collect2 program. For some
16543 # reason, if we set the COLLECT_NAMES environment variable, the problems
16544 # vanish in a puff of smoke.
16545 if test "X${COLLECT_NAMES+set}" != Xset; then
16546 COLLECT_NAMES=
16547 export COLLECT_NAMES
16549 _LT_EOF
16551 esac
16554 ltmain="$ac_aux_dir/ltmain.sh"
16557 # We use sed instead of cat because bash on DJGPP gets confused if
16558 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16559 # text mode, it properly converts lines to CR/LF. This bash problem
16560 # is reportedly fixed, but why not run on old versions too?
16561 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16562 || (rm -f "$cfgfile"; exit 1)
16564 case $xsi_shell in
16565 yes)
16566 cat << \_LT_EOF >> "$cfgfile"
16568 # func_dirname file append nondir_replacement
16569 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16570 # otherwise set result to NONDIR_REPLACEMENT.
16571 func_dirname ()
16573 case ${1} in
16574 */*) func_dirname_result="${1%/*}${2}" ;;
16575 * ) func_dirname_result="${3}" ;;
16576 esac
16579 # func_basename file
16580 func_basename ()
16582 func_basename_result="${1##*/}"
16585 # func_dirname_and_basename file append nondir_replacement
16586 # perform func_basename and func_dirname in a single function
16587 # call:
16588 # dirname: Compute the dirname of FILE. If nonempty,
16589 # add APPEND to the result, otherwise set result
16590 # to NONDIR_REPLACEMENT.
16591 # value returned in "$func_dirname_result"
16592 # basename: Compute filename of FILE.
16593 # value retuned in "$func_basename_result"
16594 # Implementation must be kept synchronized with func_dirname
16595 # and func_basename. For efficiency, we do not delegate to
16596 # those functions but instead duplicate the functionality here.
16597 func_dirname_and_basename ()
16599 case ${1} in
16600 */*) func_dirname_result="${1%/*}${2}" ;;
16601 * ) func_dirname_result="${3}" ;;
16602 esac
16603 func_basename_result="${1##*/}"
16606 # func_stripname prefix suffix name
16607 # strip PREFIX and SUFFIX off of NAME.
16608 # PREFIX and SUFFIX must not contain globbing or regex special
16609 # characters, hashes, percent signs, but SUFFIX may contain a leading
16610 # dot (in which case that matches only a dot).
16611 func_stripname ()
16613 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16614 # positional parameters, so assign one to ordinary parameter first.
16615 func_stripname_result=${3}
16616 func_stripname_result=${func_stripname_result#"${1}"}
16617 func_stripname_result=${func_stripname_result%"${2}"}
16620 # func_opt_split
16621 func_opt_split ()
16623 func_opt_split_opt=${1%%=*}
16624 func_opt_split_arg=${1#*=}
16627 # func_lo2o object
16628 func_lo2o ()
16630 case ${1} in
16631 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16632 *) func_lo2o_result=${1} ;;
16633 esac
16636 # func_xform libobj-or-source
16637 func_xform ()
16639 func_xform_result=${1%.*}.lo
16642 # func_arith arithmetic-term...
16643 func_arith ()
16645 func_arith_result=$(( $* ))
16648 # func_len string
16649 # STRING may not start with a hyphen.
16650 func_len ()
16652 func_len_result=${#1}
16655 _LT_EOF
16657 *) # Bourne compatible functions.
16658 cat << \_LT_EOF >> "$cfgfile"
16660 # func_dirname file append nondir_replacement
16661 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16662 # otherwise set result to NONDIR_REPLACEMENT.
16663 func_dirname ()
16665 # Extract subdirectory from the argument.
16666 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16667 if test "X$func_dirname_result" = "X${1}"; then
16668 func_dirname_result="${3}"
16669 else
16670 func_dirname_result="$func_dirname_result${2}"
16674 # func_basename file
16675 func_basename ()
16677 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16681 # func_stripname prefix suffix name
16682 # strip PREFIX and SUFFIX off of NAME.
16683 # PREFIX and SUFFIX must not contain globbing or regex special
16684 # characters, hashes, percent signs, but SUFFIX may contain a leading
16685 # dot (in which case that matches only a dot).
16686 # func_strip_suffix prefix name
16687 func_stripname ()
16689 case ${2} in
16690 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16691 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16692 esac
16695 # sed scripts:
16696 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16697 my_sed_long_arg='1s/^-[^=]*=//'
16699 # func_opt_split
16700 func_opt_split ()
16702 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16703 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16706 # func_lo2o object
16707 func_lo2o ()
16709 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16712 # func_xform libobj-or-source
16713 func_xform ()
16715 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16718 # func_arith arithmetic-term...
16719 func_arith ()
16721 func_arith_result=`expr "$@"`
16724 # func_len string
16725 # STRING may not start with a hyphen.
16726 func_len ()
16728 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16731 _LT_EOF
16732 esac
16734 case $lt_shell_append in
16735 yes)
16736 cat << \_LT_EOF >> "$cfgfile"
16738 # func_append var value
16739 # Append VALUE to the end of shell variable VAR.
16740 func_append ()
16742 eval "$1+=\$2"
16744 _LT_EOF
16747 cat << \_LT_EOF >> "$cfgfile"
16749 # func_append var value
16750 # Append VALUE to the end of shell variable VAR.
16751 func_append ()
16753 eval "$1=\$$1\$2"
16756 _LT_EOF
16758 esac
16761 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16762 || (rm -f "$cfgfile"; exit 1)
16764 mv -f "$cfgfile" "$ofile" ||
16765 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16766 chmod +x "$ofile"
16769 cat <<_LT_EOF >> "$ofile"
16771 # ### BEGIN LIBTOOL TAG CONFIG: CXX
16773 # The linker used to build libraries.
16774 LD=$lt_LD_CXX
16776 # How to create reloadable object files.
16777 reload_flag=$lt_reload_flag_CXX
16778 reload_cmds=$lt_reload_cmds_CXX
16780 # Commands used to build an old-style archive.
16781 old_archive_cmds=$lt_old_archive_cmds_CXX
16783 # A language specific compiler.
16784 CC=$lt_compiler_CXX
16786 # Is the compiler the GNU compiler?
16787 with_gcc=$GCC_CXX
16789 # Compiler flag to turn off builtin functions.
16790 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16792 # How to pass a linker flag through the compiler.
16793 wl=$lt_lt_prog_compiler_wl_CXX
16795 # Additional compiler flags for building library objects.
16796 pic_flag=$lt_lt_prog_compiler_pic_CXX
16798 # Compiler flag to prevent dynamic linking.
16799 link_static_flag=$lt_lt_prog_compiler_static_CXX
16801 # Does compiler simultaneously support -c and -o options?
16802 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16804 # Whether or not to add -lc for building shared libraries.
16805 build_libtool_need_lc=$archive_cmds_need_lc_CXX
16807 # Whether or not to disallow shared libs when runtime libs are static.
16808 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16810 # Compiler flag to allow reflexive dlopens.
16811 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16813 # Compiler flag to generate shared objects directly from archives.
16814 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16816 # Whether the compiler copes with passing no objects directly.
16817 compiler_needs_object=$lt_compiler_needs_object_CXX
16819 # Create an old-style archive from a shared archive.
16820 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
16822 # Create a temporary old-style archive to link instead of a shared archive.
16823 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
16825 # Commands used to build a shared archive.
16826 archive_cmds=$lt_archive_cmds_CXX
16827 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
16829 # Commands used to build a loadable module if different from building
16830 # a shared archive.
16831 module_cmds=$lt_module_cmds_CXX
16832 module_expsym_cmds=$lt_module_expsym_cmds_CXX
16834 # Whether we are building with GNU ld or not.
16835 with_gnu_ld=$lt_with_gnu_ld_CXX
16837 # Flag that allows shared libraries with undefined symbols to be built.
16838 allow_undefined_flag=$lt_allow_undefined_flag_CXX
16840 # Flag that enforces no undefined symbols.
16841 no_undefined_flag=$lt_no_undefined_flag_CXX
16843 # Flag to hardcode \$libdir into a binary during linking.
16844 # This must work even if \$libdir does not exist
16845 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
16847 # If ld is used when linking, flag to hardcode \$libdir into a binary
16848 # during linking. This must work even if \$libdir does not exist.
16849 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
16851 # Whether we need a single "-rpath" flag with a separated argument.
16852 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
16854 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16855 # DIR into the resulting binary.
16856 hardcode_direct=$hardcode_direct_CXX
16858 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16859 # DIR into the resulting binary and the resulting library dependency is
16860 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16861 # library is relocated.
16862 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
16864 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16865 # into the resulting binary.
16866 hardcode_minus_L=$hardcode_minus_L_CXX
16868 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16869 # into the resulting binary.
16870 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
16872 # Set to "yes" if building a shared library automatically hardcodes DIR
16873 # into the library and all subsequent libraries and executables linked
16874 # against it.
16875 hardcode_automatic=$hardcode_automatic_CXX
16877 # Set to yes if linker adds runtime paths of dependent libraries
16878 # to runtime path list.
16879 inherit_rpath=$inherit_rpath_CXX
16881 # Whether libtool must link a program against all its dependency libraries.
16882 link_all_deplibs=$link_all_deplibs_CXX
16884 # Fix the shell variable \$srcfile for the compiler.
16885 fix_srcfile_path=$lt_fix_srcfile_path_CXX
16887 # Set to "yes" if exported symbols are required.
16888 always_export_symbols=$always_export_symbols_CXX
16890 # The commands to list exported symbols.
16891 export_symbols_cmds=$lt_export_symbols_cmds_CXX
16893 # Symbols that should not be listed in the preloaded symbols.
16894 exclude_expsyms=$lt_exclude_expsyms_CXX
16896 # Symbols that must always be exported.
16897 include_expsyms=$lt_include_expsyms_CXX
16899 # Commands necessary for linking programs (against libraries) with templates.
16900 prelink_cmds=$lt_prelink_cmds_CXX
16902 # Specify filename containing input files.
16903 file_list_spec=$lt_file_list_spec_CXX
16905 # How to hardcode a shared library path into an executable.
16906 hardcode_action=$hardcode_action_CXX
16908 # The directories searched by this compiler when creating a shared library.
16909 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
16911 # Dependencies to place before and after the objects being linked to
16912 # create a shared library.
16913 predep_objects=$lt_predep_objects_CXX
16914 postdep_objects=$lt_postdep_objects_CXX
16915 predeps=$lt_predeps_CXX
16916 postdeps=$lt_postdeps_CXX
16918 # The library search path used internally by the compiler when linking
16919 # a shared library.
16920 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
16922 # ### END LIBTOOL TAG CONFIG: CXX
16923 _LT_EOF
16927 esac
16928 done # for ac_tag
16931 as_fn_exit 0
16932 _ACEOF
16933 ac_clean_files=$ac_clean_files_save
16935 test $ac_write_fail = 0 ||
16936 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
16939 # configure is writing to config.log, and then calls config.status.
16940 # config.status does its own redirection, appending to config.log.
16941 # Unfortunately, on DOS this fails, as config.log is still kept open
16942 # by configure, so config.status won't be able to write to it; its
16943 # output is simply discarded. So we exec the FD to /dev/null,
16944 # effectively closing config.log, so it can be properly (re)opened and
16945 # appended to by config.status. When coming back to configure, we
16946 # need to make the FD available again.
16947 if test "$no_create" != yes; then
16948 ac_cs_success=:
16949 ac_config_status_args=
16950 test "$silent" = yes &&
16951 ac_config_status_args="$ac_config_status_args --quiet"
16952 exec 5>/dev/null
16953 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16954 exec 5>>config.log
16955 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16956 # would make configure fail if this is the last instruction.
16957 $ac_cs_success || as_fn_exit $?
16961 # CONFIG_SUBDIRS section.
16963 if test "$no_recursion" != yes; then
16965 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
16966 # so they do not pile up.
16967 ac_sub_configure_args=
16968 ac_prev=
16969 eval "set x $ac_configure_args"
16970 shift
16971 for ac_arg
16973 if test -n "$ac_prev"; then
16974 ac_prev=
16975 continue
16977 case $ac_arg in
16978 -cache-file | --cache-file | --cache-fil | --cache-fi \
16979 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
16980 ac_prev=cache_file ;;
16981 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
16982 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
16983 | --c=*)
16985 --config-cache | -C)
16987 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
16988 ac_prev=srcdir ;;
16989 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
16991 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
16992 ac_prev=prefix ;;
16993 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
16995 --disable-option-checking)
16998 case $ac_arg in
16999 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17000 esac
17001 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17002 esac
17003 done
17005 # Always prepend --prefix to ensure using the same prefix
17006 # in subdir configurations.
17007 ac_arg="--prefix=$prefix"
17008 case $ac_arg in
17009 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17010 esac
17011 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17013 # Pass --silent
17014 if test "$silent" = yes; then
17015 ac_sub_configure_args="--silent $ac_sub_configure_args"
17018 # Always prepend --disable-option-checking to silence warnings, since
17019 # different subdirs can have different --enable and --with options.
17020 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17022 ac_popdir=`pwd`
17023 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17025 # Do not complain, so a configure script can configure whichever
17026 # parts of a large source tree are present.
17027 test -d "$srcdir/$ac_dir" || continue
17029 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17030 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17031 $as_echo "$ac_msg" >&6
17032 as_dir="$ac_dir"; as_fn_mkdir_p
17033 ac_builddir=.
17035 case "$ac_dir" in
17036 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17038 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17039 # A ".." for each directory in $ac_dir_suffix.
17040 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17041 case $ac_top_builddir_sub in
17042 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17043 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17044 esac ;;
17045 esac
17046 ac_abs_top_builddir=$ac_pwd
17047 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17048 # for backward compatibility:
17049 ac_top_builddir=$ac_top_build_prefix
17051 case $srcdir in
17052 .) # We are building in place.
17053 ac_srcdir=.
17054 ac_top_srcdir=$ac_top_builddir_sub
17055 ac_abs_top_srcdir=$ac_pwd ;;
17056 [\\/]* | ?:[\\/]* ) # Absolute name.
17057 ac_srcdir=$srcdir$ac_dir_suffix;
17058 ac_top_srcdir=$srcdir
17059 ac_abs_top_srcdir=$srcdir ;;
17060 *) # Relative name.
17061 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17062 ac_top_srcdir=$ac_top_build_prefix$srcdir
17063 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17064 esac
17065 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17068 cd "$ac_dir"
17070 # Check for guested configure; otherwise get Cygnus style configure.
17071 if test -f "$ac_srcdir/configure.gnu"; then
17072 ac_sub_configure=$ac_srcdir/configure.gnu
17073 elif test -f "$ac_srcdir/configure"; then
17074 ac_sub_configure=$ac_srcdir/configure
17075 elif test -f "$ac_srcdir/configure.in"; then
17076 # This should be Cygnus configure.
17077 ac_sub_configure=$ac_aux_dir/configure
17078 else
17079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17080 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17081 ac_sub_configure=
17084 # The recursion is here.
17085 if test -n "$ac_sub_configure"; then
17086 # Make the cache file name correct relative to the subdirectory.
17087 case $cache_file in
17088 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17089 *) # Relative name.
17090 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17091 esac
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
17094 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17095 # The eval makes quoting arguments work.
17096 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17097 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17098 as_fn_error "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17101 cd "$ac_popdir"
17102 done
17104 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17106 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}