Fix ICE in lto_symtab_merge_symbols_1 (PR lto/88004).
[official-gcc.git] / liboffloadmic / configure
blob52b5517799092a526b0210152c768245e5ac6c08
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for MIC Offload Runtime Library 1.0.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software 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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='MIC Offload Runtime Library'
589 PACKAGE_TARNAME='liboffloadmic'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='MIC Offload Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 enable_option_checking=no
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 get_gcc_base_ver
637 link_offloadmic_target
638 link_offloadmic_host
639 lt_cv_dlopen_libs
640 toolexeclibdir
641 toolexecdir
642 CXXCPP
643 OTOOL64
644 OTOOL
645 LIPO
646 NMEDIT
647 DSYMUTIL
648 RANLIB
650 OBJDUMP
651 LN_S
653 ac_ct_DUMPBIN
654 DUMPBIN
656 FGREP
658 LIBTOOL
659 LIBOFFLOADMIC_HOST_FALSE
660 LIBOFFLOADMIC_HOST_TRUE
661 ALLOCA
662 EGREP
663 GREP
665 subdirs
666 multi_basedir
667 am__fastdepCXX_FALSE
668 am__fastdepCXX_TRUE
669 CXXDEPMODE
670 ac_ct_CXX
671 CXXFLAGS
673 am__fastdepCC_FALSE
674 am__fastdepCC_TRUE
675 CCDEPMODE
676 am__nodep
677 AMDEPBACKSLASH
678 AMDEP_FALSE
679 AMDEP_TRUE
680 am__quote
681 am__include
682 DEPDIR
683 OBJEXT
684 EXEEXT
685 ac_ct_CC
686 CPPFLAGS
687 LDFLAGS
688 CFLAGS
690 MAINT
691 MAINTAINER_MODE_FALSE
692 MAINTAINER_MODE_TRUE
693 AM_BACKSLASH
694 AM_DEFAULT_VERBOSITY
695 AM_DEFAULT_V
696 AM_V
697 am__untar
698 am__tar
699 AMTAR
700 am__leading_dot
701 SET_MAKE
703 mkdir_p
704 MKDIR_P
705 INSTALL_STRIP_PROGRAM
706 STRIP
707 install_sh
708 MAKEINFO
709 AUTOHEADER
710 AUTOMAKE
711 AUTOCONF
712 ACLOCAL
713 VERSION
714 PACKAGE
715 CYGPATH_W
716 am__isrc
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 target_os
721 target_vendor
722 target_cpu
723 target
724 host_os
725 host_vendor
726 host_cpu
727 host
728 build_os
729 build_vendor
730 build_cpu
731 build
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_silent_rules
774 enable_maintainer_mode
775 enable_dependency_tracking
776 enable_multilib
777 enable_version_specific_runtime_libs
778 enable_shared
779 enable_static
780 with_pic
781 enable_fast_install
782 with_gnu_ld
783 enable_libtool_lock
784 with_gcc_major_version_only
786 ac_precious_vars='build_alias
787 host_alias
788 target_alias
790 CFLAGS
791 LDFLAGS
792 LIBS
793 CPPFLAGS
795 CXXFLAGS
798 CXXCPP'
799 ac_subdirs_all='plugin'
801 # Initialize some variables set by options.
802 ac_init_help=
803 ac_init_version=false
804 ac_unrecognized_opts=
805 ac_unrecognized_sep=
806 # The variables have the same names as the options, with
807 # dashes changed to underlines.
808 cache_file=/dev/null
809 exec_prefix=NONE
810 no_create=
811 no_recursion=
812 prefix=NONE
813 program_prefix=NONE
814 program_suffix=NONE
815 program_transform_name=s,x,x,
816 silent=
817 site=
818 srcdir=
819 verbose=
820 x_includes=NONE
821 x_libraries=NONE
823 # Installation directory options.
824 # These are left unexpanded so users can "make install exec_prefix=/foo"
825 # and all the variables that are supposed to be based on exec_prefix
826 # by default will actually change.
827 # Use braces instead of parens because sh, perl, etc. also accept them.
828 # (The list follows the same order as the GNU Coding Standards.)
829 bindir='${exec_prefix}/bin'
830 sbindir='${exec_prefix}/sbin'
831 libexecdir='${exec_prefix}/libexec'
832 datarootdir='${prefix}/share'
833 datadir='${datarootdir}'
834 sysconfdir='${prefix}/etc'
835 sharedstatedir='${prefix}/com'
836 localstatedir='${prefix}/var'
837 includedir='${prefix}/include'
838 oldincludedir='/usr/include'
839 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
840 infodir='${datarootdir}/info'
841 htmldir='${docdir}'
842 dvidir='${docdir}'
843 pdfdir='${docdir}'
844 psdir='${docdir}'
845 libdir='${exec_prefix}/lib'
846 localedir='${datarootdir}/locale'
847 mandir='${datarootdir}/man'
849 ac_prev=
850 ac_dashdash=
851 for ac_option
853 # If the previous option needs an argument, assign it.
854 if test -n "$ac_prev"; then
855 eval $ac_prev=\$ac_option
856 ac_prev=
857 continue
860 case $ac_option in
861 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
862 *=) ac_optarg= ;;
863 *) ac_optarg=yes ;;
864 esac
866 # Accept the important Cygnus configure options, so we can diagnose typos.
868 case $ac_dashdash$ac_option in
870 ac_dashdash=yes ;;
872 -bindir | --bindir | --bindi | --bind | --bin | --bi)
873 ac_prev=bindir ;;
874 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875 bindir=$ac_optarg ;;
877 -build | --build | --buil | --bui | --bu)
878 ac_prev=build_alias ;;
879 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
880 build_alias=$ac_optarg ;;
882 -cache-file | --cache-file | --cache-fil | --cache-fi \
883 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
884 ac_prev=cache_file ;;
885 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
886 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
887 cache_file=$ac_optarg ;;
889 --config-cache | -C)
890 cache_file=config.cache ;;
892 -datadir | --datadir | --datadi | --datad)
893 ac_prev=datadir ;;
894 -datadir=* | --datadir=* | --datadi=* | --datad=*)
895 datadir=$ac_optarg ;;
897 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
898 | --dataroo | --dataro | --datar)
899 ac_prev=datarootdir ;;
900 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
901 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
902 datarootdir=$ac_optarg ;;
904 -disable-* | --disable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
913 "enable_$ac_useropt"
914 "*) ;;
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
917 esac
918 eval enable_$ac_useropt=no ;;
920 -docdir | --docdir | --docdi | --doc | --do)
921 ac_prev=docdir ;;
922 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923 docdir=$ac_optarg ;;
925 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
926 ac_prev=dvidir ;;
927 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928 dvidir=$ac_optarg ;;
930 -enable-* | --enable-*)
931 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
932 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error $? "invalid feature name: $ac_useropt"
935 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in
939 "enable_$ac_useropt"
940 "*) ;;
941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
942 ac_unrecognized_sep=', ';;
943 esac
944 eval enable_$ac_useropt=\$ac_optarg ;;
946 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
947 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
948 | --exec | --exe | --ex)
949 ac_prev=exec_prefix ;;
950 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
951 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
952 | --exec=* | --exe=* | --ex=*)
953 exec_prefix=$ac_optarg ;;
955 -gas | --gas | --ga | --g)
956 # Obsolete; use --with-gas.
957 with_gas=yes ;;
959 -help | --help | --hel | --he | -h)
960 ac_init_help=long ;;
961 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
962 ac_init_help=recursive ;;
963 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
964 ac_init_help=short ;;
966 -host | --host | --hos | --ho)
967 ac_prev=host_alias ;;
968 -host=* | --host=* | --hos=* | --ho=*)
969 host_alias=$ac_optarg ;;
971 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
972 ac_prev=htmldir ;;
973 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
974 | --ht=*)
975 htmldir=$ac_optarg ;;
977 -includedir | --includedir | --includedi | --included | --include \
978 | --includ | --inclu | --incl | --inc)
979 ac_prev=includedir ;;
980 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
981 | --includ=* | --inclu=* | --incl=* | --inc=*)
982 includedir=$ac_optarg ;;
984 -infodir | --infodir | --infodi | --infod | --info | --inf)
985 ac_prev=infodir ;;
986 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
987 infodir=$ac_optarg ;;
989 -libdir | --libdir | --libdi | --libd)
990 ac_prev=libdir ;;
991 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 libdir=$ac_optarg ;;
994 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
995 | --libexe | --libex | --libe)
996 ac_prev=libexecdir ;;
997 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
998 | --libexe=* | --libex=* | --libe=*)
999 libexecdir=$ac_optarg ;;
1001 -localedir | --localedir | --localedi | --localed | --locale)
1002 ac_prev=localedir ;;
1003 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1004 localedir=$ac_optarg ;;
1006 -localstatedir | --localstatedir | --localstatedi | --localstated \
1007 | --localstate | --localstat | --localsta | --localst | --locals)
1008 ac_prev=localstatedir ;;
1009 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1010 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1011 localstatedir=$ac_optarg ;;
1013 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1014 ac_prev=mandir ;;
1015 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1016 mandir=$ac_optarg ;;
1018 -nfp | --nfp | --nf)
1019 # Obsolete; use --without-fp.
1020 with_fp=no ;;
1022 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1023 | --no-cr | --no-c | -n)
1024 no_create=yes ;;
1026 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1027 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 no_recursion=yes ;;
1030 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1031 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1032 | --oldin | --oldi | --old | --ol | --o)
1033 ac_prev=oldincludedir ;;
1034 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1035 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1036 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1037 oldincludedir=$ac_optarg ;;
1039 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1040 ac_prev=prefix ;;
1041 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1042 prefix=$ac_optarg ;;
1044 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1045 | --program-pre | --program-pr | --program-p)
1046 ac_prev=program_prefix ;;
1047 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1048 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1049 program_prefix=$ac_optarg ;;
1051 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1052 | --program-suf | --program-su | --program-s)
1053 ac_prev=program_suffix ;;
1054 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1055 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1056 program_suffix=$ac_optarg ;;
1058 -program-transform-name | --program-transform-name \
1059 | --program-transform-nam | --program-transform-na \
1060 | --program-transform-n | --program-transform- \
1061 | --program-transform | --program-transfor \
1062 | --program-transfo | --program-transf \
1063 | --program-trans | --program-tran \
1064 | --progr-tra | --program-tr | --program-t)
1065 ac_prev=program_transform_name ;;
1066 -program-transform-name=* | --program-transform-name=* \
1067 | --program-transform-nam=* | --program-transform-na=* \
1068 | --program-transform-n=* | --program-transform-=* \
1069 | --program-transform=* | --program-transfor=* \
1070 | --program-transfo=* | --program-transf=* \
1071 | --program-trans=* | --program-tran=* \
1072 | --progr-tra=* | --program-tr=* | --program-t=*)
1073 program_transform_name=$ac_optarg ;;
1075 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1076 ac_prev=pdfdir ;;
1077 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1078 pdfdir=$ac_optarg ;;
1080 -psdir | --psdir | --psdi | --psd | --ps)
1081 ac_prev=psdir ;;
1082 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 psdir=$ac_optarg ;;
1085 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1086 | -silent | --silent | --silen | --sile | --sil)
1087 silent=yes ;;
1089 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1090 ac_prev=sbindir ;;
1091 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1092 | --sbi=* | --sb=*)
1093 sbindir=$ac_optarg ;;
1095 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1096 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1097 | --sharedst | --shareds | --shared | --share | --shar \
1098 | --sha | --sh)
1099 ac_prev=sharedstatedir ;;
1100 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1101 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1102 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1103 | --sha=* | --sh=*)
1104 sharedstatedir=$ac_optarg ;;
1106 -site | --site | --sit)
1107 ac_prev=site ;;
1108 -site=* | --site=* | --sit=*)
1109 site=$ac_optarg ;;
1111 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1112 ac_prev=srcdir ;;
1113 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1114 srcdir=$ac_optarg ;;
1116 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1117 | --syscon | --sysco | --sysc | --sys | --sy)
1118 ac_prev=sysconfdir ;;
1119 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1120 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1121 sysconfdir=$ac_optarg ;;
1123 -target | --target | --targe | --targ | --tar | --ta | --t)
1124 ac_prev=target_alias ;;
1125 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1126 target_alias=$ac_optarg ;;
1128 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 verbose=yes ;;
1131 -version | --version | --versio | --versi | --vers | -V)
1132 ac_init_version=: ;;
1134 -with-* | --with-*)
1135 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1138 as_fn_error $? "invalid package name: $ac_useropt"
1139 ac_useropt_orig=$ac_useropt
1140 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1143 "with_$ac_useropt"
1144 "*) ;;
1145 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1146 ac_unrecognized_sep=', ';;
1147 esac
1148 eval with_$ac_useropt=\$ac_optarg ;;
1150 -without-* | --without-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid package name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1159 "with_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval with_$ac_useropt=no ;;
1166 --x)
1167 # Obsolete; use --with-x.
1168 with_x=yes ;;
1170 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1171 | --x-incl | --x-inc | --x-in | --x-i)
1172 ac_prev=x_includes ;;
1173 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1174 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1175 x_includes=$ac_optarg ;;
1177 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1178 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1179 ac_prev=x_libraries ;;
1180 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1181 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1182 x_libraries=$ac_optarg ;;
1184 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1185 Try \`$0 --help' for more information"
1188 *=*)
1189 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 case $ac_envvar in #(
1192 '' | [0-9]* | *[!_$as_cr_alnum]* )
1193 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1194 esac
1195 eval $ac_envvar=\$ac_optarg
1196 export $ac_envvar ;;
1199 # FIXME: should be removed in autoconf 3.0.
1200 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1201 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1202 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1203 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1206 esac
1207 done
1209 if test -n "$ac_prev"; then
1210 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1211 as_fn_error $? "missing argument to $ac_option"
1214 if test -n "$ac_unrecognized_opts"; then
1215 case $enable_option_checking in
1216 no) ;;
1217 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1218 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1219 esac
1222 # Check all directory arguments for consistency.
1223 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1224 datadir sysconfdir sharedstatedir localstatedir includedir \
1225 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1226 libdir localedir mandir
1228 eval ac_val=\$$ac_var
1229 # Remove trailing slashes.
1230 case $ac_val in
1231 */ )
1232 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1233 eval $ac_var=\$ac_val;;
1234 esac
1235 # Be sure to have absolute directory names.
1236 case $ac_val in
1237 [\\/$]* | ?:[\\/]* ) continue;;
1238 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1239 esac
1240 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241 done
1243 # There might be people who depend on the old broken behavior: `$host'
1244 # used to hold the argument of --host etc.
1245 # FIXME: To remove some day.
1246 build=$build_alias
1247 host=$host_alias
1248 target=$target_alias
1250 # FIXME: To remove some day.
1251 if test "x$host_alias" != x; then
1252 if test "x$build_alias" = x; then
1253 cross_compiling=maybe
1254 elif test "x$build_alias" != "x$host_alias"; then
1255 cross_compiling=yes
1259 ac_tool_prefix=
1260 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262 test "$silent" = yes && exec 6>/dev/null
1265 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266 ac_ls_di=`ls -di .` &&
1267 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268 as_fn_error $? "working directory cannot be determined"
1269 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270 as_fn_error $? "pwd does not report name of working directory"
1273 # Find the source files, if location was not specified.
1274 if test -z "$srcdir"; then
1275 ac_srcdir_defaulted=yes
1276 # Try the directory containing this script, then the parent directory.
1277 ac_confdir=`$as_dirname -- "$as_myself" ||
1278 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279 X"$as_myself" : 'X\(//\)[^/]' \| \
1280 X"$as_myself" : 'X\(//\)$' \| \
1281 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282 $as_echo X"$as_myself" |
1283 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1284 s//\1/
1287 /^X\(\/\/\)[^/].*/{
1288 s//\1/
1291 /^X\(\/\/\)$/{
1292 s//\1/
1295 /^X\(\/\).*/{
1296 s//\1/
1299 s/.*/./; q'`
1300 srcdir=$ac_confdir
1301 if test ! -r "$srcdir/$ac_unique_file"; then
1302 srcdir=..
1304 else
1305 ac_srcdir_defaulted=no
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1312 ac_abs_confdir=`(
1313 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1314 pwd)`
1315 # When building in place, set srcdir=.
1316 if test "$ac_abs_confdir" = "$ac_pwd"; then
1317 srcdir=.
1319 # Remove unnecessary trailing slashes from srcdir.
1320 # Double slashes in file names in object file debugging info
1321 # mess up M-x gdb in Emacs.
1322 case $srcdir in
1323 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1324 esac
1325 for ac_var in $ac_precious_vars; do
1326 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327 eval ac_env_${ac_var}_value=\$${ac_var}
1328 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1330 done
1333 # Report the --help message.
1335 if test "$ac_init_help" = "long"; then
1336 # Omit some internal or obsolete options to make the list less imposing.
1337 # This message is too long to be a string in the A/UX 3.1 sh.
1338 cat <<_ACEOF
1339 \`configure' configures MIC Offload Runtime Library 1.0 to adapt to many kinds of systems.
1341 Usage: $0 [OPTION]... [VAR=VALUE]...
1343 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344 VAR=VALUE. See below for descriptions of some of the useful variables.
1346 Defaults for the options are specified in brackets.
1348 Configuration:
1349 -h, --help display this help and exit
1350 --help=short display options specific to this package
1351 --help=recursive display the short help of all the included packages
1352 -V, --version display version information and exit
1353 -q, --quiet, --silent do not print \`checking ...' messages
1354 --cache-file=FILE cache test results in FILE [disabled]
1355 -C, --config-cache alias for \`--cache-file=config.cache'
1356 -n, --no-create do not create output files
1357 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1359 Installation directories:
1360 --prefix=PREFIX install architecture-independent files in PREFIX
1361 [$ac_default_prefix]
1362 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1363 [PREFIX]
1365 By default, \`make install' will install all the files in
1366 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368 for instance \`--prefix=\$HOME'.
1370 For better control, use the options below.
1372 Fine tuning of the installation directories:
1373 --bindir=DIR user executables [EPREFIX/bin]
1374 --sbindir=DIR system admin executables [EPREFIX/sbin]
1375 --libexecdir=DIR program executables [EPREFIX/libexec]
1376 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379 --libdir=DIR object code libraries [EPREFIX/lib]
1380 --includedir=DIR C header files [PREFIX/include]
1381 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1382 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384 --infodir=DIR info documentation [DATAROOTDIR/info]
1385 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386 --mandir=DIR man documentation [DATAROOTDIR/man]
1387 --docdir=DIR documentation root [DATAROOTDIR/doc/liboffloadmic]
1388 --htmldir=DIR html documentation [DOCDIR]
1389 --dvidir=DIR dvi documentation [DOCDIR]
1390 --pdfdir=DIR pdf documentation [DOCDIR]
1391 --psdir=DIR ps documentation [DOCDIR]
1392 _ACEOF
1394 cat <<\_ACEOF
1396 Program names:
1397 --program-prefix=PREFIX prepend PREFIX to installed program names
1398 --program-suffix=SUFFIX append SUFFIX to installed program names
1399 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1401 System types:
1402 --build=BUILD configure for building on BUILD [guessed]
1403 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1404 --target=TARGET configure for building compilers for TARGET [HOST]
1405 _ACEOF
1408 if test -n "$ac_init_help"; then
1409 case $ac_init_help in
1410 short | recursive ) echo "Configuration of MIC Offload Runtime Library 1.0:";;
1411 esac
1412 cat <<\_ACEOF
1414 Optional Features:
1415 --disable-option-checking ignore unrecognized --enable/--with options
1416 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418 --enable-silent-rules less verbose build output (undo: "make V=1")
1419 --disable-silent-rules verbose build output (undo: "make V=0")
1420 --enable-maintainer-mode
1421 enable make rules and dependencies not useful (and
1422 sometimes confusing) to the casual installer
1423 --enable-dependency-tracking
1424 do not reject slow dependency extractors
1425 --disable-dependency-tracking
1426 speeds up one-time build
1427 --enable-multilib build many library versions (default)
1428 --enable-version-specific-runtime-libs
1429 Specify that runtime libraries should be installed
1430 in a compiler-specific directory
1431 --enable-shared[=PKGS] build shared libraries [default=yes]
1432 --enable-static[=PKGS] build static libraries [default=yes]
1433 --enable-fast-install[=PKGS]
1434 optimize for fast installation [default=yes]
1435 --disable-libtool-lock avoid locking (might break parallel builds)
1437 Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-pic try to use only PIC/non-PIC objects [default=use
1441 both]
1442 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1443 --with-gcc-major-version-only
1444 use only GCC major number in filesystem paths
1446 Some influential environment variables:
1447 CC C compiler command
1448 CFLAGS C compiler flags
1449 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1450 nonstandard directory <lib dir>
1451 LIBS libraries to pass to the linker, e.g. -l<library>
1452 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1453 you have headers in a nonstandard directory <include dir>
1454 CXX C++ compiler command
1455 CXXFLAGS C++ compiler flags
1456 CPP C preprocessor
1457 CXXCPP C++ preprocessor
1459 Use these variables to override the choices made by `configure' or to help
1460 it to find libraries and programs with nonstandard names/locations.
1462 Report bugs to the package provider.
1463 _ACEOF
1464 ac_status=$?
1467 if test "$ac_init_help" = "recursive"; then
1468 # If there are subdirs, report their specific --help.
1469 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1470 test -d "$ac_dir" ||
1471 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1472 continue
1473 ac_builddir=.
1475 case "$ac_dir" in
1476 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1478 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1479 # A ".." for each directory in $ac_dir_suffix.
1480 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1481 case $ac_top_builddir_sub in
1482 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1483 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1484 esac ;;
1485 esac
1486 ac_abs_top_builddir=$ac_pwd
1487 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1488 # for backward compatibility:
1489 ac_top_builddir=$ac_top_build_prefix
1491 case $srcdir in
1492 .) # We are building in place.
1493 ac_srcdir=.
1494 ac_top_srcdir=$ac_top_builddir_sub
1495 ac_abs_top_srcdir=$ac_pwd ;;
1496 [\\/]* | ?:[\\/]* ) # Absolute name.
1497 ac_srcdir=$srcdir$ac_dir_suffix;
1498 ac_top_srcdir=$srcdir
1499 ac_abs_top_srcdir=$srcdir ;;
1500 *) # Relative name.
1501 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1502 ac_top_srcdir=$ac_top_build_prefix$srcdir
1503 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1504 esac
1505 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1507 cd "$ac_dir" || { ac_status=$?; continue; }
1508 # Check for guested configure.
1509 if test -f "$ac_srcdir/configure.gnu"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1512 elif test -f "$ac_srcdir/configure"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure" --help=recursive
1515 else
1516 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1517 fi || ac_status=$?
1518 cd "$ac_pwd" || { ac_status=$?; break; }
1519 done
1522 test -n "$ac_init_help" && exit $ac_status
1523 if $ac_init_version; then
1524 cat <<\_ACEOF
1525 MIC Offload Runtime Library configure 1.0
1526 generated by GNU Autoconf 2.69
1528 Copyright (C) 2012 Free Software Foundation, Inc.
1529 This configure script is free software; the Free Software Foundation
1530 gives unlimited permission to copy, distribute and modify it.
1531 _ACEOF
1532 exit
1535 ## ------------------------ ##
1536 ## Autoconf initialization. ##
1537 ## ------------------------ ##
1539 # ac_fn_c_try_compile LINENO
1540 # --------------------------
1541 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1542 ac_fn_c_try_compile ()
1544 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1545 rm -f conftest.$ac_objext
1546 if { { ac_try="$ac_compile"
1547 case "(($ac_try" in
1548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1549 *) ac_try_echo=$ac_try;;
1550 esac
1551 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1552 $as_echo "$ac_try_echo"; } >&5
1553 (eval "$ac_compile") 2>conftest.err
1554 ac_status=$?
1555 if test -s conftest.err; then
1556 grep -v '^ *+' conftest.err >conftest.er1
1557 cat conftest.er1 >&5
1558 mv -f conftest.er1 conftest.err
1560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1561 test $ac_status = 0; } && {
1562 test -z "$ac_c_werror_flag" ||
1563 test ! -s conftest.err
1564 } && test -s conftest.$ac_objext; then :
1565 ac_retval=0
1566 else
1567 $as_echo "$as_me: failed program was:" >&5
1568 sed 's/^/| /' conftest.$ac_ext >&5
1570 ac_retval=1
1572 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1573 as_fn_set_status $ac_retval
1575 } # ac_fn_c_try_compile
1577 # ac_fn_cxx_try_compile LINENO
1578 # ----------------------------
1579 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1580 ac_fn_cxx_try_compile ()
1582 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1583 rm -f conftest.$ac_objext
1584 if { { ac_try="$ac_compile"
1585 case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588 esac
1589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590 $as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_compile") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } && {
1600 test -z "$ac_cxx_werror_flag" ||
1601 test ! -s conftest.err
1602 } && test -s conftest.$ac_objext; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1608 ac_retval=1
1610 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1611 as_fn_set_status $ac_retval
1613 } # ac_fn_cxx_try_compile
1615 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1616 # -------------------------------------------
1617 # Tests whether TYPE exists after having included INCLUDES, setting cache
1618 # variable VAR accordingly.
1619 ac_fn_c_check_type ()
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1623 $as_echo_n "checking for $2... " >&6; }
1624 if eval \${$3+:} false; then :
1625 $as_echo_n "(cached) " >&6
1626 else
1627 eval "$3=no"
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1632 main ()
1634 if (sizeof ($2))
1635 return 0;
1637 return 0;
1639 _ACEOF
1640 if ac_fn_c_try_compile "$LINENO"; then :
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1645 main ()
1647 if (sizeof (($2)))
1648 return 0;
1650 return 0;
1652 _ACEOF
1653 if ac_fn_c_try_compile "$LINENO"; then :
1655 else
1656 eval "$3=yes"
1658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1662 eval ac_res=\$$3
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 } # ac_fn_c_check_type
1669 # ac_fn_c_try_cpp LINENO
1670 # ----------------------
1671 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_cpp ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_cpp conftest.$ac_ext"
1676 case "(($ac_try" in
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1679 esac
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1683 ac_status=$?
1684 if test -s conftest.err; then
1685 grep -v '^ *+' conftest.err >conftest.er1
1686 cat conftest.er1 >&5
1687 mv -f conftest.er1 conftest.err
1689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1690 test $ac_status = 0; } > conftest.i && {
1691 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1692 test ! -s conftest.err
1693 }; then :
1694 ac_retval=0
1695 else
1696 $as_echo "$as_me: failed program was:" >&5
1697 sed 's/^/| /' conftest.$ac_ext >&5
1699 ac_retval=1
1701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1702 as_fn_set_status $ac_retval
1704 } # ac_fn_c_try_cpp
1706 # ac_fn_c_try_run LINENO
1707 # ----------------------
1708 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1709 # that executables *can* be run.
1710 ac_fn_c_try_run ()
1712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1713 if { { ac_try="$ac_link"
1714 case "(($ac_try" in
1715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1716 *) ac_try_echo=$ac_try;;
1717 esac
1718 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1719 $as_echo "$ac_try_echo"; } >&5
1720 (eval "$ac_link") 2>&5
1721 ac_status=$?
1722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1723 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1724 { { case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727 esac
1728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729 $as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_try") 2>&5
1731 ac_status=$?
1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1733 test $ac_status = 0; }; }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: program exited with status $ac_status" >&5
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=$ac_status
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1746 } # ac_fn_c_try_run
1748 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1749 # -------------------------------------------------------
1750 # Tests whether HEADER exists and can be compiled using the include files in
1751 # INCLUDES, setting the cache variable VAR accordingly.
1752 ac_fn_c_check_header_compile ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759 else
1760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1761 /* end confdefs.h. */
1763 #include <$2>
1764 _ACEOF
1765 if ac_fn_c_try_compile "$LINENO"; then :
1766 eval "$3=yes"
1767 else
1768 eval "$3=no"
1770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 eval ac_res=\$$3
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1774 $as_echo "$ac_res" >&6; }
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1777 } # ac_fn_c_check_header_compile
1779 # ac_fn_c_try_link LINENO
1780 # -----------------------
1781 # Try to link conftest.$ac_ext, and return whether this succeeded.
1782 ac_fn_c_try_link ()
1784 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1785 rm -f conftest.$ac_objext conftest$ac_exeext
1786 if { { ac_try="$ac_link"
1787 case "(($ac_try" in
1788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1789 *) ac_try_echo=$ac_try;;
1790 esac
1791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1792 $as_echo "$ac_try_echo"; } >&5
1793 (eval "$ac_link") 2>conftest.err
1794 ac_status=$?
1795 if test -s conftest.err; then
1796 grep -v '^ *+' conftest.err >conftest.er1
1797 cat conftest.er1 >&5
1798 mv -f conftest.er1 conftest.err
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && {
1802 test -z "$ac_c_werror_flag" ||
1803 test ! -s conftest.err
1804 } && test -s conftest$ac_exeext && {
1805 test "$cross_compiling" = yes ||
1806 test -x conftest$ac_exeext
1807 }; then :
1808 ac_retval=0
1809 else
1810 $as_echo "$as_me: failed program was:" >&5
1811 sed 's/^/| /' conftest.$ac_ext >&5
1813 ac_retval=1
1815 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1816 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1817 # interfere with the next link command; also delete a directory that is
1818 # left behind by Apple's compiler. We do this before executing the actions.
1819 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821 as_fn_set_status $ac_retval
1823 } # ac_fn_c_try_link
1825 # ac_fn_c_check_func LINENO FUNC VAR
1826 # ----------------------------------
1827 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1828 ac_fn_c_check_func ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1835 else
1836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1837 /* end confdefs.h. */
1838 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1839 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1840 #define $2 innocuous_$2
1842 /* System header to define __stub macros and hopefully few prototypes,
1843 which can conflict with char $2 (); below.
1844 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1845 <limits.h> exists even on freestanding compilers. */
1847 #ifdef __STDC__
1848 # include <limits.h>
1849 #else
1850 # include <assert.h>
1851 #endif
1853 #undef $2
1855 /* Override any GCC internal prototype to avoid an error.
1856 Use char because int might match the return type of a GCC
1857 builtin and then its argument prototype would still apply. */
1858 #ifdef __cplusplus
1859 extern "C"
1860 #endif
1861 char $2 ();
1862 /* The GNU C library defines this for functions which it implements
1863 to always fail with ENOSYS. Some functions are actually named
1864 something starting with __ and the normal name is an alias. */
1865 #if defined __stub_$2 || defined __stub___$2
1866 choke me
1867 #endif
1870 main ()
1872 return $2 ();
1874 return 0;
1876 _ACEOF
1877 if ac_fn_c_try_link "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1882 rm -f core conftest.err conftest.$ac_objext \
1883 conftest$ac_exeext conftest.$ac_ext
1885 eval ac_res=\$$3
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1887 $as_echo "$ac_res" >&6; }
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 } # ac_fn_c_check_func
1892 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1893 # -------------------------------------------------------
1894 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1895 # the include files in INCLUDES and setting the cache variable VAR
1896 # accordingly.
1897 ac_fn_c_check_header_mongrel ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 if eval \${$3+:} false; then :
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if eval \${$3+:} false; then :
1904 $as_echo_n "(cached) " >&6
1906 eval ac_res=\$$3
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1908 $as_echo "$ac_res" >&6; }
1909 else
1910 # Is the header compilable?
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1912 $as_echo_n "checking $2 usability... " >&6; }
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1916 #include <$2>
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919 ac_header_compiler=yes
1920 else
1921 ac_header_compiler=no
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1925 $as_echo "$ac_header_compiler" >&6; }
1927 # Is the header present?
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1929 $as_echo_n "checking $2 presence... " >&6; }
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 #include <$2>
1933 _ACEOF
1934 if ac_fn_c_try_cpp "$LINENO"; then :
1935 ac_header_preproc=yes
1936 else
1937 ac_header_preproc=no
1939 rm -f conftest.err conftest.i conftest.$ac_ext
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1941 $as_echo "$ac_header_preproc" >&6; }
1943 # So? What about this header?
1944 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1945 yes:no: )
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1947 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1949 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1951 no:yes:* )
1952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1953 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1955 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1957 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1959 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1961 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1963 esac
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if eval \${$3+:} false; then :
1967 $as_echo_n "(cached) " >&6
1968 else
1969 eval "$3=\$ac_header_compiler"
1971 eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1975 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 } # ac_fn_c_check_header_mongrel
1979 # ac_fn_cxx_try_cpp LINENO
1980 # ------------------------
1981 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1982 ac_fn_cxx_try_cpp ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if { { ac_try="$ac_cpp conftest.$ac_ext"
1986 case "(($ac_try" in
1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1988 *) ac_try_echo=$ac_try;;
1989 esac
1990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1991 $as_echo "$ac_try_echo"; } >&5
1992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1993 ac_status=$?
1994 if test -s conftest.err; then
1995 grep -v '^ *+' conftest.err >conftest.er1
1996 cat conftest.er1 >&5
1997 mv -f conftest.er1 conftest.err
1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2000 test $ac_status = 0; } > conftest.i && {
2001 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2002 test ! -s conftest.err
2003 }; then :
2004 ac_retval=0
2005 else
2006 $as_echo "$as_me: failed program was:" >&5
2007 sed 's/^/| /' conftest.$ac_ext >&5
2009 ac_retval=1
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012 as_fn_set_status $ac_retval
2014 } # ac_fn_cxx_try_cpp
2016 # ac_fn_cxx_try_link LINENO
2017 # -------------------------
2018 # Try to link conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_cxx_try_link ()
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 rm -f conftest.$ac_objext conftest$ac_exeext
2023 if { { ac_try="$ac_link"
2024 case "(($ac_try" in
2025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026 *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030 (eval "$ac_link") 2>conftest.err
2031 ac_status=$?
2032 if test -s conftest.err; then
2033 grep -v '^ *+' conftest.err >conftest.er1
2034 cat conftest.er1 >&5
2035 mv -f conftest.er1 conftest.err
2037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038 test $ac_status = 0; } && {
2039 test -z "$ac_cxx_werror_flag" ||
2040 test ! -s conftest.err
2041 } && test -s conftest$ac_exeext && {
2042 test "$cross_compiling" = yes ||
2043 test -x conftest$ac_exeext
2044 }; then :
2045 ac_retval=0
2046 else
2047 $as_echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2050 ac_retval=1
2052 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2053 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2054 # interfere with the next link command; also delete a directory that is
2055 # left behind by Apple's compiler. We do this before executing the actions.
2056 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 as_fn_set_status $ac_retval
2060 } # ac_fn_cxx_try_link
2061 cat >config.log <<_ACEOF
2062 This file contains any messages produced by compilers while
2063 running configure, to aid debugging if configure makes a mistake.
2065 It was created by MIC Offload Runtime Library $as_me 1.0, which was
2066 generated by GNU Autoconf 2.69. Invocation command line was
2068 $ $0 $@
2070 _ACEOF
2071 exec 5>>config.log
2073 cat <<_ASUNAME
2074 ## --------- ##
2075 ## Platform. ##
2076 ## --------- ##
2078 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2079 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2080 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2081 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2082 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2084 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2085 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2087 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2088 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2089 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2090 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2091 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2092 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2093 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2095 _ASUNAME
2097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098 for as_dir in $PATH
2100 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=.
2102 $as_echo "PATH: $as_dir"
2103 done
2104 IFS=$as_save_IFS
2106 } >&5
2108 cat >&5 <<_ACEOF
2111 ## ----------- ##
2112 ## Core tests. ##
2113 ## ----------- ##
2115 _ACEOF
2118 # Keep a trace of the command line.
2119 # Strip out --no-create and --no-recursion so they do not pile up.
2120 # Strip out --silent because we don't want to record it for future runs.
2121 # Also quote any args containing shell meta-characters.
2122 # Make two passes to allow for proper duplicate-argument suppression.
2123 ac_configure_args=
2124 ac_configure_args0=
2125 ac_configure_args1=
2126 ac_must_keep_next=false
2127 for ac_pass in 1 2
2129 for ac_arg
2131 case $ac_arg in
2132 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2133 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2134 | -silent | --silent | --silen | --sile | --sil)
2135 continue ;;
2136 *\'*)
2137 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2138 esac
2139 case $ac_pass in
2140 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2142 as_fn_append ac_configure_args1 " '$ac_arg'"
2143 if test $ac_must_keep_next = true; then
2144 ac_must_keep_next=false # Got value, back to normal.
2145 else
2146 case $ac_arg in
2147 *=* | --config-cache | -C | -disable-* | --disable-* \
2148 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2149 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2150 | -with-* | --with-* | -without-* | --without-* | --x)
2151 case "$ac_configure_args0 " in
2152 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2153 esac
2155 -* ) ac_must_keep_next=true ;;
2156 esac
2158 as_fn_append ac_configure_args " '$ac_arg'"
2160 esac
2161 done
2162 done
2163 { ac_configure_args0=; unset ac_configure_args0;}
2164 { ac_configure_args1=; unset ac_configure_args1;}
2166 # When interrupted or exit'd, cleanup temporary files, and complete
2167 # config.log. We remove comments because anyway the quotes in there
2168 # would cause problems or look ugly.
2169 # WARNING: Use '\'' to represent an apostrophe within the trap.
2170 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2171 trap 'exit_status=$?
2172 # Save into config.log some information that might help in debugging.
2174 echo
2176 $as_echo "## ---------------- ##
2177 ## Cache variables. ##
2178 ## ---------------- ##"
2179 echo
2180 # The following way of writing the cache mishandles newlines in values,
2182 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2183 eval ac_val=\$$ac_var
2184 case $ac_val in #(
2185 *${as_nl}*)
2186 case $ac_var in #(
2187 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2188 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2189 esac
2190 case $ac_var in #(
2191 _ | IFS | as_nl) ;; #(
2192 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2193 *) { eval $ac_var=; unset $ac_var;} ;;
2194 esac ;;
2195 esac
2196 done
2197 (set) 2>&1 |
2198 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2199 *${as_nl}ac_space=\ *)
2200 sed -n \
2201 "s/'\''/'\''\\\\'\'''\''/g;
2202 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2203 ;; #(
2205 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2207 esac |
2208 sort
2210 echo
2212 $as_echo "## ----------------- ##
2213 ## Output variables. ##
2214 ## ----------------- ##"
2215 echo
2216 for ac_var in $ac_subst_vars
2218 eval ac_val=\$$ac_var
2219 case $ac_val in
2220 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2221 esac
2222 $as_echo "$ac_var='\''$ac_val'\''"
2223 done | sort
2224 echo
2226 if test -n "$ac_subst_files"; then
2227 $as_echo "## ------------------- ##
2228 ## File substitutions. ##
2229 ## ------------------- ##"
2230 echo
2231 for ac_var in $ac_subst_files
2233 eval ac_val=\$$ac_var
2234 case $ac_val in
2235 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2236 esac
2237 $as_echo "$ac_var='\''$ac_val'\''"
2238 done | sort
2239 echo
2242 if test -s confdefs.h; then
2243 $as_echo "## ----------- ##
2244 ## confdefs.h. ##
2245 ## ----------- ##"
2246 echo
2247 cat confdefs.h
2248 echo
2250 test "$ac_signal" != 0 &&
2251 $as_echo "$as_me: caught signal $ac_signal"
2252 $as_echo "$as_me: exit $exit_status"
2253 } >&5
2254 rm -f core *.core core.conftest.* &&
2255 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2256 exit $exit_status
2258 for ac_signal in 1 2 13 15; do
2259 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2260 done
2261 ac_signal=0
2263 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2264 rm -f -r conftest* confdefs.h
2266 $as_echo "/* confdefs.h */" > confdefs.h
2268 # Predefined preprocessor variables.
2270 cat >>confdefs.h <<_ACEOF
2271 #define PACKAGE_NAME "$PACKAGE_NAME"
2272 _ACEOF
2274 cat >>confdefs.h <<_ACEOF
2275 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2276 _ACEOF
2278 cat >>confdefs.h <<_ACEOF
2279 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2280 _ACEOF
2282 cat >>confdefs.h <<_ACEOF
2283 #define PACKAGE_STRING "$PACKAGE_STRING"
2284 _ACEOF
2286 cat >>confdefs.h <<_ACEOF
2287 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2288 _ACEOF
2290 cat >>confdefs.h <<_ACEOF
2291 #define PACKAGE_URL "$PACKAGE_URL"
2292 _ACEOF
2295 # Let the site file select an alternate cache file if it wants to.
2296 # Prefer an explicitly selected file to automatically selected ones.
2297 ac_site_file1=NONE
2298 ac_site_file2=NONE
2299 if test -n "$CONFIG_SITE"; then
2300 # We do not want a PATH search for config.site.
2301 case $CONFIG_SITE in #((
2302 -*) ac_site_file1=./$CONFIG_SITE;;
2303 */*) ac_site_file1=$CONFIG_SITE;;
2304 *) ac_site_file1=./$CONFIG_SITE;;
2305 esac
2306 elif test "x$prefix" != xNONE; then
2307 ac_site_file1=$prefix/share/config.site
2308 ac_site_file2=$prefix/etc/config.site
2309 else
2310 ac_site_file1=$ac_default_prefix/share/config.site
2311 ac_site_file2=$ac_default_prefix/etc/config.site
2313 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2315 test "x$ac_site_file" = xNONE && continue
2316 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2318 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2319 sed 's/^/| /' "$ac_site_file" >&5
2320 . "$ac_site_file" \
2321 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 as_fn_error $? "failed to load site script $ac_site_file
2324 See \`config.log' for more details" "$LINENO" 5; }
2326 done
2328 if test -r "$cache_file"; then
2329 # Some versions of bash will fail to source /dev/null (special files
2330 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2331 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2332 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2333 $as_echo "$as_me: loading cache $cache_file" >&6;}
2334 case $cache_file in
2335 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2336 *) . "./$cache_file";;
2337 esac
2339 else
2340 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2341 $as_echo "$as_me: creating cache $cache_file" >&6;}
2342 >$cache_file
2345 # Check that the precious variables saved in the cache have kept the same
2346 # value.
2347 ac_cache_corrupted=false
2348 for ac_var in $ac_precious_vars; do
2349 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2350 eval ac_new_set=\$ac_env_${ac_var}_set
2351 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2352 eval ac_new_val=\$ac_env_${ac_var}_value
2353 case $ac_old_set,$ac_new_set in
2354 set,)
2355 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2356 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2357 ac_cache_corrupted=: ;;
2358 ,set)
2359 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2360 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2361 ac_cache_corrupted=: ;;
2362 ,);;
2364 if test "x$ac_old_val" != "x$ac_new_val"; then
2365 # differences in whitespace do not lead to failure.
2366 ac_old_val_w=`echo x $ac_old_val`
2367 ac_new_val_w=`echo x $ac_new_val`
2368 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2369 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2370 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2371 ac_cache_corrupted=:
2372 else
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2374 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2375 eval $ac_var=\$ac_old_val
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2378 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2380 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2381 fi;;
2382 esac
2383 # Pass precious variables to config.status.
2384 if test "$ac_new_set" = set; then
2385 case $ac_new_val in
2386 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2387 *) ac_arg=$ac_var=$ac_new_val ;;
2388 esac
2389 case " $ac_configure_args " in
2390 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2391 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2392 esac
2394 done
2395 if $ac_cache_corrupted; then
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2397 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2399 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2400 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2402 ## -------------------- ##
2403 ## Main body of script. ##
2404 ## -------------------- ##
2406 ac_ext=c
2407 ac_cpp='$CPP $CPPFLAGS'
2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2417 ac_aux_dir=
2418 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2419 if test -f "$ac_dir/install-sh"; then
2420 ac_aux_dir=$ac_dir
2421 ac_install_sh="$ac_aux_dir/install-sh -c"
2422 break
2423 elif test -f "$ac_dir/install.sh"; then
2424 ac_aux_dir=$ac_dir
2425 ac_install_sh="$ac_aux_dir/install.sh -c"
2426 break
2427 elif test -f "$ac_dir/shtool"; then
2428 ac_aux_dir=$ac_dir
2429 ac_install_sh="$ac_aux_dir/shtool install -c"
2430 break
2432 done
2433 if test -z "$ac_aux_dir"; then
2434 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2437 # These three variables are undocumented and unsupported,
2438 # and are intended to be withdrawn in a future Autoconf release.
2439 # They can cause serious problems if a builder's source tree is in a directory
2440 # whose full name contains unusual characters.
2441 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2442 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2443 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2446 # Make sure we can run config.sub.
2447 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2448 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2451 $as_echo_n "checking build system type... " >&6; }
2452 if ${ac_cv_build+:} false; then :
2453 $as_echo_n "(cached) " >&6
2454 else
2455 ac_build_alias=$build_alias
2456 test "x$ac_build_alias" = x &&
2457 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2458 test "x$ac_build_alias" = x &&
2459 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2460 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2461 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2465 $as_echo "$ac_cv_build" >&6; }
2466 case $ac_cv_build in
2467 *-*-*) ;;
2468 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2469 esac
2470 build=$ac_cv_build
2471 ac_save_IFS=$IFS; IFS='-'
2472 set x $ac_cv_build
2473 shift
2474 build_cpu=$1
2475 build_vendor=$2
2476 shift; shift
2477 # Remember, the first character of IFS is used to create $*,
2478 # except with old shells:
2479 build_os=$*
2480 IFS=$ac_save_IFS
2481 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2485 $as_echo_n "checking host system type... " >&6; }
2486 if ${ac_cv_host+:} false; then :
2487 $as_echo_n "(cached) " >&6
2488 else
2489 if test "x$host_alias" = x; then
2490 ac_cv_host=$ac_cv_build
2491 else
2492 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2493 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2498 $as_echo "$ac_cv_host" >&6; }
2499 case $ac_cv_host in
2500 *-*-*) ;;
2501 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2502 esac
2503 host=$ac_cv_host
2504 ac_save_IFS=$IFS; IFS='-'
2505 set x $ac_cv_host
2506 shift
2507 host_cpu=$1
2508 host_vendor=$2
2509 shift; shift
2510 # Remember, the first character of IFS is used to create $*,
2511 # except with old shells:
2512 host_os=$*
2513 IFS=$ac_save_IFS
2514 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2518 $as_echo_n "checking target system type... " >&6; }
2519 if ${ac_cv_target+:} false; then :
2520 $as_echo_n "(cached) " >&6
2521 else
2522 if test "x$target_alias" = x; then
2523 ac_cv_target=$ac_cv_host
2524 else
2525 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2526 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2531 $as_echo "$ac_cv_target" >&6; }
2532 case $ac_cv_target in
2533 *-*-*) ;;
2534 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2535 esac
2536 target=$ac_cv_target
2537 ac_save_IFS=$IFS; IFS='-'
2538 set x $ac_cv_target
2539 shift
2540 target_cpu=$1
2541 target_vendor=$2
2542 shift; shift
2543 # Remember, the first character of IFS is used to create $*,
2544 # except with old shells:
2545 target_os=$*
2546 IFS=$ac_save_IFS
2547 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2550 # The aliases save the names the user supplied, while $host etc.
2551 # will get canonicalized.
2552 test -n "$target_alias" &&
2553 test "$program_prefix$program_suffix$program_transform_name" = \
2554 NONENONEs,x,x, &&
2555 program_prefix=${target_alias}-
2557 target_alias=${target_alias-$host_alias}
2560 am__api_version='1.15'
2562 # Find a good install program. We prefer a C program (faster),
2563 # so one script is as good as another. But avoid the broken or
2564 # incompatible versions:
2565 # SysV /etc/install, /usr/sbin/install
2566 # SunOS /usr/etc/install
2567 # IRIX /sbin/install
2568 # AIX /bin/install
2569 # AmigaOS /C/install, which installs bootblocks on floppy discs
2570 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2571 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2572 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2573 # OS/2's system install, which has a completely different semantic
2574 # ./install, which can be erroneously created by make from ./install.sh.
2575 # Reject install programs that cannot install multiple files.
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2577 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2578 if test -z "$INSTALL"; then
2579 if ${ac_cv_path_install+:} false; then :
2580 $as_echo_n "(cached) " >&6
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 # Account for people who put trailing slashes in PATH elements.
2588 case $as_dir/ in #((
2589 ./ | .// | /[cC]/* | \
2590 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2591 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2592 /usr/ucb/* ) ;;
2594 # OSF1 and SCO ODT 3.0 have their own names for install.
2595 # Don't use installbsd from OSF since it installs stuff as root
2596 # by default.
2597 for ac_prog in ginstall scoinst install; do
2598 for ac_exec_ext in '' $ac_executable_extensions; do
2599 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2600 if test $ac_prog = install &&
2601 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2602 # AIX install. It has an incompatible calling convention.
2604 elif test $ac_prog = install &&
2605 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2606 # program-specific install script used by HP pwplus--don't use.
2608 else
2609 rm -rf conftest.one conftest.two conftest.dir
2610 echo one > conftest.one
2611 echo two > conftest.two
2612 mkdir conftest.dir
2613 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2614 test -s conftest.one && test -s conftest.two &&
2615 test -s conftest.dir/conftest.one &&
2616 test -s conftest.dir/conftest.two
2617 then
2618 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2619 break 3
2623 done
2624 done
2626 esac
2628 done
2629 IFS=$as_save_IFS
2631 rm -rf conftest.one conftest.two conftest.dir
2634 if test "${ac_cv_path_install+set}" = set; then
2635 INSTALL=$ac_cv_path_install
2636 else
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for INSTALL within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 INSTALL=$ac_install_sh
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2645 $as_echo "$INSTALL" >&6; }
2647 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2648 # It thinks the first close brace ends the variable substitution.
2649 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2651 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2656 $as_echo_n "checking whether build environment is sane... " >&6; }
2657 # Reject unsafe characters in $srcdir or the absolute working directory
2658 # name. Accept space and tab only in the latter.
2659 am_lf='
2661 case `pwd` in
2662 *[\\\"\#\$\&\'\`$am_lf]*)
2663 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2664 esac
2665 case $srcdir in
2666 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2667 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2668 esac
2670 # Do 'set' in a subshell so we don't clobber the current shell's
2671 # arguments. Must try -L first in case configure is actually a
2672 # symlink; some systems play weird games with the mod time of symlinks
2673 # (eg FreeBSD returns the mod time of the symlink's containing
2674 # directory).
2675 if (
2676 am_has_slept=no
2677 for am_try in 1 2; do
2678 echo "timestamp, slept: $am_has_slept" > conftest.file
2679 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2680 if test "$*" = "X"; then
2681 # -L didn't work.
2682 set X `ls -t "$srcdir/configure" conftest.file`
2684 if test "$*" != "X $srcdir/configure conftest.file" \
2685 && test "$*" != "X conftest.file $srcdir/configure"; then
2687 # If neither matched, then we have a broken ls. This can happen
2688 # if, for instance, CONFIG_SHELL is bash and it inherits a
2689 # broken ls alias from the environment. This has actually
2690 # happened. Such a system could not be considered "sane".
2691 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2692 alias in your environment" "$LINENO" 5
2694 if test "$2" = conftest.file || test $am_try -eq 2; then
2695 break
2697 # Just in case.
2698 sleep 1
2699 am_has_slept=yes
2700 done
2701 test "$2" = conftest.file
2703 then
2704 # Ok.
2706 else
2707 as_fn_error $? "newly created file is older than distributed files!
2708 Check your system clock" "$LINENO" 5
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2711 $as_echo "yes" >&6; }
2712 # If we didn't sleep, we still need to ensure time stamps of config.status and
2713 # generated files are strictly newer.
2714 am_sleep_pid=
2715 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2716 ( sleep 1 ) &
2717 am_sleep_pid=$!
2720 rm -f conftest.file
2722 test "$program_prefix" != NONE &&
2723 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2724 # Use a double $ so make ignores it.
2725 test "$program_suffix" != NONE &&
2726 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2727 # Double any \ or $.
2728 # By default was `s,x,x', remove it if useless.
2729 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2730 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2732 # Expand $ac_aux_dir to an absolute path.
2733 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2735 if test x"${MISSING+set}" != xset; then
2736 case $am_aux_dir in
2737 *\ * | *\ *)
2738 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2740 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2741 esac
2743 # Use eval to expand $SHELL
2744 if eval "$MISSING --is-lightweight"; then
2745 am_missing_run="$MISSING "
2746 else
2747 am_missing_run=
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2749 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2752 if test x"${install_sh+set}" != xset; then
2753 case $am_aux_dir in
2754 *\ * | *\ *)
2755 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2757 install_sh="\${SHELL} $am_aux_dir/install-sh"
2758 esac
2761 # Installed binaries are usually stripped using 'strip' when the user
2762 # run "make install-strip". However 'strip' might not be the right
2763 # tool to use in cross-compilation environments, therefore Automake
2764 # will honor the 'STRIP' environment variable to overrule this program.
2765 if test "$cross_compiling" != no; then
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}strip; ac_word=$2
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2770 $as_echo_n "checking for $ac_word... " >&6; }
2771 if ${ac_cv_prog_STRIP+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 if test -n "$STRIP"; then
2775 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2776 else
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2778 for as_dir in $PATH
2780 IFS=$as_save_IFS
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 break 2
2788 done
2789 done
2790 IFS=$as_save_IFS
2794 STRIP=$ac_cv_prog_STRIP
2795 if test -n "$STRIP"; then
2796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2797 $as_echo "$STRIP" >&6; }
2798 else
2799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2800 $as_echo "no" >&6; }
2805 if test -z "$ac_cv_prog_STRIP"; then
2806 ac_ct_STRIP=$STRIP
2807 # Extract the first word of "strip", so it can be a program name with args.
2808 set dummy strip; ac_word=$2
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2810 $as_echo_n "checking for $ac_word... " >&6; }
2811 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2812 $as_echo_n "(cached) " >&6
2813 else
2814 if test -n "$ac_ct_STRIP"; then
2815 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2816 else
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2818 for as_dir in $PATH
2820 IFS=$as_save_IFS
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2824 ac_cv_prog_ac_ct_STRIP="strip"
2825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2826 break 2
2828 done
2829 done
2830 IFS=$as_save_IFS
2834 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2835 if test -n "$ac_ct_STRIP"; then
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2837 $as_echo "$ac_ct_STRIP" >&6; }
2838 else
2839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2840 $as_echo "no" >&6; }
2843 if test "x$ac_ct_STRIP" = x; then
2844 STRIP=":"
2845 else
2846 case $cross_compiling:$ac_tool_warned in
2847 yes:)
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2850 ac_tool_warned=yes ;;
2851 esac
2852 STRIP=$ac_ct_STRIP
2854 else
2855 STRIP="$ac_cv_prog_STRIP"
2859 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2862 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2863 if test -z "$MKDIR_P"; then
2864 if ${ac_cv_path_mkdir+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2868 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2870 IFS=$as_save_IFS
2871 test -z "$as_dir" && as_dir=.
2872 for ac_prog in mkdir gmkdir; do
2873 for ac_exec_ext in '' $ac_executable_extensions; do
2874 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2875 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2876 'mkdir (GNU coreutils) '* | \
2877 'mkdir (coreutils) '* | \
2878 'mkdir (fileutils) '4.1*)
2879 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2880 break 3;;
2881 esac
2882 done
2883 done
2884 done
2885 IFS=$as_save_IFS
2889 test -d ./--version && rmdir ./--version
2890 if test "${ac_cv_path_mkdir+set}" = set; then
2891 MKDIR_P="$ac_cv_path_mkdir -p"
2892 else
2893 # As a last resort, use the slow shell script. Don't cache a
2894 # value for MKDIR_P within a source directory, because that will
2895 # break other packages using the cache if that directory is
2896 # removed, or if the value is a relative name.
2897 MKDIR_P="$ac_install_sh -d"
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2901 $as_echo "$MKDIR_P" >&6; }
2903 for ac_prog in gawk mawk nawk awk
2905 # Extract the first word of "$ac_prog", so it can be a program name with args.
2906 set dummy $ac_prog; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_AWK+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 if test -n "$AWK"; then
2913 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_AWK="$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2926 done
2927 done
2928 IFS=$as_save_IFS
2932 AWK=$ac_cv_prog_AWK
2933 if test -n "$AWK"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2935 $as_echo "$AWK" >&6; }
2936 else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2942 test -n "$AWK" && break
2943 done
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2946 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2947 set x ${MAKE-make}
2948 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2949 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 cat >conftest.make <<\_ACEOF
2953 SHELL = /bin/sh
2954 all:
2955 @echo '@@@%%%=$(MAKE)=@@@%%%'
2956 _ACEOF
2957 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2958 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2959 *@@@%%%=?*=@@@%%%*)
2960 eval ac_cv_prog_make_${ac_make}_set=yes;;
2962 eval ac_cv_prog_make_${ac_make}_set=no;;
2963 esac
2964 rm -f conftest.make
2966 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2968 $as_echo "yes" >&6; }
2969 SET_MAKE=
2970 else
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2972 $as_echo "no" >&6; }
2973 SET_MAKE="MAKE=${MAKE-make}"
2976 rm -rf .tst 2>/dev/null
2977 mkdir .tst 2>/dev/null
2978 if test -d .tst; then
2979 am__leading_dot=.
2980 else
2981 am__leading_dot=_
2983 rmdir .tst 2>/dev/null
2985 # Check whether --enable-silent-rules was given.
2986 if test "${enable_silent_rules+set}" = set; then :
2987 enableval=$enable_silent_rules;
2990 case $enable_silent_rules in # (((
2991 yes) AM_DEFAULT_VERBOSITY=0;;
2992 no) AM_DEFAULT_VERBOSITY=1;;
2993 *) AM_DEFAULT_VERBOSITY=1;;
2994 esac
2995 am_make=${MAKE-make}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2997 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2998 if ${am_cv_make_support_nested_variables+:} false; then :
2999 $as_echo_n "(cached) " >&6
3000 else
3001 if $as_echo 'TRUE=$(BAR$(V))
3002 BAR0=false
3003 BAR1=true
3005 am__doit:
3006 @$(TRUE)
3007 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3008 am_cv_make_support_nested_variables=yes
3009 else
3010 am_cv_make_support_nested_variables=no
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3014 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3015 if test $am_cv_make_support_nested_variables = yes; then
3016 AM_V='$(V)'
3017 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3018 else
3019 AM_V=$AM_DEFAULT_VERBOSITY
3020 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3022 AM_BACKSLASH='\'
3024 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3025 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3026 # is not polluted with repeated "-I."
3027 am__isrc=' -I$(srcdir)'
3028 # test to see if srcdir already configured
3029 if test -f $srcdir/config.status; then
3030 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3034 # test whether we have cygpath
3035 if test -z "$CYGPATH_W"; then
3036 if (cygpath --version) >/dev/null 2>/dev/null; then
3037 CYGPATH_W='cygpath -w'
3038 else
3039 CYGPATH_W=echo
3044 # Define the identity of the package.
3045 PACKAGE='liboffloadmic'
3046 VERSION='1.0'
3049 cat >>confdefs.h <<_ACEOF
3050 #define PACKAGE "$PACKAGE"
3051 _ACEOF
3054 cat >>confdefs.h <<_ACEOF
3055 #define VERSION "$VERSION"
3056 _ACEOF
3058 # Some tools Automake needs.
3060 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3063 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3066 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3069 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3072 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3074 # For better backward compatibility. To be removed once Automake 1.9.x
3075 # dies out for good. For more background, see:
3076 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3077 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3078 mkdir_p='$(MKDIR_P)'
3080 # We need awk for the "check" target (and possibly the TAP driver). The
3081 # system "awk" is bad on some platforms.
3082 # Always define AMTAR for backward compatibility. Yes, it's still used
3083 # in the wild :-( We should find a proper way to deprecate it ...
3084 AMTAR='$${TAR-tar}'
3087 # We'll loop over all known methods to create a tar archive until one works.
3088 _am_tools='gnutar pax cpio none'
3090 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3097 # POSIX will say in a future version that running "rm -f" with no argument
3098 # is OK; and we want to be able to make that assumption in our Makefile
3099 # recipes. So use an aggressive probe to check that the usage we want is
3100 # actually supported "in the wild" to an acceptable degree.
3101 # See automake bug#10828.
3102 # To make any issue more visible, cause the running configure to be aborted
3103 # by default if the 'rm' program in use doesn't match our expectations; the
3104 # user can still override this though.
3105 if rm -f && rm -fr && rm -rf; then : OK; else
3106 cat >&2 <<'END'
3107 Oops!
3109 Your 'rm' program seems unable to run without file operands specified
3110 on the command line, even when the '-f' option is present. This is contrary
3111 to the behaviour of most rm programs out there, and not conforming with
3112 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3114 Please tell bug-automake@gnu.org about your system, including the value
3115 of your $PATH and any error possibly output before this message. This
3116 can help us improve future automake versions.
3119 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3120 echo 'Configuration will proceed anyway, since you have set the' >&2
3121 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3122 echo >&2
3123 else
3124 cat >&2 <<'END'
3125 Aborting the configuration process, to ensure you take notice of the issue.
3127 You can download and install GNU coreutils to get an 'rm' implementation
3128 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3130 If you want to complete the configuration process using your problematic
3131 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3132 to "yes", and re-run configure.
3135 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3141 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3142 # Check whether --enable-maintainer-mode was given.
3143 if test "${enable_maintainer_mode+set}" = set; then :
3144 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3145 else
3146 USE_MAINTAINER_MODE=no
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3150 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3151 if test $USE_MAINTAINER_MODE = yes; then
3152 MAINTAINER_MODE_TRUE=
3153 MAINTAINER_MODE_FALSE='#'
3154 else
3155 MAINTAINER_MODE_TRUE='#'
3156 MAINTAINER_MODE_FALSE=
3159 MAINT=$MAINTAINER_MODE_TRUE
3163 ac_ext=c
3164 ac_cpp='$CPP $CPPFLAGS'
3165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3168 if test -n "$ac_tool_prefix"; then
3169 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3170 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3172 $as_echo_n "checking for $ac_word... " >&6; }
3173 if ${ac_cv_prog_CC+:} false; then :
3174 $as_echo_n "(cached) " >&6
3175 else
3176 if test -n "$CC"; then
3177 ac_cv_prog_CC="$CC" # Let the user override the test.
3178 else
3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3180 for as_dir in $PATH
3182 IFS=$as_save_IFS
3183 test -z "$as_dir" && as_dir=.
3184 for ac_exec_ext in '' $ac_executable_extensions; do
3185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3186 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3188 break 2
3190 done
3191 done
3192 IFS=$as_save_IFS
3196 CC=$ac_cv_prog_CC
3197 if test -n "$CC"; then
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3199 $as_echo "$CC" >&6; }
3200 else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202 $as_echo "no" >&6; }
3207 if test -z "$ac_cv_prog_CC"; then
3208 ac_ct_CC=$CC
3209 # Extract the first word of "gcc", so it can be a program name with args.
3210 set dummy gcc; ac_word=$2
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3212 $as_echo_n "checking for $ac_word... " >&6; }
3213 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3214 $as_echo_n "(cached) " >&6
3215 else
3216 if test -n "$ac_ct_CC"; then
3217 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_prog_ac_ct_CC="gcc"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3230 done
3231 done
3232 IFS=$as_save_IFS
3236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3237 if test -n "$ac_ct_CC"; then
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3239 $as_echo "$ac_ct_CC" >&6; }
3240 else
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3242 $as_echo "no" >&6; }
3245 if test "x$ac_ct_CC" = x; then
3246 CC=""
3247 else
3248 case $cross_compiling:$ac_tool_warned in
3249 yes:)
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3252 ac_tool_warned=yes ;;
3253 esac
3254 CC=$ac_ct_CC
3256 else
3257 CC="$ac_cv_prog_CC"
3260 if test -z "$CC"; then
3261 if test -n "$ac_tool_prefix"; then
3262 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3263 set dummy ${ac_tool_prefix}cc; ac_word=$2
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; }
3266 if ${ac_cv_prog_CC+:} false; then :
3267 $as_echo_n "(cached) " >&6
3268 else
3269 if test -n "$CC"; then
3270 ac_cv_prog_CC="$CC" # Let the user override the test.
3271 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH
3275 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3279 ac_cv_prog_CC="${ac_tool_prefix}cc"
3280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2
3283 done
3284 done
3285 IFS=$as_save_IFS
3289 CC=$ac_cv_prog_CC
3290 if test -n "$CC"; then
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3292 $as_echo "$CC" >&6; }
3293 else
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3301 if test -z "$CC"; then
3302 # Extract the first word of "cc", so it can be a program name with args.
3303 set dummy cc; ac_word=$2
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3305 $as_echo_n "checking for $ac_word... " >&6; }
3306 if ${ac_cv_prog_CC+:} false; then :
3307 $as_echo_n "(cached) " >&6
3308 else
3309 if test -n "$CC"; then
3310 ac_cv_prog_CC="$CC" # Let the user override the test.
3311 else
3312 ac_prog_rejected=no
3313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 for as_dir in $PATH
3316 IFS=$as_save_IFS
3317 test -z "$as_dir" && as_dir=.
3318 for ac_exec_ext in '' $ac_executable_extensions; do
3319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3320 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3321 ac_prog_rejected=yes
3322 continue
3324 ac_cv_prog_CC="cc"
3325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3326 break 2
3328 done
3329 done
3330 IFS=$as_save_IFS
3332 if test $ac_prog_rejected = yes; then
3333 # We found a bogon in the path, so make sure we never use it.
3334 set dummy $ac_cv_prog_CC
3335 shift
3336 if test $# != 0; then
3337 # We chose a different compiler from the bogus one.
3338 # However, it has the same basename, so the bogon will be chosen
3339 # first if we set CC to just the basename; use the full file name.
3340 shift
3341 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3346 CC=$ac_cv_prog_CC
3347 if test -n "$CC"; then
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3349 $as_echo "$CC" >&6; }
3350 else
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3352 $as_echo "no" >&6; }
3357 if test -z "$CC"; then
3358 if test -n "$ac_tool_prefix"; then
3359 for ac_prog in cl.exe
3361 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3362 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if ${ac_cv_prog_CC+:} false; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 if test -n "$CC"; then
3369 ac_cv_prog_CC="$CC" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3382 done
3383 done
3384 IFS=$as_save_IFS
3388 CC=$ac_cv_prog_CC
3389 if test -n "$CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3391 $as_echo "$CC" >&6; }
3392 else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3398 test -n "$CC" && break
3399 done
3401 if test -z "$CC"; then
3402 ac_ct_CC=$CC
3403 for ac_prog in cl.exe
3405 # Extract the first word of "$ac_prog", so it can be a program name with args.
3406 set dummy $ac_prog; ac_word=$2
3407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3408 $as_echo_n "checking for $ac_word... " >&6; }
3409 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3410 $as_echo_n "(cached) " >&6
3411 else
3412 if test -n "$ac_ct_CC"; then
3413 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3414 else
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3422 ac_cv_prog_ac_ct_CC="$ac_prog"
3423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3426 done
3427 done
3428 IFS=$as_save_IFS
3432 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3433 if test -n "$ac_ct_CC"; then
3434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3435 $as_echo "$ac_ct_CC" >&6; }
3436 else
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3438 $as_echo "no" >&6; }
3442 test -n "$ac_ct_CC" && break
3443 done
3445 if test "x$ac_ct_CC" = x; then
3446 CC=""
3447 else
3448 case $cross_compiling:$ac_tool_warned in
3449 yes:)
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3452 ac_tool_warned=yes ;;
3453 esac
3454 CC=$ac_ct_CC
3461 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3462 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3463 as_fn_error $? "no acceptable C compiler found in \$PATH
3464 See \`config.log' for more details" "$LINENO" 5; }
3466 # Provide some information about the compiler.
3467 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3468 set X $ac_compile
3469 ac_compiler=$2
3470 for ac_option in --version -v -V -qversion; do
3471 { { ac_try="$ac_compiler $ac_option >&5"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3479 ac_status=$?
3480 if test -s conftest.err; then
3481 sed '10a\
3482 ... rest of stderr output deleted ...
3483 10q' conftest.err >conftest.er1
3484 cat conftest.er1 >&5
3486 rm -f conftest.er1 conftest.err
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }
3489 done
3491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3495 main ()
3499 return 0;
3501 _ACEOF
3502 ac_clean_files_save=$ac_clean_files
3503 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3504 # Try to create an executable without -o first, disregard a.out.
3505 # It will help us diagnose broken compilers, and finding out an intuition
3506 # of exeext.
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3508 $as_echo_n "checking whether the C compiler works... " >&6; }
3509 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3511 # The possible output files:
3512 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3514 ac_rmfiles=
3515 for ac_file in $ac_files
3517 case $ac_file in
3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3519 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3520 esac
3521 done
3522 rm -f $ac_rmfiles
3524 if { { ac_try="$ac_link_default"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3530 $as_echo "$ac_try_echo"; } >&5
3531 (eval "$ac_link_default") 2>&5
3532 ac_status=$?
3533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3534 test $ac_status = 0; }; then :
3535 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3536 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3537 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3538 # so that the user can short-circuit this test for compilers unknown to
3539 # Autoconf.
3540 for ac_file in $ac_files ''
3542 test -f "$ac_file" || continue
3543 case $ac_file in
3544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3546 [ab].out )
3547 # We found the default executable, but exeext='' is most
3548 # certainly right.
3549 break;;
3550 *.* )
3551 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3552 then :; else
3553 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3555 # We set ac_cv_exeext here because the later test for it is not
3556 # safe: cross compilers may not add the suffix if given an `-o'
3557 # argument, so we may need to know it at that point already.
3558 # Even if this section looks crufty: it has the advantage of
3559 # actually working.
3560 break;;
3562 break;;
3563 esac
3564 done
3565 test "$ac_cv_exeext" = no && ac_cv_exeext=
3567 else
3568 ac_file=''
3570 if test -z "$ac_file"; then :
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3572 $as_echo "no" >&6; }
3573 $as_echo "$as_me: failed program was:" >&5
3574 sed 's/^/| /' conftest.$ac_ext >&5
3576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3577 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3578 as_fn_error 77 "C compiler cannot create executables
3579 See \`config.log' for more details" "$LINENO" 5; }
3580 else
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3582 $as_echo "yes" >&6; }
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3585 $as_echo_n "checking for C compiler default output file name... " >&6; }
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3587 $as_echo "$ac_file" >&6; }
3588 ac_exeext=$ac_cv_exeext
3590 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3591 ac_clean_files=$ac_clean_files_save
3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3593 $as_echo_n "checking for suffix of executables... " >&6; }
3594 if { { ac_try="$ac_link"
3595 case "(($ac_try" in
3596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3597 *) ac_try_echo=$ac_try;;
3598 esac
3599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3600 $as_echo "$ac_try_echo"; } >&5
3601 (eval "$ac_link") 2>&5
3602 ac_status=$?
3603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3604 test $ac_status = 0; }; then :
3605 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3606 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3607 # work properly (i.e., refer to `conftest.exe'), while it won't with
3608 # `rm'.
3609 for ac_file in conftest.exe conftest conftest.*; do
3610 test -f "$ac_file" || continue
3611 case $ac_file in
3612 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3613 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3614 break;;
3615 * ) break;;
3616 esac
3617 done
3618 else
3619 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3620 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3621 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3622 See \`config.log' for more details" "$LINENO" 5; }
3624 rm -f conftest conftest$ac_cv_exeext
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3626 $as_echo "$ac_cv_exeext" >&6; }
3628 rm -f conftest.$ac_ext
3629 EXEEXT=$ac_cv_exeext
3630 ac_exeext=$EXEEXT
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <stdio.h>
3635 main ()
3637 FILE *f = fopen ("conftest.out", "w");
3638 return ferror (f) || fclose (f) != 0;
3641 return 0;
3643 _ACEOF
3644 ac_clean_files="$ac_clean_files conftest.out"
3645 # Check that the compiler produces executables we can run. If not, either
3646 # the compiler is broken, or we cross compile.
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3648 $as_echo_n "checking whether we are cross compiling... " >&6; }
3649 if test "$cross_compiling" != yes; then
3650 { { ac_try="$ac_link"
3651 case "(($ac_try" in
3652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3653 *) ac_try_echo=$ac_try;;
3654 esac
3655 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3656 $as_echo "$ac_try_echo"; } >&5
3657 (eval "$ac_link") 2>&5
3658 ac_status=$?
3659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3660 test $ac_status = 0; }
3661 if { ac_try='./conftest$ac_cv_exeext'
3662 { { case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_try") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; }; then
3672 cross_compiling=no
3673 else
3674 if test "$cross_compiling" = maybe; then
3675 cross_compiling=yes
3676 else
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error $? "cannot run C compiled programs.
3680 If you meant to cross compile, use \`--host'.
3681 See \`config.log' for more details" "$LINENO" 5; }
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3686 $as_echo "$cross_compiling" >&6; }
3688 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3689 ac_clean_files=$ac_clean_files_save
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3691 $as_echo_n "checking for suffix of object files... " >&6; }
3692 if ${ac_cv_objext+:} false; then :
3693 $as_echo_n "(cached) " >&6
3694 else
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3699 main ()
3703 return 0;
3705 _ACEOF
3706 rm -f conftest.o conftest.obj
3707 if { { ac_try="$ac_compile"
3708 case "(($ac_try" in
3709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3710 *) ac_try_echo=$ac_try;;
3711 esac
3712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3713 $as_echo "$ac_try_echo"; } >&5
3714 (eval "$ac_compile") 2>&5
3715 ac_status=$?
3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3717 test $ac_status = 0; }; then :
3718 for ac_file in conftest.o conftest.obj conftest.*; do
3719 test -f "$ac_file" || continue;
3720 case $ac_file in
3721 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3722 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3723 break;;
3724 esac
3725 done
3726 else
3727 $as_echo "$as_me: failed program was:" >&5
3728 sed 's/^/| /' conftest.$ac_ext >&5
3730 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3731 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3732 as_fn_error $? "cannot compute suffix of object files: cannot compile
3733 See \`config.log' for more details" "$LINENO" 5; }
3735 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3738 $as_echo "$ac_cv_objext" >&6; }
3739 OBJEXT=$ac_cv_objext
3740 ac_objext=$OBJEXT
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3742 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3743 if ${ac_cv_c_compiler_gnu+:} false; then :
3744 $as_echo_n "(cached) " >&6
3745 else
3746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3747 /* end confdefs.h. */
3750 main ()
3752 #ifndef __GNUC__
3753 choke me
3754 #endif
3757 return 0;
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_compiler_gnu=yes
3762 else
3763 ac_compiler_gnu=no
3765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3766 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3770 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3771 if test $ac_compiler_gnu = yes; then
3772 GCC=yes
3773 else
3774 GCC=
3776 ac_test_CFLAGS=${CFLAGS+set}
3777 ac_save_CFLAGS=$CFLAGS
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3779 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3780 if ${ac_cv_prog_cc_g+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 ac_save_c_werror_flag=$ac_c_werror_flag
3784 ac_c_werror_flag=yes
3785 ac_cv_prog_cc_g=no
3786 CFLAGS="-g"
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3791 main ()
3795 return 0;
3797 _ACEOF
3798 if ac_fn_c_try_compile "$LINENO"; then :
3799 ac_cv_prog_cc_g=yes
3800 else
3801 CFLAGS=""
3802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3803 /* end confdefs.h. */
3806 main ()
3810 return 0;
3812 _ACEOF
3813 if ac_fn_c_try_compile "$LINENO"; then :
3815 else
3816 ac_c_werror_flag=$ac_save_c_werror_flag
3817 CFLAGS="-g"
3818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3819 /* end confdefs.h. */
3822 main ()
3826 return 0;
3828 _ACEOF
3829 if ac_fn_c_try_compile "$LINENO"; then :
3830 ac_cv_prog_cc_g=yes
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3837 ac_c_werror_flag=$ac_save_c_werror_flag
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3840 $as_echo "$ac_cv_prog_cc_g" >&6; }
3841 if test "$ac_test_CFLAGS" = set; then
3842 CFLAGS=$ac_save_CFLAGS
3843 elif test $ac_cv_prog_cc_g = yes; then
3844 if test "$GCC" = yes; then
3845 CFLAGS="-g -O2"
3846 else
3847 CFLAGS="-g"
3849 else
3850 if test "$GCC" = yes; then
3851 CFLAGS="-O2"
3852 else
3853 CFLAGS=
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3857 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3858 if ${ac_cv_prog_cc_c89+:} false; then :
3859 $as_echo_n "(cached) " >&6
3860 else
3861 ac_cv_prog_cc_c89=no
3862 ac_save_CC=$CC
3863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3864 /* end confdefs.h. */
3865 #include <stdarg.h>
3866 #include <stdio.h>
3867 struct stat;
3868 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3869 struct buf { int x; };
3870 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3871 static char *e (p, i)
3872 char **p;
3873 int i;
3875 return p[i];
3877 static char *f (char * (*g) (char **, int), char **p, ...)
3879 char *s;
3880 va_list v;
3881 va_start (v,p);
3882 s = g (p, va_arg (v,int));
3883 va_end (v);
3884 return s;
3887 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3888 function prototypes and stuff, but not '\xHH' hex character constants.
3889 These don't provoke an error unfortunately, instead are silently treated
3890 as 'x'. The following induces an error, until -std is added to get
3891 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3892 array size at least. It's necessary to write '\x00'==0 to get something
3893 that's true only with -std. */
3894 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3896 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3897 inside strings and character constants. */
3898 #define FOO(x) 'x'
3899 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3901 int test (int i, double x);
3902 struct s1 {int (*f) (int a);};
3903 struct s2 {int (*f) (double a);};
3904 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3905 int argc;
3906 char **argv;
3908 main ()
3910 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3912 return 0;
3914 _ACEOF
3915 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3916 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3918 CC="$ac_save_CC $ac_arg"
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_prog_cc_c89=$ac_arg
3922 rm -f core conftest.err conftest.$ac_objext
3923 test "x$ac_cv_prog_cc_c89" != "xno" && break
3924 done
3925 rm -f conftest.$ac_ext
3926 CC=$ac_save_CC
3929 # AC_CACHE_VAL
3930 case "x$ac_cv_prog_cc_c89" in
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3933 $as_echo "none needed" >&6; } ;;
3934 xno)
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3936 $as_echo "unsupported" >&6; } ;;
3938 CC="$CC $ac_cv_prog_cc_c89"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3940 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3941 esac
3942 if test "x$ac_cv_prog_cc_c89" != xno; then :
3946 ac_ext=c
3947 ac_cpp='$CPP $CPPFLAGS'
3948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3952 ac_ext=c
3953 ac_cpp='$CPP $CPPFLAGS'
3954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3958 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3959 if ${am_cv_prog_cc_c_o+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3966 main ()
3970 return 0;
3972 _ACEOF
3973 # Make sure it works both with $CC and with simple cc.
3974 # Following AC_PROG_CC_C_O, we do the test twice because some
3975 # compilers refuse to overwrite an existing .o file with -o,
3976 # though they will create one.
3977 am_cv_prog_cc_c_o=yes
3978 for am_i in 1 2; do
3979 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3980 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3981 ac_status=$?
3982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983 (exit $ac_status); } \
3984 && test -f conftest2.$ac_objext; then
3985 : OK
3986 else
3987 am_cv_prog_cc_c_o=no
3988 break
3990 done
3991 rm -f core conftest*
3992 unset am_i
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3995 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3996 if test "$am_cv_prog_cc_c_o" != yes; then
3997 # Losing compiler, so override with the script.
3998 # FIXME: It is wrong to rewrite CC.
3999 # But if we don't then we get into trouble of one sort or another.
4000 # A longer-term fix would be to have automake use am__CC in this case,
4001 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4002 CC="$am_aux_dir/compile $CC"
4004 ac_ext=c
4005 ac_cpp='$CPP $CPPFLAGS'
4006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010 DEPDIR="${am__leading_dot}deps"
4012 ac_config_commands="$ac_config_commands depfiles"
4015 am_make=${MAKE-make}
4016 cat > confinc << 'END'
4017 am__doit:
4018 @echo this is the am__doit target
4019 .PHONY: am__doit
4021 # If we don't find an include directive, just comment out the code.
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4023 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4024 am__include="#"
4025 am__quote=
4026 _am_result=none
4027 # First try GNU make style include.
4028 echo "include confinc" > confmf
4029 # Ignore all kinds of additional output from 'make'.
4030 case `$am_make -s -f confmf 2> /dev/null` in #(
4031 *the\ am__doit\ target*)
4032 am__include=include
4033 am__quote=
4034 _am_result=GNU
4036 esac
4037 # Now try BSD make style include.
4038 if test "$am__include" = "#"; then
4039 echo '.include "confinc"' > confmf
4040 case `$am_make -s -f confmf 2> /dev/null` in #(
4041 *the\ am__doit\ target*)
4042 am__include=.include
4043 am__quote="\""
4044 _am_result=BSD
4046 esac
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4051 $as_echo "$_am_result" >&6; }
4052 rm -f confinc confmf
4054 # Check whether --enable-dependency-tracking was given.
4055 if test "${enable_dependency_tracking+set}" = set; then :
4056 enableval=$enable_dependency_tracking;
4059 if test "x$enable_dependency_tracking" != xno; then
4060 am_depcomp="$ac_aux_dir/depcomp"
4061 AMDEPBACKSLASH='\'
4062 am__nodep='_no'
4064 if test "x$enable_dependency_tracking" != xno; then
4065 AMDEP_TRUE=
4066 AMDEP_FALSE='#'
4067 else
4068 AMDEP_TRUE='#'
4069 AMDEP_FALSE=
4074 depcc="$CC" am_compiler_list=
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4077 $as_echo_n "checking dependency style of $depcc... " >&6; }
4078 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4082 # We make a subdir and do the tests there. Otherwise we can end up
4083 # making bogus files that we don't know about and never remove. For
4084 # instance it was reported that on HP-UX the gcc test will end up
4085 # making a dummy file named 'D' -- because '-MD' means "put the output
4086 # in D".
4087 rm -rf conftest.dir
4088 mkdir conftest.dir
4089 # Copy depcomp to subdir because otherwise we won't find it if we're
4090 # using a relative directory.
4091 cp "$am_depcomp" conftest.dir
4092 cd conftest.dir
4093 # We will build objects and dependencies in a subdirectory because
4094 # it helps to detect inapplicable dependency modes. For instance
4095 # both Tru64's cc and ICC support -MD to output dependencies as a
4096 # side effect of compilation, but ICC will put the dependencies in
4097 # the current directory while Tru64 will put them in the object
4098 # directory.
4099 mkdir sub
4101 am_cv_CC_dependencies_compiler_type=none
4102 if test "$am_compiler_list" = ""; then
4103 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4105 am__universal=false
4106 case " $depcc " in #(
4107 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4108 esac
4110 for depmode in $am_compiler_list; do
4111 # Setup a source with many dependencies, because some compilers
4112 # like to wrap large dependency lists on column 80 (with \), and
4113 # we should not choose a depcomp mode which is confused by this.
4115 # We need to recreate these files for each test, as the compiler may
4116 # overwrite some of them when testing with obscure command lines.
4117 # This happens at least with the AIX C compiler.
4118 : > sub/conftest.c
4119 for i in 1 2 3 4 5 6; do
4120 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4121 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4122 # Solaris 10 /bin/sh.
4123 echo '/* dummy */' > sub/conftst$i.h
4124 done
4125 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4127 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4128 # mode. It turns out that the SunPro C++ compiler does not properly
4129 # handle '-M -o', and we need to detect this. Also, some Intel
4130 # versions had trouble with output in subdirs.
4131 am__obj=sub/conftest.${OBJEXT-o}
4132 am__minus_obj="-o $am__obj"
4133 case $depmode in
4134 gcc)
4135 # This depmode causes a compiler race in universal mode.
4136 test "$am__universal" = false || continue
4138 nosideeffect)
4139 # After this tag, mechanisms are not by side-effect, so they'll
4140 # only be used when explicitly requested.
4141 if test "x$enable_dependency_tracking" = xyes; then
4142 continue
4143 else
4144 break
4147 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4148 # This compiler won't grok '-c -o', but also, the minuso test has
4149 # not run yet. These depmodes are late enough in the game, and
4150 # so weak that their functioning should not be impacted.
4151 am__obj=conftest.${OBJEXT-o}
4152 am__minus_obj=
4154 none) break ;;
4155 esac
4156 if depmode=$depmode \
4157 source=sub/conftest.c object=$am__obj \
4158 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4159 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4160 >/dev/null 2>conftest.err &&
4161 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4162 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4163 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4164 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4165 # icc doesn't choke on unknown options, it will just issue warnings
4166 # or remarks (even with -Werror). So we grep stderr for any message
4167 # that says an option was ignored or not supported.
4168 # When given -MP, icc 7.0 and 7.1 complain thusly:
4169 # icc: Command line warning: ignoring option '-M'; no argument required
4170 # The diagnosis changed in icc 8.0:
4171 # icc: Command line remark: option '-MP' not supported
4172 if (grep 'ignoring option' conftest.err ||
4173 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4174 am_cv_CC_dependencies_compiler_type=$depmode
4175 break
4178 done
4180 cd ..
4181 rm -rf conftest.dir
4182 else
4183 am_cv_CC_dependencies_compiler_type=none
4187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4188 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4189 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4192 test "x$enable_dependency_tracking" != xno \
4193 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4194 am__fastdepCC_TRUE=
4195 am__fastdepCC_FALSE='#'
4196 else
4197 am__fastdepCC_TRUE='#'
4198 am__fastdepCC_FALSE=
4202 ac_ext=cpp
4203 ac_cpp='$CXXCPP $CPPFLAGS'
4204 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4205 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4206 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4207 if test -z "$CXX"; then
4208 if test -n "$CCC"; then
4209 CXX=$CCC
4210 else
4211 if test -n "$ac_tool_prefix"; then
4212 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4214 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4215 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 $as_echo_n "checking for $ac_word... " >&6; }
4218 if ${ac_cv_prog_CXX+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 if test -n "$CXX"; then
4222 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4223 else
4224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4225 for as_dir in $PATH
4227 IFS=$as_save_IFS
4228 test -z "$as_dir" && as_dir=.
4229 for ac_exec_ext in '' $ac_executable_extensions; do
4230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4231 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4233 break 2
4235 done
4236 done
4237 IFS=$as_save_IFS
4241 CXX=$ac_cv_prog_CXX
4242 if test -n "$CXX"; then
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4244 $as_echo "$CXX" >&6; }
4245 else
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4247 $as_echo "no" >&6; }
4251 test -n "$CXX" && break
4252 done
4254 if test -z "$CXX"; then
4255 ac_ct_CXX=$CXX
4256 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4258 # Extract the first word of "$ac_prog", so it can be a program name with args.
4259 set dummy $ac_prog; ac_word=$2
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4261 $as_echo_n "checking for $ac_word... " >&6; }
4262 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 if test -n "$ac_ct_CXX"; then
4266 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4267 else
4268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4269 for as_dir in $PATH
4271 IFS=$as_save_IFS
4272 test -z "$as_dir" && as_dir=.
4273 for ac_exec_ext in '' $ac_executable_extensions; do
4274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4275 ac_cv_prog_ac_ct_CXX="$ac_prog"
4276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4277 break 2
4279 done
4280 done
4281 IFS=$as_save_IFS
4285 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4286 if test -n "$ac_ct_CXX"; then
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4288 $as_echo "$ac_ct_CXX" >&6; }
4289 else
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4291 $as_echo "no" >&6; }
4295 test -n "$ac_ct_CXX" && break
4296 done
4298 if test "x$ac_ct_CXX" = x; then
4299 CXX="g++"
4300 else
4301 case $cross_compiling:$ac_tool_warned in
4302 yes:)
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned=yes ;;
4306 esac
4307 CXX=$ac_ct_CXX
4313 # Provide some information about the compiler.
4314 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4315 set X $ac_compile
4316 ac_compiler=$2
4317 for ac_option in --version -v -V -qversion; do
4318 { { ac_try="$ac_compiler $ac_option >&5"
4319 case "(($ac_try" in
4320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4321 *) ac_try_echo=$ac_try;;
4322 esac
4323 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4324 $as_echo "$ac_try_echo"; } >&5
4325 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4326 ac_status=$?
4327 if test -s conftest.err; then
4328 sed '10a\
4329 ... rest of stderr output deleted ...
4330 10q' conftest.err >conftest.er1
4331 cat conftest.er1 >&5
4333 rm -f conftest.er1 conftest.err
4334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4335 test $ac_status = 0; }
4336 done
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4339 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4340 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4341 $as_echo_n "(cached) " >&6
4342 else
4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4347 main ()
4349 #ifndef __GNUC__
4350 choke me
4351 #endif
4354 return 0;
4356 _ACEOF
4357 if ac_fn_cxx_try_compile "$LINENO"; then :
4358 ac_compiler_gnu=yes
4359 else
4360 ac_compiler_gnu=no
4362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4363 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4367 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4368 if test $ac_compiler_gnu = yes; then
4369 GXX=yes
4370 else
4371 GXX=
4373 ac_test_CXXFLAGS=${CXXFLAGS+set}
4374 ac_save_CXXFLAGS=$CXXFLAGS
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4376 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4377 if ${ac_cv_prog_cxx_g+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4381 ac_cxx_werror_flag=yes
4382 ac_cv_prog_cxx_g=no
4383 CXXFLAGS="-g"
4384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4385 /* end confdefs.h. */
4388 main ()
4392 return 0;
4394 _ACEOF
4395 if ac_fn_cxx_try_compile "$LINENO"; then :
4396 ac_cv_prog_cxx_g=yes
4397 else
4398 CXXFLAGS=""
4399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4400 /* end confdefs.h. */
4403 main ()
4407 return 0;
4409 _ACEOF
4410 if ac_fn_cxx_try_compile "$LINENO"; then :
4412 else
4413 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4414 CXXFLAGS="-g"
4415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4416 /* end confdefs.h. */
4419 main ()
4423 return 0;
4425 _ACEOF
4426 if ac_fn_cxx_try_compile "$LINENO"; then :
4427 ac_cv_prog_cxx_g=yes
4429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4434 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4437 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4438 if test "$ac_test_CXXFLAGS" = set; then
4439 CXXFLAGS=$ac_save_CXXFLAGS
4440 elif test $ac_cv_prog_cxx_g = yes; then
4441 if test "$GXX" = yes; then
4442 CXXFLAGS="-g -O2"
4443 else
4444 CXXFLAGS="-g"
4446 else
4447 if test "$GXX" = yes; then
4448 CXXFLAGS="-O2"
4449 else
4450 CXXFLAGS=
4453 ac_ext=c
4454 ac_cpp='$CPP $CPPFLAGS'
4455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4459 depcc="$CXX" am_compiler_list=
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4462 $as_echo_n "checking dependency style of $depcc... " >&6; }
4463 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4467 # We make a subdir and do the tests there. Otherwise we can end up
4468 # making bogus files that we don't know about and never remove. For
4469 # instance it was reported that on HP-UX the gcc test will end up
4470 # making a dummy file named 'D' -- because '-MD' means "put the output
4471 # in D".
4472 rm -rf conftest.dir
4473 mkdir conftest.dir
4474 # Copy depcomp to subdir because otherwise we won't find it if we're
4475 # using a relative directory.
4476 cp "$am_depcomp" conftest.dir
4477 cd conftest.dir
4478 # We will build objects and dependencies in a subdirectory because
4479 # it helps to detect inapplicable dependency modes. For instance
4480 # both Tru64's cc and ICC support -MD to output dependencies as a
4481 # side effect of compilation, but ICC will put the dependencies in
4482 # the current directory while Tru64 will put them in the object
4483 # directory.
4484 mkdir sub
4486 am_cv_CXX_dependencies_compiler_type=none
4487 if test "$am_compiler_list" = ""; then
4488 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4490 am__universal=false
4491 case " $depcc " in #(
4492 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4493 esac
4495 for depmode in $am_compiler_list; do
4496 # Setup a source with many dependencies, because some compilers
4497 # like to wrap large dependency lists on column 80 (with \), and
4498 # we should not choose a depcomp mode which is confused by this.
4500 # We need to recreate these files for each test, as the compiler may
4501 # overwrite some of them when testing with obscure command lines.
4502 # This happens at least with the AIX C compiler.
4503 : > sub/conftest.c
4504 for i in 1 2 3 4 5 6; do
4505 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4506 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4507 # Solaris 10 /bin/sh.
4508 echo '/* dummy */' > sub/conftst$i.h
4509 done
4510 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4512 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4513 # mode. It turns out that the SunPro C++ compiler does not properly
4514 # handle '-M -o', and we need to detect this. Also, some Intel
4515 # versions had trouble with output in subdirs.
4516 am__obj=sub/conftest.${OBJEXT-o}
4517 am__minus_obj="-o $am__obj"
4518 case $depmode in
4519 gcc)
4520 # This depmode causes a compiler race in universal mode.
4521 test "$am__universal" = false || continue
4523 nosideeffect)
4524 # After this tag, mechanisms are not by side-effect, so they'll
4525 # only be used when explicitly requested.
4526 if test "x$enable_dependency_tracking" = xyes; then
4527 continue
4528 else
4529 break
4532 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4533 # This compiler won't grok '-c -o', but also, the minuso test has
4534 # not run yet. These depmodes are late enough in the game, and
4535 # so weak that their functioning should not be impacted.
4536 am__obj=conftest.${OBJEXT-o}
4537 am__minus_obj=
4539 none) break ;;
4540 esac
4541 if depmode=$depmode \
4542 source=sub/conftest.c object=$am__obj \
4543 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4544 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4545 >/dev/null 2>conftest.err &&
4546 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4547 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4548 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4549 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4550 # icc doesn't choke on unknown options, it will just issue warnings
4551 # or remarks (even with -Werror). So we grep stderr for any message
4552 # that says an option was ignored or not supported.
4553 # When given -MP, icc 7.0 and 7.1 complain thusly:
4554 # icc: Command line warning: ignoring option '-M'; no argument required
4555 # The diagnosis changed in icc 8.0:
4556 # icc: Command line remark: option '-MP' not supported
4557 if (grep 'ignoring option' conftest.err ||
4558 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4559 am_cv_CXX_dependencies_compiler_type=$depmode
4560 break
4563 done
4565 cd ..
4566 rm -rf conftest.dir
4567 else
4568 am_cv_CXX_dependencies_compiler_type=none
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4573 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4574 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4577 test "x$enable_dependency_tracking" != xno \
4578 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4579 am__fastdepCXX_TRUE=
4580 am__fastdepCXX_FALSE='#'
4581 else
4582 am__fastdepCXX_TRUE='#'
4583 am__fastdepCXX_FALSE=
4587 ac_config_files="$ac_config_files Makefile liboffloadmic_host.spec liboffloadmic_target.spec"
4589 # Default to --enable-multilib
4590 # Check whether --enable-multilib was given.
4591 if test "${enable_multilib+set}" = set; then :
4592 enableval=$enable_multilib; case "$enableval" in
4593 yes) multilib=yes ;;
4594 no) multilib=no ;;
4595 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
4596 esac
4597 else
4598 multilib=yes
4602 # We may get other options which we leave undocumented:
4603 # --with-target-subdir, --with-multisrctop, --with-multisubdir
4604 # See config-ml.in if you want the gory details.
4606 if test "$srcdir" = "."; then
4607 if test "$with_target_subdir" != "."; then
4608 multi_basedir="$srcdir/$with_multisrctop../.."
4609 else
4610 multi_basedir="$srcdir/$with_multisrctop.."
4612 else
4613 multi_basedir="$srcdir/.."
4617 # Even if the default multilib is not a cross compilation,
4618 # it may be that some of the other multilibs are.
4619 if test $cross_compiling = no && test $multilib = yes \
4620 && test "x${with_multisubdir}" != x ; then
4621 cross_compiling=maybe
4624 ac_config_commands="$ac_config_commands default-1"
4628 subdirs="$subdirs plugin"
4631 ac_ext=c
4632 ac_cpp='$CPP $CPPFLAGS'
4633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4637 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4638 # On Suns, sometimes $CPP names a directory.
4639 if test -n "$CPP" && test -d "$CPP"; then
4640 CPP=
4642 if test -z "$CPP"; then
4643 if ${ac_cv_prog_CPP+:} false; then :
4644 $as_echo_n "(cached) " >&6
4645 else
4646 # Double quotes because CPP needs to be expanded
4647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4649 ac_preproc_ok=false
4650 for ac_c_preproc_warn_flag in '' yes
4652 # Use a header file that comes with gcc, so configuring glibc
4653 # with a fresh cross-compiler works.
4654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4655 # <limits.h> exists even on freestanding compilers.
4656 # On the NeXT, cc -E runs the code through the compiler's parser,
4657 # not just through cpp. "Syntax error" is here to catch this case.
4658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4659 /* end confdefs.h. */
4660 #ifdef __STDC__
4661 # include <limits.h>
4662 #else
4663 # include <assert.h>
4664 #endif
4665 Syntax error
4666 _ACEOF
4667 if ac_fn_c_try_cpp "$LINENO"; then :
4669 else
4670 # Broken: fails on valid input.
4671 continue
4673 rm -f conftest.err conftest.i conftest.$ac_ext
4675 # OK, works on sane cases. Now check whether nonexistent headers
4676 # can be detected and how.
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 #include <ac_nonexistent.h>
4680 _ACEOF
4681 if ac_fn_c_try_cpp "$LINENO"; then :
4682 # Broken: success on invalid input.
4683 continue
4684 else
4685 # Passes both tests.
4686 ac_preproc_ok=:
4687 break
4689 rm -f conftest.err conftest.i conftest.$ac_ext
4691 done
4692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4693 rm -f conftest.i conftest.err conftest.$ac_ext
4694 if $ac_preproc_ok; then :
4695 break
4698 done
4699 ac_cv_prog_CPP=$CPP
4702 CPP=$ac_cv_prog_CPP
4703 else
4704 ac_cv_prog_CPP=$CPP
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4707 $as_echo "$CPP" >&6; }
4708 ac_preproc_ok=false
4709 for ac_c_preproc_warn_flag in '' yes
4711 # Use a header file that comes with gcc, so configuring glibc
4712 # with a fresh cross-compiler works.
4713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4714 # <limits.h> exists even on freestanding compilers.
4715 # On the NeXT, cc -E runs the code through the compiler's parser,
4716 # not just through cpp. "Syntax error" is here to catch this case.
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718 /* end confdefs.h. */
4719 #ifdef __STDC__
4720 # include <limits.h>
4721 #else
4722 # include <assert.h>
4723 #endif
4724 Syntax error
4725 _ACEOF
4726 if ac_fn_c_try_cpp "$LINENO"; then :
4728 else
4729 # Broken: fails on valid input.
4730 continue
4732 rm -f conftest.err conftest.i conftest.$ac_ext
4734 # OK, works on sane cases. Now check whether nonexistent headers
4735 # can be detected and how.
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 #include <ac_nonexistent.h>
4739 _ACEOF
4740 if ac_fn_c_try_cpp "$LINENO"; then :
4741 # Broken: success on invalid input.
4742 continue
4743 else
4744 # Passes both tests.
4745 ac_preproc_ok=:
4746 break
4748 rm -f conftest.err conftest.i conftest.$ac_ext
4750 done
4751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4752 rm -f conftest.i conftest.err conftest.$ac_ext
4753 if $ac_preproc_ok; then :
4755 else
4756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4758 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4759 See \`config.log' for more details" "$LINENO" 5; }
4762 ac_ext=c
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4770 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4771 if ${ac_cv_path_GREP+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773 else
4774 if test -z "$GREP"; then
4775 ac_path_GREP_found=false
4776 # Loop through the user's path and test for each of PROGNAME-LIST
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4780 IFS=$as_save_IFS
4781 test -z "$as_dir" && as_dir=.
4782 for ac_prog in grep ggrep; do
4783 for ac_exec_ext in '' $ac_executable_extensions; do
4784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4785 as_fn_executable_p "$ac_path_GREP" || continue
4786 # Check for GNU ac_path_GREP and select it if it is found.
4787 # Check for GNU $ac_path_GREP
4788 case `"$ac_path_GREP" --version 2>&1` in
4789 *GNU*)
4790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4792 ac_count=0
4793 $as_echo_n 0123456789 >"conftest.in"
4794 while :
4796 cat "conftest.in" "conftest.in" >"conftest.tmp"
4797 mv "conftest.tmp" "conftest.in"
4798 cp "conftest.in" "conftest.nl"
4799 $as_echo 'GREP' >> "conftest.nl"
4800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4802 as_fn_arith $ac_count + 1 && ac_count=$as_val
4803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4804 # Best one so far, save it but keep looking for a better one
4805 ac_cv_path_GREP="$ac_path_GREP"
4806 ac_path_GREP_max=$ac_count
4808 # 10*(2^10) chars as input seems more than enough
4809 test $ac_count -gt 10 && break
4810 done
4811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4812 esac
4814 $ac_path_GREP_found && break 3
4815 done
4816 done
4817 done
4818 IFS=$as_save_IFS
4819 if test -z "$ac_cv_path_GREP"; then
4820 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4822 else
4823 ac_cv_path_GREP=$GREP
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4828 $as_echo "$ac_cv_path_GREP" >&6; }
4829 GREP="$ac_cv_path_GREP"
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4833 $as_echo_n "checking for egrep... " >&6; }
4834 if ${ac_cv_path_EGREP+:} false; then :
4835 $as_echo_n "(cached) " >&6
4836 else
4837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4838 then ac_cv_path_EGREP="$GREP -E"
4839 else
4840 if test -z "$EGREP"; then
4841 ac_path_EGREP_found=false
4842 # Loop through the user's path and test for each of PROGNAME-LIST
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4846 IFS=$as_save_IFS
4847 test -z "$as_dir" && as_dir=.
4848 for ac_prog in egrep; do
4849 for ac_exec_ext in '' $ac_executable_extensions; do
4850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4851 as_fn_executable_p "$ac_path_EGREP" || continue
4852 # Check for GNU ac_path_EGREP and select it if it is found.
4853 # Check for GNU $ac_path_EGREP
4854 case `"$ac_path_EGREP" --version 2>&1` in
4855 *GNU*)
4856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4858 ac_count=0
4859 $as_echo_n 0123456789 >"conftest.in"
4860 while :
4862 cat "conftest.in" "conftest.in" >"conftest.tmp"
4863 mv "conftest.tmp" "conftest.in"
4864 cp "conftest.in" "conftest.nl"
4865 $as_echo 'EGREP' >> "conftest.nl"
4866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4868 as_fn_arith $ac_count + 1 && ac_count=$as_val
4869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4870 # Best one so far, save it but keep looking for a better one
4871 ac_cv_path_EGREP="$ac_path_EGREP"
4872 ac_path_EGREP_max=$ac_count
4874 # 10*(2^10) chars as input seems more than enough
4875 test $ac_count -gt 10 && break
4876 done
4877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4878 esac
4880 $ac_path_EGREP_found && break 3
4881 done
4882 done
4883 done
4884 IFS=$as_save_IFS
4885 if test -z "$ac_cv_path_EGREP"; then
4886 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4888 else
4889 ac_cv_path_EGREP=$EGREP
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4895 $as_echo "$ac_cv_path_EGREP" >&6; }
4896 EGREP="$ac_cv_path_EGREP"
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4900 $as_echo_n "checking for ANSI C header files... " >&6; }
4901 if ${ac_cv_header_stdc+:} false; then :
4902 $as_echo_n "(cached) " >&6
4903 else
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4906 #include <stdlib.h>
4907 #include <stdarg.h>
4908 #include <string.h>
4909 #include <float.h>
4912 main ()
4916 return 0;
4918 _ACEOF
4919 if ac_fn_c_try_compile "$LINENO"; then :
4920 ac_cv_header_stdc=yes
4921 else
4922 ac_cv_header_stdc=no
4924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4926 if test $ac_cv_header_stdc = yes; then
4927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4929 /* end confdefs.h. */
4930 #include <string.h>
4932 _ACEOF
4933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4934 $EGREP "memchr" >/dev/null 2>&1; then :
4936 else
4937 ac_cv_header_stdc=no
4939 rm -f conftest*
4943 if test $ac_cv_header_stdc = yes; then
4944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4946 /* end confdefs.h. */
4947 #include <stdlib.h>
4949 _ACEOF
4950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4951 $EGREP "free" >/dev/null 2>&1; then :
4953 else
4954 ac_cv_header_stdc=no
4956 rm -f conftest*
4960 if test $ac_cv_header_stdc = yes; then
4961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4962 if test "$cross_compiling" = yes; then :
4964 else
4965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4966 /* end confdefs.h. */
4967 #include <ctype.h>
4968 #include <stdlib.h>
4969 #if ((' ' & 0x0FF) == 0x020)
4970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4972 #else
4973 # define ISLOWER(c) \
4974 (('a' <= (c) && (c) <= 'i') \
4975 || ('j' <= (c) && (c) <= 'r') \
4976 || ('s' <= (c) && (c) <= 'z'))
4977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4978 #endif
4980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4982 main ()
4984 int i;
4985 for (i = 0; i < 256; i++)
4986 if (XOR (islower (i), ISLOWER (i))
4987 || toupper (i) != TOUPPER (i))
4988 return 2;
4989 return 0;
4991 _ACEOF
4992 if ac_fn_c_try_run "$LINENO"; then :
4994 else
4995 ac_cv_header_stdc=no
4997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4998 conftest.$ac_objext conftest.beam conftest.$ac_ext
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5004 $as_echo "$ac_cv_header_stdc" >&6; }
5005 if test $ac_cv_header_stdc = yes; then
5007 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5013 inttypes.h stdint.h unistd.h
5014 do :
5015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5016 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5019 cat >>confdefs.h <<_ACEOF
5020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5021 _ACEOF
5025 done
5028 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5029 if test "x$ac_cv_type_size_t" = xyes; then :
5031 else
5033 cat >>confdefs.h <<_ACEOF
5034 #define size_t unsigned int
5035 _ACEOF
5039 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5040 # for constant arguments. Useless!
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
5042 $as_echo_n "checking for working alloca.h... " >&6; }
5043 if ${ac_cv_working_alloca_h+:} false; then :
5044 $as_echo_n "(cached) " >&6
5045 else
5046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5047 /* end confdefs.h. */
5048 #include <alloca.h>
5050 main ()
5052 char *p = (char *) alloca (2 * sizeof (int));
5053 if (p) return 0;
5055 return 0;
5057 _ACEOF
5058 if ac_fn_c_try_link "$LINENO"; then :
5059 ac_cv_working_alloca_h=yes
5060 else
5061 ac_cv_working_alloca_h=no
5063 rm -f core conftest.err conftest.$ac_objext \
5064 conftest$ac_exeext conftest.$ac_ext
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
5067 $as_echo "$ac_cv_working_alloca_h" >&6; }
5068 if test $ac_cv_working_alloca_h = yes; then
5070 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
5075 $as_echo_n "checking for alloca... " >&6; }
5076 if ${ac_cv_func_alloca_works+:} false; then :
5077 $as_echo_n "(cached) " >&6
5078 else
5079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5080 /* end confdefs.h. */
5081 #ifdef __GNUC__
5082 # define alloca __builtin_alloca
5083 #else
5084 # ifdef _MSC_VER
5085 # include <malloc.h>
5086 # define alloca _alloca
5087 # else
5088 # ifdef HAVE_ALLOCA_H
5089 # include <alloca.h>
5090 # else
5091 # ifdef _AIX
5092 #pragma alloca
5093 # else
5094 # ifndef alloca /* predefined by HP cc +Olibcalls */
5095 void *alloca (size_t);
5096 # endif
5097 # endif
5098 # endif
5099 # endif
5100 #endif
5103 main ()
5105 char *p = (char *) alloca (1);
5106 if (p) return 0;
5108 return 0;
5110 _ACEOF
5111 if ac_fn_c_try_link "$LINENO"; then :
5112 ac_cv_func_alloca_works=yes
5113 else
5114 ac_cv_func_alloca_works=no
5116 rm -f core conftest.err conftest.$ac_objext \
5117 conftest$ac_exeext conftest.$ac_ext
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
5120 $as_echo "$ac_cv_func_alloca_works" >&6; }
5122 if test $ac_cv_func_alloca_works = yes; then
5124 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
5126 else
5127 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5128 # that cause trouble. Some versions do not even contain alloca or
5129 # contain a buggy version. If you still want to use their alloca,
5130 # use ar to extract alloca.o from them instead of compiling alloca.c.
5132 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
5134 $as_echo "#define C_ALLOCA 1" >>confdefs.h
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
5138 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
5139 if ${ac_cv_os_cray+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #if defined CRAY && ! defined CRAY2
5145 webecray
5146 #else
5147 wenotbecray
5148 #endif
5150 _ACEOF
5151 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5152 $EGREP "webecray" >/dev/null 2>&1; then :
5153 ac_cv_os_cray=yes
5154 else
5155 ac_cv_os_cray=no
5157 rm -f conftest*
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
5161 $as_echo "$ac_cv_os_cray" >&6; }
5162 if test $ac_cv_os_cray = yes; then
5163 for ac_func in _getb67 GETB67 getb67; do
5164 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5165 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5166 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5168 cat >>confdefs.h <<_ACEOF
5169 #define CRAY_STACKSEG_END $ac_func
5170 _ACEOF
5172 break
5175 done
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
5179 $as_echo_n "checking stack direction for C alloca... " >&6; }
5180 if ${ac_cv_c_stack_direction+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 if test "$cross_compiling" = yes; then :
5184 ac_cv_c_stack_direction=0
5185 else
5186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188 $ac_includes_default
5190 find_stack_direction (int *addr, int depth)
5192 int dir, dummy = 0;
5193 if (! addr)
5194 addr = &dummy;
5195 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
5196 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
5197 return dir + dummy;
5201 main (int argc, char **argv)
5203 return find_stack_direction (0, argc + !argv + 20) < 0;
5205 _ACEOF
5206 if ac_fn_c_try_run "$LINENO"; then :
5207 ac_cv_c_stack_direction=1
5208 else
5209 ac_cv_c_stack_direction=-1
5211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5212 conftest.$ac_objext conftest.beam conftest.$ac_ext
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
5217 $as_echo "$ac_cv_c_stack_direction" >&6; }
5218 cat >>confdefs.h <<_ACEOF
5219 #define STACK_DIRECTION $ac_cv_c_stack_direction
5220 _ACEOF
5225 for ac_header in mm_malloc.h
5226 do :
5227 ac_fn_c_check_header_mongrel "$LINENO" "mm_malloc.h" "ac_cv_header_mm_malloc_h" "$ac_includes_default"
5228 if test "x$ac_cv_header_mm_malloc_h" = xyes; then :
5229 cat >>confdefs.h <<_ACEOF
5230 #define HAVE_MM_MALLOC_H 1
5231 _ACEOF
5233 else
5234 as_fn_error $? "\"Couldn't find mm_malloc.h\"" "$LINENO" 5
5237 done
5239 for ac_func in __secure_getenv secure_getenv
5240 do :
5241 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5242 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
5243 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5244 cat >>confdefs.h <<_ACEOF
5245 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5246 _ACEOF
5249 done
5252 # Get target configure.
5253 . ${srcdir}/configure.tgt
5254 if test -n "$UNSUPPORTED"; then
5255 as_fn_error $? "Configuration ${target} is unsupported" "$LINENO" 5
5258 if test "${multilib}" = "yes"; then
5259 multilib_arg="--enable-multilib"
5260 else
5261 multilib_arg=
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
5265 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
5266 # Check whether --enable-version-specific-runtime-libs was given.
5267 if test "${enable_version_specific_runtime_libs+set}" = set; then :
5268 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5269 yes) enable_version_specific_runtime_libs=yes ;;
5270 no) enable_version_specific_runtime_libs=no ;;
5271 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
5272 esac
5273 else
5274 enable_version_specific_runtime_libs=no
5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
5278 $as_echo "$enable_version_specific_runtime_libs" >&6; }
5280 # Make sure liboffloadmic is enabled
5281 case "$enable_liboffloadmic" in
5282 host | target)
5285 as_fn_error $? "Liboffloadmic is disabled" "$LINENO" 5 ;;
5286 esac
5287 if test x"$enable_liboffloadmic" = xhost; then
5288 LIBOFFLOADMIC_HOST_TRUE=
5289 LIBOFFLOADMIC_HOST_FALSE='#'
5290 else
5291 LIBOFFLOADMIC_HOST_TRUE='#'
5292 LIBOFFLOADMIC_HOST_FALSE=
5296 # Calculate toolexeclibdir.
5297 # Also toolexecdir, though it's only used in toolexeclibdir.
5298 case ${enable_version_specific_runtime_libs} in
5299 yes)
5300 # Need the gcc compiler version to know where to install libraries
5301 # and header files if --enable-version-specific-runtime-libs option
5302 # is selected.
5303 toolexecdir='$(libdir)/gcc/$(target_alias)'
5304 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5307 if test -n "$with_cross_host" &&
5308 test x"$with_cross_host" != x"no"; then
5309 # Install a library built with a cross compiler in tooldir, not libdir.
5310 toolexecdir='$(exec_prefix)/$(target_alias)'
5311 toolexeclibdir='$(toolexecdir)/lib'
5312 else
5313 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
5314 toolexeclibdir='$(libdir)'
5316 multi_os_directory=`$CC -print-multi-os-directory`
5317 case $multi_os_directory in
5318 .) ;; # Avoid trailing /.
5319 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5320 esac
5322 esac
5324 enable_dlopen=yes
5328 case `pwd` in
5329 *\ * | *\ *)
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5331 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5332 esac
5336 macro_version='2.2.7a'
5337 macro_revision='1.3134'
5351 ltmain="$ac_aux_dir/ltmain.sh"
5353 # Backslashify metacharacters that are still active within
5354 # double-quoted strings.
5355 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5357 # Same as above, but do not quote variable references.
5358 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5360 # Sed substitution to delay expansion of an escaped shell variable in a
5361 # double_quote_subst'ed string.
5362 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5364 # Sed substitution to delay expansion of an escaped single quote.
5365 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5367 # Sed substitution to avoid accidental globbing in evaled expressions
5368 no_glob_subst='s/\*/\\\*/g'
5370 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5371 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5372 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5375 $as_echo_n "checking how to print strings... " >&6; }
5376 # Test print first, because it will be a builtin if present.
5377 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5378 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5379 ECHO='print -r --'
5380 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5381 ECHO='printf %s\n'
5382 else
5383 # Use this function as a fallback that always works.
5384 func_fallback_echo ()
5386 eval 'cat <<_LTECHO_EOF
5388 _LTECHO_EOF'
5390 ECHO='func_fallback_echo'
5393 # func_echo_all arg...
5394 # Invoke $ECHO with all args, space-separated.
5395 func_echo_all ()
5397 $ECHO ""
5400 case "$ECHO" in
5401 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5402 $as_echo "printf" >&6; } ;;
5403 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5404 $as_echo "print -r" >&6; } ;;
5405 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5406 $as_echo "cat" >&6; } ;;
5407 esac
5422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5423 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5424 if ${ac_cv_path_SED+:} false; then :
5425 $as_echo_n "(cached) " >&6
5426 else
5427 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5428 for ac_i in 1 2 3 4 5 6 7; do
5429 ac_script="$ac_script$as_nl$ac_script"
5430 done
5431 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5432 { ac_script=; unset ac_script;}
5433 if test -z "$SED"; then
5434 ac_path_SED_found=false
5435 # Loop through the user's path and test for each of PROGNAME-LIST
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437 for as_dir in $PATH
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
5441 for ac_prog in sed gsed; do
5442 for ac_exec_ext in '' $ac_executable_extensions; do
5443 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5444 as_fn_executable_p "$ac_path_SED" || continue
5445 # Check for GNU ac_path_SED and select it if it is found.
5446 # Check for GNU $ac_path_SED
5447 case `"$ac_path_SED" --version 2>&1` in
5448 *GNU*)
5449 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5451 ac_count=0
5452 $as_echo_n 0123456789 >"conftest.in"
5453 while :
5455 cat "conftest.in" "conftest.in" >"conftest.tmp"
5456 mv "conftest.tmp" "conftest.in"
5457 cp "conftest.in" "conftest.nl"
5458 $as_echo '' >> "conftest.nl"
5459 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5460 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5461 as_fn_arith $ac_count + 1 && ac_count=$as_val
5462 if test $ac_count -gt ${ac_path_SED_max-0}; then
5463 # Best one so far, save it but keep looking for a better one
5464 ac_cv_path_SED="$ac_path_SED"
5465 ac_path_SED_max=$ac_count
5467 # 10*(2^10) chars as input seems more than enough
5468 test $ac_count -gt 10 && break
5469 done
5470 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5471 esac
5473 $ac_path_SED_found && break 3
5474 done
5475 done
5476 done
5477 IFS=$as_save_IFS
5478 if test -z "$ac_cv_path_SED"; then
5479 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5481 else
5482 ac_cv_path_SED=$SED
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5487 $as_echo "$ac_cv_path_SED" >&6; }
5488 SED="$ac_cv_path_SED"
5489 rm -f conftest.sed
5491 test -z "$SED" && SED=sed
5492 Xsed="$SED -e 1s/^X//"
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5505 $as_echo_n "checking for fgrep... " >&6; }
5506 if ${ac_cv_path_FGREP+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5510 then ac_cv_path_FGREP="$GREP -F"
5511 else
5512 if test -z "$FGREP"; then
5513 ac_path_FGREP_found=false
5514 # Loop through the user's path and test for each of PROGNAME-LIST
5515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5518 IFS=$as_save_IFS
5519 test -z "$as_dir" && as_dir=.
5520 for ac_prog in fgrep; do
5521 for ac_exec_ext in '' $ac_executable_extensions; do
5522 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5523 as_fn_executable_p "$ac_path_FGREP" || continue
5524 # Check for GNU ac_path_FGREP and select it if it is found.
5525 # Check for GNU $ac_path_FGREP
5526 case `"$ac_path_FGREP" --version 2>&1` in
5527 *GNU*)
5528 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5530 ac_count=0
5531 $as_echo_n 0123456789 >"conftest.in"
5532 while :
5534 cat "conftest.in" "conftest.in" >"conftest.tmp"
5535 mv "conftest.tmp" "conftest.in"
5536 cp "conftest.in" "conftest.nl"
5537 $as_echo 'FGREP' >> "conftest.nl"
5538 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5539 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5540 as_fn_arith $ac_count + 1 && ac_count=$as_val
5541 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5542 # Best one so far, save it but keep looking for a better one
5543 ac_cv_path_FGREP="$ac_path_FGREP"
5544 ac_path_FGREP_max=$ac_count
5546 # 10*(2^10) chars as input seems more than enough
5547 test $ac_count -gt 10 && break
5548 done
5549 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5550 esac
5552 $ac_path_FGREP_found && break 3
5553 done
5554 done
5555 done
5556 IFS=$as_save_IFS
5557 if test -z "$ac_cv_path_FGREP"; then
5558 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5560 else
5561 ac_cv_path_FGREP=$FGREP
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5567 $as_echo "$ac_cv_path_FGREP" >&6; }
5568 FGREP="$ac_cv_path_FGREP"
5571 test -z "$GREP" && GREP=grep
5591 # Check whether --with-gnu-ld was given.
5592 if test "${with_gnu_ld+set}" = set; then :
5593 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5594 else
5595 with_gnu_ld=no
5598 ac_prog=ld
5599 if test "$GCC" = yes; then
5600 # Check if gcc -print-prog-name=ld gives a path.
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5602 $as_echo_n "checking for ld used by $CC... " >&6; }
5603 case $host in
5604 *-*-mingw*)
5605 # gcc leaves a trailing carriage return which upsets mingw
5606 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5608 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5609 esac
5610 case $ac_prog in
5611 # Accept absolute paths.
5612 [\\/]* | ?:[\\/]*)
5613 re_direlt='/[^/][^/]*/\.\./'
5614 # Canonicalize the pathname of ld
5615 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5616 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5617 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5618 done
5619 test -z "$LD" && LD="$ac_prog"
5622 # If it fails, then pretend we aren't using GCC.
5623 ac_prog=ld
5626 # If it is relative, then search for the first ld in PATH.
5627 with_gnu_ld=unknown
5629 esac
5630 elif test "$with_gnu_ld" = yes; then
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5632 $as_echo_n "checking for GNU ld... " >&6; }
5633 else
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5635 $as_echo_n "checking for non-GNU ld... " >&6; }
5637 if ${lt_cv_path_LD+:} false; then :
5638 $as_echo_n "(cached) " >&6
5639 else
5640 if test -z "$LD"; then
5641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5642 for ac_dir in $PATH; do
5643 IFS="$lt_save_ifs"
5644 test -z "$ac_dir" && ac_dir=.
5645 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5646 lt_cv_path_LD="$ac_dir/$ac_prog"
5647 # Check to see if the program is GNU ld. I'd rather use --version,
5648 # but apparently some variants of GNU ld only accept -v.
5649 # Break only if it was the GNU/non-GNU ld that we prefer.
5650 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5651 *GNU* | *'with BFD'*)
5652 test "$with_gnu_ld" != no && break
5655 test "$with_gnu_ld" != yes && break
5657 esac
5659 done
5660 IFS="$lt_save_ifs"
5661 else
5662 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5666 LD="$lt_cv_path_LD"
5667 if test -n "$LD"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5669 $as_echo "$LD" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5674 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5676 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5677 if ${lt_cv_prog_gnu_ld+:} false; then :
5678 $as_echo_n "(cached) " >&6
5679 else
5680 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5681 case `$LD -v 2>&1 </dev/null` in
5682 *GNU* | *'with BFD'*)
5683 lt_cv_prog_gnu_ld=yes
5686 lt_cv_prog_gnu_ld=no
5688 esac
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5691 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5692 with_gnu_ld=$lt_cv_prog_gnu_ld
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5703 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5704 if ${lt_cv_path_NM+:} false; then :
5705 $as_echo_n "(cached) " >&6
5706 else
5707 if test -n "$NM"; then
5708 # Let the user override the test.
5709 lt_cv_path_NM="$NM"
5710 else
5711 lt_nm_to_check="${ac_tool_prefix}nm"
5712 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5713 lt_nm_to_check="$lt_nm_to_check nm"
5715 for lt_tmp_nm in $lt_nm_to_check; do
5716 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5717 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5718 IFS="$lt_save_ifs"
5719 test -z "$ac_dir" && ac_dir=.
5720 tmp_nm="$ac_dir/$lt_tmp_nm"
5721 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5722 # Check to see if the nm accepts a BSD-compat flag.
5723 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5724 # nm: unknown option "B" ignored
5725 # Tru64's nm complains that /dev/null is an invalid object file
5726 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5727 */dev/null* | *'Invalid file or object type'*)
5728 lt_cv_path_NM="$tmp_nm -B"
5729 break
5732 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5733 */dev/null*)
5734 lt_cv_path_NM="$tmp_nm -p"
5735 break
5738 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5739 continue # so that we can try to find one that supports BSD flags
5741 esac
5743 esac
5745 done
5746 IFS="$lt_save_ifs"
5747 done
5748 : ${lt_cv_path_NM=no}
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5752 $as_echo "$lt_cv_path_NM" >&6; }
5753 if test "$lt_cv_path_NM" != "no"; then
5754 NM="$lt_cv_path_NM"
5755 else
5756 # Didn't find any BSD compatible name lister, look for dumpbin.
5757 if test -n "$DUMPBIN"; then :
5758 # Let the user override the test.
5759 else
5760 if test -n "$ac_tool_prefix"; then
5761 for ac_prog in dumpbin "link -dump"
5763 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5764 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5766 $as_echo_n "checking for $ac_word... " >&6; }
5767 if ${ac_cv_prog_DUMPBIN+:} false; then :
5768 $as_echo_n "(cached) " >&6
5769 else
5770 if test -n "$DUMPBIN"; then
5771 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5772 else
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 for as_dir in $PATH
5776 IFS=$as_save_IFS
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5780 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5782 break 2
5784 done
5785 done
5786 IFS=$as_save_IFS
5790 DUMPBIN=$ac_cv_prog_DUMPBIN
5791 if test -n "$DUMPBIN"; then
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5793 $as_echo "$DUMPBIN" >&6; }
5794 else
5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796 $as_echo "no" >&6; }
5800 test -n "$DUMPBIN" && break
5801 done
5803 if test -z "$DUMPBIN"; then
5804 ac_ct_DUMPBIN=$DUMPBIN
5805 for ac_prog in dumpbin "link -dump"
5807 # Extract the first word of "$ac_prog", so it can be a program name with args.
5808 set dummy $ac_prog; ac_word=$2
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5810 $as_echo_n "checking for $ac_word... " >&6; }
5811 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5812 $as_echo_n "(cached) " >&6
5813 else
5814 if test -n "$ac_ct_DUMPBIN"; then
5815 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5816 else
5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 for ac_exec_ext in '' $ac_executable_extensions; do
5823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5824 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5826 break 2
5828 done
5829 done
5830 IFS=$as_save_IFS
5834 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5835 if test -n "$ac_ct_DUMPBIN"; then
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5837 $as_echo "$ac_ct_DUMPBIN" >&6; }
5838 else
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5840 $as_echo "no" >&6; }
5844 test -n "$ac_ct_DUMPBIN" && break
5845 done
5847 if test "x$ac_ct_DUMPBIN" = x; then
5848 DUMPBIN=":"
5849 else
5850 case $cross_compiling:$ac_tool_warned in
5851 yes:)
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5853 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5854 ac_tool_warned=yes ;;
5855 esac
5856 DUMPBIN=$ac_ct_DUMPBIN
5860 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5861 *COFF*)
5862 DUMPBIN="$DUMPBIN -symbols"
5865 DUMPBIN=:
5867 esac
5870 if test "$DUMPBIN" != ":"; then
5871 NM="$DUMPBIN"
5874 test -z "$NM" && NM=nm
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5882 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5883 if ${lt_cv_nm_interface+:} false; then :
5884 $as_echo_n "(cached) " >&6
5885 else
5886 lt_cv_nm_interface="BSD nm"
5887 echo "int some_variable = 0;" > conftest.$ac_ext
5888 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5889 (eval "$ac_compile" 2>conftest.err)
5890 cat conftest.err >&5
5891 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5892 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5893 cat conftest.err >&5
5894 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5895 cat conftest.out >&5
5896 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5897 lt_cv_nm_interface="MS dumpbin"
5899 rm -f conftest*
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5902 $as_echo "$lt_cv_nm_interface" >&6; }
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5905 $as_echo_n "checking whether ln -s works... " >&6; }
5906 LN_S=$as_ln_s
5907 if test "$LN_S" = "ln -s"; then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5909 $as_echo "yes" >&6; }
5910 else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5912 $as_echo "no, using $LN_S" >&6; }
5915 # find the maximum length of command line arguments
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5917 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5918 if ${lt_cv_sys_max_cmd_len+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5922 teststring="ABCD"
5924 case $build_os in
5925 msdosdjgpp*)
5926 # On DJGPP, this test can blow up pretty badly due to problems in libc
5927 # (any single argument exceeding 2000 bytes causes a buffer overrun
5928 # during glob expansion). Even if it were fixed, the result of this
5929 # check would be larger than it should be.
5930 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5933 gnu*)
5934 # Under GNU Hurd, this test is not required because there is
5935 # no limit to the length of command line arguments.
5936 # Libtool will interpret -1 as no limit whatsoever
5937 lt_cv_sys_max_cmd_len=-1;
5940 cygwin* | mingw* | cegcc*)
5941 # On Win9x/ME, this test blows up -- it succeeds, but takes
5942 # about 5 minutes as the teststring grows exponentially.
5943 # Worse, since 9x/ME are not pre-emptively multitasking,
5944 # you end up with a "frozen" computer, even though with patience
5945 # the test eventually succeeds (with a max line length of 256k).
5946 # Instead, let's just punt: use the minimum linelength reported by
5947 # all of the supported platforms: 8192 (on NT/2K/XP).
5948 lt_cv_sys_max_cmd_len=8192;
5951 mint*)
5952 # On MiNT this can take a long time and run out of memory.
5953 lt_cv_sys_max_cmd_len=8192;
5956 amigaos*)
5957 # On AmigaOS with pdksh, this test takes hours, literally.
5958 # So we just punt and use a minimum line length of 8192.
5959 lt_cv_sys_max_cmd_len=8192;
5962 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5963 # This has been around since 386BSD, at least. Likely further.
5964 if test -x /sbin/sysctl; then
5965 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5966 elif test -x /usr/sbin/sysctl; then
5967 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5968 else
5969 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5971 # And add a safety zone
5972 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5973 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5976 interix*)
5977 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5978 lt_cv_sys_max_cmd_len=196608
5981 osf*)
5982 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5983 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5984 # nice to cause kernel panics so lets avoid the loop below.
5985 # First set a reasonable default.
5986 lt_cv_sys_max_cmd_len=16384
5988 if test -x /sbin/sysconfig; then
5989 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5990 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5991 esac
5994 sco3.2v5*)
5995 lt_cv_sys_max_cmd_len=102400
5997 sysv5* | sco5v6* | sysv4.2uw2*)
5998 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5999 if test -n "$kargmax"; then
6000 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6001 else
6002 lt_cv_sys_max_cmd_len=32768
6006 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6007 if test -n "$lt_cv_sys_max_cmd_len"; then
6008 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6010 else
6011 # Make teststring a little bigger before we do anything with it.
6012 # a 1K string should be a reasonable start.
6013 for i in 1 2 3 4 5 6 7 8 ; do
6014 teststring=$teststring$teststring
6015 done
6016 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6017 # If test is not a shell built-in, we'll probably end up computing a
6018 # maximum length that is only half of the actual maximum length, but
6019 # we can't tell.
6020 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6021 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6022 test $i != 17 # 1/2 MB should be enough
6024 i=`expr $i + 1`
6025 teststring=$teststring$teststring
6026 done
6027 # Only check the string length outside the loop.
6028 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6029 teststring=
6030 # Add a significant safety factor because C++ compilers can tack on
6031 # massive amounts of additional arguments before passing them to the
6032 # linker. It appears as though 1/2 is a usable value.
6033 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6036 esac
6040 if test -n $lt_cv_sys_max_cmd_len ; then
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6042 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6043 else
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6045 $as_echo "none" >&6; }
6047 max_cmd_len=$lt_cv_sys_max_cmd_len
6054 : ${CP="cp -f"}
6055 : ${MV="mv -f"}
6056 : ${RM="rm -f"}
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6059 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6060 # Try some XSI features
6061 xsi_shell=no
6062 ( _lt_dummy="a/b/c"
6063 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6064 = c,a/b,, \
6065 && eval 'test $(( 1 + 1 )) -eq 2 \
6066 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6067 && xsi_shell=yes
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6069 $as_echo "$xsi_shell" >&6; }
6072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6073 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6074 lt_shell_append=no
6075 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6076 >/dev/null 2>&1 \
6077 && lt_shell_append=yes
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6079 $as_echo "$lt_shell_append" >&6; }
6082 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6083 lt_unset=unset
6084 else
6085 lt_unset=false
6092 # test EBCDIC or ASCII
6093 case `echo X|tr X '\101'` in
6094 A) # ASCII based system
6095 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6096 lt_SP2NL='tr \040 \012'
6097 lt_NL2SP='tr \015\012 \040\040'
6099 *) # EBCDIC based system
6100 lt_SP2NL='tr \100 \n'
6101 lt_NL2SP='tr \r\n \100\100'
6103 esac
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6114 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6115 if ${lt_cv_ld_reload_flag+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 lt_cv_ld_reload_flag='-r'
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6121 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6122 reload_flag=$lt_cv_ld_reload_flag
6123 case $reload_flag in
6124 "" | " "*) ;;
6125 *) reload_flag=" $reload_flag" ;;
6126 esac
6127 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6128 case $host_os in
6129 darwin*)
6130 if test "$GCC" = yes; then
6131 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6132 else
6133 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6136 esac
6146 if test -n "$ac_tool_prefix"; then
6147 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6148 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6150 $as_echo_n "checking for $ac_word... " >&6; }
6151 if ${ac_cv_prog_OBJDUMP+:} false; then :
6152 $as_echo_n "(cached) " >&6
6153 else
6154 if test -n "$OBJDUMP"; then
6155 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6156 else
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH
6160 IFS=$as_save_IFS
6161 test -z "$as_dir" && as_dir=.
6162 for ac_exec_ext in '' $ac_executable_extensions; do
6163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6164 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6166 break 2
6168 done
6169 done
6170 IFS=$as_save_IFS
6174 OBJDUMP=$ac_cv_prog_OBJDUMP
6175 if test -n "$OBJDUMP"; then
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6177 $as_echo "$OBJDUMP" >&6; }
6178 else
6179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6180 $as_echo "no" >&6; }
6185 if test -z "$ac_cv_prog_OBJDUMP"; then
6186 ac_ct_OBJDUMP=$OBJDUMP
6187 # Extract the first word of "objdump", so it can be a program name with args.
6188 set dummy objdump; ac_word=$2
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6190 $as_echo_n "checking for $ac_word... " >&6; }
6191 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6192 $as_echo_n "(cached) " >&6
6193 else
6194 if test -n "$ac_ct_OBJDUMP"; then
6195 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6196 else
6197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6198 for as_dir in $PATH
6200 IFS=$as_save_IFS
6201 test -z "$as_dir" && as_dir=.
6202 for ac_exec_ext in '' $ac_executable_extensions; do
6203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6204 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206 break 2
6208 done
6209 done
6210 IFS=$as_save_IFS
6214 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6215 if test -n "$ac_ct_OBJDUMP"; then
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6217 $as_echo "$ac_ct_OBJDUMP" >&6; }
6218 else
6219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6220 $as_echo "no" >&6; }
6223 if test "x$ac_ct_OBJDUMP" = x; then
6224 OBJDUMP="false"
6225 else
6226 case $cross_compiling:$ac_tool_warned in
6227 yes:)
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6230 ac_tool_warned=yes ;;
6231 esac
6232 OBJDUMP=$ac_ct_OBJDUMP
6234 else
6235 OBJDUMP="$ac_cv_prog_OBJDUMP"
6238 test -z "$OBJDUMP" && OBJDUMP=objdump
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6249 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6250 if ${lt_cv_deplibs_check_method+:} false; then :
6251 $as_echo_n "(cached) " >&6
6252 else
6253 lt_cv_file_magic_cmd='$MAGIC_CMD'
6254 lt_cv_file_magic_test_file=
6255 lt_cv_deplibs_check_method='unknown'
6256 # Need to set the preceding variable on all platforms that support
6257 # interlibrary dependencies.
6258 # 'none' -- dependencies not supported.
6259 # `unknown' -- same as none, but documents that we really don't know.
6260 # 'pass_all' -- all dependencies passed with no checks.
6261 # 'test_compile' -- check by making test program.
6262 # 'file_magic [[regex]]' -- check by looking for files in library path
6263 # which responds to the $file_magic_cmd with a given extended regex.
6264 # If you have `file' or equivalent on your system and you're not sure
6265 # whether `pass_all' will *always* work, you probably want this one.
6267 case $host_os in
6268 aix[4-9]*)
6269 lt_cv_deplibs_check_method=pass_all
6272 beos*)
6273 lt_cv_deplibs_check_method=pass_all
6276 bsdi[45]*)
6277 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6278 lt_cv_file_magic_cmd='/usr/bin/file -L'
6279 lt_cv_file_magic_test_file=/shlib/libc.so
6282 cygwin*)
6283 # func_win32_libid is a shell function defined in ltmain.sh
6284 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6285 lt_cv_file_magic_cmd='func_win32_libid'
6288 mingw* | pw32*)
6289 # Base MSYS/MinGW do not provide the 'file' command needed by
6290 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6291 # unless we find 'file', for example because we are cross-compiling.
6292 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6293 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6294 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6295 lt_cv_file_magic_cmd='func_win32_libid'
6296 else
6297 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6298 lt_cv_file_magic_cmd='$OBJDUMP -f'
6302 cegcc*)
6303 # use the weaker test based on 'objdump'. See mingw*.
6304 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6305 lt_cv_file_magic_cmd='$OBJDUMP -f'
6308 darwin* | rhapsody*)
6309 lt_cv_deplibs_check_method=pass_all
6312 freebsd* | dragonfly*)
6313 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6314 case $host_cpu in
6315 i*86 )
6316 # Not sure whether the presence of OpenBSD here was a mistake.
6317 # Let's accept both of them until this is cleared up.
6318 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6319 lt_cv_file_magic_cmd=/usr/bin/file
6320 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6322 esac
6323 else
6324 lt_cv_deplibs_check_method=pass_all
6328 gnu*)
6329 lt_cv_deplibs_check_method=pass_all
6332 haiku*)
6333 lt_cv_deplibs_check_method=pass_all
6336 hpux10.20* | hpux11*)
6337 lt_cv_file_magic_cmd=/usr/bin/file
6338 case $host_cpu in
6339 ia64*)
6340 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6341 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6343 hppa*64*)
6344 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]'
6345 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6348 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6349 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6351 esac
6354 interix[3-9]*)
6355 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6356 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6359 irix5* | irix6* | nonstopux*)
6360 case $LD in
6361 *-32|*"-32 ") libmagic=32-bit;;
6362 *-n32|*"-n32 ") libmagic=N32;;
6363 *-64|*"-64 ") libmagic=64-bit;;
6364 *) libmagic=never-match;;
6365 esac
6366 lt_cv_deplibs_check_method=pass_all
6369 # This must be Linux ELF.
6370 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6371 lt_cv_deplibs_check_method=pass_all
6374 netbsd*)
6375 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6377 else
6378 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6382 newos6*)
6383 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6384 lt_cv_file_magic_cmd=/usr/bin/file
6385 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6388 *nto* | *qnx*)
6389 lt_cv_deplibs_check_method=pass_all
6392 openbsd*)
6393 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6394 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6395 else
6396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6400 osf3* | osf4* | osf5*)
6401 lt_cv_deplibs_check_method=pass_all
6404 rdos*)
6405 lt_cv_deplibs_check_method=pass_all
6408 solaris*)
6409 lt_cv_deplibs_check_method=pass_all
6412 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6413 lt_cv_deplibs_check_method=pass_all
6416 sysv4 | sysv4.3*)
6417 case $host_vendor in
6418 motorola)
6419 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]'
6420 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6422 ncr)
6423 lt_cv_deplibs_check_method=pass_all
6425 sequent)
6426 lt_cv_file_magic_cmd='/bin/file'
6427 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6429 sni)
6430 lt_cv_file_magic_cmd='/bin/file'
6431 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6432 lt_cv_file_magic_test_file=/lib/libc.so
6434 siemens)
6435 lt_cv_deplibs_check_method=pass_all
6438 lt_cv_deplibs_check_method=pass_all
6440 esac
6443 tpf*)
6444 lt_cv_deplibs_check_method=pass_all
6446 esac
6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6450 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6451 file_magic_cmd=$lt_cv_file_magic_cmd
6452 deplibs_check_method=$lt_cv_deplibs_check_method
6453 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6466 if test -n "$ac_tool_prefix"; then
6467 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6468 set dummy ${ac_tool_prefix}ar; ac_word=$2
6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6470 $as_echo_n "checking for $ac_word... " >&6; }
6471 if ${ac_cv_prog_AR+:} false; then :
6472 $as_echo_n "(cached) " >&6
6473 else
6474 if test -n "$AR"; then
6475 ac_cv_prog_AR="$AR" # Let the user override the test.
6476 else
6477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6478 for as_dir in $PATH
6480 IFS=$as_save_IFS
6481 test -z "$as_dir" && as_dir=.
6482 for ac_exec_ext in '' $ac_executable_extensions; do
6483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6484 ac_cv_prog_AR="${ac_tool_prefix}ar"
6485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 break 2
6488 done
6489 done
6490 IFS=$as_save_IFS
6494 AR=$ac_cv_prog_AR
6495 if test -n "$AR"; then
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6497 $as_echo "$AR" >&6; }
6498 else
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6500 $as_echo "no" >&6; }
6505 if test -z "$ac_cv_prog_AR"; then
6506 ac_ct_AR=$AR
6507 # Extract the first word of "ar", so it can be a program name with args.
6508 set dummy ar; ac_word=$2
6509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6510 $as_echo_n "checking for $ac_word... " >&6; }
6511 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6512 $as_echo_n "(cached) " >&6
6513 else
6514 if test -n "$ac_ct_AR"; then
6515 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6516 else
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH
6520 IFS=$as_save_IFS
6521 test -z "$as_dir" && as_dir=.
6522 for ac_exec_ext in '' $ac_executable_extensions; do
6523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6524 ac_cv_prog_ac_ct_AR="ar"
6525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6526 break 2
6528 done
6529 done
6530 IFS=$as_save_IFS
6534 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6535 if test -n "$ac_ct_AR"; then
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6537 $as_echo "$ac_ct_AR" >&6; }
6538 else
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6540 $as_echo "no" >&6; }
6543 if test "x$ac_ct_AR" = x; then
6544 AR="false"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552 AR=$ac_ct_AR
6554 else
6555 AR="$ac_cv_prog_AR"
6558 test -z "$AR" && AR=ar
6559 test -z "$AR_FLAGS" && AR_FLAGS=cru
6571 if test -n "$ac_tool_prefix"; then
6572 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6573 set dummy ${ac_tool_prefix}strip; ac_word=$2
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 $as_echo_n "checking for $ac_word... " >&6; }
6576 if ${ac_cv_prog_STRIP+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578 else
6579 if test -n "$STRIP"; then
6580 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6581 else
6582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6583 for as_dir in $PATH
6585 IFS=$as_save_IFS
6586 test -z "$as_dir" && as_dir=.
6587 for ac_exec_ext in '' $ac_executable_extensions; do
6588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6589 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6591 break 2
6593 done
6594 done
6595 IFS=$as_save_IFS
6599 STRIP=$ac_cv_prog_STRIP
6600 if test -n "$STRIP"; then
6601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6602 $as_echo "$STRIP" >&6; }
6603 else
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6605 $as_echo "no" >&6; }
6610 if test -z "$ac_cv_prog_STRIP"; then
6611 ac_ct_STRIP=$STRIP
6612 # Extract the first word of "strip", so it can be a program name with args.
6613 set dummy strip; ac_word=$2
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6615 $as_echo_n "checking for $ac_word... " >&6; }
6616 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6617 $as_echo_n "(cached) " >&6
6618 else
6619 if test -n "$ac_ct_STRIP"; then
6620 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6621 else
6622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6623 for as_dir in $PATH
6625 IFS=$as_save_IFS
6626 test -z "$as_dir" && as_dir=.
6627 for ac_exec_ext in '' $ac_executable_extensions; do
6628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6629 ac_cv_prog_ac_ct_STRIP="strip"
6630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6631 break 2
6633 done
6634 done
6635 IFS=$as_save_IFS
6639 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6640 if test -n "$ac_ct_STRIP"; then
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6642 $as_echo "$ac_ct_STRIP" >&6; }
6643 else
6644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6645 $as_echo "no" >&6; }
6648 if test "x$ac_ct_STRIP" = x; then
6649 STRIP=":"
6650 else
6651 case $cross_compiling:$ac_tool_warned in
6652 yes:)
6653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6655 ac_tool_warned=yes ;;
6656 esac
6657 STRIP=$ac_ct_STRIP
6659 else
6660 STRIP="$ac_cv_prog_STRIP"
6663 test -z "$STRIP" && STRIP=:
6670 if test -n "$ac_tool_prefix"; then
6671 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6672 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6674 $as_echo_n "checking for $ac_word... " >&6; }
6675 if ${ac_cv_prog_RANLIB+:} false; then :
6676 $as_echo_n "(cached) " >&6
6677 else
6678 if test -n "$RANLIB"; then
6679 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6680 else
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6682 for as_dir in $PATH
6684 IFS=$as_save_IFS
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6688 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6690 break 2
6692 done
6693 done
6694 IFS=$as_save_IFS
6698 RANLIB=$ac_cv_prog_RANLIB
6699 if test -n "$RANLIB"; then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6701 $as_echo "$RANLIB" >&6; }
6702 else
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6704 $as_echo "no" >&6; }
6709 if test -z "$ac_cv_prog_RANLIB"; then
6710 ac_ct_RANLIB=$RANLIB
6711 # Extract the first word of "ranlib", so it can be a program name with args.
6712 set dummy ranlib; ac_word=$2
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6714 $as_echo_n "checking for $ac_word... " >&6; }
6715 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6716 $as_echo_n "(cached) " >&6
6717 else
6718 if test -n "$ac_ct_RANLIB"; then
6719 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6720 else
6721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6722 for as_dir in $PATH
6724 IFS=$as_save_IFS
6725 test -z "$as_dir" && as_dir=.
6726 for ac_exec_ext in '' $ac_executable_extensions; do
6727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6728 ac_cv_prog_ac_ct_RANLIB="ranlib"
6729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6730 break 2
6732 done
6733 done
6734 IFS=$as_save_IFS
6738 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6739 if test -n "$ac_ct_RANLIB"; then
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6741 $as_echo "$ac_ct_RANLIB" >&6; }
6742 else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6744 $as_echo "no" >&6; }
6747 if test "x$ac_ct_RANLIB" = x; then
6748 RANLIB=":"
6749 else
6750 case $cross_compiling:$ac_tool_warned in
6751 yes:)
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6754 ac_tool_warned=yes ;;
6755 esac
6756 RANLIB=$ac_ct_RANLIB
6758 else
6759 RANLIB="$ac_cv_prog_RANLIB"
6762 test -z "$RANLIB" && RANLIB=:
6769 # Determine commands to create old-style static archives.
6770 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6771 old_postinstall_cmds='chmod 644 $oldlib'
6772 old_postuninstall_cmds=
6774 if test -n "$RANLIB"; then
6775 case $host_os in
6776 openbsd*)
6777 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6780 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6782 esac
6783 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6786 case $host_os in
6787 darwin*)
6788 lock_old_archive_extraction=yes ;;
6790 lock_old_archive_extraction=no ;;
6791 esac
6831 # If no C compiler was specified, use CC.
6832 LTCC=${LTCC-"$CC"}
6834 # If no C compiler flags were specified, use CFLAGS.
6835 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6837 # Allow CC to be a program name with arguments.
6838 compiler=$CC
6841 # Check for command to grab the raw symbol name followed by C symbol from nm.
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6843 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6844 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6845 $as_echo_n "(cached) " >&6
6846 else
6848 # These are sane defaults that work on at least a few old systems.
6849 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6851 # Character class describing NM global symbol codes.
6852 symcode='[BCDEGRST]'
6854 # Regexp to match symbols that can be accessed directly from C.
6855 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6857 # Define system-specific variables.
6858 case $host_os in
6859 aix*)
6860 symcode='[BCDT]'
6862 cygwin* | mingw* | pw32* | cegcc*)
6863 symcode='[ABCDGISTW]'
6865 hpux*)
6866 if test "$host_cpu" = ia64; then
6867 symcode='[ABCDEGRST]'
6870 irix* | nonstopux*)
6871 symcode='[BCDEGRST]'
6873 osf*)
6874 symcode='[BCDEGQRST]'
6876 solaris*)
6877 symcode='[BDRT]'
6879 sco3.2v5*)
6880 symcode='[DT]'
6882 sysv4.2uw2*)
6883 symcode='[DT]'
6885 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6886 symcode='[ABDT]'
6888 sysv4)
6889 symcode='[DFNSTU]'
6891 esac
6893 # If we're using GNU nm, then use its standard symbol codes.
6894 case `$NM -V 2>&1` in
6895 *GNU* | *'with BFD'*)
6896 symcode='[ABCDGIRSTW]' ;;
6897 esac
6899 # Transform an extracted symbol line into a proper C declaration.
6900 # Some systems (esp. on ia64) link data and code symbols differently,
6901 # so use this general approach.
6902 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6904 # Transform an extracted symbol line into symbol name and symbol address
6905 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6906 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'"
6908 # Handle CRLF in mingw tool chain
6909 opt_cr=
6910 case $build_os in
6911 mingw*)
6912 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6914 esac
6916 # Try without a prefix underscore, then with it.
6917 for ac_symprfx in "" "_"; do
6919 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6920 symxfrm="\\1 $ac_symprfx\\2 \\2"
6922 # Write the raw and C identifiers.
6923 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6924 # Fake it for dumpbin and say T for any non-static function
6925 # and D for any global variable.
6926 # Also find C++ and __fastcall symbols from MSVC++,
6927 # which start with @ or ?.
6928 lt_cv_sys_global_symbol_pipe="$AWK '"\
6929 " {last_section=section; section=\$ 3};"\
6930 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6931 " \$ 0!~/External *\|/{next};"\
6932 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6933 " {if(hide[section]) next};"\
6934 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6935 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6936 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6937 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6938 " ' prfx=^$ac_symprfx"
6939 else
6940 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6943 # Check to see that the pipe works correctly.
6944 pipe_works=no
6946 rm -f conftest*
6947 cat > conftest.$ac_ext <<_LT_EOF
6948 #ifdef __cplusplus
6949 extern "C" {
6950 #endif
6951 char nm_test_var;
6952 void nm_test_func(void);
6953 void nm_test_func(void){}
6954 #ifdef __cplusplus
6956 #endif
6957 int main(){nm_test_var='a';nm_test_func();return(0);}
6958 _LT_EOF
6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6961 (eval $ac_compile) 2>&5
6962 ac_status=$?
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }; then
6965 # Now try to grab the symbols.
6966 nlist=conftest.nm
6967 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6968 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6969 ac_status=$?
6970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6971 test $ac_status = 0; } && test -s "$nlist"; then
6972 # Try sorting and uniquifying the output.
6973 if sort "$nlist" | uniq > "$nlist"T; then
6974 mv -f "$nlist"T "$nlist"
6975 else
6976 rm -f "$nlist"T
6979 # Make sure that we snagged all the symbols we need.
6980 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6981 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6982 cat <<_LT_EOF > conftest.$ac_ext
6983 #ifdef __cplusplus
6984 extern "C" {
6985 #endif
6987 _LT_EOF
6988 # Now generate the symbol file.
6989 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6991 cat <<_LT_EOF >> conftest.$ac_ext
6993 /* The mapping between symbol names and symbols. */
6994 const struct {
6995 const char *name;
6996 void *address;
6998 lt__PROGRAM__LTX_preloaded_symbols[] =
7000 { "@PROGRAM@", (void *) 0 },
7001 _LT_EOF
7002 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7003 cat <<\_LT_EOF >> conftest.$ac_ext
7004 {0, (void *) 0}
7007 /* This works around a problem in FreeBSD linker */
7008 #ifdef FREEBSD_WORKAROUND
7009 static const void *lt_preloaded_setup() {
7010 return lt__PROGRAM__LTX_preloaded_symbols;
7012 #endif
7014 #ifdef __cplusplus
7016 #endif
7017 _LT_EOF
7018 # Now try linking the two files.
7019 mv conftest.$ac_objext conftstm.$ac_objext
7020 lt_save_LIBS="$LIBS"
7021 lt_save_CFLAGS="$CFLAGS"
7022 LIBS="conftstm.$ac_objext"
7023 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7025 (eval $ac_link) 2>&5
7026 ac_status=$?
7027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7028 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7029 pipe_works=yes
7031 LIBS="$lt_save_LIBS"
7032 CFLAGS="$lt_save_CFLAGS"
7033 else
7034 echo "cannot find nm_test_func in $nlist" >&5
7036 else
7037 echo "cannot find nm_test_var in $nlist" >&5
7039 else
7040 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7042 else
7043 echo "$progname: failed program was:" >&5
7044 cat conftest.$ac_ext >&5
7046 rm -rf conftest* conftst*
7048 # Do not use the global_symbol_pipe unless it works.
7049 if test "$pipe_works" = yes; then
7050 break
7051 else
7052 lt_cv_sys_global_symbol_pipe=
7054 done
7058 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7059 lt_cv_sys_global_symbol_to_cdecl=
7061 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7063 $as_echo "failed" >&6; }
7064 else
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7066 $as_echo "ok" >&6; }
7090 # Check whether --enable-libtool-lock was given.
7091 if test "${enable_libtool_lock+set}" = set; then :
7092 enableval=$enable_libtool_lock;
7095 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7097 # Some flags need to be propagated to the compiler or linker for good
7098 # libtool support.
7099 case $host in
7100 ia64-*-hpux*)
7101 # Find out which ABI we are using.
7102 echo 'int i;' > conftest.$ac_ext
7103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7104 (eval $ac_compile) 2>&5
7105 ac_status=$?
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }; then
7108 case `/usr/bin/file conftest.$ac_objext` in
7109 *ELF-32*)
7110 HPUX_IA64_MODE="32"
7112 *ELF-64*)
7113 HPUX_IA64_MODE="64"
7115 esac
7117 rm -rf conftest*
7119 *-*-irix6*)
7120 # Find out which ABI we are using.
7121 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7122 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7123 (eval $ac_compile) 2>&5
7124 ac_status=$?
7125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7126 test $ac_status = 0; }; then
7127 if test "$lt_cv_prog_gnu_ld" = yes; then
7128 case `/usr/bin/file conftest.$ac_objext` in
7129 *32-bit*)
7130 LD="${LD-ld} -melf32bsmip"
7132 *N32*)
7133 LD="${LD-ld} -melf32bmipn32"
7135 *64-bit*)
7136 LD="${LD-ld} -melf64bmip"
7138 esac
7139 else
7140 case `/usr/bin/file conftest.$ac_objext` in
7141 *32-bit*)
7142 LD="${LD-ld} -32"
7144 *N32*)
7145 LD="${LD-ld} -n32"
7147 *64-bit*)
7148 LD="${LD-ld} -64"
7150 esac
7153 rm -rf conftest*
7156 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7157 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7158 # Find out which ABI we are using.
7159 echo 'int i;' > conftest.$ac_ext
7160 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7161 (eval $ac_compile) 2>&5
7162 ac_status=$?
7163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7164 test $ac_status = 0; }; then
7165 case `/usr/bin/file conftest.o` in
7166 *32-bit*)
7167 case $host in
7168 x86_64-*kfreebsd*-gnu)
7169 LD="${LD-ld} -m elf_i386_fbsd"
7171 x86_64-*linux*)
7172 case `/usr/bin/file conftest.o` in
7173 *x86-64*)
7174 LD="${LD-ld} -m elf32_x86_64"
7177 LD="${LD-ld} -m elf_i386"
7179 esac
7181 powerpc64le-*linux*)
7182 LD="${LD-ld} -m elf32lppclinux"
7184 powerpc64-*linux*)
7185 LD="${LD-ld} -m elf32ppclinux"
7187 s390x-*linux*)
7188 LD="${LD-ld} -m elf_s390"
7190 sparc64-*linux*)
7191 LD="${LD-ld} -m elf32_sparc"
7193 esac
7195 *64-bit*)
7196 case $host in
7197 x86_64-*kfreebsd*-gnu)
7198 LD="${LD-ld} -m elf_x86_64_fbsd"
7200 x86_64-*linux*)
7201 LD="${LD-ld} -m elf_x86_64"
7203 powerpcle-*linux*)
7204 LD="${LD-ld} -m elf64lppc"
7206 powerpc-*linux*)
7207 LD="${LD-ld} -m elf64ppc"
7209 s390*-*linux*|s390*-*tpf*)
7210 LD="${LD-ld} -m elf64_s390"
7212 sparc*-*linux*)
7213 LD="${LD-ld} -m elf64_sparc"
7215 esac
7217 esac
7219 rm -rf conftest*
7222 *-*-sco3.2v5*)
7223 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7224 SAVE_CFLAGS="$CFLAGS"
7225 CFLAGS="$CFLAGS -belf"
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7227 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7228 if ${lt_cv_cc_needs_belf+:} false; then :
7229 $as_echo_n "(cached) " >&6
7230 else
7231 ac_ext=c
7232 ac_cpp='$CPP $CPPFLAGS'
7233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7238 /* end confdefs.h. */
7241 main ()
7245 return 0;
7247 _ACEOF
7248 if ac_fn_c_try_link "$LINENO"; then :
7249 lt_cv_cc_needs_belf=yes
7250 else
7251 lt_cv_cc_needs_belf=no
7253 rm -f core conftest.err conftest.$ac_objext \
7254 conftest$ac_exeext conftest.$ac_ext
7255 ac_ext=c
7256 ac_cpp='$CPP $CPPFLAGS'
7257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7263 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7264 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7265 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7266 CFLAGS="$SAVE_CFLAGS"
7269 sparc*-*solaris*)
7270 # Find out which ABI we are using.
7271 echo 'int i;' > conftest.$ac_ext
7272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7273 (eval $ac_compile) 2>&5
7274 ac_status=$?
7275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7276 test $ac_status = 0; }; then
7277 case `/usr/bin/file conftest.o` in
7278 *64-bit*)
7279 case $lt_cv_prog_gnu_ld in
7280 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7282 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7283 LD="${LD-ld} -64"
7286 esac
7288 esac
7290 rm -rf conftest*
7292 esac
7294 need_locks="$enable_libtool_lock"
7297 case $host_os in
7298 rhapsody* | darwin*)
7299 if test -n "$ac_tool_prefix"; then
7300 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7301 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7303 $as_echo_n "checking for $ac_word... " >&6; }
7304 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 if test -n "$DSYMUTIL"; then
7308 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7309 else
7310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7311 for as_dir in $PATH
7313 IFS=$as_save_IFS
7314 test -z "$as_dir" && as_dir=.
7315 for ac_exec_ext in '' $ac_executable_extensions; do
7316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7317 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 break 2
7321 done
7322 done
7323 IFS=$as_save_IFS
7327 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7328 if test -n "$DSYMUTIL"; then
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7330 $as_echo "$DSYMUTIL" >&6; }
7331 else
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7333 $as_echo "no" >&6; }
7338 if test -z "$ac_cv_prog_DSYMUTIL"; then
7339 ac_ct_DSYMUTIL=$DSYMUTIL
7340 # Extract the first word of "dsymutil", so it can be a program name with args.
7341 set dummy dsymutil; ac_word=$2
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7343 $as_echo_n "checking for $ac_word... " >&6; }
7344 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7345 $as_echo_n "(cached) " >&6
7346 else
7347 if test -n "$ac_ct_DSYMUTIL"; then
7348 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7349 else
7350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7351 for as_dir in $PATH
7353 IFS=$as_save_IFS
7354 test -z "$as_dir" && as_dir=.
7355 for ac_exec_ext in '' $ac_executable_extensions; do
7356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7357 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7359 break 2
7361 done
7362 done
7363 IFS=$as_save_IFS
7367 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7368 if test -n "$ac_ct_DSYMUTIL"; then
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7370 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7371 else
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7373 $as_echo "no" >&6; }
7376 if test "x$ac_ct_DSYMUTIL" = x; then
7377 DSYMUTIL=":"
7378 else
7379 case $cross_compiling:$ac_tool_warned in
7380 yes:)
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7382 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7383 ac_tool_warned=yes ;;
7384 esac
7385 DSYMUTIL=$ac_ct_DSYMUTIL
7387 else
7388 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7391 if test -n "$ac_tool_prefix"; then
7392 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7393 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if ${ac_cv_prog_NMEDIT+:} false; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 if test -n "$NMEDIT"; then
7400 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7409 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7413 done
7414 done
7415 IFS=$as_save_IFS
7419 NMEDIT=$ac_cv_prog_NMEDIT
7420 if test -n "$NMEDIT"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7422 $as_echo "$NMEDIT" >&6; }
7423 else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7430 if test -z "$ac_cv_prog_NMEDIT"; then
7431 ac_ct_NMEDIT=$NMEDIT
7432 # Extract the first word of "nmedit", so it can be a program name with args.
7433 set dummy nmedit; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 if test -n "$ac_ct_NMEDIT"; then
7440 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7449 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7453 done
7454 done
7455 IFS=$as_save_IFS
7459 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7460 if test -n "$ac_ct_NMEDIT"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7462 $as_echo "$ac_ct_NMEDIT" >&6; }
7463 else
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7468 if test "x$ac_ct_NMEDIT" = x; then
7469 NMEDIT=":"
7470 else
7471 case $cross_compiling:$ac_tool_warned in
7472 yes:)
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475 ac_tool_warned=yes ;;
7476 esac
7477 NMEDIT=$ac_ct_NMEDIT
7479 else
7480 NMEDIT="$ac_cv_prog_NMEDIT"
7483 if test -n "$ac_tool_prefix"; then
7484 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7485 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7487 $as_echo_n "checking for $ac_word... " >&6; }
7488 if ${ac_cv_prog_LIPO+:} false; then :
7489 $as_echo_n "(cached) " >&6
7490 else
7491 if test -n "$LIPO"; then
7492 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7493 else
7494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7495 for as_dir in $PATH
7497 IFS=$as_save_IFS
7498 test -z "$as_dir" && as_dir=.
7499 for ac_exec_ext in '' $ac_executable_extensions; do
7500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7501 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7503 break 2
7505 done
7506 done
7507 IFS=$as_save_IFS
7511 LIPO=$ac_cv_prog_LIPO
7512 if test -n "$LIPO"; then
7513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7514 $as_echo "$LIPO" >&6; }
7515 else
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7517 $as_echo "no" >&6; }
7522 if test -z "$ac_cv_prog_LIPO"; then
7523 ac_ct_LIPO=$LIPO
7524 # Extract the first word of "lipo", so it can be a program name with args.
7525 set dummy lipo; ac_word=$2
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7527 $as_echo_n "checking for $ac_word... " >&6; }
7528 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7529 $as_echo_n "(cached) " >&6
7530 else
7531 if test -n "$ac_ct_LIPO"; then
7532 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7533 else
7534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7535 for as_dir in $PATH
7537 IFS=$as_save_IFS
7538 test -z "$as_dir" && as_dir=.
7539 for ac_exec_ext in '' $ac_executable_extensions; do
7540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7541 ac_cv_prog_ac_ct_LIPO="lipo"
7542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7543 break 2
7545 done
7546 done
7547 IFS=$as_save_IFS
7551 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7552 if test -n "$ac_ct_LIPO"; then
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7554 $as_echo "$ac_ct_LIPO" >&6; }
7555 else
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7560 if test "x$ac_ct_LIPO" = x; then
7561 LIPO=":"
7562 else
7563 case $cross_compiling:$ac_tool_warned in
7564 yes:)
7565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567 ac_tool_warned=yes ;;
7568 esac
7569 LIPO=$ac_ct_LIPO
7571 else
7572 LIPO="$ac_cv_prog_LIPO"
7575 if test -n "$ac_tool_prefix"; then
7576 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7577 set dummy ${ac_tool_prefix}otool; ac_word=$2
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7579 $as_echo_n "checking for $ac_word... " >&6; }
7580 if ${ac_cv_prog_OTOOL+:} false; then :
7581 $as_echo_n "(cached) " >&6
7582 else
7583 if test -n "$OTOOL"; then
7584 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7585 else
7586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7587 for as_dir in $PATH
7589 IFS=$as_save_IFS
7590 test -z "$as_dir" && as_dir=.
7591 for ac_exec_ext in '' $ac_executable_extensions; do
7592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7593 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7595 break 2
7597 done
7598 done
7599 IFS=$as_save_IFS
7603 OTOOL=$ac_cv_prog_OTOOL
7604 if test -n "$OTOOL"; then
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7606 $as_echo "$OTOOL" >&6; }
7607 else
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7609 $as_echo "no" >&6; }
7614 if test -z "$ac_cv_prog_OTOOL"; then
7615 ac_ct_OTOOL=$OTOOL
7616 # Extract the first word of "otool", so it can be a program name with args.
7617 set dummy otool; ac_word=$2
7618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7619 $as_echo_n "checking for $ac_word... " >&6; }
7620 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7621 $as_echo_n "(cached) " >&6
7622 else
7623 if test -n "$ac_ct_OTOOL"; then
7624 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7625 else
7626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7627 for as_dir in $PATH
7629 IFS=$as_save_IFS
7630 test -z "$as_dir" && as_dir=.
7631 for ac_exec_ext in '' $ac_executable_extensions; do
7632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7633 ac_cv_prog_ac_ct_OTOOL="otool"
7634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 break 2
7637 done
7638 done
7639 IFS=$as_save_IFS
7643 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7644 if test -n "$ac_ct_OTOOL"; then
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7646 $as_echo "$ac_ct_OTOOL" >&6; }
7647 else
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7649 $as_echo "no" >&6; }
7652 if test "x$ac_ct_OTOOL" = x; then
7653 OTOOL=":"
7654 else
7655 case $cross_compiling:$ac_tool_warned in
7656 yes:)
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7659 ac_tool_warned=yes ;;
7660 esac
7661 OTOOL=$ac_ct_OTOOL
7663 else
7664 OTOOL="$ac_cv_prog_OTOOL"
7667 if test -n "$ac_tool_prefix"; then
7668 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7669 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if ${ac_cv_prog_OTOOL64+:} false; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 if test -n "$OTOOL64"; then
7676 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7677 else
7678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7679 for as_dir in $PATH
7681 IFS=$as_save_IFS
7682 test -z "$as_dir" && as_dir=.
7683 for ac_exec_ext in '' $ac_executable_extensions; do
7684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7685 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 break 2
7689 done
7690 done
7691 IFS=$as_save_IFS
7695 OTOOL64=$ac_cv_prog_OTOOL64
7696 if test -n "$OTOOL64"; then
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7698 $as_echo "$OTOOL64" >&6; }
7699 else
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7701 $as_echo "no" >&6; }
7706 if test -z "$ac_cv_prog_OTOOL64"; then
7707 ac_ct_OTOOL64=$OTOOL64
7708 # Extract the first word of "otool64", so it can be a program name with args.
7709 set dummy otool64; ac_word=$2
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7711 $as_echo_n "checking for $ac_word... " >&6; }
7712 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7713 $as_echo_n "(cached) " >&6
7714 else
7715 if test -n "$ac_ct_OTOOL64"; then
7716 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7717 else
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7719 for as_dir in $PATH
7721 IFS=$as_save_IFS
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7725 ac_cv_prog_ac_ct_OTOOL64="otool64"
7726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 break 2
7729 done
7730 done
7731 IFS=$as_save_IFS
7735 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7736 if test -n "$ac_ct_OTOOL64"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7738 $as_echo "$ac_ct_OTOOL64" >&6; }
7739 else
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7744 if test "x$ac_ct_OTOOL64" = x; then
7745 OTOOL64=":"
7746 else
7747 case $cross_compiling:$ac_tool_warned in
7748 yes:)
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7751 ac_tool_warned=yes ;;
7752 esac
7753 OTOOL64=$ac_ct_OTOOL64
7755 else
7756 OTOOL64="$ac_cv_prog_OTOOL64"
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7786 $as_echo_n "checking for -single_module linker flag... " >&6; }
7787 if ${lt_cv_apple_cc_single_mod+:} false; then :
7788 $as_echo_n "(cached) " >&6
7789 else
7790 lt_cv_apple_cc_single_mod=no
7791 if test -z "${LT_MULTI_MODULE}"; then
7792 # By default we will add the -single_module flag. You can override
7793 # by either setting the environment variable LT_MULTI_MODULE
7794 # non-empty at configure time, or by adding -multi_module to the
7795 # link flags.
7796 rm -rf libconftest.dylib*
7797 echo "int foo(void){return 1;}" > conftest.c
7798 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7799 -dynamiclib -Wl,-single_module conftest.c" >&5
7800 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7801 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7802 _lt_result=$?
7803 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7804 lt_cv_apple_cc_single_mod=yes
7805 else
7806 cat conftest.err >&5
7808 rm -rf libconftest.dylib*
7809 rm -f conftest.*
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7813 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7815 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7816 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7817 $as_echo_n "(cached) " >&6
7818 else
7819 lt_cv_ld_exported_symbols_list=no
7820 save_LDFLAGS=$LDFLAGS
7821 echo "_main" > conftest.sym
7822 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824 /* end confdefs.h. */
7827 main ()
7831 return 0;
7833 _ACEOF
7834 if ac_fn_c_try_link "$LINENO"; then :
7835 lt_cv_ld_exported_symbols_list=yes
7836 else
7837 lt_cv_ld_exported_symbols_list=no
7839 rm -f core conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7841 LDFLAGS="$save_LDFLAGS"
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7845 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7847 $as_echo_n "checking for -force_load linker flag... " >&6; }
7848 if ${lt_cv_ld_force_load+:} false; then :
7849 $as_echo_n "(cached) " >&6
7850 else
7851 lt_cv_ld_force_load=no
7852 cat > conftest.c << _LT_EOF
7853 int forced_loaded() { return 2;}
7854 _LT_EOF
7855 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7856 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7857 echo "$AR cru libconftest.a conftest.o" >&5
7858 $AR cru libconftest.a conftest.o 2>&5
7859 cat > conftest.c << _LT_EOF
7860 int main() { return 0;}
7861 _LT_EOF
7862 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7863 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7864 _lt_result=$?
7865 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7866 lt_cv_ld_force_load=yes
7867 else
7868 cat conftest.err >&5
7870 rm -f conftest.err libconftest.a conftest conftest.c
7871 rm -rf conftest.dSYM
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7875 $as_echo "$lt_cv_ld_force_load" >&6; }
7876 case $host_os in
7877 rhapsody* | darwin1.[012])
7878 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7879 darwin1.*)
7880 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7881 darwin*) # darwin 5.x on
7882 # if running on 10.5 or later, the deployment target defaults
7883 # to the OS version, if on x86, and 10.4, the deployment
7884 # target defaults to 10.4. Don't you love it?
7885 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7886 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7887 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7888 10.[012][,.]*)
7889 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7890 10.*)
7891 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7892 esac
7894 esac
7895 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7896 _lt_dar_single_mod='$single_module'
7898 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7899 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7900 else
7901 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7903 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7904 _lt_dsymutil='~$DSYMUTIL $lib || :'
7905 else
7906 _lt_dsymutil=
7909 esac
7911 for ac_header in dlfcn.h
7912 do :
7913 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7915 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7916 cat >>confdefs.h <<_ACEOF
7917 #define HAVE_DLFCN_H 1
7918 _ACEOF
7922 done
7929 # Set options
7934 enable_win32_dll=no
7937 # Check whether --enable-shared was given.
7938 if test "${enable_shared+set}" = set; then :
7939 enableval=$enable_shared; p=${PACKAGE-default}
7940 case $enableval in
7941 yes) enable_shared=yes ;;
7942 no) enable_shared=no ;;
7944 enable_shared=no
7945 # Look at the argument we got. We use all the common list separators.
7946 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7947 for pkg in $enableval; do
7948 IFS="$lt_save_ifs"
7949 if test "X$pkg" = "X$p"; then
7950 enable_shared=yes
7952 done
7953 IFS="$lt_save_ifs"
7955 esac
7956 else
7957 enable_shared=yes
7968 # Check whether --enable-static was given.
7969 if test "${enable_static+set}" = set; then :
7970 enableval=$enable_static; p=${PACKAGE-default}
7971 case $enableval in
7972 yes) enable_static=yes ;;
7973 no) enable_static=no ;;
7975 enable_static=no
7976 # Look at the argument we got. We use all the common list separators.
7977 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7978 for pkg in $enableval; do
7979 IFS="$lt_save_ifs"
7980 if test "X$pkg" = "X$p"; then
7981 enable_static=yes
7983 done
7984 IFS="$lt_save_ifs"
7986 esac
7987 else
7988 enable_static=yes
8000 # Check whether --with-pic was given.
8001 if test "${with_pic+set}" = set; then :
8002 withval=$with_pic; pic_mode="$withval"
8003 else
8004 pic_mode=default
8008 test -z "$pic_mode" && pic_mode=default
8016 # Check whether --enable-fast-install was given.
8017 if test "${enable_fast_install+set}" = set; then :
8018 enableval=$enable_fast_install; p=${PACKAGE-default}
8019 case $enableval in
8020 yes) enable_fast_install=yes ;;
8021 no) enable_fast_install=no ;;
8023 enable_fast_install=no
8024 # Look at the argument we got. We use all the common list separators.
8025 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8026 for pkg in $enableval; do
8027 IFS="$lt_save_ifs"
8028 if test "X$pkg" = "X$p"; then
8029 enable_fast_install=yes
8031 done
8032 IFS="$lt_save_ifs"
8034 esac
8035 else
8036 enable_fast_install=yes
8049 # This can be used to rebuild libtool when needed
8050 LIBTOOL_DEPS="$ltmain"
8052 # Always use our own libtool.
8053 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8080 test -z "$LN_S" && LN_S="ln -s"
8095 if test -n "${ZSH_VERSION+set}" ; then
8096 setopt NO_GLOB_SUBST
8099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8100 $as_echo_n "checking for objdir... " >&6; }
8101 if ${lt_cv_objdir+:} false; then :
8102 $as_echo_n "(cached) " >&6
8103 else
8104 rm -f .libs 2>/dev/null
8105 mkdir .libs 2>/dev/null
8106 if test -d .libs; then
8107 lt_cv_objdir=.libs
8108 else
8109 # MS-DOS does not allow filenames that begin with a dot.
8110 lt_cv_objdir=_libs
8112 rmdir .libs 2>/dev/null
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8115 $as_echo "$lt_cv_objdir" >&6; }
8116 objdir=$lt_cv_objdir
8122 cat >>confdefs.h <<_ACEOF
8123 #define LT_OBJDIR "$lt_cv_objdir/"
8124 _ACEOF
8129 case $host_os in
8130 aix3*)
8131 # AIX sometimes has problems with the GCC collect2 program. For some
8132 # reason, if we set the COLLECT_NAMES environment variable, the problems
8133 # vanish in a puff of smoke.
8134 if test "X${COLLECT_NAMES+set}" != Xset; then
8135 COLLECT_NAMES=
8136 export COLLECT_NAMES
8139 esac
8141 # Global variables:
8142 ofile=libtool
8143 can_build_shared=yes
8145 # All known linkers require a `.a' archive for static linking (except MSVC,
8146 # which needs '.lib').
8147 libext=a
8149 with_gnu_ld="$lt_cv_prog_gnu_ld"
8151 old_CC="$CC"
8152 old_CFLAGS="$CFLAGS"
8154 # Set sane defaults for various variables
8155 test -z "$CC" && CC=cc
8156 test -z "$LTCC" && LTCC=$CC
8157 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8158 test -z "$LD" && LD=ld
8159 test -z "$ac_objext" && ac_objext=o
8161 for cc_temp in $compiler""; do
8162 case $cc_temp in
8163 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8164 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8165 \-*) ;;
8166 *) break;;
8167 esac
8168 done
8169 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8172 # Only perform the check for file, if the check method requires it
8173 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8174 case $deplibs_check_method in
8175 file_magic*)
8176 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8178 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8179 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 case $MAGIC_CMD in
8183 [\\/*] | ?:[\\/]*)
8184 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8187 lt_save_MAGIC_CMD="$MAGIC_CMD"
8188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8189 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8190 for ac_dir in $ac_dummy; do
8191 IFS="$lt_save_ifs"
8192 test -z "$ac_dir" && ac_dir=.
8193 if test -f $ac_dir/${ac_tool_prefix}file; then
8194 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8195 if test -n "$file_magic_test_file"; then
8196 case $deplibs_check_method in
8197 "file_magic "*)
8198 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8200 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8201 $EGREP "$file_magic_regex" > /dev/null; then
8203 else
8204 cat <<_LT_EOF 1>&2
8206 *** Warning: the command libtool uses to detect shared libraries,
8207 *** $file_magic_cmd, produces output that libtool cannot recognize.
8208 *** The result is that libtool may fail to recognize shared libraries
8209 *** as such. This will affect the creation of libtool libraries that
8210 *** depend on shared libraries, but programs linked with such libtool
8211 *** libraries will work regardless of this problem. Nevertheless, you
8212 *** may want to report the problem to your system manager and/or to
8213 *** bug-libtool@gnu.org
8215 _LT_EOF
8216 fi ;;
8217 esac
8219 break
8221 done
8222 IFS="$lt_save_ifs"
8223 MAGIC_CMD="$lt_save_MAGIC_CMD"
8225 esac
8228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8229 if test -n "$MAGIC_CMD"; then
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8231 $as_echo "$MAGIC_CMD" >&6; }
8232 else
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }
8241 if test -z "$lt_cv_path_MAGIC_CMD"; then
8242 if test -n "$ac_tool_prefix"; then
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8244 $as_echo_n "checking for file... " >&6; }
8245 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8246 $as_echo_n "(cached) " >&6
8247 else
8248 case $MAGIC_CMD in
8249 [\\/*] | ?:[\\/]*)
8250 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8253 lt_save_MAGIC_CMD="$MAGIC_CMD"
8254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8255 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8256 for ac_dir in $ac_dummy; do
8257 IFS="$lt_save_ifs"
8258 test -z "$ac_dir" && ac_dir=.
8259 if test -f $ac_dir/file; then
8260 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8261 if test -n "$file_magic_test_file"; then
8262 case $deplibs_check_method in
8263 "file_magic "*)
8264 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8265 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8266 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8267 $EGREP "$file_magic_regex" > /dev/null; then
8269 else
8270 cat <<_LT_EOF 1>&2
8272 *** Warning: the command libtool uses to detect shared libraries,
8273 *** $file_magic_cmd, produces output that libtool cannot recognize.
8274 *** The result is that libtool may fail to recognize shared libraries
8275 *** as such. This will affect the creation of libtool libraries that
8276 *** depend on shared libraries, but programs linked with such libtool
8277 *** libraries will work regardless of this problem. Nevertheless, you
8278 *** may want to report the problem to your system manager and/or to
8279 *** bug-libtool@gnu.org
8281 _LT_EOF
8282 fi ;;
8283 esac
8285 break
8287 done
8288 IFS="$lt_save_ifs"
8289 MAGIC_CMD="$lt_save_MAGIC_CMD"
8291 esac
8294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295 if test -n "$MAGIC_CMD"; then
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8297 $as_echo "$MAGIC_CMD" >&6; }
8298 else
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8300 $as_echo "no" >&6; }
8304 else
8305 MAGIC_CMD=:
8311 esac
8313 # Use C for the default configuration in the libtool script
8315 lt_save_CC="$CC"
8316 ac_ext=c
8317 ac_cpp='$CPP $CPPFLAGS'
8318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8323 # Source file extension for C test sources.
8324 ac_ext=c
8326 # Object file extension for compiled C test sources.
8327 objext=o
8328 objext=$objext
8330 # Code to be used in simple compile tests
8331 lt_simple_compile_test_code="int some_variable = 0;"
8333 # Code to be used in simple link tests
8334 lt_simple_link_test_code='int main(){return(0);}'
8342 # If no C compiler was specified, use CC.
8343 LTCC=${LTCC-"$CC"}
8345 # If no C compiler flags were specified, use CFLAGS.
8346 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8348 # Allow CC to be a program name with arguments.
8349 compiler=$CC
8351 # Save the default compiler, since it gets overwritten when the other
8352 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8353 compiler_DEFAULT=$CC
8355 # save warnings/boilerplate of simple test code
8356 ac_outfile=conftest.$ac_objext
8357 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8358 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8359 _lt_compiler_boilerplate=`cat conftest.err`
8360 $RM conftest*
8362 ac_outfile=conftest.$ac_objext
8363 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8364 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8365 _lt_linker_boilerplate=`cat conftest.err`
8366 $RM -r conftest*
8369 ## CAVEAT EMPTOR:
8370 ## There is no encapsulation within the following macros, do not change
8371 ## the running order or otherwise move them around unless you know exactly
8372 ## what you are doing...
8373 if test -n "$compiler"; then
8375 lt_prog_compiler_no_builtin_flag=
8377 if test "$GCC" = yes; then
8378 case $cc_basename in
8379 nvcc*)
8380 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8382 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8383 esac
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8386 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8387 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8388 $as_echo_n "(cached) " >&6
8389 else
8390 lt_cv_prog_compiler_rtti_exceptions=no
8391 ac_outfile=conftest.$ac_objext
8392 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8393 lt_compiler_flag="-fno-rtti -fno-exceptions"
8394 # Insert the option either (1) after the last *FLAGS variable, or
8395 # (2) before a word containing "conftest.", or (3) at the end.
8396 # Note that $ac_compile itself does not contain backslashes and begins
8397 # with a dollar sign (not a hyphen), so the echo should work correctly.
8398 # The option is referenced via a variable to avoid confusing sed.
8399 lt_compile=`echo "$ac_compile" | $SED \
8400 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8401 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8402 -e 's:$: $lt_compiler_flag:'`
8403 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8404 (eval "$lt_compile" 2>conftest.err)
8405 ac_status=$?
8406 cat conftest.err >&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 if (exit $ac_status) && test -s "$ac_outfile"; then
8409 # The compiler can only warn and ignore the option if not recognized
8410 # So say no if there are warnings other than the usual output.
8411 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8412 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8413 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8414 lt_cv_prog_compiler_rtti_exceptions=yes
8417 $RM conftest*
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8421 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8423 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8424 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8425 else
8436 lt_prog_compiler_wl=
8437 lt_prog_compiler_pic=
8438 lt_prog_compiler_static=
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8441 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8443 if test "$GCC" = yes; then
8444 lt_prog_compiler_wl='-Wl,'
8445 lt_prog_compiler_static='-static'
8447 case $host_os in
8448 aix*)
8449 # All AIX code is PIC.
8450 if test "$host_cpu" = ia64; then
8451 # AIX 5 now supports IA64 processor
8452 lt_prog_compiler_static='-Bstatic'
8454 lt_prog_compiler_pic='-fPIC'
8457 amigaos*)
8458 case $host_cpu in
8459 powerpc)
8460 # see comment about AmigaOS4 .so support
8461 lt_prog_compiler_pic='-fPIC'
8463 m68k)
8464 # FIXME: we need at least 68020 code to build shared libraries, but
8465 # adding the `-m68020' flag to GCC prevents building anything better,
8466 # like `-m68040'.
8467 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8469 esac
8472 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8473 # PIC is the default for these OSes.
8476 mingw* | cygwin* | pw32* | os2* | cegcc*)
8477 # This hack is so that the source file can tell whether it is being
8478 # built for inclusion in a dll (and should export symbols for example).
8479 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8480 # (--disable-auto-import) libraries
8481 lt_prog_compiler_pic='-DDLL_EXPORT'
8484 darwin* | rhapsody*)
8485 # PIC is the default on this platform
8486 # Common symbols not allowed in MH_DYLIB files
8487 lt_prog_compiler_pic='-fno-common'
8490 haiku*)
8491 # PIC is the default for Haiku.
8492 # The "-static" flag exists, but is broken.
8493 lt_prog_compiler_static=
8496 hpux*)
8497 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8498 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8499 # sets the default TLS model and affects inlining.
8500 case $host_cpu in
8501 hppa*64*)
8502 # +Z the default
8505 lt_prog_compiler_pic='-fPIC'
8507 esac
8510 interix[3-9]*)
8511 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8512 # Instead, we relocate shared libraries at runtime.
8515 msdosdjgpp*)
8516 # Just because we use GCC doesn't mean we suddenly get shared libraries
8517 # on systems that don't support them.
8518 lt_prog_compiler_can_build_shared=no
8519 enable_shared=no
8522 *nto* | *qnx*)
8523 # QNX uses GNU C++, but need to define -shared option too, otherwise
8524 # it will coredump.
8525 lt_prog_compiler_pic='-fPIC -shared'
8528 sysv4*MP*)
8529 if test -d /usr/nec; then
8530 lt_prog_compiler_pic=-Kconform_pic
8535 lt_prog_compiler_pic='-fPIC'
8537 esac
8539 case $cc_basename in
8540 nvcc*) # Cuda Compiler Driver 2.2
8541 lt_prog_compiler_wl='-Xlinker '
8542 lt_prog_compiler_pic='-Xcompiler -fPIC'
8544 esac
8545 else
8546 # PORTME Check for flag to pass linker flags through the system compiler.
8547 case $host_os in
8548 aix*)
8549 lt_prog_compiler_wl='-Wl,'
8550 if test "$host_cpu" = ia64; then
8551 # AIX 5 now supports IA64 processor
8552 lt_prog_compiler_static='-Bstatic'
8553 else
8554 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8558 mingw* | cygwin* | pw32* | os2* | cegcc*)
8559 # This hack is so that the source file can tell whether it is being
8560 # built for inclusion in a dll (and should export symbols for example).
8561 lt_prog_compiler_pic='-DDLL_EXPORT'
8564 hpux9* | hpux10* | hpux11*)
8565 lt_prog_compiler_wl='-Wl,'
8566 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8567 # not for PA HP-UX.
8568 case $host_cpu in
8569 hppa*64*|ia64*)
8570 # +Z the default
8573 lt_prog_compiler_pic='+Z'
8575 esac
8576 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8577 lt_prog_compiler_static='${wl}-a ${wl}archive'
8580 irix5* | irix6* | nonstopux*)
8581 lt_prog_compiler_wl='-Wl,'
8582 # PIC (with -KPIC) is the default.
8583 lt_prog_compiler_static='-non_shared'
8586 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8587 case $cc_basename in
8588 # old Intel for x86_64 which still supported -KPIC.
8589 ecc*)
8590 lt_prog_compiler_wl='-Wl,'
8591 lt_prog_compiler_pic='-KPIC'
8592 lt_prog_compiler_static='-static'
8594 # icc used to be incompatible with GCC.
8595 # ICC 10 doesn't accept -KPIC any more.
8596 icc* | ifort*)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='-fPIC'
8599 lt_prog_compiler_static='-static'
8601 # Lahey Fortran 8.1.
8602 lf95*)
8603 lt_prog_compiler_wl='-Wl,'
8604 lt_prog_compiler_pic='--shared'
8605 lt_prog_compiler_static='--static'
8607 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8608 # Portland Group compilers (*not* the Pentium gcc compiler,
8609 # which looks to be a dead project)
8610 lt_prog_compiler_wl='-Wl,'
8611 lt_prog_compiler_pic='-fpic'
8612 lt_prog_compiler_static='-Bstatic'
8614 ccc*)
8615 lt_prog_compiler_wl='-Wl,'
8616 # All Alpha code is PIC.
8617 lt_prog_compiler_static='-non_shared'
8619 xl* | bgxl* | bgf* | mpixl*)
8620 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_pic='-qpic'
8623 lt_prog_compiler_static='-qstaticlink'
8626 case `$CC -V 2>&1 | sed 5q` in
8627 *Sun\ F* | *Sun*Fortran*)
8628 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 lt_prog_compiler_wl=''
8633 *Sun\ C*)
8634 # Sun C 5.9
8635 lt_prog_compiler_pic='-KPIC'
8636 lt_prog_compiler_static='-Bstatic'
8637 lt_prog_compiler_wl='-Wl,'
8639 esac
8641 esac
8644 newsos6)
8645 lt_prog_compiler_pic='-KPIC'
8646 lt_prog_compiler_static='-Bstatic'
8649 *nto* | *qnx*)
8650 # QNX uses GNU C++, but need to define -shared option too, otherwise
8651 # it will coredump.
8652 lt_prog_compiler_pic='-fPIC -shared'
8655 osf3* | osf4* | osf5*)
8656 lt_prog_compiler_wl='-Wl,'
8657 # All OSF/1 code is PIC.
8658 lt_prog_compiler_static='-non_shared'
8661 rdos*)
8662 lt_prog_compiler_static='-non_shared'
8665 solaris*)
8666 lt_prog_compiler_pic='-KPIC'
8667 lt_prog_compiler_static='-Bstatic'
8668 case $cc_basename in
8669 f77* | f90* | f95*)
8670 lt_prog_compiler_wl='-Qoption ld ';;
8672 lt_prog_compiler_wl='-Wl,';;
8673 esac
8676 sunos4*)
8677 lt_prog_compiler_wl='-Qoption ld '
8678 lt_prog_compiler_pic='-PIC'
8679 lt_prog_compiler_static='-Bstatic'
8682 sysv4 | sysv4.2uw2* | sysv4.3*)
8683 lt_prog_compiler_wl='-Wl,'
8684 lt_prog_compiler_pic='-KPIC'
8685 lt_prog_compiler_static='-Bstatic'
8688 sysv4*MP*)
8689 if test -d /usr/nec ;then
8690 lt_prog_compiler_pic='-Kconform_pic'
8691 lt_prog_compiler_static='-Bstatic'
8695 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_pic='-KPIC'
8698 lt_prog_compiler_static='-Bstatic'
8701 unicos*)
8702 lt_prog_compiler_wl='-Wl,'
8703 lt_prog_compiler_can_build_shared=no
8706 uts4*)
8707 lt_prog_compiler_pic='-pic'
8708 lt_prog_compiler_static='-Bstatic'
8712 lt_prog_compiler_can_build_shared=no
8714 esac
8717 case $host_os in
8718 # For platforms which do not support PIC, -DPIC is meaningless:
8719 *djgpp*)
8720 lt_prog_compiler_pic=
8723 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8725 esac
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8727 $as_echo "$lt_prog_compiler_pic" >&6; }
8735 # Check to make sure the PIC flag actually works.
8737 if test -n "$lt_prog_compiler_pic"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8739 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8740 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8741 $as_echo_n "(cached) " >&6
8742 else
8743 lt_cv_prog_compiler_pic_works=no
8744 ac_outfile=conftest.$ac_objext
8745 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8746 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8747 # Insert the option either (1) after the last *FLAGS variable, or
8748 # (2) before a word containing "conftest.", or (3) at the end.
8749 # Note that $ac_compile itself does not contain backslashes and begins
8750 # with a dollar sign (not a hyphen), so the echo should work correctly.
8751 # The option is referenced via a variable to avoid confusing sed.
8752 lt_compile=`echo "$ac_compile" | $SED \
8753 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8755 -e 's:$: $lt_compiler_flag:'`
8756 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8757 (eval "$lt_compile" 2>conftest.err)
8758 ac_status=$?
8759 cat conftest.err >&5
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 if (exit $ac_status) && test -s "$ac_outfile"; then
8762 # The compiler can only warn and ignore the option if not recognized
8763 # So say no if there are warnings other than the usual output.
8764 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8766 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8767 lt_cv_prog_compiler_pic_works=yes
8770 $RM conftest*
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8774 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8776 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8777 case $lt_prog_compiler_pic in
8778 "" | " "*) ;;
8779 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8780 esac
8781 else
8782 lt_prog_compiler_pic=
8783 lt_prog_compiler_can_build_shared=no
8794 # Check to make sure the static flag actually works.
8796 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8798 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8799 if ${lt_cv_prog_compiler_static_works+:} false; then :
8800 $as_echo_n "(cached) " >&6
8801 else
8802 lt_cv_prog_compiler_static_works=no
8803 save_LDFLAGS="$LDFLAGS"
8804 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8805 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8806 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8807 # The linker can only warn and ignore the option if not recognized
8808 # So say no if there are warnings
8809 if test -s conftest.err; then
8810 # Append any errors to the config.log.
8811 cat conftest.err 1>&5
8812 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8813 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8814 if diff conftest.exp conftest.er2 >/dev/null; then
8815 lt_cv_prog_compiler_static_works=yes
8817 else
8818 lt_cv_prog_compiler_static_works=yes
8821 $RM -r conftest*
8822 LDFLAGS="$save_LDFLAGS"
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8826 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8828 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8830 else
8831 lt_prog_compiler_static=
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8841 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8842 if ${lt_cv_prog_compiler_c_o+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 lt_cv_prog_compiler_c_o=no
8846 $RM -r conftest 2>/dev/null
8847 mkdir conftest
8848 cd conftest
8849 mkdir out
8850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8852 lt_compiler_flag="-o out/conftest2.$ac_objext"
8853 # Insert the option either (1) after the last *FLAGS variable, or
8854 # (2) before a word containing "conftest.", or (3) at the end.
8855 # Note that $ac_compile itself does not contain backslashes and begins
8856 # with a dollar sign (not a hyphen), so the echo should work correctly.
8857 lt_compile=`echo "$ac_compile" | $SED \
8858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8860 -e 's:$: $lt_compiler_flag:'`
8861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8862 (eval "$lt_compile" 2>out/conftest.err)
8863 ac_status=$?
8864 cat out/conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867 then
8868 # The compiler can only warn and ignore the option if not recognized
8869 # So say no if there are warnings
8870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8873 lt_cv_prog_compiler_c_o=yes
8876 chmod u+w . 2>&5
8877 $RM conftest*
8878 # SGI C++ compiler will create directory out/ii_files/ for
8879 # template instantiation
8880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8881 $RM out/* && rmdir out
8882 cd ..
8883 $RM -r conftest
8884 $RM conftest*
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8888 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8896 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8897 if ${lt_cv_prog_compiler_c_o+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 lt_cv_prog_compiler_c_o=no
8901 $RM -r conftest 2>/dev/null
8902 mkdir conftest
8903 cd conftest
8904 mkdir out
8905 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8907 lt_compiler_flag="-o out/conftest2.$ac_objext"
8908 # Insert the option either (1) after the last *FLAGS variable, or
8909 # (2) before a word containing "conftest.", or (3) at the end.
8910 # Note that $ac_compile itself does not contain backslashes and begins
8911 # with a dollar sign (not a hyphen), so the echo should work correctly.
8912 lt_compile=`echo "$ac_compile" | $SED \
8913 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8914 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8915 -e 's:$: $lt_compiler_flag:'`
8916 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8917 (eval "$lt_compile" 2>out/conftest.err)
8918 ac_status=$?
8919 cat out/conftest.err >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8922 then
8923 # The compiler can only warn and ignore the option if not recognized
8924 # So say no if there are warnings
8925 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8926 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8927 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8928 lt_cv_prog_compiler_c_o=yes
8931 chmod u+w . 2>&5
8932 $RM conftest*
8933 # SGI C++ compiler will create directory out/ii_files/ for
8934 # template instantiation
8935 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8936 $RM out/* && rmdir out
8937 cd ..
8938 $RM -r conftest
8939 $RM conftest*
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8943 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8948 hard_links="nottested"
8949 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8950 # do not overwrite the value of need_locks provided by the user
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8952 $as_echo_n "checking if we can lock with hard links... " >&6; }
8953 hard_links=yes
8954 $RM conftest*
8955 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8956 touch conftest.a
8957 ln conftest.a conftest.b 2>&5 || hard_links=no
8958 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8960 $as_echo "$hard_links" >&6; }
8961 if test "$hard_links" = no; then
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8963 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8964 need_locks=warn
8966 else
8967 need_locks=no
8975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8976 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8978 runpath_var=
8979 allow_undefined_flag=
8980 always_export_symbols=no
8981 archive_cmds=
8982 archive_expsym_cmds=
8983 compiler_needs_object=no
8984 enable_shared_with_static_runtimes=no
8985 export_dynamic_flag_spec=
8986 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8987 hardcode_automatic=no
8988 hardcode_direct=no
8989 hardcode_direct_absolute=no
8990 hardcode_libdir_flag_spec=
8991 hardcode_libdir_flag_spec_ld=
8992 hardcode_libdir_separator=
8993 hardcode_minus_L=no
8994 hardcode_shlibpath_var=unsupported
8995 inherit_rpath=no
8996 link_all_deplibs=unknown
8997 module_cmds=
8998 module_expsym_cmds=
8999 old_archive_from_new_cmds=
9000 old_archive_from_expsyms_cmds=
9001 thread_safe_flag_spec=
9002 whole_archive_flag_spec=
9003 # include_expsyms should be a list of space-separated symbols to be *always*
9004 # included in the symbol list
9005 include_expsyms=
9006 # exclude_expsyms can be an extended regexp of symbols to exclude
9007 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9008 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9009 # as well as any symbol that contains `d'.
9010 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9011 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9012 # platforms (ab)use it in PIC code, but their linkers get confused if
9013 # the symbol is explicitly referenced. Since portable code cannot
9014 # rely on this symbol name, it's probably fine to never include it in
9015 # preloaded symbol tables.
9016 # Exclude shared library initialization/finalization symbols.
9017 extract_expsyms_cmds=
9019 case $host_os in
9020 cygwin* | mingw* | pw32* | cegcc*)
9021 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9022 # When not using gcc, we currently assume that we are using
9023 # Microsoft Visual C++.
9024 if test "$GCC" != yes; then
9025 with_gnu_ld=no
9028 interix*)
9029 # we just hope/assume this is gcc and not c89 (= MSVC++)
9030 with_gnu_ld=yes
9032 openbsd*)
9033 with_gnu_ld=no
9035 esac
9037 ld_shlibs=yes
9039 # On some targets, GNU ld is compatible enough with the native linker
9040 # that we're better off using the native interface for both.
9041 lt_use_gnu_ld_interface=no
9042 if test "$with_gnu_ld" = yes; then
9043 case $host_os in
9044 aix*)
9045 # The AIX port of GNU ld has always aspired to compatibility
9046 # with the native linker. However, as the warning in the GNU ld
9047 # block says, versions before 2.19.5* couldn't really create working
9048 # shared libraries, regardless of the interface used.
9049 case `$LD -v 2>&1` in
9050 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9051 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9052 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9054 lt_use_gnu_ld_interface=yes
9056 esac
9059 lt_use_gnu_ld_interface=yes
9061 esac
9064 if test "$lt_use_gnu_ld_interface" = yes; then
9065 # If archive_cmds runs LD, not CC, wlarc should be empty
9066 wlarc='${wl}'
9068 # Set some defaults for GNU ld with shared library support. These
9069 # are reset later if shared libraries are not supported. Putting them
9070 # here allows them to be overridden if necessary.
9071 runpath_var=LD_RUN_PATH
9072 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9073 export_dynamic_flag_spec='${wl}--export-dynamic'
9074 # ancient GNU ld didn't support --whole-archive et. al.
9075 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9076 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9077 else
9078 whole_archive_flag_spec=
9080 supports_anon_versioning=no
9081 case `$LD -v 2>&1` in
9082 *GNU\ gold*) supports_anon_versioning=yes ;;
9083 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9084 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9085 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9086 *\ 2.11.*) ;; # other 2.11 versions
9087 *) supports_anon_versioning=yes ;;
9088 esac
9090 # See if GNU ld supports shared libraries.
9091 case $host_os in
9092 aix[3-9]*)
9093 # On AIX/PPC, the GNU linker is very broken
9094 if test "$host_cpu" != ia64; then
9095 ld_shlibs=no
9096 cat <<_LT_EOF 1>&2
9098 *** Warning: the GNU linker, at least up to release 2.19, is reported
9099 *** to be unable to reliably create shared libraries on AIX.
9100 *** Therefore, libtool is disabling shared libraries support. If you
9101 *** really care for shared libraries, you may want to install binutils
9102 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9103 *** You will then need to restart the configuration process.
9105 _LT_EOF
9109 amigaos*)
9110 case $host_cpu in
9111 powerpc)
9112 # see comment about AmigaOS4 .so support
9113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9114 archive_expsym_cmds=''
9116 m68k)
9117 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)'
9118 hardcode_libdir_flag_spec='-L$libdir'
9119 hardcode_minus_L=yes
9121 esac
9124 beos*)
9125 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9126 allow_undefined_flag=unsupported
9127 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9128 # support --undefined. This deserves some investigation. FIXME
9129 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9130 else
9131 ld_shlibs=no
9135 cygwin* | mingw* | pw32* | cegcc*)
9136 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9137 # as there is no search path for DLLs.
9138 hardcode_libdir_flag_spec='-L$libdir'
9139 export_dynamic_flag_spec='${wl}--export-all-symbols'
9140 allow_undefined_flag=unsupported
9141 always_export_symbols=no
9142 enable_shared_with_static_runtimes=yes
9143 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9145 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9146 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9147 # If the export-symbols file already is a .def file (1st line
9148 # is EXPORTS), use it as is; otherwise, prepend...
9149 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9150 cp $export_symbols $output_objdir/$soname.def;
9151 else
9152 echo EXPORTS > $output_objdir/$soname.def;
9153 cat $export_symbols >> $output_objdir/$soname.def;
9155 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9156 else
9157 ld_shlibs=no
9161 haiku*)
9162 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9163 link_all_deplibs=yes
9166 interix[3-9]*)
9167 hardcode_direct=no
9168 hardcode_shlibpath_var=no
9169 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9170 export_dynamic_flag_spec='${wl}-E'
9171 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9172 # Instead, shared libraries are loaded at an image base (0x10000000 by
9173 # default) and relocated if they conflict, which is a slow very memory
9174 # consuming and fragmenting process. To avoid this, we pick a random,
9175 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9176 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9177 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9178 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'
9181 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9182 tmp_diet=no
9183 if test "$host_os" = linux-dietlibc; then
9184 case $cc_basename in
9185 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9186 esac
9188 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9189 && test "$tmp_diet" = no
9190 then
9191 tmp_addflag=' $pic_flag'
9192 tmp_sharedflag='-shared'
9193 case $cc_basename,$host_cpu in
9194 pgcc*) # Portland Group C compiler
9195 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'
9196 tmp_addflag=' $pic_flag'
9198 pgf77* | pgf90* | pgf95* | pgfortran*)
9199 # Portland Group f77 and f90 compilers
9200 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'
9201 tmp_addflag=' $pic_flag -Mnomain' ;;
9202 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9203 tmp_addflag=' -i_dynamic' ;;
9204 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9205 tmp_addflag=' -i_dynamic -nofor_main' ;;
9206 ifc* | ifort*) # Intel Fortran compiler
9207 tmp_addflag=' -nofor_main' ;;
9208 lf95*) # Lahey Fortran 8.1
9209 whole_archive_flag_spec=
9210 tmp_sharedflag='--shared' ;;
9211 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9212 tmp_sharedflag='-qmkshrobj'
9213 tmp_addflag= ;;
9214 nvcc*) # Cuda Compiler Driver 2.2
9215 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'
9216 compiler_needs_object=yes
9218 esac
9219 case `$CC -V 2>&1 | sed 5q` in
9220 *Sun\ C*) # Sun C 5.9
9221 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'
9222 compiler_needs_object=yes
9223 tmp_sharedflag='-G' ;;
9224 *Sun\ F*) # Sun Fortran 8.3
9225 tmp_sharedflag='-G' ;;
9226 esac
9227 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9229 if test "x$supports_anon_versioning" = xyes; then
9230 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9231 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9232 echo "local: *; };" >> $output_objdir/$libname.ver~
9233 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9236 case $cc_basename in
9237 xlf* | bgf* | bgxlf* | mpixlf*)
9238 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9239 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9240 hardcode_libdir_flag_spec=
9241 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9242 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9243 if test "x$supports_anon_versioning" = xyes; then
9244 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9246 echo "local: *; };" >> $output_objdir/$libname.ver~
9247 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9250 esac
9251 else
9252 ld_shlibs=no
9256 netbsd*)
9257 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9258 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9259 wlarc=
9260 else
9261 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9262 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9266 solaris*)
9267 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9268 ld_shlibs=no
9269 cat <<_LT_EOF 1>&2
9271 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9272 *** create shared libraries on Solaris systems. Therefore, libtool
9273 *** is disabling shared libraries support. We urge you to upgrade GNU
9274 *** binutils to release 2.9.1 or newer. Another option is to modify
9275 *** your PATH or compiler configuration so that the native linker is
9276 *** used, and then restart.
9278 _LT_EOF
9279 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9280 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9281 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9282 else
9283 ld_shlibs=no
9287 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9288 case `$LD -v 2>&1` in
9289 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9290 ld_shlibs=no
9291 cat <<_LT_EOF 1>&2
9293 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9294 *** reliably create shared libraries on SCO systems. Therefore, libtool
9295 *** is disabling shared libraries support. We urge you to upgrade GNU
9296 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9297 *** your PATH or compiler configuration so that the native linker is
9298 *** used, and then restart.
9300 _LT_EOF
9303 # For security reasons, it is highly recommended that you always
9304 # use absolute paths for naming shared libraries, and exclude the
9305 # DT_RUNPATH tag from executables and libraries. But doing so
9306 # requires that you compile everything twice, which is a pain.
9307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9308 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9311 else
9312 ld_shlibs=no
9315 esac
9318 sunos4*)
9319 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9320 wlarc=
9321 hardcode_direct=yes
9322 hardcode_shlibpath_var=no
9326 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9329 else
9330 ld_shlibs=no
9333 esac
9335 if test "$ld_shlibs" = no; then
9336 runpath_var=
9337 hardcode_libdir_flag_spec=
9338 export_dynamic_flag_spec=
9339 whole_archive_flag_spec=
9341 else
9342 # PORTME fill in a description of your system's linker (not GNU ld)
9343 case $host_os in
9344 aix3*)
9345 allow_undefined_flag=unsupported
9346 always_export_symbols=yes
9347 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'
9348 # Note: this linker hardcodes the directories in LIBPATH if there
9349 # are no directories specified by -L.
9350 hardcode_minus_L=yes
9351 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9352 # Neither direct hardcoding nor static linking is supported with a
9353 # broken collect2.
9354 hardcode_direct=unsupported
9358 aix[4-9]*)
9359 if test "$host_cpu" = ia64; then
9360 # On IA64, the linker does run time linking by default, so we don't
9361 # have to do anything special.
9362 aix_use_runtimelinking=no
9363 exp_sym_flag='-Bexport'
9364 no_entry_flag=""
9365 else
9366 # If we're using GNU nm, then we don't want the "-C" option.
9367 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9368 # Also, AIX nm treats weak defined symbols like other global
9369 # defined symbols, whereas GNU nm marks them as "W".
9370 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9371 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'
9372 else
9373 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9375 aix_use_runtimelinking=no
9377 # Test if we are trying to use run time linking or normal
9378 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9379 # need to do runtime linking.
9380 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9381 for ld_flag in $LDFLAGS; do
9382 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9383 aix_use_runtimelinking=yes
9384 break
9386 done
9388 esac
9390 exp_sym_flag='-bexport'
9391 no_entry_flag='-bnoentry'
9394 # When large executables or shared objects are built, AIX ld can
9395 # have problems creating the table of contents. If linking a library
9396 # or program results in "error TOC overflow" add -mminimal-toc to
9397 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9398 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9400 archive_cmds=''
9401 hardcode_direct=yes
9402 hardcode_direct_absolute=yes
9403 hardcode_libdir_separator=':'
9404 link_all_deplibs=yes
9405 file_list_spec='${wl}-f,'
9407 if test "$GCC" = yes; then
9408 case $host_os in aix4.[012]|aix4.[012].*)
9409 # We only want to do this on AIX 4.2 and lower, the check
9410 # below for broken collect2 doesn't work under 4.3+
9411 collect2name=`${CC} -print-prog-name=collect2`
9412 if test -f "$collect2name" &&
9413 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9414 then
9415 # We have reworked collect2
9417 else
9418 # We have old collect2
9419 hardcode_direct=unsupported
9420 # It fails to find uninstalled libraries when the uninstalled
9421 # path is not listed in the libpath. Setting hardcode_minus_L
9422 # to unsupported forces relinking
9423 hardcode_minus_L=yes
9424 hardcode_libdir_flag_spec='-L$libdir'
9425 hardcode_libdir_separator=
9428 esac
9429 shared_flag='-shared'
9430 if test "$aix_use_runtimelinking" = yes; then
9431 shared_flag="$shared_flag "'${wl}-G'
9433 else
9434 # not using gcc
9435 if test "$host_cpu" = ia64; then
9436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9437 # chokes on -Wl,-G. The following line is correct:
9438 shared_flag='-G'
9439 else
9440 if test "$aix_use_runtimelinking" = yes; then
9441 shared_flag='${wl}-G'
9442 else
9443 shared_flag='${wl}-bM:SRE'
9448 export_dynamic_flag_spec='${wl}-bexpall'
9449 # It seems that -bexpall does not export symbols beginning with
9450 # underscore (_), so it is better to generate a list of symbols to export.
9451 always_export_symbols=yes
9452 if test "$aix_use_runtimelinking" = yes; then
9453 # Warning - without using the other runtime loading flags (-brtl),
9454 # -berok will link without error, but may produce a broken library.
9455 allow_undefined_flag='-berok'
9456 # Determine the default libpath from the value encoded in an
9457 # empty executable.
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9462 main ()
9466 return 0;
9468 _ACEOF
9469 if ac_fn_c_try_link "$LINENO"; then :
9471 lt_aix_libpath_sed='
9472 /Import File Strings/,/^$/ {
9473 /^0/ {
9474 s/^0 *\(.*\)$/\1/
9478 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9479 # Check for a 64-bit object if we didn't find anything.
9480 if test -z "$aix_libpath"; then
9481 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9484 rm -f core conftest.err conftest.$ac_objext \
9485 conftest$ac_exeext conftest.$ac_ext
9486 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9488 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9489 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"
9490 else
9491 if test "$host_cpu" = ia64; then
9492 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9493 allow_undefined_flag="-z nodefs"
9494 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"
9495 else
9496 # Determine the default libpath from the value encoded in an
9497 # empty executable.
9498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9499 /* end confdefs.h. */
9502 main ()
9506 return 0;
9508 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then :
9511 lt_aix_libpath_sed='
9512 /Import File Strings/,/^$/ {
9513 /^0/ {
9514 s/^0 *\(.*\)$/\1/
9518 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9519 # Check for a 64-bit object if we didn't find anything.
9520 if test -z "$aix_libpath"; then
9521 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9524 rm -f core conftest.err conftest.$ac_objext \
9525 conftest$ac_exeext conftest.$ac_ext
9526 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9528 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9529 # Warning - without using the other run time loading flags,
9530 # -berok will link without error, but may produce a broken library.
9531 no_undefined_flag=' ${wl}-bernotok'
9532 allow_undefined_flag=' ${wl}-berok'
9533 if test "$with_gnu_ld" = yes; then
9534 # We only use this code for GNU lds that support --whole-archive.
9535 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9536 else
9537 # Exported symbols can be pulled into shared objects from archives
9538 whole_archive_flag_spec='$convenience'
9540 archive_cmds_need_lc=yes
9541 # This is similar to how AIX traditionally builds its shared libraries.
9542 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'
9547 amigaos*)
9548 case $host_cpu in
9549 powerpc)
9550 # see comment about AmigaOS4 .so support
9551 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9552 archive_expsym_cmds=''
9554 m68k)
9555 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)'
9556 hardcode_libdir_flag_spec='-L$libdir'
9557 hardcode_minus_L=yes
9559 esac
9562 bsdi[45]*)
9563 export_dynamic_flag_spec=-rdynamic
9566 cygwin* | mingw* | pw32* | cegcc*)
9567 # When not using gcc, we currently assume that we are using
9568 # Microsoft Visual C++.
9569 # hardcode_libdir_flag_spec is actually meaningless, as there is
9570 # no search path for DLLs.
9571 hardcode_libdir_flag_spec=' '
9572 allow_undefined_flag=unsupported
9573 # Tell ltmain to make .lib files, not .a files.
9574 libext=lib
9575 # Tell ltmain to make .dll files, not .so files.
9576 shrext_cmds=".dll"
9577 # FIXME: Setting linknames here is a bad hack.
9578 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9579 # The linker will automatically build a .lib file if we build a DLL.
9580 old_archive_from_new_cmds='true'
9581 # FIXME: Should let the user specify the lib program.
9582 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9583 fix_srcfile_path='`cygpath -w "$srcfile"`'
9584 enable_shared_with_static_runtimes=yes
9587 darwin* | rhapsody*)
9590 archive_cmds_need_lc=no
9591 hardcode_direct=no
9592 hardcode_automatic=yes
9593 hardcode_shlibpath_var=unsupported
9594 if test "$lt_cv_ld_force_load" = "yes"; then
9595 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\"`'
9596 else
9597 whole_archive_flag_spec=''
9599 link_all_deplibs=yes
9600 allow_undefined_flag="$_lt_dar_allow_undefined"
9601 case $cc_basename in
9602 ifort*) _lt_dar_can_shared=yes ;;
9603 *) _lt_dar_can_shared=$GCC ;;
9604 esac
9605 if test "$_lt_dar_can_shared" = "yes"; then
9606 output_verbose_link_cmd=func_echo_all
9607 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9608 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9609 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}"
9610 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}"
9612 else
9613 ld_shlibs=no
9618 dgux*)
9619 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9620 hardcode_libdir_flag_spec='-L$libdir'
9621 hardcode_shlibpath_var=no
9624 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9625 # support. Future versions do this automatically, but an explicit c++rt0.o
9626 # does not break anything, and helps significantly (at the cost of a little
9627 # extra space).
9628 freebsd2.2*)
9629 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9630 hardcode_libdir_flag_spec='-R$libdir'
9631 hardcode_direct=yes
9632 hardcode_shlibpath_var=no
9635 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9636 freebsd2.*)
9637 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9638 hardcode_direct=yes
9639 hardcode_minus_L=yes
9640 hardcode_shlibpath_var=no
9643 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9644 freebsd* | dragonfly*)
9645 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9646 hardcode_libdir_flag_spec='-R$libdir'
9647 hardcode_direct=yes
9648 hardcode_shlibpath_var=no
9651 hpux9*)
9652 if test "$GCC" = yes; then
9653 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'
9654 else
9655 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'
9657 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9658 hardcode_libdir_separator=:
9659 hardcode_direct=yes
9661 # hardcode_minus_L: Not really in the search PATH,
9662 # but as the default location of the library.
9663 hardcode_minus_L=yes
9664 export_dynamic_flag_spec='${wl}-E'
9667 hpux10*)
9668 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9669 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9670 else
9671 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9673 if test "$with_gnu_ld" = no; then
9674 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9675 hardcode_libdir_flag_spec_ld='+b $libdir'
9676 hardcode_libdir_separator=:
9677 hardcode_direct=yes
9678 hardcode_direct_absolute=yes
9679 export_dynamic_flag_spec='${wl}-E'
9680 # hardcode_minus_L: Not really in the search PATH,
9681 # but as the default location of the library.
9682 hardcode_minus_L=yes
9686 hpux11*)
9687 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9688 case $host_cpu in
9689 hppa*64*)
9690 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9692 ia64*)
9693 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9696 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9698 esac
9699 else
9700 case $host_cpu in
9701 hppa*64*)
9702 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9704 ia64*)
9705 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9709 # Older versions of the 11.00 compiler do not understand -b yet
9710 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9712 $as_echo_n "checking if $CC understands -b... " >&6; }
9713 if ${lt_cv_prog_compiler__b+:} false; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 lt_cv_prog_compiler__b=no
9717 save_LDFLAGS="$LDFLAGS"
9718 LDFLAGS="$LDFLAGS -b"
9719 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9720 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9721 # The linker can only warn and ignore the option if not recognized
9722 # So say no if there are warnings
9723 if test -s conftest.err; then
9724 # Append any errors to the config.log.
9725 cat conftest.err 1>&5
9726 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9727 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9728 if diff conftest.exp conftest.er2 >/dev/null; then
9729 lt_cv_prog_compiler__b=yes
9731 else
9732 lt_cv_prog_compiler__b=yes
9735 $RM -r conftest*
9736 LDFLAGS="$save_LDFLAGS"
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9740 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9742 if test x"$lt_cv_prog_compiler__b" = xyes; then
9743 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9744 else
9745 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9749 esac
9751 if test "$with_gnu_ld" = no; then
9752 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9753 hardcode_libdir_separator=:
9755 case $host_cpu in
9756 hppa*64*|ia64*)
9757 hardcode_direct=no
9758 hardcode_shlibpath_var=no
9761 hardcode_direct=yes
9762 hardcode_direct_absolute=yes
9763 export_dynamic_flag_spec='${wl}-E'
9765 # hardcode_minus_L: Not really in the search PATH,
9766 # but as the default location of the library.
9767 hardcode_minus_L=yes
9769 esac
9773 irix5* | irix6* | nonstopux*)
9774 if test "$GCC" = yes; then
9775 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'
9776 # Try to use the -exported_symbol ld option, if it does not
9777 # work, assume that -exports_file does not work either and
9778 # implicitly export all symbols.
9779 save_LDFLAGS="$LDFLAGS"
9780 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9783 int foo(void) {}
9784 _ACEOF
9785 if ac_fn_c_try_link "$LINENO"; then :
9786 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'
9789 rm -f core conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
9791 LDFLAGS="$save_LDFLAGS"
9792 else
9793 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'
9794 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'
9796 archive_cmds_need_lc='no'
9797 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9798 hardcode_libdir_separator=:
9799 inherit_rpath=yes
9800 link_all_deplibs=yes
9803 netbsd*)
9804 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9805 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9806 else
9807 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9809 hardcode_libdir_flag_spec='-R$libdir'
9810 hardcode_direct=yes
9811 hardcode_shlibpath_var=no
9814 newsos6)
9815 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9816 hardcode_direct=yes
9817 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9818 hardcode_libdir_separator=:
9819 hardcode_shlibpath_var=no
9822 *nto* | *qnx*)
9825 openbsd*)
9826 if test -f /usr/libexec/ld.so; then
9827 hardcode_direct=yes
9828 hardcode_shlibpath_var=no
9829 hardcode_direct_absolute=yes
9830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9831 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9832 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9833 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9834 export_dynamic_flag_spec='${wl}-E'
9835 else
9836 case $host_os in
9837 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9838 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9839 hardcode_libdir_flag_spec='-R$libdir'
9842 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9843 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9845 esac
9847 else
9848 ld_shlibs=no
9852 os2*)
9853 hardcode_libdir_flag_spec='-L$libdir'
9854 hardcode_minus_L=yes
9855 allow_undefined_flag=unsupported
9856 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'
9857 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9860 osf3*)
9861 if test "$GCC" = yes; then
9862 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9863 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'
9864 else
9865 allow_undefined_flag=' -expect_unresolved \*'
9866 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'
9868 archive_cmds_need_lc='no'
9869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9870 hardcode_libdir_separator=:
9873 osf4* | osf5*) # as osf3* with the addition of -msym flag
9874 if test "$GCC" = yes; then
9875 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9876 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'
9877 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9878 else
9879 allow_undefined_flag=' -expect_unresolved \*'
9880 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'
9881 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~
9882 $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'
9884 # Both c and cxx compiler support -rpath directly
9885 hardcode_libdir_flag_spec='-rpath $libdir'
9887 archive_cmds_need_lc='no'
9888 hardcode_libdir_separator=:
9891 solaris*)
9892 no_undefined_flag=' -z defs'
9893 if test "$GCC" = yes; then
9894 wlarc='${wl}'
9895 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9896 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9897 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9898 else
9899 case `$CC -V 2>&1` in
9900 *"Compilers 5.0"*)
9901 wlarc=''
9902 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9904 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9907 wlarc='${wl}'
9908 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9909 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9910 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9912 esac
9914 hardcode_libdir_flag_spec='-R$libdir'
9915 hardcode_shlibpath_var=no
9916 case $host_os in
9917 solaris2.[0-5] | solaris2.[0-5].*) ;;
9919 # The compiler driver will combine and reorder linker options,
9920 # but understands `-z linker_flag'. GCC discards it without `$wl',
9921 # but is careful enough not to reorder.
9922 # Supported since Solaris 2.6 (maybe 2.5.1?)
9923 if test "$GCC" = yes; then
9924 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9925 else
9926 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9929 esac
9930 link_all_deplibs=yes
9933 sunos4*)
9934 if test "x$host_vendor" = xsequent; then
9935 # Use $CC to link under sequent, because it throws in some extra .o
9936 # files that make .init and .fini sections work.
9937 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9938 else
9939 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9941 hardcode_libdir_flag_spec='-L$libdir'
9942 hardcode_direct=yes
9943 hardcode_minus_L=yes
9944 hardcode_shlibpath_var=no
9947 sysv4)
9948 case $host_vendor in
9949 sni)
9950 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951 hardcode_direct=yes # is this really true???
9953 siemens)
9954 ## LD is ld it makes a PLAMLIB
9955 ## CC just makes a GrossModule.
9956 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9957 reload_cmds='$CC -r -o $output$reload_objs'
9958 hardcode_direct=no
9960 motorola)
9961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9962 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9964 esac
9965 runpath_var='LD_RUN_PATH'
9966 hardcode_shlibpath_var=no
9969 sysv4.3*)
9970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9971 hardcode_shlibpath_var=no
9972 export_dynamic_flag_spec='-Bexport'
9975 sysv4*MP*)
9976 if test -d /usr/nec; then
9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 hardcode_shlibpath_var=no
9979 runpath_var=LD_RUN_PATH
9980 hardcode_runpath_var=yes
9981 ld_shlibs=yes
9985 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9986 no_undefined_flag='${wl}-z,text'
9987 archive_cmds_need_lc=no
9988 hardcode_shlibpath_var=no
9989 runpath_var='LD_RUN_PATH'
9991 if test "$GCC" = yes; then
9992 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9993 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9994 else
9995 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9996 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10000 sysv5* | sco3.2v5* | sco5v6*)
10001 # Note: We can NOT use -z defs as we might desire, because we do not
10002 # link with -lc, and that would cause any symbols used from libc to
10003 # always be unresolved, which means just about no library would
10004 # ever link correctly. If we're not using GNU ld we use -z text
10005 # though, which does catch some bad symbols but isn't as heavy-handed
10006 # as -z defs.
10007 no_undefined_flag='${wl}-z,text'
10008 allow_undefined_flag='${wl}-z,nodefs'
10009 archive_cmds_need_lc=no
10010 hardcode_shlibpath_var=no
10011 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10012 hardcode_libdir_separator=':'
10013 link_all_deplibs=yes
10014 export_dynamic_flag_spec='${wl}-Bexport'
10015 runpath_var='LD_RUN_PATH'
10017 if test "$GCC" = yes; then
10018 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10019 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 else
10021 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 uts4*)
10027 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10028 hardcode_libdir_flag_spec='-L$libdir'
10029 hardcode_shlibpath_var=no
10033 ld_shlibs=no
10035 esac
10037 if test x$host_vendor = xsni; then
10038 case $host in
10039 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10040 export_dynamic_flag_spec='${wl}-Blargedynsym'
10042 esac
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10047 $as_echo "$ld_shlibs" >&6; }
10048 test "$ld_shlibs" = no && can_build_shared=no
10050 with_gnu_ld=$with_gnu_ld
10067 # Do we need to explicitly link libc?
10069 case "x$archive_cmds_need_lc" in
10070 x|xyes)
10071 # Assume -lc should be added
10072 archive_cmds_need_lc=yes
10074 if test "$enable_shared" = yes && test "$GCC" = yes; then
10075 case $archive_cmds in
10076 *'~'*)
10077 # FIXME: we may have to deal with multi-command sequences.
10079 '$CC '*)
10080 # Test whether the compiler implicitly links with -lc since on some
10081 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10082 # to ld, don't add -lc before -lgcc.
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10084 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10085 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10086 $as_echo_n "(cached) " >&6
10087 else
10088 $RM conftest*
10089 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10091 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10092 (eval $ac_compile) 2>&5
10093 ac_status=$?
10094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10095 test $ac_status = 0; } 2>conftest.err; then
10096 soname=conftest
10097 lib=conftest
10098 libobjs=conftest.$ac_objext
10099 deplibs=
10100 wl=$lt_prog_compiler_wl
10101 pic_flag=$lt_prog_compiler_pic
10102 compiler_flags=-v
10103 linker_flags=-v
10104 verstring=
10105 output_objdir=.
10106 libname=conftest
10107 lt_save_allow_undefined_flag=$allow_undefined_flag
10108 allow_undefined_flag=
10109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10110 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10111 ac_status=$?
10112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10113 test $ac_status = 0; }
10114 then
10115 lt_cv_archive_cmds_need_lc=no
10116 else
10117 lt_cv_archive_cmds_need_lc=yes
10119 allow_undefined_flag=$lt_save_allow_undefined_flag
10120 else
10121 cat conftest.err 1>&5
10123 $RM conftest*
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10127 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10128 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10130 esac
10133 esac
10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10292 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10294 if test "$GCC" = yes; then
10295 case $host_os in
10296 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10297 *) lt_awk_arg="/^libraries:/" ;;
10298 esac
10299 case $host_os in
10300 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10301 *) lt_sed_strip_eq="s,=/,/,g" ;;
10302 esac
10303 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10304 case $lt_search_path_spec in
10305 *\;*)
10306 # if the path contains ";" then we assume it to be the separator
10307 # otherwise default to the standard path separator (i.e. ":") - it is
10308 # assumed that no part of a normal pathname contains ";" but that should
10309 # okay in the real world where ";" in dirpaths is itself problematic.
10310 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10313 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10315 esac
10316 # Ok, now we have the path, separated by spaces, we can step through it
10317 # and add multilib dir if necessary.
10318 lt_tmp_lt_search_path_spec=
10319 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10320 for lt_sys_path in $lt_search_path_spec; do
10321 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10322 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10323 else
10324 test -d "$lt_sys_path" && \
10325 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10327 done
10328 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10329 BEGIN {RS=" "; FS="/|\n";} {
10330 lt_foo="";
10331 lt_count=0;
10332 for (lt_i = NF; lt_i > 0; lt_i--) {
10333 if ($lt_i != "" && $lt_i != ".") {
10334 if ($lt_i == "..") {
10335 lt_count++;
10336 } else {
10337 if (lt_count == 0) {
10338 lt_foo="/" $lt_i lt_foo;
10339 } else {
10340 lt_count--;
10345 if (lt_foo != "") { lt_freq[lt_foo]++; }
10346 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10348 # AWK program above erroneously prepends '/' to C:/dos/paths
10349 # for these hosts.
10350 case $host_os in
10351 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10352 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10353 esac
10354 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10355 else
10356 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10358 library_names_spec=
10359 libname_spec='lib$name'
10360 soname_spec=
10361 shrext_cmds=".so"
10362 postinstall_cmds=
10363 postuninstall_cmds=
10364 finish_cmds=
10365 finish_eval=
10366 shlibpath_var=
10367 shlibpath_overrides_runpath=unknown
10368 version_type=none
10369 dynamic_linker="$host_os ld.so"
10370 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10371 need_lib_prefix=unknown
10372 hardcode_into_libs=no
10374 # when you set need_version to no, make sure it does not cause -set_version
10375 # flags to be left without arguments
10376 need_version=unknown
10378 case $host_os in
10379 aix3*)
10380 version_type=linux
10381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10382 shlibpath_var=LIBPATH
10384 # AIX 3 has no versioning support, so we append a major version to the name.
10385 soname_spec='${libname}${release}${shared_ext}$major'
10388 aix[4-9]*)
10389 version_type=linux
10390 need_lib_prefix=no
10391 need_version=no
10392 hardcode_into_libs=yes
10393 if test "$host_cpu" = ia64; then
10394 # AIX 5 supports IA64
10395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10396 shlibpath_var=LD_LIBRARY_PATH
10397 else
10398 # With GCC up to 2.95.x, collect2 would create an import file
10399 # for dependence libraries. The import file would start with
10400 # the line `#! .'. This would cause the generated library to
10401 # depend on `.', always an invalid library. This was fixed in
10402 # development snapshots of GCC prior to 3.0.
10403 case $host_os in
10404 aix4 | aix4.[01] | aix4.[01].*)
10405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10406 echo ' yes '
10407 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10409 else
10410 can_build_shared=no
10413 esac
10414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10415 # soname into executable. Probably we can add versioning support to
10416 # collect2, so additional links can be useful in future.
10417 if test "$aix_use_runtimelinking" = yes; then
10418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10419 # instead of lib<name>.a to let people know that these are not
10420 # typical AIX shared libraries.
10421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10422 else
10423 # We preserve .a as extension for shared libraries through AIX4.2
10424 # and later when we are not doing run time linking.
10425 library_names_spec='${libname}${release}.a $libname.a'
10426 soname_spec='${libname}${release}${shared_ext}$major'
10428 shlibpath_var=LIBPATH
10432 amigaos*)
10433 case $host_cpu in
10434 powerpc)
10435 # Since July 2007 AmigaOS4 officially supports .so libraries.
10436 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10439 m68k)
10440 library_names_spec='$libname.ixlibrary $libname.a'
10441 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10442 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'
10444 esac
10447 beos*)
10448 library_names_spec='${libname}${shared_ext}'
10449 dynamic_linker="$host_os ld.so"
10450 shlibpath_var=LIBRARY_PATH
10453 bsdi[45]*)
10454 version_type=linux
10455 need_version=no
10456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10457 soname_spec='${libname}${release}${shared_ext}$major'
10458 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10459 shlibpath_var=LD_LIBRARY_PATH
10460 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10461 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10462 # the default ld.so.conf also contains /usr/contrib/lib and
10463 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10464 # libtool to hard-code these into programs
10467 cygwin* | mingw* | pw32* | cegcc*)
10468 version_type=windows
10469 shrext_cmds=".dll"
10470 need_version=no
10471 need_lib_prefix=no
10473 case $GCC,$host_os in
10474 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10475 library_names_spec='$libname.dll.a'
10476 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10477 postinstall_cmds='base_file=`basename \${file}`~
10478 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10479 dldir=$destdir/`dirname \$dlpath`~
10480 test -d \$dldir || mkdir -p \$dldir~
10481 $install_prog $dir/$dlname \$dldir/$dlname~
10482 chmod a+x \$dldir/$dlname~
10483 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10484 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10486 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10487 dlpath=$dir/\$dldll~
10488 $RM \$dlpath'
10489 shlibpath_overrides_runpath=yes
10491 case $host_os in
10492 cygwin*)
10493 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10494 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10496 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10498 mingw* | cegcc*)
10499 # MinGW DLLs use traditional 'lib' prefix
10500 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10502 pw32*)
10503 # pw32 DLLs use 'pw' prefix rather than 'lib'
10504 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10506 esac
10510 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10512 esac
10513 dynamic_linker='Win32 ld.exe'
10514 # FIXME: first we should search . and the directory the executable is in
10515 shlibpath_var=PATH
10518 darwin* | rhapsody*)
10519 dynamic_linker="$host_os dyld"
10520 version_type=darwin
10521 need_lib_prefix=no
10522 need_version=no
10523 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10524 soname_spec='${libname}${release}${major}$shared_ext'
10525 shlibpath_overrides_runpath=yes
10526 shlibpath_var=DYLD_LIBRARY_PATH
10527 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10529 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10530 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10533 dgux*)
10534 version_type=linux
10535 need_lib_prefix=no
10536 need_version=no
10537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10538 soname_spec='${libname}${release}${shared_ext}$major'
10539 shlibpath_var=LD_LIBRARY_PATH
10542 freebsd* | dragonfly*)
10543 # DragonFly does not have aout. When/if they implement a new
10544 # versioning mechanism, adjust this.
10545 if test -x /usr/bin/objformat; then
10546 objformat=`/usr/bin/objformat`
10547 else
10548 case $host_os in
10549 freebsd[23].*) objformat=aout ;;
10550 *) objformat=elf ;;
10551 esac
10553 version_type=freebsd-$objformat
10554 case $version_type in
10555 freebsd-elf*)
10556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10557 need_version=no
10558 need_lib_prefix=no
10560 freebsd-*)
10561 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10562 need_version=yes
10564 esac
10565 shlibpath_var=LD_LIBRARY_PATH
10566 case $host_os in
10567 freebsd2.*)
10568 shlibpath_overrides_runpath=yes
10570 freebsd3.[01]* | freebsdelf3.[01]*)
10571 shlibpath_overrides_runpath=yes
10572 hardcode_into_libs=yes
10574 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10575 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10576 shlibpath_overrides_runpath=no
10577 hardcode_into_libs=yes
10579 *) # from 4.6 on, and DragonFly
10580 shlibpath_overrides_runpath=yes
10581 hardcode_into_libs=yes
10583 esac
10586 gnu*)
10587 version_type=linux
10588 need_lib_prefix=no
10589 need_version=no
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10591 soname_spec='${libname}${release}${shared_ext}$major'
10592 shlibpath_var=LD_LIBRARY_PATH
10593 hardcode_into_libs=yes
10596 haiku*)
10597 version_type=linux
10598 need_lib_prefix=no
10599 need_version=no
10600 dynamic_linker="$host_os runtime_loader"
10601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10602 soname_spec='${libname}${release}${shared_ext}$major'
10603 shlibpath_var=LIBRARY_PATH
10604 shlibpath_overrides_runpath=yes
10605 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10606 hardcode_into_libs=yes
10609 hpux9* | hpux10* | hpux11*)
10610 # Give a soname corresponding to the major version so that dld.sl refuses to
10611 # link against other versions.
10612 version_type=sunos
10613 need_lib_prefix=no
10614 need_version=no
10615 case $host_cpu in
10616 ia64*)
10617 shrext_cmds='.so'
10618 hardcode_into_libs=yes
10619 dynamic_linker="$host_os dld.so"
10620 shlibpath_var=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10623 soname_spec='${libname}${release}${shared_ext}$major'
10624 if test "X$HPUX_IA64_MODE" = X32; then
10625 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10626 else
10627 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10629 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10631 hppa*64*)
10632 shrext_cmds='.sl'
10633 hardcode_into_libs=yes
10634 dynamic_linker="$host_os dld.sl"
10635 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10636 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10638 soname_spec='${libname}${release}${shared_ext}$major'
10639 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10643 shrext_cmds='.sl'
10644 dynamic_linker="$host_os dld.sl"
10645 shlibpath_var=SHLIB_PATH
10646 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10648 soname_spec='${libname}${release}${shared_ext}$major'
10650 esac
10651 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10652 postinstall_cmds='chmod 555 $lib'
10653 # or fails outright, so override atomically:
10654 install_override_mode=555
10657 interix[3-9]*)
10658 version_type=linux
10659 need_lib_prefix=no
10660 need_version=no
10661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10662 soname_spec='${libname}${release}${shared_ext}$major'
10663 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 shlibpath_overrides_runpath=no
10666 hardcode_into_libs=yes
10669 irix5* | irix6* | nonstopux*)
10670 case $host_os in
10671 nonstopux*) version_type=nonstopux ;;
10673 if test "$lt_cv_prog_gnu_ld" = yes; then
10674 version_type=linux
10675 else
10676 version_type=irix
10677 fi ;;
10678 esac
10679 need_lib_prefix=no
10680 need_version=no
10681 soname_spec='${libname}${release}${shared_ext}$major'
10682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10683 case $host_os in
10684 irix5* | nonstopux*)
10685 libsuff= shlibsuff=
10688 case $LD in # libtool.m4 will add one of these switches to LD
10689 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10690 libsuff= shlibsuff= libmagic=32-bit;;
10691 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10692 libsuff=32 shlibsuff=N32 libmagic=N32;;
10693 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10694 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10695 *) libsuff= shlibsuff= libmagic=never-match;;
10696 esac
10698 esac
10699 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10700 shlibpath_overrides_runpath=no
10701 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10702 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10703 hardcode_into_libs=yes
10706 # No shared lib support for Linux oldld, aout, or coff.
10707 linux*oldld* | linux*aout* | linux*coff*)
10708 dynamic_linker=no
10711 # This must be Linux ELF.
10712 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10713 version_type=linux
10714 need_lib_prefix=no
10715 need_version=no
10716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10719 shlibpath_var=LD_LIBRARY_PATH
10720 shlibpath_overrides_runpath=no
10722 # Some binutils ld are patched to set DT_RUNPATH
10723 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10724 $as_echo_n "(cached) " >&6
10725 else
10726 lt_cv_shlibpath_overrides_runpath=no
10727 save_LDFLAGS=$LDFLAGS
10728 save_libdir=$libdir
10729 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10730 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10732 /* end confdefs.h. */
10735 main ()
10739 return 0;
10741 _ACEOF
10742 if ac_fn_c_try_link "$LINENO"; then :
10743 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10744 lt_cv_shlibpath_overrides_runpath=yes
10747 rm -f core conftest.err conftest.$ac_objext \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LDFLAGS=$save_LDFLAGS
10750 libdir=$save_libdir
10754 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10756 # This implies no fast_install, which is unacceptable.
10757 # Some rework will be needed to allow for fast_install
10758 # before this can be enabled.
10759 hardcode_into_libs=yes
10761 # Append ld.so.conf contents to the search path
10762 if test -f /etc/ld.so.conf; then
10763 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' ' '`
10764 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10767 # We used to test for /lib/ld.so.1 and disable shared libraries on
10768 # powerpc, because MkLinux only supported shared libraries with the
10769 # GNU dynamic linker. Since this was broken with cross compilers,
10770 # most powerpc-linux boxes support dynamic linking these days and
10771 # people can always --disable-shared, the test was removed, and we
10772 # assume the GNU/Linux dynamic linker is in use.
10773 dynamic_linker='GNU/Linux ld.so'
10776 netbsd*)
10777 version_type=sunos
10778 need_lib_prefix=no
10779 need_version=no
10780 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10782 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10783 dynamic_linker='NetBSD (a.out) ld.so'
10784 else
10785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10786 soname_spec='${libname}${release}${shared_ext}$major'
10787 dynamic_linker='NetBSD ld.elf_so'
10789 shlibpath_var=LD_LIBRARY_PATH
10790 shlibpath_overrides_runpath=yes
10791 hardcode_into_libs=yes
10794 newsos6)
10795 version_type=linux
10796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10797 shlibpath_var=LD_LIBRARY_PATH
10798 shlibpath_overrides_runpath=yes
10801 *nto* | *qnx*)
10802 version_type=qnx
10803 need_lib_prefix=no
10804 need_version=no
10805 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806 soname_spec='${libname}${release}${shared_ext}$major'
10807 shlibpath_var=LD_LIBRARY_PATH
10808 shlibpath_overrides_runpath=no
10809 hardcode_into_libs=yes
10810 dynamic_linker='ldqnx.so'
10813 openbsd*)
10814 version_type=sunos
10815 sys_lib_dlsearch_path_spec="/usr/lib"
10816 need_lib_prefix=no
10817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10818 case $host_os in
10819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10820 *) need_version=no ;;
10821 esac
10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10824 shlibpath_var=LD_LIBRARY_PATH
10825 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10826 case $host_os in
10827 openbsd2.[89] | openbsd2.[89].*)
10828 shlibpath_overrides_runpath=no
10831 shlibpath_overrides_runpath=yes
10833 esac
10834 else
10835 shlibpath_overrides_runpath=yes
10839 os2*)
10840 libname_spec='$name'
10841 shrext_cmds=".dll"
10842 need_lib_prefix=no
10843 library_names_spec='$libname${shared_ext} $libname.a'
10844 dynamic_linker='OS/2 ld.exe'
10845 shlibpath_var=LIBPATH
10848 osf3* | osf4* | osf5*)
10849 version_type=osf
10850 need_lib_prefix=no
10851 need_version=no
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10854 shlibpath_var=LD_LIBRARY_PATH
10855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10859 rdos*)
10860 dynamic_linker=no
10863 solaris*)
10864 version_type=linux
10865 need_lib_prefix=no
10866 need_version=no
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 shlibpath_var=LD_LIBRARY_PATH
10870 shlibpath_overrides_runpath=yes
10871 hardcode_into_libs=yes
10872 # ldd complains unless libraries are executable
10873 postinstall_cmds='chmod +x $lib'
10876 sunos4*)
10877 version_type=sunos
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10879 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10880 shlibpath_var=LD_LIBRARY_PATH
10881 shlibpath_overrides_runpath=yes
10882 if test "$with_gnu_ld" = yes; then
10883 need_lib_prefix=no
10885 need_version=yes
10888 sysv4 | sysv4.3*)
10889 version_type=linux
10890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10891 soname_spec='${libname}${release}${shared_ext}$major'
10892 shlibpath_var=LD_LIBRARY_PATH
10893 case $host_vendor in
10894 sni)
10895 shlibpath_overrides_runpath=no
10896 need_lib_prefix=no
10897 runpath_var=LD_RUN_PATH
10899 siemens)
10900 need_lib_prefix=no
10902 motorola)
10903 need_lib_prefix=no
10904 need_version=no
10905 shlibpath_overrides_runpath=no
10906 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10908 esac
10911 sysv4*MP*)
10912 if test -d /usr/nec ;then
10913 version_type=linux
10914 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10915 soname_spec='$libname${shared_ext}.$major'
10916 shlibpath_var=LD_LIBRARY_PATH
10920 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10921 version_type=freebsd-elf
10922 need_lib_prefix=no
10923 need_version=no
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10925 soname_spec='${libname}${release}${shared_ext}$major'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 shlibpath_overrides_runpath=yes
10928 hardcode_into_libs=yes
10929 if test "$with_gnu_ld" = yes; then
10930 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10931 else
10932 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10933 case $host_os in
10934 sco3.2v5*)
10935 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10937 esac
10939 sys_lib_dlsearch_path_spec='/usr/lib'
10942 tpf*)
10943 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10944 version_type=linux
10945 need_lib_prefix=no
10946 need_version=no
10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948 shlibpath_var=LD_LIBRARY_PATH
10949 shlibpath_overrides_runpath=no
10950 hardcode_into_libs=yes
10953 uts4*)
10954 version_type=linux
10955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10956 soname_spec='${libname}${release}${shared_ext}$major'
10957 shlibpath_var=LD_LIBRARY_PATH
10961 dynamic_linker=no
10963 esac
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10965 $as_echo "$dynamic_linker" >&6; }
10966 test "$dynamic_linker" = no && can_build_shared=no
10968 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10969 if test "$GCC" = yes; then
10970 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10973 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10974 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10976 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10977 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11072 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11073 hardcode_action=
11074 if test -n "$hardcode_libdir_flag_spec" ||
11075 test -n "$runpath_var" ||
11076 test "X$hardcode_automatic" = "Xyes" ; then
11078 # We can hardcode non-existent directories.
11079 if test "$hardcode_direct" != no &&
11080 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11081 # have to relink, otherwise we might link with an installed library
11082 # when we should be linking with a yet-to-be-installed one
11083 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11084 test "$hardcode_minus_L" != no; then
11085 # Linking always hardcodes the temporary library directory.
11086 hardcode_action=relink
11087 else
11088 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11089 hardcode_action=immediate
11091 else
11092 # We cannot hardcode anything, or else we can only hardcode existing
11093 # directories.
11094 hardcode_action=unsupported
11096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11097 $as_echo "$hardcode_action" >&6; }
11099 if test "$hardcode_action" = relink ||
11100 test "$inherit_rpath" = yes; then
11101 # Fast installation is not supported
11102 enable_fast_install=no
11103 elif test "$shlibpath_overrides_runpath" = yes ||
11104 test "$enable_shared" = no; then
11105 # Fast installation is not necessary
11106 enable_fast_install=needless
11114 if test "x$enable_dlopen" != xyes; then
11115 enable_dlopen=unknown
11116 enable_dlopen_self=unknown
11117 enable_dlopen_self_static=unknown
11118 else
11119 lt_cv_dlopen=no
11120 lt_cv_dlopen_libs=
11122 case $host_os in
11123 beos*)
11124 lt_cv_dlopen="load_add_on"
11125 lt_cv_dlopen_libs=
11126 lt_cv_dlopen_self=yes
11129 mingw* | pw32* | cegcc*)
11130 lt_cv_dlopen="LoadLibrary"
11131 lt_cv_dlopen_libs=
11134 cygwin*)
11135 lt_cv_dlopen="dlopen"
11136 lt_cv_dlopen_libs=
11139 darwin*)
11140 # if libdl is installed we need to link against it
11141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11142 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11143 if ${ac_cv_lib_dl_dlopen+:} false; then :
11144 $as_echo_n "(cached) " >&6
11145 else
11146 ac_check_lib_save_LIBS=$LIBS
11147 LIBS="-ldl $LIBS"
11148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11149 /* end confdefs.h. */
11151 /* Override any GCC internal prototype to avoid an error.
11152 Use char because int might match the return type of a GCC
11153 builtin and then its argument prototype would still apply. */
11154 #ifdef __cplusplus
11155 extern "C"
11156 #endif
11157 char dlopen ();
11159 main ()
11161 return dlopen ();
11163 return 0;
11165 _ACEOF
11166 if ac_fn_c_try_link "$LINENO"; then :
11167 ac_cv_lib_dl_dlopen=yes
11168 else
11169 ac_cv_lib_dl_dlopen=no
11171 rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11173 LIBS=$ac_check_lib_save_LIBS
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11176 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11177 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11178 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11179 else
11181 lt_cv_dlopen="dyld"
11182 lt_cv_dlopen_libs=
11183 lt_cv_dlopen_self=yes
11190 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11191 if test "x$ac_cv_func_shl_load" = xyes; then :
11192 lt_cv_dlopen="shl_load"
11193 else
11194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11195 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11196 if ${ac_cv_lib_dld_shl_load+:} false; then :
11197 $as_echo_n "(cached) " >&6
11198 else
11199 ac_check_lib_save_LIBS=$LIBS
11200 LIBS="-ldld $LIBS"
11201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11202 /* end confdefs.h. */
11204 /* Override any GCC internal prototype to avoid an error.
11205 Use char because int might match the return type of a GCC
11206 builtin and then its argument prototype would still apply. */
11207 #ifdef __cplusplus
11208 extern "C"
11209 #endif
11210 char shl_load ();
11212 main ()
11214 return shl_load ();
11216 return 0;
11218 _ACEOF
11219 if ac_fn_c_try_link "$LINENO"; then :
11220 ac_cv_lib_dld_shl_load=yes
11221 else
11222 ac_cv_lib_dld_shl_load=no
11224 rm -f core conftest.err conftest.$ac_objext \
11225 conftest$ac_exeext conftest.$ac_ext
11226 LIBS=$ac_check_lib_save_LIBS
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11229 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11230 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11231 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11232 else
11233 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11234 if test "x$ac_cv_func_dlopen" = xyes; then :
11235 lt_cv_dlopen="dlopen"
11236 else
11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11238 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11239 if ${ac_cv_lib_dl_dlopen+:} false; then :
11240 $as_echo_n "(cached) " >&6
11241 else
11242 ac_check_lib_save_LIBS=$LIBS
11243 LIBS="-ldl $LIBS"
11244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11245 /* end confdefs.h. */
11247 /* Override any GCC internal prototype to avoid an error.
11248 Use char because int might match the return type of a GCC
11249 builtin and then its argument prototype would still apply. */
11250 #ifdef __cplusplus
11251 extern "C"
11252 #endif
11253 char dlopen ();
11255 main ()
11257 return dlopen ();
11259 return 0;
11261 _ACEOF
11262 if ac_fn_c_try_link "$LINENO"; then :
11263 ac_cv_lib_dl_dlopen=yes
11264 else
11265 ac_cv_lib_dl_dlopen=no
11267 rm -f core conftest.err conftest.$ac_objext \
11268 conftest$ac_exeext conftest.$ac_ext
11269 LIBS=$ac_check_lib_save_LIBS
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11272 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11273 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11274 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11277 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11278 if ${ac_cv_lib_svld_dlopen+:} false; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 ac_check_lib_save_LIBS=$LIBS
11282 LIBS="-lsvld $LIBS"
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11286 /* Override any GCC internal prototype to avoid an error.
11287 Use char because int might match the return type of a GCC
11288 builtin and then its argument prototype would still apply. */
11289 #ifdef __cplusplus
11290 extern "C"
11291 #endif
11292 char dlopen ();
11294 main ()
11296 return dlopen ();
11298 return 0;
11300 _ACEOF
11301 if ac_fn_c_try_link "$LINENO"; then :
11302 ac_cv_lib_svld_dlopen=yes
11303 else
11304 ac_cv_lib_svld_dlopen=no
11306 rm -f core conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_lib_save_LIBS
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11311 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11312 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11313 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11314 else
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11316 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11317 if ${ac_cv_lib_dld_dld_link+:} false; then :
11318 $as_echo_n "(cached) " >&6
11319 else
11320 ac_check_lib_save_LIBS=$LIBS
11321 LIBS="-ldld $LIBS"
11322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11323 /* end confdefs.h. */
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char dld_link ();
11333 main ()
11335 return dld_link ();
11337 return 0;
11339 _ACEOF
11340 if ac_fn_c_try_link "$LINENO"; then :
11341 ac_cv_lib_dld_dld_link=yes
11342 else
11343 ac_cv_lib_dld_dld_link=no
11345 rm -f core conftest.err conftest.$ac_objext \
11346 conftest$ac_exeext conftest.$ac_ext
11347 LIBS=$ac_check_lib_save_LIBS
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11350 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11351 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11352 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11371 esac
11373 if test "x$lt_cv_dlopen" != xno; then
11374 enable_dlopen=yes
11375 else
11376 enable_dlopen=no
11379 case $lt_cv_dlopen in
11380 dlopen)
11381 save_CPPFLAGS="$CPPFLAGS"
11382 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11384 save_LDFLAGS="$LDFLAGS"
11385 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11387 save_LIBS="$LIBS"
11388 LIBS="$lt_cv_dlopen_libs $LIBS"
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11391 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11392 if ${lt_cv_dlopen_self+:} false; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 if test "$cross_compiling" = yes; then :
11396 lt_cv_dlopen_self=cross
11397 else
11398 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11399 lt_status=$lt_dlunknown
11400 cat > conftest.$ac_ext <<_LT_EOF
11401 #line 11401 "configure"
11402 #include "confdefs.h"
11404 #if HAVE_DLFCN_H
11405 #include <dlfcn.h>
11406 #endif
11408 #include <stdio.h>
11410 #ifdef RTLD_GLOBAL
11411 # define LT_DLGLOBAL RTLD_GLOBAL
11412 #else
11413 # ifdef DL_GLOBAL
11414 # define LT_DLGLOBAL DL_GLOBAL
11415 # else
11416 # define LT_DLGLOBAL 0
11417 # endif
11418 #endif
11420 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11421 find out it does not work in some platform. */
11422 #ifndef LT_DLLAZY_OR_NOW
11423 # ifdef RTLD_LAZY
11424 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11425 # else
11426 # ifdef DL_LAZY
11427 # define LT_DLLAZY_OR_NOW DL_LAZY
11428 # else
11429 # ifdef RTLD_NOW
11430 # define LT_DLLAZY_OR_NOW RTLD_NOW
11431 # else
11432 # ifdef DL_NOW
11433 # define LT_DLLAZY_OR_NOW DL_NOW
11434 # else
11435 # define LT_DLLAZY_OR_NOW 0
11436 # endif
11437 # endif
11438 # endif
11439 # endif
11440 #endif
11442 /* When -fvisbility=hidden is used, assume the code has been annotated
11443 correspondingly for the symbols needed. */
11444 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11445 void fnord () __attribute__((visibility("default")));
11446 #endif
11448 void fnord () { int i=42; }
11449 int main ()
11451 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11452 int status = $lt_dlunknown;
11454 if (self)
11456 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11457 else
11459 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11460 else puts (dlerror ());
11462 /* dlclose (self); */
11464 else
11465 puts (dlerror ());
11467 return status;
11469 _LT_EOF
11470 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11471 (eval $ac_link) 2>&5
11472 ac_status=$?
11473 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11474 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11475 (./conftest; exit; ) >&5 2>/dev/null
11476 lt_status=$?
11477 case x$lt_status in
11478 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11479 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11480 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11481 esac
11482 else :
11483 # compilation failed
11484 lt_cv_dlopen_self=no
11487 rm -fr conftest*
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11492 $as_echo "$lt_cv_dlopen_self" >&6; }
11494 if test "x$lt_cv_dlopen_self" = xyes; then
11495 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11497 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11498 if ${lt_cv_dlopen_self_static+:} false; then :
11499 $as_echo_n "(cached) " >&6
11500 else
11501 if test "$cross_compiling" = yes; then :
11502 lt_cv_dlopen_self_static=cross
11503 else
11504 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11505 lt_status=$lt_dlunknown
11506 cat > conftest.$ac_ext <<_LT_EOF
11507 #line 11507 "configure"
11508 #include "confdefs.h"
11510 #if HAVE_DLFCN_H
11511 #include <dlfcn.h>
11512 #endif
11514 #include <stdio.h>
11516 #ifdef RTLD_GLOBAL
11517 # define LT_DLGLOBAL RTLD_GLOBAL
11518 #else
11519 # ifdef DL_GLOBAL
11520 # define LT_DLGLOBAL DL_GLOBAL
11521 # else
11522 # define LT_DLGLOBAL 0
11523 # endif
11524 #endif
11526 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11527 find out it does not work in some platform. */
11528 #ifndef LT_DLLAZY_OR_NOW
11529 # ifdef RTLD_LAZY
11530 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11531 # else
11532 # ifdef DL_LAZY
11533 # define LT_DLLAZY_OR_NOW DL_LAZY
11534 # else
11535 # ifdef RTLD_NOW
11536 # define LT_DLLAZY_OR_NOW RTLD_NOW
11537 # else
11538 # ifdef DL_NOW
11539 # define LT_DLLAZY_OR_NOW DL_NOW
11540 # else
11541 # define LT_DLLAZY_OR_NOW 0
11542 # endif
11543 # endif
11544 # endif
11545 # endif
11546 #endif
11548 /* When -fvisbility=hidden is used, assume the code has been annotated
11549 correspondingly for the symbols needed. */
11550 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11551 void fnord () __attribute__((visibility("default")));
11552 #endif
11554 void fnord () { int i=42; }
11555 int main ()
11557 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11558 int status = $lt_dlunknown;
11560 if (self)
11562 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11563 else
11565 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11566 else puts (dlerror ());
11568 /* dlclose (self); */
11570 else
11571 puts (dlerror ());
11573 return status;
11575 _LT_EOF
11576 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11577 (eval $ac_link) 2>&5
11578 ac_status=$?
11579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11580 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11581 (./conftest; exit; ) >&5 2>/dev/null
11582 lt_status=$?
11583 case x$lt_status in
11584 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11585 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11586 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11587 esac
11588 else :
11589 # compilation failed
11590 lt_cv_dlopen_self_static=no
11593 rm -fr conftest*
11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11598 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11601 CPPFLAGS="$save_CPPFLAGS"
11602 LDFLAGS="$save_LDFLAGS"
11603 LIBS="$save_LIBS"
11605 esac
11607 case $lt_cv_dlopen_self in
11608 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11609 *) enable_dlopen_self=unknown ;;
11610 esac
11612 case $lt_cv_dlopen_self_static in
11613 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11614 *) enable_dlopen_self_static=unknown ;;
11615 esac
11634 striplib=
11635 old_striplib=
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11637 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11638 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11639 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11640 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11642 $as_echo "yes" >&6; }
11643 else
11644 # FIXME - insert some real tests, host_os isn't really good enough
11645 case $host_os in
11646 darwin*)
11647 if test -n "$STRIP" ; then
11648 striplib="$STRIP -x"
11649 old_striplib="$STRIP -S"
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11651 $as_echo "yes" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11661 esac
11675 # Report which library types will actually be built
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11677 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11679 $as_echo "$can_build_shared" >&6; }
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11682 $as_echo_n "checking whether to build shared libraries... " >&6; }
11683 test "$can_build_shared" = "no" && enable_shared=no
11685 # On AIX, shared libraries and static libraries use the same namespace, and
11686 # are all built from PIC.
11687 case $host_os in
11688 aix3*)
11689 test "$enable_shared" = yes && enable_static=no
11690 if test -n "$RANLIB"; then
11691 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11692 postinstall_cmds='$RANLIB $lib'
11696 aix[4-9]*)
11697 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11698 test "$enable_shared" = yes && enable_static=no
11701 esac
11702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11703 $as_echo "$enable_shared" >&6; }
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11706 $as_echo_n "checking whether to build static libraries... " >&6; }
11707 # Make sure either enable_shared or enable_static is yes.
11708 test "$enable_shared" = yes || enable_static=yes
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11710 $as_echo "$enable_static" >&6; }
11716 ac_ext=c
11717 ac_cpp='$CPP $CPPFLAGS'
11718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11722 CC="$lt_save_CC"
11724 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11725 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11726 (test "X$CXX" != "Xg++"))) ; then
11727 ac_ext=cpp
11728 ac_cpp='$CXXCPP $CPPFLAGS'
11729 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11730 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11731 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11733 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11734 if test -z "$CXXCPP"; then
11735 if ${ac_cv_prog_CXXCPP+:} false; then :
11736 $as_echo_n "(cached) " >&6
11737 else
11738 # Double quotes because CXXCPP needs to be expanded
11739 for CXXCPP in "$CXX -E" "/lib/cpp"
11741 ac_preproc_ok=false
11742 for ac_cxx_preproc_warn_flag in '' yes
11744 # Use a header file that comes with gcc, so configuring glibc
11745 # with a fresh cross-compiler works.
11746 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11747 # <limits.h> exists even on freestanding compilers.
11748 # On the NeXT, cc -E runs the code through the compiler's parser,
11749 # not just through cpp. "Syntax error" is here to catch this case.
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752 #ifdef __STDC__
11753 # include <limits.h>
11754 #else
11755 # include <assert.h>
11756 #endif
11757 Syntax error
11758 _ACEOF
11759 if ac_fn_cxx_try_cpp "$LINENO"; then :
11761 else
11762 # Broken: fails on valid input.
11763 continue
11765 rm -f conftest.err conftest.i conftest.$ac_ext
11767 # OK, works on sane cases. Now check whether nonexistent headers
11768 # can be detected and how.
11769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11770 /* end confdefs.h. */
11771 #include <ac_nonexistent.h>
11772 _ACEOF
11773 if ac_fn_cxx_try_cpp "$LINENO"; then :
11774 # Broken: success on invalid input.
11775 continue
11776 else
11777 # Passes both tests.
11778 ac_preproc_ok=:
11779 break
11781 rm -f conftest.err conftest.i conftest.$ac_ext
11783 done
11784 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11785 rm -f conftest.i conftest.err conftest.$ac_ext
11786 if $ac_preproc_ok; then :
11787 break
11790 done
11791 ac_cv_prog_CXXCPP=$CXXCPP
11794 CXXCPP=$ac_cv_prog_CXXCPP
11795 else
11796 ac_cv_prog_CXXCPP=$CXXCPP
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11799 $as_echo "$CXXCPP" >&6; }
11800 ac_preproc_ok=false
11801 for ac_cxx_preproc_warn_flag in '' yes
11803 # Use a header file that comes with gcc, so configuring glibc
11804 # with a fresh cross-compiler works.
11805 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11806 # <limits.h> exists even on freestanding compilers.
11807 # On the NeXT, cc -E runs the code through the compiler's parser,
11808 # not just through cpp. "Syntax error" is here to catch this case.
11809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #ifdef __STDC__
11812 # include <limits.h>
11813 #else
11814 # include <assert.h>
11815 #endif
11816 Syntax error
11817 _ACEOF
11818 if ac_fn_cxx_try_cpp "$LINENO"; then :
11820 else
11821 # Broken: fails on valid input.
11822 continue
11824 rm -f conftest.err conftest.i conftest.$ac_ext
11826 # OK, works on sane cases. Now check whether nonexistent headers
11827 # can be detected and how.
11828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11829 /* end confdefs.h. */
11830 #include <ac_nonexistent.h>
11831 _ACEOF
11832 if ac_fn_cxx_try_cpp "$LINENO"; then :
11833 # Broken: success on invalid input.
11834 continue
11835 else
11836 # Passes both tests.
11837 ac_preproc_ok=:
11838 break
11840 rm -f conftest.err conftest.i conftest.$ac_ext
11842 done
11843 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11844 rm -f conftest.i conftest.err conftest.$ac_ext
11845 if $ac_preproc_ok; then :
11847 else
11848 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11849 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11850 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11851 See \`config.log' for more details" "$LINENO" 5; }
11854 ac_ext=c
11855 ac_cpp='$CPP $CPPFLAGS'
11856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11860 else
11861 _lt_caught_CXX_error=yes
11864 ac_ext=cpp
11865 ac_cpp='$CXXCPP $CPPFLAGS'
11866 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11867 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11868 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11870 archive_cmds_need_lc_CXX=no
11871 allow_undefined_flag_CXX=
11872 always_export_symbols_CXX=no
11873 archive_expsym_cmds_CXX=
11874 compiler_needs_object_CXX=no
11875 export_dynamic_flag_spec_CXX=
11876 hardcode_direct_CXX=no
11877 hardcode_direct_absolute_CXX=no
11878 hardcode_libdir_flag_spec_CXX=
11879 hardcode_libdir_flag_spec_ld_CXX=
11880 hardcode_libdir_separator_CXX=
11881 hardcode_minus_L_CXX=no
11882 hardcode_shlibpath_var_CXX=unsupported
11883 hardcode_automatic_CXX=no
11884 inherit_rpath_CXX=no
11885 module_cmds_CXX=
11886 module_expsym_cmds_CXX=
11887 link_all_deplibs_CXX=unknown
11888 old_archive_cmds_CXX=$old_archive_cmds
11889 reload_flag_CXX=$reload_flag
11890 reload_cmds_CXX=$reload_cmds
11891 no_undefined_flag_CXX=
11892 whole_archive_flag_spec_CXX=
11893 enable_shared_with_static_runtimes_CXX=no
11895 # Source file extension for C++ test sources.
11896 ac_ext=cpp
11898 # Object file extension for compiled C++ test sources.
11899 objext=o
11900 objext_CXX=$objext
11902 # No sense in running all these tests if we already determined that
11903 # the CXX compiler isn't working. Some variables (like enable_shared)
11904 # are currently assumed to apply to all compilers on this platform,
11905 # and will be corrupted by setting them based on a non-working compiler.
11906 if test "$_lt_caught_CXX_error" != yes; then
11907 # Code to be used in simple compile tests
11908 lt_simple_compile_test_code="int some_variable = 0;"
11910 # Code to be used in simple link tests
11911 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11913 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11920 # If no C compiler was specified, use CC.
11921 LTCC=${LTCC-"$CC"}
11923 # If no C compiler flags were specified, use CFLAGS.
11924 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11926 # Allow CC to be a program name with arguments.
11927 compiler=$CC
11930 # save warnings/boilerplate of simple test code
11931 ac_outfile=conftest.$ac_objext
11932 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11933 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11934 _lt_compiler_boilerplate=`cat conftest.err`
11935 $RM conftest*
11937 ac_outfile=conftest.$ac_objext
11938 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11939 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11940 _lt_linker_boilerplate=`cat conftest.err`
11941 $RM -r conftest*
11944 # Allow CC to be a program name with arguments.
11945 lt_save_CC=$CC
11946 lt_save_LD=$LD
11947 lt_save_GCC=$GCC
11948 GCC=$GXX
11949 lt_save_with_gnu_ld=$with_gnu_ld
11950 lt_save_path_LD=$lt_cv_path_LD
11951 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11952 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11953 else
11954 $as_unset lt_cv_prog_gnu_ld
11956 if test -n "${lt_cv_path_LDCXX+set}"; then
11957 lt_cv_path_LD=$lt_cv_path_LDCXX
11958 else
11959 $as_unset lt_cv_path_LD
11961 test -z "${LDCXX+set}" || LD=$LDCXX
11962 CC=${CXX-"c++"}
11963 compiler=$CC
11964 compiler_CXX=$CC
11965 for cc_temp in $compiler""; do
11966 case $cc_temp in
11967 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11968 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11969 \-*) ;;
11970 *) break;;
11971 esac
11972 done
11973 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11976 if test -n "$compiler"; then
11977 # We don't want -fno-exception when compiling C++ code, so set the
11978 # no_builtin_flag separately
11979 if test "$GXX" = yes; then
11980 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11981 else
11982 lt_prog_compiler_no_builtin_flag_CXX=
11985 if test "$GXX" = yes; then
11986 # Set up default GNU C++ configuration
11990 # Check whether --with-gnu-ld was given.
11991 if test "${with_gnu_ld+set}" = set; then :
11992 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11993 else
11994 with_gnu_ld=no
11997 ac_prog=ld
11998 if test "$GCC" = yes; then
11999 # Check if gcc -print-prog-name=ld gives a path.
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12001 $as_echo_n "checking for ld used by $CC... " >&6; }
12002 case $host in
12003 *-*-mingw*)
12004 # gcc leaves a trailing carriage return which upsets mingw
12005 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12007 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12008 esac
12009 case $ac_prog in
12010 # Accept absolute paths.
12011 [\\/]* | ?:[\\/]*)
12012 re_direlt='/[^/][^/]*/\.\./'
12013 # Canonicalize the pathname of ld
12014 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12015 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12016 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12017 done
12018 test -z "$LD" && LD="$ac_prog"
12021 # If it fails, then pretend we aren't using GCC.
12022 ac_prog=ld
12025 # If it is relative, then search for the first ld in PATH.
12026 with_gnu_ld=unknown
12028 esac
12029 elif test "$with_gnu_ld" = yes; then
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12031 $as_echo_n "checking for GNU ld... " >&6; }
12032 else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12034 $as_echo_n "checking for non-GNU ld... " >&6; }
12036 if ${lt_cv_path_LD+:} false; then :
12037 $as_echo_n "(cached) " >&6
12038 else
12039 if test -z "$LD"; then
12040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12041 for ac_dir in $PATH; do
12042 IFS="$lt_save_ifs"
12043 test -z "$ac_dir" && ac_dir=.
12044 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12045 lt_cv_path_LD="$ac_dir/$ac_prog"
12046 # Check to see if the program is GNU ld. I'd rather use --version,
12047 # but apparently some variants of GNU ld only accept -v.
12048 # Break only if it was the GNU/non-GNU ld that we prefer.
12049 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12050 *GNU* | *'with BFD'*)
12051 test "$with_gnu_ld" != no && break
12054 test "$with_gnu_ld" != yes && break
12056 esac
12058 done
12059 IFS="$lt_save_ifs"
12060 else
12061 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12065 LD="$lt_cv_path_LD"
12066 if test -n "$LD"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12068 $as_echo "$LD" >&6; }
12069 else
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12071 $as_echo "no" >&6; }
12073 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12075 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12076 if ${lt_cv_prog_gnu_ld+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12080 case `$LD -v 2>&1 </dev/null` in
12081 *GNU* | *'with BFD'*)
12082 lt_cv_prog_gnu_ld=yes
12085 lt_cv_prog_gnu_ld=no
12087 esac
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12090 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12091 with_gnu_ld=$lt_cv_prog_gnu_ld
12099 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12100 # archiving commands below assume that GNU ld is being used.
12101 if test "$with_gnu_ld" = yes; then
12102 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12103 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12105 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12106 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12108 # If archive_cmds runs LD, not CC, wlarc should be empty
12109 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12110 # investigate it a little bit more. (MM)
12111 wlarc='${wl}'
12113 # ancient GNU ld didn't support --whole-archive et. al.
12114 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12115 $GREP 'no-whole-archive' > /dev/null; then
12116 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12117 else
12118 whole_archive_flag_spec_CXX=
12120 else
12121 with_gnu_ld=no
12122 wlarc=
12124 # A generic and very simple default shared library creation
12125 # command for GNU C++ for the case where it uses the native
12126 # linker, instead of GNU ld. If possible, this setting should
12127 # overridden to take advantage of the native linker features on
12128 # the platform it is being used on.
12129 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12132 # Commands to make compiler produce verbose output that lists
12133 # what "hidden" libraries, object files and flags are used when
12134 # linking a shared library.
12135 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12137 else
12138 GXX=no
12139 with_gnu_ld=no
12140 wlarc=
12143 # PORTME: fill in a description of your system's C++ link characteristics
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12145 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12146 ld_shlibs_CXX=yes
12147 case $host_os in
12148 aix3*)
12149 # FIXME: insert proper C++ library support
12150 ld_shlibs_CXX=no
12152 aix[4-9]*)
12153 if test "$host_cpu" = ia64; then
12154 # On IA64, the linker does run time linking by default, so we don't
12155 # have to do anything special.
12156 aix_use_runtimelinking=no
12157 exp_sym_flag='-Bexport'
12158 no_entry_flag=""
12159 else
12160 aix_use_runtimelinking=no
12162 # Test if we are trying to use run time linking or normal
12163 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12164 # need to do runtime linking.
12165 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12166 for ld_flag in $LDFLAGS; do
12167 case $ld_flag in
12168 *-brtl*)
12169 aix_use_runtimelinking=yes
12170 break
12172 esac
12173 done
12175 esac
12177 exp_sym_flag='-bexport'
12178 no_entry_flag='-bnoentry'
12181 # When large executables or shared objects are built, AIX ld can
12182 # have problems creating the table of contents. If linking a library
12183 # or program results in "error TOC overflow" add -mminimal-toc to
12184 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12185 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12187 archive_cmds_CXX=''
12188 hardcode_direct_CXX=yes
12189 hardcode_direct_absolute_CXX=yes
12190 hardcode_libdir_separator_CXX=':'
12191 link_all_deplibs_CXX=yes
12192 file_list_spec_CXX='${wl}-f,'
12194 if test "$GXX" = yes; then
12195 case $host_os in aix4.[012]|aix4.[012].*)
12196 # We only want to do this on AIX 4.2 and lower, the check
12197 # below for broken collect2 doesn't work under 4.3+
12198 collect2name=`${CC} -print-prog-name=collect2`
12199 if test -f "$collect2name" &&
12200 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12201 then
12202 # We have reworked collect2
12204 else
12205 # We have old collect2
12206 hardcode_direct_CXX=unsupported
12207 # It fails to find uninstalled libraries when the uninstalled
12208 # path is not listed in the libpath. Setting hardcode_minus_L
12209 # to unsupported forces relinking
12210 hardcode_minus_L_CXX=yes
12211 hardcode_libdir_flag_spec_CXX='-L$libdir'
12212 hardcode_libdir_separator_CXX=
12214 esac
12215 shared_flag='-shared'
12216 if test "$aix_use_runtimelinking" = yes; then
12217 shared_flag="$shared_flag "'${wl}-G'
12219 else
12220 # not using gcc
12221 if test "$host_cpu" = ia64; then
12222 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12223 # chokes on -Wl,-G. The following line is correct:
12224 shared_flag='-G'
12225 else
12226 if test "$aix_use_runtimelinking" = yes; then
12227 shared_flag='${wl}-G'
12228 else
12229 shared_flag='${wl}-bM:SRE'
12234 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12235 # It seems that -bexpall does not export symbols beginning with
12236 # underscore (_), so it is better to generate a list of symbols to
12237 # export.
12238 always_export_symbols_CXX=yes
12239 if test "$aix_use_runtimelinking" = yes; then
12240 # Warning - without using the other runtime loading flags (-brtl),
12241 # -berok will link without error, but may produce a broken library.
12242 allow_undefined_flag_CXX='-berok'
12243 # Determine the default libpath from the value encoded in an empty
12244 # executable.
12245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12246 /* end confdefs.h. */
12249 main ()
12253 return 0;
12255 _ACEOF
12256 if ac_fn_cxx_try_link "$LINENO"; then :
12258 lt_aix_libpath_sed='
12259 /Import File Strings/,/^$/ {
12260 /^0/ {
12261 s/^0 *\(.*\)$/\1/
12265 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12266 # Check for a 64-bit object if we didn't find anything.
12267 if test -z "$aix_libpath"; then
12268 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12271 rm -f core conftest.err conftest.$ac_objext \
12272 conftest$ac_exeext conftest.$ac_ext
12273 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12275 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12277 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"
12278 else
12279 if test "$host_cpu" = ia64; then
12280 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12281 allow_undefined_flag_CXX="-z nodefs"
12282 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"
12283 else
12284 # Determine the default libpath from the value encoded in an
12285 # empty executable.
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12290 main ()
12294 return 0;
12296 _ACEOF
12297 if ac_fn_cxx_try_link "$LINENO"; then :
12299 lt_aix_libpath_sed='
12300 /Import File Strings/,/^$/ {
12301 /^0/ {
12302 s/^0 *\(.*\)$/\1/
12306 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12307 # Check for a 64-bit object if we didn't find anything.
12308 if test -z "$aix_libpath"; then
12309 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12312 rm -f core conftest.err conftest.$ac_objext \
12313 conftest$ac_exeext conftest.$ac_ext
12314 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12316 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12317 # Warning - without using the other run time loading flags,
12318 # -berok will link without error, but may produce a broken library.
12319 no_undefined_flag_CXX=' ${wl}-bernotok'
12320 allow_undefined_flag_CXX=' ${wl}-berok'
12321 if test "$with_gnu_ld" = yes; then
12322 # We only use this code for GNU lds that support --whole-archive.
12323 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12324 else
12325 # Exported symbols can be pulled into shared objects from archives
12326 whole_archive_flag_spec_CXX='$convenience'
12328 archive_cmds_need_lc_CXX=yes
12329 # This is similar to how AIX traditionally builds its shared
12330 # libraries.
12331 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'
12336 beos*)
12337 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12338 allow_undefined_flag_CXX=unsupported
12339 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12340 # support --undefined. This deserves some investigation. FIXME
12341 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12342 else
12343 ld_shlibs_CXX=no
12347 chorus*)
12348 case $cc_basename in
12350 # FIXME: insert proper C++ library support
12351 ld_shlibs_CXX=no
12353 esac
12356 cygwin* | mingw* | pw32* | cegcc*)
12357 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12358 # as there is no search path for DLLs.
12359 hardcode_libdir_flag_spec_CXX='-L$libdir'
12360 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12361 allow_undefined_flag_CXX=unsupported
12362 always_export_symbols_CXX=no
12363 enable_shared_with_static_runtimes_CXX=yes
12365 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12366 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'
12367 # If the export-symbols file already is a .def file (1st line
12368 # is EXPORTS), use it as is; otherwise, prepend...
12369 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12370 cp $export_symbols $output_objdir/$soname.def;
12371 else
12372 echo EXPORTS > $output_objdir/$soname.def;
12373 cat $export_symbols >> $output_objdir/$soname.def;
12375 $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'
12376 else
12377 ld_shlibs_CXX=no
12380 darwin* | rhapsody*)
12383 archive_cmds_need_lc_CXX=no
12384 hardcode_direct_CXX=no
12385 hardcode_automatic_CXX=yes
12386 hardcode_shlibpath_var_CXX=unsupported
12387 if test "$lt_cv_ld_force_load" = "yes"; then
12388 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\"`'
12389 else
12390 whole_archive_flag_spec_CXX=''
12392 link_all_deplibs_CXX=yes
12393 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12394 case $cc_basename in
12395 ifort*) _lt_dar_can_shared=yes ;;
12396 *) _lt_dar_can_shared=$GCC ;;
12397 esac
12398 if test "$_lt_dar_can_shared" = "yes"; then
12399 output_verbose_link_cmd=func_echo_all
12400 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}"
12401 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12402 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}"
12403 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}"
12404 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12405 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}"
12406 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}"
12409 else
12410 ld_shlibs_CXX=no
12415 dgux*)
12416 case $cc_basename in
12417 ec++*)
12418 # FIXME: insert proper C++ library support
12419 ld_shlibs_CXX=no
12421 ghcx*)
12422 # Green Hills C++ Compiler
12423 # FIXME: insert proper C++ library support
12424 ld_shlibs_CXX=no
12427 # FIXME: insert proper C++ library support
12428 ld_shlibs_CXX=no
12430 esac
12433 freebsd2.*)
12434 # C++ shared libraries reported to be fairly broken before
12435 # switch to ELF
12436 ld_shlibs_CXX=no
12439 freebsd-elf*)
12440 archive_cmds_need_lc_CXX=no
12443 freebsd* | dragonfly*)
12444 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12445 # conventions
12446 ld_shlibs_CXX=yes
12449 gnu*)
12452 haiku*)
12453 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12454 link_all_deplibs_CXX=yes
12457 hpux9*)
12458 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12459 hardcode_libdir_separator_CXX=:
12460 export_dynamic_flag_spec_CXX='${wl}-E'
12461 hardcode_direct_CXX=yes
12462 hardcode_minus_L_CXX=yes # Not in the search PATH,
12463 # but as the default
12464 # location of the library.
12466 case $cc_basename in
12467 CC*)
12468 # FIXME: insert proper C++ library support
12469 ld_shlibs_CXX=no
12471 aCC*)
12472 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'
12473 # Commands to make compiler produce verbose output that lists
12474 # what "hidden" libraries, object files and flags are used when
12475 # linking a shared library.
12477 # There doesn't appear to be a way to prevent this compiler from
12478 # explicitly linking system object files so we need to strip them
12479 # from the output so that they don't get included in the library
12480 # dependencies.
12481 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"'
12484 if test "$GXX" = yes; then
12485 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'
12486 else
12487 # FIXME: insert proper C++ library support
12488 ld_shlibs_CXX=no
12491 esac
12494 hpux10*|hpux11*)
12495 if test $with_gnu_ld = no; then
12496 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12497 hardcode_libdir_separator_CXX=:
12499 case $host_cpu in
12500 hppa*64*|ia64*)
12503 export_dynamic_flag_spec_CXX='${wl}-E'
12505 esac
12507 case $host_cpu in
12508 hppa*64*|ia64*)
12509 hardcode_direct_CXX=no
12510 hardcode_shlibpath_var_CXX=no
12513 hardcode_direct_CXX=yes
12514 hardcode_direct_absolute_CXX=yes
12515 hardcode_minus_L_CXX=yes # Not in the search PATH,
12516 # but as the default
12517 # location of the library.
12519 esac
12521 case $cc_basename in
12522 CC*)
12523 # FIXME: insert proper C++ library support
12524 ld_shlibs_CXX=no
12526 aCC*)
12527 case $host_cpu in
12528 hppa*64*)
12529 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12531 ia64*)
12532 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12535 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12537 esac
12538 # Commands to make compiler produce verbose output that lists
12539 # what "hidden" libraries, object files and flags are used when
12540 # linking a shared library.
12542 # There doesn't appear to be a way to prevent this compiler from
12543 # explicitly linking system object files so we need to strip them
12544 # from the output so that they don't get included in the library
12545 # dependencies.
12546 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"'
12549 if test "$GXX" = yes; then
12550 if test $with_gnu_ld = no; then
12551 case $host_cpu in
12552 hppa*64*)
12553 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12555 ia64*)
12556 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12559 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'
12561 esac
12563 else
12564 # FIXME: insert proper C++ library support
12565 ld_shlibs_CXX=no
12568 esac
12571 interix[3-9]*)
12572 hardcode_direct_CXX=no
12573 hardcode_shlibpath_var_CXX=no
12574 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12575 export_dynamic_flag_spec_CXX='${wl}-E'
12576 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12577 # Instead, shared libraries are loaded at an image base (0x10000000 by
12578 # default) and relocated if they conflict, which is a slow very memory
12579 # consuming and fragmenting process. To avoid this, we pick a random,
12580 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12581 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12582 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'
12583 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'
12585 irix5* | irix6*)
12586 case $cc_basename in
12587 CC*)
12588 # SGI C++
12589 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'
12591 # Archives containing C++ object files must be created using
12592 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12593 # necessary to make sure instantiated templates are included
12594 # in the archive.
12595 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12598 if test "$GXX" = yes; then
12599 if test "$with_gnu_ld" = no; then
12600 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'
12601 else
12602 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'
12605 link_all_deplibs_CXX=yes
12607 esac
12608 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12609 hardcode_libdir_separator_CXX=:
12610 inherit_rpath_CXX=yes
12613 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12614 case $cc_basename in
12615 KCC*)
12616 # Kuck and Associates, Inc. (KAI) C++ Compiler
12618 # KCC will only create a shared library if the output file
12619 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12620 # to its proper name (with version) after linking.
12621 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'
12622 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'
12623 # Commands to make compiler produce verbose output that lists
12624 # what "hidden" libraries, object files and flags are used when
12625 # linking a shared library.
12627 # There doesn't appear to be a way to prevent this compiler from
12628 # explicitly linking system object files so we need to strip them
12629 # from the output so that they don't get included in the library
12630 # dependencies.
12631 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"'
12633 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12634 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12636 # Archives containing C++ object files must be created using
12637 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12638 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12640 icpc* | ecpc* )
12641 # Intel C++
12642 with_gnu_ld=yes
12643 # version 8.0 and above of icpc choke on multiply defined symbols
12644 # if we add $predep_objects and $postdep_objects, however 7.1 and
12645 # earlier do not add the objects themselves.
12646 case `$CC -V 2>&1` in
12647 *"Version 7."*)
12648 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12649 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'
12651 *) # Version 8.0 or newer
12652 tmp_idyn=
12653 case $host_cpu in
12654 ia64*) tmp_idyn=' -i_dynamic';;
12655 esac
12656 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12657 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'
12659 esac
12660 archive_cmds_need_lc_CXX=no
12661 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12662 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12663 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12665 pgCC* | pgcpp*)
12666 # Portland Group C++ compiler
12667 case `$CC -V` in
12668 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12669 prelink_cmds_CXX='tpldir=Template.dir~
12670 rm -rf $tpldir~
12671 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12672 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12673 old_archive_cmds_CXX='tpldir=Template.dir~
12674 rm -rf $tpldir~
12675 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12676 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12677 $RANLIB $oldlib'
12678 archive_cmds_CXX='tpldir=Template.dir~
12679 rm -rf $tpldir~
12680 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12681 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12682 archive_expsym_cmds_CXX='tpldir=Template.dir~
12683 rm -rf $tpldir~
12684 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12685 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
12687 *) # Version 6 and above use weak symbols
12688 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12689 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'
12691 esac
12693 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12694 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12695 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'
12697 cxx*)
12698 # Compaq C++
12699 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12700 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'
12702 runpath_var=LD_RUN_PATH
12703 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12704 hardcode_libdir_separator_CXX=:
12706 # Commands to make compiler produce verbose output that lists
12707 # what "hidden" libraries, object files and flags are used when
12708 # linking a shared library.
12710 # There doesn't appear to be a way to prevent this compiler from
12711 # explicitly linking system object files so we need to strip them
12712 # from the output so that they don't get included in the library
12713 # dependencies.
12714 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'
12716 xl* | mpixl* | bgxl*)
12717 # IBM XL 8.0 on PPC, with GNU ld
12718 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12719 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12720 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12721 if test "x$supports_anon_versioning" = xyes; then
12722 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12723 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12724 echo "local: *; };" >> $output_objdir/$libname.ver~
12725 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12729 case `$CC -V 2>&1 | sed 5q` in
12730 *Sun\ C*)
12731 # Sun C++ 5.9
12732 no_undefined_flag_CXX=' -zdefs'
12733 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12734 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'
12735 hardcode_libdir_flag_spec_CXX='-R$libdir'
12736 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'
12737 compiler_needs_object_CXX=yes
12739 # Not sure whether something based on
12740 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12741 # would be better.
12742 output_verbose_link_cmd='func_echo_all'
12744 # Archives containing C++ object files must be created using
12745 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12746 # necessary to make sure instantiated templates are included
12747 # in the archive.
12748 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12750 esac
12752 esac
12755 lynxos*)
12756 # FIXME: insert proper C++ library support
12757 ld_shlibs_CXX=no
12760 m88k*)
12761 # FIXME: insert proper C++ library support
12762 ld_shlibs_CXX=no
12765 mvs*)
12766 case $cc_basename in
12767 cxx*)
12768 # FIXME: insert proper C++ library support
12769 ld_shlibs_CXX=no
12772 # FIXME: insert proper C++ library support
12773 ld_shlibs_CXX=no
12775 esac
12778 netbsd*)
12779 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12780 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12781 wlarc=
12782 hardcode_libdir_flag_spec_CXX='-R$libdir'
12783 hardcode_direct_CXX=yes
12784 hardcode_shlibpath_var_CXX=no
12786 # Workaround some broken pre-1.5 toolchains
12787 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12790 *nto* | *qnx*)
12791 ld_shlibs_CXX=yes
12794 openbsd2*)
12795 # C++ shared libraries are fairly broken
12796 ld_shlibs_CXX=no
12799 openbsd*)
12800 if test -f /usr/libexec/ld.so; then
12801 hardcode_direct_CXX=yes
12802 hardcode_shlibpath_var_CXX=no
12803 hardcode_direct_absolute_CXX=yes
12804 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12805 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12806 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12807 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12808 export_dynamic_flag_spec_CXX='${wl}-E'
12809 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12811 output_verbose_link_cmd=func_echo_all
12812 else
12813 ld_shlibs_CXX=no
12817 osf3* | osf4* | osf5*)
12818 case $cc_basename in
12819 KCC*)
12820 # Kuck and Associates, Inc. (KAI) C++ Compiler
12822 # KCC will only create a shared library if the output file
12823 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12824 # to its proper name (with version) after linking.
12825 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'
12827 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12828 hardcode_libdir_separator_CXX=:
12830 # Archives containing C++ object files must be created using
12831 # the KAI C++ compiler.
12832 case $host in
12833 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12834 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12835 esac
12837 RCC*)
12838 # Rational C++ 2.4.1
12839 # FIXME: insert proper C++ library support
12840 ld_shlibs_CXX=no
12842 cxx*)
12843 case $host in
12844 osf3*)
12845 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12846 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'
12847 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12850 allow_undefined_flag_CXX=' -expect_unresolved \*'
12851 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'
12852 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12853 echo "-hidden">> $lib.exp~
12854 $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~
12855 $RM $lib.exp'
12856 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12858 esac
12860 hardcode_libdir_separator_CXX=:
12862 # Commands to make compiler produce verbose output that lists
12863 # what "hidden" libraries, object files and flags are used when
12864 # linking a shared library.
12866 # There doesn't appear to be a way to prevent this compiler from
12867 # explicitly linking system object files so we need to strip them
12868 # from the output so that they don't get included in the library
12869 # dependencies.
12870 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"'
12873 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12874 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12875 case $host in
12876 osf3*)
12877 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'
12880 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'
12882 esac
12884 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12885 hardcode_libdir_separator_CXX=:
12887 # Commands to make compiler produce verbose output that lists
12888 # what "hidden" libraries, object files and flags are used when
12889 # linking a shared library.
12890 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12892 else
12893 # FIXME: insert proper C++ library support
12894 ld_shlibs_CXX=no
12897 esac
12900 psos*)
12901 # FIXME: insert proper C++ library support
12902 ld_shlibs_CXX=no
12905 sunos4*)
12906 case $cc_basename in
12907 CC*)
12908 # Sun C++ 4.x
12909 # FIXME: insert proper C++ library support
12910 ld_shlibs_CXX=no
12912 lcc*)
12913 # Lucid
12914 # FIXME: insert proper C++ library support
12915 ld_shlibs_CXX=no
12918 # FIXME: insert proper C++ library support
12919 ld_shlibs_CXX=no
12921 esac
12924 solaris*)
12925 case $cc_basename in
12926 CC*)
12927 # Sun C++ 4.2, 5.x and Centerline C++
12928 archive_cmds_need_lc_CXX=yes
12929 no_undefined_flag_CXX=' -zdefs'
12930 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12931 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12932 $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'
12934 hardcode_libdir_flag_spec_CXX='-R$libdir'
12935 hardcode_shlibpath_var_CXX=no
12936 case $host_os in
12937 solaris2.[0-5] | solaris2.[0-5].*) ;;
12939 # The compiler driver will combine and reorder linker options,
12940 # but understands `-z linker_flag'.
12941 # Supported since Solaris 2.6 (maybe 2.5.1?)
12942 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12944 esac
12945 link_all_deplibs_CXX=yes
12947 output_verbose_link_cmd='func_echo_all'
12949 # Archives containing C++ object files must be created using
12950 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12951 # necessary to make sure instantiated templates are included
12952 # in the archive.
12953 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12955 gcx*)
12956 # Green Hills C++ Compiler
12957 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12959 # The C++ compiler must be used to create the archive.
12960 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12963 # GNU C++ compiler with Solaris linker
12964 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12965 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12966 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12967 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12968 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12969 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12971 # Commands to make compiler produce verbose output that lists
12972 # what "hidden" libraries, object files and flags are used when
12973 # linking a shared library.
12974 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12975 else
12976 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12977 # platform.
12978 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12979 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12980 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12982 # Commands to make compiler produce verbose output that lists
12983 # what "hidden" libraries, object files and flags are used when
12984 # linking a shared library.
12985 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12988 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12989 case $host_os in
12990 solaris2.[0-5] | solaris2.[0-5].*) ;;
12992 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12994 esac
12997 esac
13000 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13001 no_undefined_flag_CXX='${wl}-z,text'
13002 archive_cmds_need_lc_CXX=no
13003 hardcode_shlibpath_var_CXX=no
13004 runpath_var='LD_RUN_PATH'
13006 case $cc_basename in
13007 CC*)
13008 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13009 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13012 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13013 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13015 esac
13018 sysv5* | sco3.2v5* | sco5v6*)
13019 # Note: We can NOT use -z defs as we might desire, because we do not
13020 # link with -lc, and that would cause any symbols used from libc to
13021 # always be unresolved, which means just about no library would
13022 # ever link correctly. If we're not using GNU ld we use -z text
13023 # though, which does catch some bad symbols but isn't as heavy-handed
13024 # as -z defs.
13025 no_undefined_flag_CXX='${wl}-z,text'
13026 allow_undefined_flag_CXX='${wl}-z,nodefs'
13027 archive_cmds_need_lc_CXX=no
13028 hardcode_shlibpath_var_CXX=no
13029 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13030 hardcode_libdir_separator_CXX=':'
13031 link_all_deplibs_CXX=yes
13032 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13033 runpath_var='LD_RUN_PATH'
13035 case $cc_basename in
13036 CC*)
13037 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13038 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13039 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13040 '"$old_archive_cmds_CXX"
13041 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13042 '"$reload_cmds_CXX"
13045 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13046 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13048 esac
13051 tandem*)
13052 case $cc_basename in
13053 NCC*)
13054 # NonStop-UX NCC 3.20
13055 # FIXME: insert proper C++ library support
13056 ld_shlibs_CXX=no
13059 # FIXME: insert proper C++ library support
13060 ld_shlibs_CXX=no
13062 esac
13065 vxworks*)
13066 # FIXME: insert proper C++ library support
13067 ld_shlibs_CXX=no
13071 # FIXME: insert proper C++ library support
13072 ld_shlibs_CXX=no
13074 esac
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13077 $as_echo "$ld_shlibs_CXX" >&6; }
13078 test "$ld_shlibs_CXX" = no && can_build_shared=no
13080 GCC_CXX="$GXX"
13081 LD_CXX="$LD"
13083 ## CAVEAT EMPTOR:
13084 ## There is no encapsulation within the following macros, do not change
13085 ## the running order or otherwise move them around unless you know exactly
13086 ## what you are doing...
13087 # Dependencies to place before and after the object being linked:
13088 predep_objects_CXX=
13089 postdep_objects_CXX=
13090 predeps_CXX=
13091 postdeps_CXX=
13092 compiler_lib_search_path_CXX=
13094 cat > conftest.$ac_ext <<_LT_EOF
13095 class Foo
13097 public:
13098 Foo (void) { a = 0; }
13099 private:
13100 int a;
13102 _LT_EOF
13104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13105 (eval $ac_compile) 2>&5
13106 ac_status=$?
13107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13108 test $ac_status = 0; }; then
13109 # Parse the compiler output and extract the necessary
13110 # objects, libraries and library flags.
13112 # Sentinel used to keep track of whether or not we are before
13113 # the conftest object file.
13114 pre_test_object_deps_done=no
13116 for p in `eval "$output_verbose_link_cmd"`; do
13117 case $p in
13119 -L* | -R* | -l*)
13120 # Some compilers place space between "-{L,R}" and the path.
13121 # Remove the space.
13122 if test $p = "-L" ||
13123 test $p = "-R"; then
13124 prev=$p
13125 continue
13126 else
13127 prev=
13130 if test "$pre_test_object_deps_done" = no; then
13131 case $p in
13132 -L* | -R*)
13133 # Internal compiler library paths should come after those
13134 # provided the user. The postdeps already come after the
13135 # user supplied libs so there is no need to process them.
13136 if test -z "$compiler_lib_search_path_CXX"; then
13137 compiler_lib_search_path_CXX="${prev}${p}"
13138 else
13139 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13142 # The "-l" case would never come before the object being
13143 # linked, so don't bother handling this case.
13144 esac
13145 else
13146 if test -z "$postdeps_CXX"; then
13147 postdeps_CXX="${prev}${p}"
13148 else
13149 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13154 *.$objext)
13155 # This assumes that the test object file only shows up
13156 # once in the compiler output.
13157 if test "$p" = "conftest.$objext"; then
13158 pre_test_object_deps_done=yes
13159 continue
13162 if test "$pre_test_object_deps_done" = no; then
13163 if test -z "$predep_objects_CXX"; then
13164 predep_objects_CXX="$p"
13165 else
13166 predep_objects_CXX="$predep_objects_CXX $p"
13168 else
13169 if test -z "$postdep_objects_CXX"; then
13170 postdep_objects_CXX="$p"
13171 else
13172 postdep_objects_CXX="$postdep_objects_CXX $p"
13177 *) ;; # Ignore the rest.
13179 esac
13180 done
13182 # Clean up.
13183 rm -f a.out a.exe
13184 else
13185 echo "libtool.m4: error: problem compiling CXX test program"
13188 $RM -f confest.$objext
13190 # PORTME: override above test on systems where it is broken
13191 case $host_os in
13192 interix[3-9]*)
13193 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13194 # hack all around it, let's just trust "g++" to DTRT.
13195 predep_objects_CXX=
13196 postdep_objects_CXX=
13197 postdeps_CXX=
13200 linux*)
13201 case `$CC -V 2>&1 | sed 5q` in
13202 *Sun\ C*)
13203 # Sun C++ 5.9
13205 # The more standards-conforming stlport4 library is
13206 # incompatible with the Cstd library. Avoid specifying
13207 # it if it's in CXXFLAGS. Ignore libCrun as
13208 # -library=stlport4 depends on it.
13209 case " $CXX $CXXFLAGS " in
13210 *" -library=stlport4 "*)
13211 solaris_use_stlport4=yes
13213 esac
13215 if test "$solaris_use_stlport4" != yes; then
13216 postdeps_CXX='-library=Cstd -library=Crun'
13219 esac
13222 solaris*)
13223 case $cc_basename in
13224 CC*)
13225 # The more standards-conforming stlport4 library is
13226 # incompatible with the Cstd library. Avoid specifying
13227 # it if it's in CXXFLAGS. Ignore libCrun as
13228 # -library=stlport4 depends on it.
13229 case " $CXX $CXXFLAGS " in
13230 *" -library=stlport4 "*)
13231 solaris_use_stlport4=yes
13233 esac
13235 # Adding this requires a known-good setup of shared libraries for
13236 # Sun compiler versions before 5.6, else PIC objects from an old
13237 # archive will be linked into the output, leading to subtle bugs.
13238 if test "$solaris_use_stlport4" != yes; then
13239 postdeps_CXX='-library=Cstd -library=Crun'
13242 esac
13244 esac
13247 case " $postdeps_CXX " in
13248 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13249 esac
13250 compiler_lib_search_dirs_CXX=
13251 if test -n "${compiler_lib_search_path_CXX}"; then
13252 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13285 lt_prog_compiler_wl_CXX=
13286 lt_prog_compiler_pic_CXX=
13287 lt_prog_compiler_static_CXX=
13289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13290 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13292 # C++ specific cases for pic, static, wl, etc.
13293 if test "$GXX" = yes; then
13294 lt_prog_compiler_wl_CXX='-Wl,'
13295 lt_prog_compiler_static_CXX='-static'
13297 case $host_os in
13298 aix*)
13299 # All AIX code is PIC.
13300 if test "$host_cpu" = ia64; then
13301 # AIX 5 now supports IA64 processor
13302 lt_prog_compiler_static_CXX='-Bstatic'
13304 lt_prog_compiler_pic_CXX='-fPIC'
13307 amigaos*)
13308 case $host_cpu in
13309 powerpc)
13310 # see comment about AmigaOS4 .so support
13311 lt_prog_compiler_pic_CXX='-fPIC'
13313 m68k)
13314 # FIXME: we need at least 68020 code to build shared libraries, but
13315 # adding the `-m68020' flag to GCC prevents building anything better,
13316 # like `-m68040'.
13317 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13319 esac
13322 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13323 # PIC is the default for these OSes.
13325 mingw* | cygwin* | os2* | pw32* | cegcc*)
13326 # This hack is so that the source file can tell whether it is being
13327 # built for inclusion in a dll (and should export symbols for example).
13328 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13329 # (--disable-auto-import) libraries
13330 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13332 darwin* | rhapsody*)
13333 # PIC is the default on this platform
13334 # Common symbols not allowed in MH_DYLIB files
13335 lt_prog_compiler_pic_CXX='-fno-common'
13337 *djgpp*)
13338 # DJGPP does not support shared libraries at all
13339 lt_prog_compiler_pic_CXX=
13341 haiku*)
13342 # PIC is the default for Haiku.
13343 # The "-static" flag exists, but is broken.
13344 lt_prog_compiler_static_CXX=
13346 interix[3-9]*)
13347 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13348 # Instead, we relocate shared libraries at runtime.
13350 sysv4*MP*)
13351 if test -d /usr/nec; then
13352 lt_prog_compiler_pic_CXX=-Kconform_pic
13355 hpux*)
13356 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13357 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13358 # sets the default TLS model and affects inlining.
13359 case $host_cpu in
13360 hppa*64*)
13363 lt_prog_compiler_pic_CXX='-fPIC'
13365 esac
13367 *qnx* | *nto*)
13368 # QNX uses GNU C++, but need to define -shared option too, otherwise
13369 # it will coredump.
13370 lt_prog_compiler_pic_CXX='-fPIC -shared'
13373 lt_prog_compiler_pic_CXX='-fPIC'
13375 esac
13376 else
13377 case $host_os in
13378 aix[4-9]*)
13379 # All AIX code is PIC.
13380 if test "$host_cpu" = ia64; then
13381 # AIX 5 now supports IA64 processor
13382 lt_prog_compiler_static_CXX='-Bstatic'
13383 else
13384 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13387 chorus*)
13388 case $cc_basename in
13389 cxch68*)
13390 # Green Hills C++ Compiler
13391 # _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"
13393 esac
13395 dgux*)
13396 case $cc_basename in
13397 ec++*)
13398 lt_prog_compiler_pic_CXX='-KPIC'
13400 ghcx*)
13401 # Green Hills C++ Compiler
13402 lt_prog_compiler_pic_CXX='-pic'
13406 esac
13408 freebsd* | dragonfly*)
13409 # FreeBSD uses GNU C++
13411 hpux9* | hpux10* | hpux11*)
13412 case $cc_basename in
13413 CC*)
13414 lt_prog_compiler_wl_CXX='-Wl,'
13415 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13416 if test "$host_cpu" != ia64; then
13417 lt_prog_compiler_pic_CXX='+Z'
13420 aCC*)
13421 lt_prog_compiler_wl_CXX='-Wl,'
13422 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13423 case $host_cpu in
13424 hppa*64*|ia64*)
13425 # +Z the default
13428 lt_prog_compiler_pic_CXX='+Z'
13430 esac
13434 esac
13436 interix*)
13437 # This is c89, which is MS Visual C++ (no shared libs)
13438 # Anyone wants to do a port?
13440 irix5* | irix6* | nonstopux*)
13441 case $cc_basename in
13442 CC*)
13443 lt_prog_compiler_wl_CXX='-Wl,'
13444 lt_prog_compiler_static_CXX='-non_shared'
13445 # CC pic flag -KPIC is the default.
13449 esac
13451 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13452 case $cc_basename in
13453 KCC*)
13454 # KAI C++ Compiler
13455 lt_prog_compiler_wl_CXX='--backend -Wl,'
13456 lt_prog_compiler_pic_CXX='-fPIC'
13458 ecpc* )
13459 # old Intel C++ for x86_64 which still supported -KPIC.
13460 lt_prog_compiler_wl_CXX='-Wl,'
13461 lt_prog_compiler_pic_CXX='-KPIC'
13462 lt_prog_compiler_static_CXX='-static'
13464 icpc* )
13465 # Intel C++, used to be incompatible with GCC.
13466 # ICC 10 doesn't accept -KPIC any more.
13467 lt_prog_compiler_wl_CXX='-Wl,'
13468 lt_prog_compiler_pic_CXX='-fPIC'
13469 lt_prog_compiler_static_CXX='-static'
13471 pgCC* | pgcpp*)
13472 # Portland Group C++ compiler
13473 lt_prog_compiler_wl_CXX='-Wl,'
13474 lt_prog_compiler_pic_CXX='-fpic'
13475 lt_prog_compiler_static_CXX='-Bstatic'
13477 cxx*)
13478 # Compaq C++
13479 # Make sure the PIC flag is empty. It appears that all Alpha
13480 # Linux and Compaq Tru64 Unix objects are PIC.
13481 lt_prog_compiler_pic_CXX=
13482 lt_prog_compiler_static_CXX='-non_shared'
13484 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13485 # IBM XL 8.0, 9.0 on PPC and BlueGene
13486 lt_prog_compiler_wl_CXX='-Wl,'
13487 lt_prog_compiler_pic_CXX='-qpic'
13488 lt_prog_compiler_static_CXX='-qstaticlink'
13491 case `$CC -V 2>&1 | sed 5q` in
13492 *Sun\ C*)
13493 # Sun C++ 5.9
13494 lt_prog_compiler_pic_CXX='-KPIC'
13495 lt_prog_compiler_static_CXX='-Bstatic'
13496 lt_prog_compiler_wl_CXX='-Qoption ld '
13498 esac
13500 esac
13502 lynxos*)
13504 m88k*)
13506 mvs*)
13507 case $cc_basename in
13508 cxx*)
13509 lt_prog_compiler_pic_CXX='-W c,exportall'
13513 esac
13515 netbsd*)
13517 *qnx* | *nto*)
13518 # QNX uses GNU C++, but need to define -shared option too, otherwise
13519 # it will coredump.
13520 lt_prog_compiler_pic_CXX='-fPIC -shared'
13522 osf3* | osf4* | osf5*)
13523 case $cc_basename in
13524 KCC*)
13525 lt_prog_compiler_wl_CXX='--backend -Wl,'
13527 RCC*)
13528 # Rational C++ 2.4.1
13529 lt_prog_compiler_pic_CXX='-pic'
13531 cxx*)
13532 # Digital/Compaq C++
13533 lt_prog_compiler_wl_CXX='-Wl,'
13534 # Make sure the PIC flag is empty. It appears that all Alpha
13535 # Linux and Compaq Tru64 Unix objects are PIC.
13536 lt_prog_compiler_pic_CXX=
13537 lt_prog_compiler_static_CXX='-non_shared'
13541 esac
13543 psos*)
13545 solaris*)
13546 case $cc_basename in
13547 CC*)
13548 # Sun C++ 4.2, 5.x and Centerline C++
13549 lt_prog_compiler_pic_CXX='-KPIC'
13550 lt_prog_compiler_static_CXX='-Bstatic'
13551 lt_prog_compiler_wl_CXX='-Qoption ld '
13553 gcx*)
13554 # Green Hills C++ Compiler
13555 lt_prog_compiler_pic_CXX='-PIC'
13559 esac
13561 sunos4*)
13562 case $cc_basename in
13563 CC*)
13564 # Sun C++ 4.x
13565 lt_prog_compiler_pic_CXX='-pic'
13566 lt_prog_compiler_static_CXX='-Bstatic'
13568 lcc*)
13569 # Lucid
13570 lt_prog_compiler_pic_CXX='-pic'
13574 esac
13576 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13577 case $cc_basename in
13578 CC*)
13579 lt_prog_compiler_wl_CXX='-Wl,'
13580 lt_prog_compiler_pic_CXX='-KPIC'
13581 lt_prog_compiler_static_CXX='-Bstatic'
13583 esac
13585 tandem*)
13586 case $cc_basename in
13587 NCC*)
13588 # NonStop-UX NCC 3.20
13589 lt_prog_compiler_pic_CXX='-KPIC'
13593 esac
13595 vxworks*)
13598 lt_prog_compiler_can_build_shared_CXX=no
13600 esac
13603 case $host_os in
13604 # For platforms which do not support PIC, -DPIC is meaningless:
13605 *djgpp*)
13606 lt_prog_compiler_pic_CXX=
13609 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13611 esac
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13613 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13618 # Check to make sure the PIC flag actually works.
13620 if test -n "$lt_prog_compiler_pic_CXX"; then
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13622 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13623 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13624 $as_echo_n "(cached) " >&6
13625 else
13626 lt_cv_prog_compiler_pic_works_CXX=no
13627 ac_outfile=conftest.$ac_objext
13628 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13629 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13630 # Insert the option either (1) after the last *FLAGS variable, or
13631 # (2) before a word containing "conftest.", or (3) at the end.
13632 # Note that $ac_compile itself does not contain backslashes and begins
13633 # with a dollar sign (not a hyphen), so the echo should work correctly.
13634 # The option is referenced via a variable to avoid confusing sed.
13635 lt_compile=`echo "$ac_compile" | $SED \
13636 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13637 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13638 -e 's:$: $lt_compiler_flag:'`
13639 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13640 (eval "$lt_compile" 2>conftest.err)
13641 ac_status=$?
13642 cat conftest.err >&5
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 if (exit $ac_status) && test -s "$ac_outfile"; then
13645 # The compiler can only warn and ignore the option if not recognized
13646 # So say no if there are warnings other than the usual output.
13647 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13649 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13650 lt_cv_prog_compiler_pic_works_CXX=yes
13653 $RM conftest*
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13657 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13659 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13660 case $lt_prog_compiler_pic_CXX in
13661 "" | " "*) ;;
13662 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13663 esac
13664 else
13665 lt_prog_compiler_pic_CXX=
13666 lt_prog_compiler_can_build_shared_CXX=no
13674 # Check to make sure the static flag actually works.
13676 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13678 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13679 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13680 $as_echo_n "(cached) " >&6
13681 else
13682 lt_cv_prog_compiler_static_works_CXX=no
13683 save_LDFLAGS="$LDFLAGS"
13684 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13685 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13687 # The linker can only warn and ignore the option if not recognized
13688 # So say no if there are warnings
13689 if test -s conftest.err; then
13690 # Append any errors to the config.log.
13691 cat conftest.err 1>&5
13692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13694 if diff conftest.exp conftest.er2 >/dev/null; then
13695 lt_cv_prog_compiler_static_works_CXX=yes
13697 else
13698 lt_cv_prog_compiler_static_works_CXX=yes
13701 $RM -r conftest*
13702 LDFLAGS="$save_LDFLAGS"
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13706 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13708 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13710 else
13711 lt_prog_compiler_static_CXX=
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13718 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13719 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13720 $as_echo_n "(cached) " >&6
13721 else
13722 lt_cv_prog_compiler_c_o_CXX=no
13723 $RM -r conftest 2>/dev/null
13724 mkdir conftest
13725 cd conftest
13726 mkdir out
13727 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13729 lt_compiler_flag="-o out/conftest2.$ac_objext"
13730 # Insert the option either (1) after the last *FLAGS variable, or
13731 # (2) before a word containing "conftest.", or (3) at the end.
13732 # Note that $ac_compile itself does not contain backslashes and begins
13733 # with a dollar sign (not a hyphen), so the echo should work correctly.
13734 lt_compile=`echo "$ac_compile" | $SED \
13735 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13737 -e 's:$: $lt_compiler_flag:'`
13738 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13739 (eval "$lt_compile" 2>out/conftest.err)
13740 ac_status=$?
13741 cat out/conftest.err >&5
13742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13743 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13744 then
13745 # The compiler can only warn and ignore the option if not recognized
13746 # So say no if there are warnings
13747 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13748 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13749 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13750 lt_cv_prog_compiler_c_o_CXX=yes
13753 chmod u+w . 2>&5
13754 $RM conftest*
13755 # SGI C++ compiler will create directory out/ii_files/ for
13756 # template instantiation
13757 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13758 $RM out/* && rmdir out
13759 cd ..
13760 $RM -r conftest
13761 $RM conftest*
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13765 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13770 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13771 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13772 $as_echo_n "(cached) " >&6
13773 else
13774 lt_cv_prog_compiler_c_o_CXX=no
13775 $RM -r conftest 2>/dev/null
13776 mkdir conftest
13777 cd conftest
13778 mkdir out
13779 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13781 lt_compiler_flag="-o out/conftest2.$ac_objext"
13782 # Insert the option either (1) after the last *FLAGS variable, or
13783 # (2) before a word containing "conftest.", or (3) at the end.
13784 # Note that $ac_compile itself does not contain backslashes and begins
13785 # with a dollar sign (not a hyphen), so the echo should work correctly.
13786 lt_compile=`echo "$ac_compile" | $SED \
13787 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13788 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13789 -e 's:$: $lt_compiler_flag:'`
13790 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13791 (eval "$lt_compile" 2>out/conftest.err)
13792 ac_status=$?
13793 cat out/conftest.err >&5
13794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13795 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13796 then
13797 # The compiler can only warn and ignore the option if not recognized
13798 # So say no if there are warnings
13799 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13800 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13801 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13802 lt_cv_prog_compiler_c_o_CXX=yes
13805 chmod u+w . 2>&5
13806 $RM conftest*
13807 # SGI C++ compiler will create directory out/ii_files/ for
13808 # template instantiation
13809 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13810 $RM out/* && rmdir out
13811 cd ..
13812 $RM -r conftest
13813 $RM conftest*
13816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13817 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13822 hard_links="nottested"
13823 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13824 # do not overwrite the value of need_locks provided by the user
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13826 $as_echo_n "checking if we can lock with hard links... " >&6; }
13827 hard_links=yes
13828 $RM conftest*
13829 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13830 touch conftest.a
13831 ln conftest.a conftest.b 2>&5 || hard_links=no
13832 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13834 $as_echo "$hard_links" >&6; }
13835 if test "$hard_links" = no; then
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13837 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13838 need_locks=warn
13840 else
13841 need_locks=no
13846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13847 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13849 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13850 case $host_os in
13851 aix[4-9]*)
13852 # If we're using GNU nm, then we don't want the "-C" option.
13853 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13854 # Also, AIX nm treats weak defined symbols like other global defined
13855 # symbols, whereas GNU nm marks them as "W".
13856 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13857 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'
13858 else
13859 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13862 pw32*)
13863 export_symbols_cmds_CXX="$ltdll_cmds"
13865 cygwin* | mingw* | cegcc*)
13866 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'
13869 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13871 esac
13872 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13875 $as_echo "$ld_shlibs_CXX" >&6; }
13876 test "$ld_shlibs_CXX" = no && can_build_shared=no
13878 with_gnu_ld_CXX=$with_gnu_ld
13886 # Do we need to explicitly link libc?
13888 case "x$archive_cmds_need_lc_CXX" in
13889 x|xyes)
13890 # Assume -lc should be added
13891 archive_cmds_need_lc_CXX=yes
13893 if test "$enable_shared" = yes && test "$GCC" = yes; then
13894 case $archive_cmds_CXX in
13895 *'~'*)
13896 # FIXME: we may have to deal with multi-command sequences.
13898 '$CC '*)
13899 # Test whether the compiler implicitly links with -lc since on some
13900 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13901 # to ld, don't add -lc before -lgcc.
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13903 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13904 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 $RM conftest*
13908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13910 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13911 (eval $ac_compile) 2>&5
13912 ac_status=$?
13913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13914 test $ac_status = 0; } 2>conftest.err; then
13915 soname=conftest
13916 lib=conftest
13917 libobjs=conftest.$ac_objext
13918 deplibs=
13919 wl=$lt_prog_compiler_wl_CXX
13920 pic_flag=$lt_prog_compiler_pic_CXX
13921 compiler_flags=-v
13922 linker_flags=-v
13923 verstring=
13924 output_objdir=.
13925 libname=conftest
13926 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13927 allow_undefined_flag_CXX=
13928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13929 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13930 ac_status=$?
13931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13932 test $ac_status = 0; }
13933 then
13934 lt_cv_archive_cmds_need_lc_CXX=no
13935 else
13936 lt_cv_archive_cmds_need_lc_CXX=yes
13938 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13939 else
13940 cat conftest.err 1>&5
13942 $RM conftest*
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13946 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13947 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13949 esac
13952 esac
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14018 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14020 library_names_spec=
14021 libname_spec='lib$name'
14022 soname_spec=
14023 shrext_cmds=".so"
14024 postinstall_cmds=
14025 postuninstall_cmds=
14026 finish_cmds=
14027 finish_eval=
14028 shlibpath_var=
14029 shlibpath_overrides_runpath=unknown
14030 version_type=none
14031 dynamic_linker="$host_os ld.so"
14032 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14033 need_lib_prefix=unknown
14034 hardcode_into_libs=no
14036 # when you set need_version to no, make sure it does not cause -set_version
14037 # flags to be left without arguments
14038 need_version=unknown
14040 case $host_os in
14041 aix3*)
14042 version_type=linux
14043 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14044 shlibpath_var=LIBPATH
14046 # AIX 3 has no versioning support, so we append a major version to the name.
14047 soname_spec='${libname}${release}${shared_ext}$major'
14050 aix[4-9]*)
14051 version_type=linux
14052 need_lib_prefix=no
14053 need_version=no
14054 hardcode_into_libs=yes
14055 if test "$host_cpu" = ia64; then
14056 # AIX 5 supports IA64
14057 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14058 shlibpath_var=LD_LIBRARY_PATH
14059 else
14060 # With GCC up to 2.95.x, collect2 would create an import file
14061 # for dependence libraries. The import file would start with
14062 # the line `#! .'. This would cause the generated library to
14063 # depend on `.', always an invalid library. This was fixed in
14064 # development snapshots of GCC prior to 3.0.
14065 case $host_os in
14066 aix4 | aix4.[01] | aix4.[01].*)
14067 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14068 echo ' yes '
14069 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14071 else
14072 can_build_shared=no
14075 esac
14076 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14077 # soname into executable. Probably we can add versioning support to
14078 # collect2, so additional links can be useful in future.
14079 if test "$aix_use_runtimelinking" = yes; then
14080 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14081 # instead of lib<name>.a to let people know that these are not
14082 # typical AIX shared libraries.
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14084 else
14085 # We preserve .a as extension for shared libraries through AIX4.2
14086 # and later when we are not doing run time linking.
14087 library_names_spec='${libname}${release}.a $libname.a'
14088 soname_spec='${libname}${release}${shared_ext}$major'
14090 shlibpath_var=LIBPATH
14094 amigaos*)
14095 case $host_cpu in
14096 powerpc)
14097 # Since July 2007 AmigaOS4 officially supports .so libraries.
14098 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14101 m68k)
14102 library_names_spec='$libname.ixlibrary $libname.a'
14103 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14104 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'
14106 esac
14109 beos*)
14110 library_names_spec='${libname}${shared_ext}'
14111 dynamic_linker="$host_os ld.so"
14112 shlibpath_var=LIBRARY_PATH
14115 bsdi[45]*)
14116 version_type=linux
14117 need_version=no
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 soname_spec='${libname}${release}${shared_ext}$major'
14120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14121 shlibpath_var=LD_LIBRARY_PATH
14122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14124 # the default ld.so.conf also contains /usr/contrib/lib and
14125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14126 # libtool to hard-code these into programs
14129 cygwin* | mingw* | pw32* | cegcc*)
14130 version_type=windows
14131 shrext_cmds=".dll"
14132 need_version=no
14133 need_lib_prefix=no
14135 case $GCC,$host_os in
14136 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14137 library_names_spec='$libname.dll.a'
14138 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14139 postinstall_cmds='base_file=`basename \${file}`~
14140 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14141 dldir=$destdir/`dirname \$dlpath`~
14142 test -d \$dldir || mkdir -p \$dldir~
14143 $install_prog $dir/$dlname \$dldir/$dlname~
14144 chmod a+x \$dldir/$dlname~
14145 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14146 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14148 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14149 dlpath=$dir/\$dldll~
14150 $RM \$dlpath'
14151 shlibpath_overrides_runpath=yes
14153 case $host_os in
14154 cygwin*)
14155 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14156 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14159 mingw* | cegcc*)
14160 # MinGW DLLs use traditional 'lib' prefix
14161 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14163 pw32*)
14164 # pw32 DLLs use 'pw' prefix rather than 'lib'
14165 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14167 esac
14171 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14173 esac
14174 dynamic_linker='Win32 ld.exe'
14175 # FIXME: first we should search . and the directory the executable is in
14176 shlibpath_var=PATH
14179 darwin* | rhapsody*)
14180 dynamic_linker="$host_os dyld"
14181 version_type=darwin
14182 need_lib_prefix=no
14183 need_version=no
14184 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14185 soname_spec='${libname}${release}${major}$shared_ext'
14186 shlibpath_overrides_runpath=yes
14187 shlibpath_var=DYLD_LIBRARY_PATH
14188 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14190 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14193 dgux*)
14194 version_type=linux
14195 need_lib_prefix=no
14196 need_version=no
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14198 soname_spec='${libname}${release}${shared_ext}$major'
14199 shlibpath_var=LD_LIBRARY_PATH
14202 freebsd* | dragonfly*)
14203 # DragonFly does not have aout. When/if they implement a new
14204 # versioning mechanism, adjust this.
14205 if test -x /usr/bin/objformat; then
14206 objformat=`/usr/bin/objformat`
14207 else
14208 case $host_os in
14209 freebsd[23].*) objformat=aout ;;
14210 *) objformat=elf ;;
14211 esac
14213 version_type=freebsd-$objformat
14214 case $version_type in
14215 freebsd-elf*)
14216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14217 need_version=no
14218 need_lib_prefix=no
14220 freebsd-*)
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14222 need_version=yes
14224 esac
14225 shlibpath_var=LD_LIBRARY_PATH
14226 case $host_os in
14227 freebsd2.*)
14228 shlibpath_overrides_runpath=yes
14230 freebsd3.[01]* | freebsdelf3.[01]*)
14231 shlibpath_overrides_runpath=yes
14232 hardcode_into_libs=yes
14234 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14235 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14236 shlibpath_overrides_runpath=no
14237 hardcode_into_libs=yes
14239 *) # from 4.6 on, and DragonFly
14240 shlibpath_overrides_runpath=yes
14241 hardcode_into_libs=yes
14243 esac
14246 gnu*)
14247 version_type=linux
14248 need_lib_prefix=no
14249 need_version=no
14250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14251 soname_spec='${libname}${release}${shared_ext}$major'
14252 shlibpath_var=LD_LIBRARY_PATH
14253 hardcode_into_libs=yes
14256 haiku*)
14257 version_type=linux
14258 need_lib_prefix=no
14259 need_version=no
14260 dynamic_linker="$host_os runtime_loader"
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 shlibpath_var=LIBRARY_PATH
14264 shlibpath_overrides_runpath=yes
14265 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14266 hardcode_into_libs=yes
14269 hpux9* | hpux10* | hpux11*)
14270 # Give a soname corresponding to the major version so that dld.sl refuses to
14271 # link against other versions.
14272 version_type=sunos
14273 need_lib_prefix=no
14274 need_version=no
14275 case $host_cpu in
14276 ia64*)
14277 shrext_cmds='.so'
14278 hardcode_into_libs=yes
14279 dynamic_linker="$host_os dld.so"
14280 shlibpath_var=LD_LIBRARY_PATH
14281 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14283 soname_spec='${libname}${release}${shared_ext}$major'
14284 if test "X$HPUX_IA64_MODE" = X32; then
14285 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14286 else
14287 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14291 hppa*64*)
14292 shrext_cmds='.sl'
14293 hardcode_into_libs=yes
14294 dynamic_linker="$host_os dld.sl"
14295 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14296 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14298 soname_spec='${libname}${release}${shared_ext}$major'
14299 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14300 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14303 shrext_cmds='.sl'
14304 dynamic_linker="$host_os dld.sl"
14305 shlibpath_var=SHLIB_PATH
14306 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14308 soname_spec='${libname}${release}${shared_ext}$major'
14310 esac
14311 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14312 postinstall_cmds='chmod 555 $lib'
14313 # or fails outright, so override atomically:
14314 install_override_mode=555
14317 interix[3-9]*)
14318 version_type=linux
14319 need_lib_prefix=no
14320 need_version=no
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14322 soname_spec='${libname}${release}${shared_ext}$major'
14323 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14324 shlibpath_var=LD_LIBRARY_PATH
14325 shlibpath_overrides_runpath=no
14326 hardcode_into_libs=yes
14329 irix5* | irix6* | nonstopux*)
14330 case $host_os in
14331 nonstopux*) version_type=nonstopux ;;
14333 if test "$lt_cv_prog_gnu_ld" = yes; then
14334 version_type=linux
14335 else
14336 version_type=irix
14337 fi ;;
14338 esac
14339 need_lib_prefix=no
14340 need_version=no
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14343 case $host_os in
14344 irix5* | nonstopux*)
14345 libsuff= shlibsuff=
14348 case $LD in # libtool.m4 will add one of these switches to LD
14349 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14350 libsuff= shlibsuff= libmagic=32-bit;;
14351 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14352 libsuff=32 shlibsuff=N32 libmagic=N32;;
14353 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14354 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14355 *) libsuff= shlibsuff= libmagic=never-match;;
14356 esac
14358 esac
14359 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14360 shlibpath_overrides_runpath=no
14361 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14362 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14363 hardcode_into_libs=yes
14366 # No shared lib support for Linux oldld, aout, or coff.
14367 linux*oldld* | linux*aout* | linux*coff*)
14368 dynamic_linker=no
14371 # This must be Linux ELF.
14372 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14373 version_type=linux
14374 need_lib_prefix=no
14375 need_version=no
14376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14377 soname_spec='${libname}${release}${shared_ext}$major'
14378 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14379 shlibpath_var=LD_LIBRARY_PATH
14380 shlibpath_overrides_runpath=no
14382 # Some binutils ld are patched to set DT_RUNPATH
14383 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14384 $as_echo_n "(cached) " >&6
14385 else
14386 lt_cv_shlibpath_overrides_runpath=no
14387 save_LDFLAGS=$LDFLAGS
14388 save_libdir=$libdir
14389 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14390 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14395 main ()
14399 return 0;
14401 _ACEOF
14402 if ac_fn_cxx_try_link "$LINENO"; then :
14403 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14404 lt_cv_shlibpath_overrides_runpath=yes
14407 rm -f core conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
14409 LDFLAGS=$save_LDFLAGS
14410 libdir=$save_libdir
14414 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14416 # This implies no fast_install, which is unacceptable.
14417 # Some rework will be needed to allow for fast_install
14418 # before this can be enabled.
14419 hardcode_into_libs=yes
14421 # Append ld.so.conf contents to the search path
14422 if test -f /etc/ld.so.conf; then
14423 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' ' '`
14424 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14427 # We used to test for /lib/ld.so.1 and disable shared libraries on
14428 # powerpc, because MkLinux only supported shared libraries with the
14429 # GNU dynamic linker. Since this was broken with cross compilers,
14430 # most powerpc-linux boxes support dynamic linking these days and
14431 # people can always --disable-shared, the test was removed, and we
14432 # assume the GNU/Linux dynamic linker is in use.
14433 dynamic_linker='GNU/Linux ld.so'
14436 netbsd*)
14437 version_type=sunos
14438 need_lib_prefix=no
14439 need_version=no
14440 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14442 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14443 dynamic_linker='NetBSD (a.out) ld.so'
14444 else
14445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14446 soname_spec='${libname}${release}${shared_ext}$major'
14447 dynamic_linker='NetBSD ld.elf_so'
14449 shlibpath_var=LD_LIBRARY_PATH
14450 shlibpath_overrides_runpath=yes
14451 hardcode_into_libs=yes
14454 newsos6)
14455 version_type=linux
14456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 shlibpath_overrides_runpath=yes
14461 *nto* | *qnx*)
14462 version_type=qnx
14463 need_lib_prefix=no
14464 need_version=no
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14466 soname_spec='${libname}${release}${shared_ext}$major'
14467 shlibpath_var=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath=no
14469 hardcode_into_libs=yes
14470 dynamic_linker='ldqnx.so'
14473 openbsd*)
14474 version_type=sunos
14475 sys_lib_dlsearch_path_spec="/usr/lib"
14476 need_lib_prefix=no
14477 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14478 case $host_os in
14479 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14480 *) need_version=no ;;
14481 esac
14482 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14483 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14484 shlibpath_var=LD_LIBRARY_PATH
14485 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14486 case $host_os in
14487 openbsd2.[89] | openbsd2.[89].*)
14488 shlibpath_overrides_runpath=no
14491 shlibpath_overrides_runpath=yes
14493 esac
14494 else
14495 shlibpath_overrides_runpath=yes
14499 os2*)
14500 libname_spec='$name'
14501 shrext_cmds=".dll"
14502 need_lib_prefix=no
14503 library_names_spec='$libname${shared_ext} $libname.a'
14504 dynamic_linker='OS/2 ld.exe'
14505 shlibpath_var=LIBPATH
14508 osf3* | osf4* | osf5*)
14509 version_type=osf
14510 need_lib_prefix=no
14511 need_version=no
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14514 shlibpath_var=LD_LIBRARY_PATH
14515 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14516 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14519 rdos*)
14520 dynamic_linker=no
14523 solaris*)
14524 version_type=linux
14525 need_lib_prefix=no
14526 need_version=no
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 shlibpath_overrides_runpath=yes
14531 hardcode_into_libs=yes
14532 # ldd complains unless libraries are executable
14533 postinstall_cmds='chmod +x $lib'
14536 sunos4*)
14537 version_type=sunos
14538 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14539 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14540 shlibpath_var=LD_LIBRARY_PATH
14541 shlibpath_overrides_runpath=yes
14542 if test "$with_gnu_ld" = yes; then
14543 need_lib_prefix=no
14545 need_version=yes
14548 sysv4 | sysv4.3*)
14549 version_type=linux
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14551 soname_spec='${libname}${release}${shared_ext}$major'
14552 shlibpath_var=LD_LIBRARY_PATH
14553 case $host_vendor in
14554 sni)
14555 shlibpath_overrides_runpath=no
14556 need_lib_prefix=no
14557 runpath_var=LD_RUN_PATH
14559 siemens)
14560 need_lib_prefix=no
14562 motorola)
14563 need_lib_prefix=no
14564 need_version=no
14565 shlibpath_overrides_runpath=no
14566 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14568 esac
14571 sysv4*MP*)
14572 if test -d /usr/nec ;then
14573 version_type=linux
14574 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14575 soname_spec='$libname${shared_ext}.$major'
14576 shlibpath_var=LD_LIBRARY_PATH
14580 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14581 version_type=freebsd-elf
14582 need_lib_prefix=no
14583 need_version=no
14584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 shlibpath_var=LD_LIBRARY_PATH
14587 shlibpath_overrides_runpath=yes
14588 hardcode_into_libs=yes
14589 if test "$with_gnu_ld" = yes; then
14590 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14591 else
14592 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14593 case $host_os in
14594 sco3.2v5*)
14595 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14597 esac
14599 sys_lib_dlsearch_path_spec='/usr/lib'
14602 tpf*)
14603 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14604 version_type=linux
14605 need_lib_prefix=no
14606 need_version=no
14607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14608 shlibpath_var=LD_LIBRARY_PATH
14609 shlibpath_overrides_runpath=no
14610 hardcode_into_libs=yes
14613 uts4*)
14614 version_type=linux
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 shlibpath_var=LD_LIBRARY_PATH
14621 dynamic_linker=no
14623 esac
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14625 $as_echo "$dynamic_linker" >&6; }
14626 test "$dynamic_linker" = no && can_build_shared=no
14628 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14629 if test "$GCC" = yes; then
14630 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14633 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14634 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14636 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14637 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14678 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14679 hardcode_action_CXX=
14680 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14681 test -n "$runpath_var_CXX" ||
14682 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14684 # We can hardcode non-existent directories.
14685 if test "$hardcode_direct_CXX" != no &&
14686 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14687 # have to relink, otherwise we might link with an installed library
14688 # when we should be linking with a yet-to-be-installed one
14689 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14690 test "$hardcode_minus_L_CXX" != no; then
14691 # Linking always hardcodes the temporary library directory.
14692 hardcode_action_CXX=relink
14693 else
14694 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14695 hardcode_action_CXX=immediate
14697 else
14698 # We cannot hardcode anything, or else we can only hardcode existing
14699 # directories.
14700 hardcode_action_CXX=unsupported
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14703 $as_echo "$hardcode_action_CXX" >&6; }
14705 if test "$hardcode_action_CXX" = relink ||
14706 test "$inherit_rpath_CXX" = yes; then
14707 # Fast installation is not supported
14708 enable_fast_install=no
14709 elif test "$shlibpath_overrides_runpath" = yes ||
14710 test "$enable_shared" = no; then
14711 # Fast installation is not necessary
14712 enable_fast_install=needless
14721 fi # test -n "$compiler"
14723 CC=$lt_save_CC
14724 LDCXX=$LD
14725 LD=$lt_save_LD
14726 GCC=$lt_save_GCC
14727 with_gnu_ld=$lt_save_with_gnu_ld
14728 lt_cv_path_LDCXX=$lt_cv_path_LD
14729 lt_cv_path_LD=$lt_save_path_LD
14730 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14731 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14732 fi # test "$_lt_caught_CXX_error" != yes
14734 ac_ext=c
14735 ac_cpp='$CPP $CPPFLAGS'
14736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14752 ac_config_commands="$ac_config_commands libtool"
14757 # Only expand once:
14760 # Forbid libtool to hardcode RPATH, because we want to be able to specify
14761 # library search directory using LD_LIBRARY_PATH
14762 hardcode_into_libs=no
14768 if test $enable_shared = yes; then
14769 link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
14770 link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
14771 else
14772 link_offloadmic_host="-loffloadmic_host $LIBS"
14773 link_offloadmic_target="-loffloadmic_target $LIBS"
14778 # Determine what GCC version number to use in filesystem paths.
14780 get_gcc_base_ver="cat"
14782 # Check whether --with-gcc-major-version-only was given.
14783 if test "${with_gcc_major_version_only+set}" = set; then :
14784 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14785 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14793 # Must be last
14794 cat >confcache <<\_ACEOF
14795 # This file is a shell script that caches the results of configure
14796 # tests run on this system so they can be shared between configure
14797 # scripts and configure runs, see configure's option --config-cache.
14798 # It is not useful on other systems. If it contains results you don't
14799 # want to keep, you may remove or edit it.
14801 # config.status only pays attention to the cache file if you give it
14802 # the --recheck option to rerun configure.
14804 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14805 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14806 # following values.
14808 _ACEOF
14810 # The following way of writing the cache mishandles newlines in values,
14811 # but we know of no workaround that is simple, portable, and efficient.
14812 # So, we kill variables containing newlines.
14813 # Ultrix sh set writes to stderr and can't be redirected directly,
14814 # and sets the high bit in the cache file unless we assign to the vars.
14816 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14817 eval ac_val=\$$ac_var
14818 case $ac_val in #(
14819 *${as_nl}*)
14820 case $ac_var in #(
14821 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14822 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14823 esac
14824 case $ac_var in #(
14825 _ | IFS | as_nl) ;; #(
14826 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14827 *) { eval $ac_var=; unset $ac_var;} ;;
14828 esac ;;
14829 esac
14830 done
14832 (set) 2>&1 |
14833 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14834 *${as_nl}ac_space=\ *)
14835 # `set' does not quote correctly, so add quotes: double-quote
14836 # substitution turns \\\\ into \\, and sed turns \\ into \.
14837 sed -n \
14838 "s/'/'\\\\''/g;
14839 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14840 ;; #(
14842 # `set' quotes correctly as required by POSIX, so do not add quotes.
14843 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14845 esac |
14846 sort
14848 sed '
14849 /^ac_cv_env_/b end
14850 t clear
14851 :clear
14852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14853 t end
14854 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14855 :end' >>confcache
14856 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14857 if test -w "$cache_file"; then
14858 if test "x$cache_file" != "x/dev/null"; then
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14860 $as_echo "$as_me: updating cache $cache_file" >&6;}
14861 if test ! -f "$cache_file" || test -h "$cache_file"; then
14862 cat confcache >"$cache_file"
14863 else
14864 case $cache_file in #(
14865 */* | ?:*)
14866 mv -f confcache "$cache_file"$$ &&
14867 mv -f "$cache_file"$$ "$cache_file" ;; #(
14869 mv -f confcache "$cache_file" ;;
14870 esac
14873 else
14874 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14875 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14878 rm -f confcache
14880 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14881 # Let make expand exec_prefix.
14882 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14884 # Transform confdefs.h into DEFS.
14885 # Protect against shell expansion while executing Makefile rules.
14886 # Protect against Makefile macro expansion.
14888 # If the first sed substitution is executed (which looks for macros that
14889 # take arguments), then branch to the quote section. Otherwise,
14890 # look for a macro that doesn't take arguments.
14891 ac_script='
14892 :mline
14893 /\\$/{
14895 s,\\\n,,
14896 b mline
14898 t clear
14899 :clear
14900 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14901 t quote
14902 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14903 t quote
14904 b any
14905 :quote
14906 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14907 s/\[/\\&/g
14908 s/\]/\\&/g
14909 s/\$/$$/g
14911 :any
14914 s/^\n//
14915 s/\n/ /g
14919 DEFS=`sed -n "$ac_script" confdefs.h`
14922 ac_libobjs=
14923 ac_ltlibobjs=
14925 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14926 # 1. Remove the extension, and $U if already installed.
14927 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14928 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14929 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14930 # will be set to the directory where LIBOBJS objects are built.
14931 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14932 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14933 done
14934 LIBOBJS=$ac_libobjs
14936 LTLIBOBJS=$ac_ltlibobjs
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14940 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14941 if test -n "$am_sleep_pid"; then
14942 # Hide warnings about reused PIDs.
14943 wait $am_sleep_pid 2>/dev/null
14945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14946 $as_echo "done" >&6; }
14947 if test -n "$EXEEXT"; then
14948 am__EXEEXT_TRUE=
14949 am__EXEEXT_FALSE='#'
14950 else
14951 am__EXEEXT_TRUE='#'
14952 am__EXEEXT_FALSE=
14955 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14956 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14957 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14959 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14960 as_fn_error $? "conditional \"AMDEP\" was never defined.
14961 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14963 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14964 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14965 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14967 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14968 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
14969 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14971 if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
14972 as_fn_error $? "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
14973 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14976 : "${CONFIG_STATUS=./config.status}"
14977 ac_write_fail=0
14978 ac_clean_files_save=$ac_clean_files
14979 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14981 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14982 as_write_fail=0
14983 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14984 #! $SHELL
14985 # Generated by $as_me.
14986 # Run this file to recreate the current configuration.
14987 # Compiler output produced by configure, useful for debugging
14988 # configure, is in config.log if it exists.
14990 debug=false
14991 ac_cs_recheck=false
14992 ac_cs_silent=false
14994 SHELL=\${CONFIG_SHELL-$SHELL}
14995 export SHELL
14996 _ASEOF
14997 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14998 ## -------------------- ##
14999 ## M4sh Initialization. ##
15000 ## -------------------- ##
15002 # Be more Bourne compatible
15003 DUALCASE=1; export DUALCASE # for MKS sh
15004 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15005 emulate sh
15006 NULLCMD=:
15007 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15008 # is contrary to our usage. Disable this feature.
15009 alias -g '${1+"$@"}'='"$@"'
15010 setopt NO_GLOB_SUBST
15011 else
15012 case `(set -o) 2>/dev/null` in #(
15013 *posix*) :
15014 set -o posix ;; #(
15015 *) :
15017 esac
15021 as_nl='
15023 export as_nl
15024 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15025 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15026 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15027 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15028 # Prefer a ksh shell builtin over an external printf program on Solaris,
15029 # but without wasting forks for bash or zsh.
15030 if test -z "$BASH_VERSION$ZSH_VERSION" \
15031 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15032 as_echo='print -r --'
15033 as_echo_n='print -rn --'
15034 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15035 as_echo='printf %s\n'
15036 as_echo_n='printf %s'
15037 else
15038 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15039 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15040 as_echo_n='/usr/ucb/echo -n'
15041 else
15042 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15043 as_echo_n_body='eval
15044 arg=$1;
15045 case $arg in #(
15046 *"$as_nl"*)
15047 expr "X$arg" : "X\\(.*\\)$as_nl";
15048 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15049 esac;
15050 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15052 export as_echo_n_body
15053 as_echo_n='sh -c $as_echo_n_body as_echo'
15055 export as_echo_body
15056 as_echo='sh -c $as_echo_body as_echo'
15059 # The user is always right.
15060 if test "${PATH_SEPARATOR+set}" != set; then
15061 PATH_SEPARATOR=:
15062 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15063 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15064 PATH_SEPARATOR=';'
15069 # IFS
15070 # We need space, tab and new line, in precisely that order. Quoting is
15071 # there to prevent editors from complaining about space-tab.
15072 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15073 # splitting by setting IFS to empty value.)
15074 IFS=" "" $as_nl"
15076 # Find who we are. Look in the path if we contain no directory separator.
15077 as_myself=
15078 case $0 in #((
15079 *[\\/]* ) as_myself=$0 ;;
15080 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15081 for as_dir in $PATH
15083 IFS=$as_save_IFS
15084 test -z "$as_dir" && as_dir=.
15085 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15086 done
15087 IFS=$as_save_IFS
15090 esac
15091 # We did not find ourselves, most probably we were run as `sh COMMAND'
15092 # in which case we are not to be found in the path.
15093 if test "x$as_myself" = x; then
15094 as_myself=$0
15096 if test ! -f "$as_myself"; then
15097 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15098 exit 1
15101 # Unset variables that we do not need and which cause bugs (e.g. in
15102 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15103 # suppresses any "Segmentation fault" message there. '((' could
15104 # trigger a bug in pdksh 5.2.14.
15105 for as_var in BASH_ENV ENV MAIL MAILPATH
15106 do eval test x\${$as_var+set} = xset \
15107 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15108 done
15109 PS1='$ '
15110 PS2='> '
15111 PS4='+ '
15113 # NLS nuisances.
15114 LC_ALL=C
15115 export LC_ALL
15116 LANGUAGE=C
15117 export LANGUAGE
15119 # CDPATH.
15120 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15123 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15124 # ----------------------------------------
15125 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15126 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15127 # script with STATUS, using 1 if that was 0.
15128 as_fn_error ()
15130 as_status=$1; test $as_status -eq 0 && as_status=1
15131 if test "$4"; then
15132 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15133 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15135 $as_echo "$as_me: error: $2" >&2
15136 as_fn_exit $as_status
15137 } # as_fn_error
15140 # as_fn_set_status STATUS
15141 # -----------------------
15142 # Set $? to STATUS, without forking.
15143 as_fn_set_status ()
15145 return $1
15146 } # as_fn_set_status
15148 # as_fn_exit STATUS
15149 # -----------------
15150 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15151 as_fn_exit ()
15153 set +e
15154 as_fn_set_status $1
15155 exit $1
15156 } # as_fn_exit
15158 # as_fn_unset VAR
15159 # ---------------
15160 # Portably unset VAR.
15161 as_fn_unset ()
15163 { eval $1=; unset $1;}
15165 as_unset=as_fn_unset
15166 # as_fn_append VAR VALUE
15167 # ----------------------
15168 # Append the text in VALUE to the end of the definition contained in VAR. Take
15169 # advantage of any shell optimizations that allow amortized linear growth over
15170 # repeated appends, instead of the typical quadratic growth present in naive
15171 # implementations.
15172 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15173 eval 'as_fn_append ()
15175 eval $1+=\$2
15177 else
15178 as_fn_append ()
15180 eval $1=\$$1\$2
15182 fi # as_fn_append
15184 # as_fn_arith ARG...
15185 # ------------------
15186 # Perform arithmetic evaluation on the ARGs, and store the result in the
15187 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15188 # must be portable across $(()) and expr.
15189 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15190 eval 'as_fn_arith ()
15192 as_val=$(( $* ))
15194 else
15195 as_fn_arith ()
15197 as_val=`expr "$@" || test $? -eq 1`
15199 fi # as_fn_arith
15202 if expr a : '\(a\)' >/dev/null 2>&1 &&
15203 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15204 as_expr=expr
15205 else
15206 as_expr=false
15209 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15210 as_basename=basename
15211 else
15212 as_basename=false
15215 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15216 as_dirname=dirname
15217 else
15218 as_dirname=false
15221 as_me=`$as_basename -- "$0" ||
15222 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15223 X"$0" : 'X\(//\)$' \| \
15224 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15225 $as_echo X/"$0" |
15226 sed '/^.*\/\([^/][^/]*\)\/*$/{
15227 s//\1/
15230 /^X\/\(\/\/\)$/{
15231 s//\1/
15234 /^X\/\(\/\).*/{
15235 s//\1/
15238 s/.*/./; q'`
15240 # Avoid depending upon Character Ranges.
15241 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15242 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15243 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15244 as_cr_digits='0123456789'
15245 as_cr_alnum=$as_cr_Letters$as_cr_digits
15247 ECHO_C= ECHO_N= ECHO_T=
15248 case `echo -n x` in #(((((
15249 -n*)
15250 case `echo 'xy\c'` in
15251 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15252 xy) ECHO_C='\c';;
15253 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15254 ECHO_T=' ';;
15255 esac;;
15257 ECHO_N='-n';;
15258 esac
15260 rm -f conf$$ conf$$.exe conf$$.file
15261 if test -d conf$$.dir; then
15262 rm -f conf$$.dir/conf$$.file
15263 else
15264 rm -f conf$$.dir
15265 mkdir conf$$.dir 2>/dev/null
15267 if (echo >conf$$.file) 2>/dev/null; then
15268 if ln -s conf$$.file conf$$ 2>/dev/null; then
15269 as_ln_s='ln -s'
15270 # ... but there are two gotchas:
15271 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15272 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15273 # In both cases, we have to default to `cp -pR'.
15274 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15275 as_ln_s='cp -pR'
15276 elif ln conf$$.file conf$$ 2>/dev/null; then
15277 as_ln_s=ln
15278 else
15279 as_ln_s='cp -pR'
15281 else
15282 as_ln_s='cp -pR'
15284 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15285 rmdir conf$$.dir 2>/dev/null
15288 # as_fn_mkdir_p
15289 # -------------
15290 # Create "$as_dir" as a directory, including parents if necessary.
15291 as_fn_mkdir_p ()
15294 case $as_dir in #(
15295 -*) as_dir=./$as_dir;;
15296 esac
15297 test -d "$as_dir" || eval $as_mkdir_p || {
15298 as_dirs=
15299 while :; do
15300 case $as_dir in #(
15301 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15302 *) as_qdir=$as_dir;;
15303 esac
15304 as_dirs="'$as_qdir' $as_dirs"
15305 as_dir=`$as_dirname -- "$as_dir" ||
15306 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15307 X"$as_dir" : 'X\(//\)[^/]' \| \
15308 X"$as_dir" : 'X\(//\)$' \| \
15309 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15310 $as_echo X"$as_dir" |
15311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15312 s//\1/
15315 /^X\(\/\/\)[^/].*/{
15316 s//\1/
15319 /^X\(\/\/\)$/{
15320 s//\1/
15323 /^X\(\/\).*/{
15324 s//\1/
15327 s/.*/./; q'`
15328 test -d "$as_dir" && break
15329 done
15330 test -z "$as_dirs" || eval "mkdir $as_dirs"
15331 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15334 } # as_fn_mkdir_p
15335 if mkdir -p . 2>/dev/null; then
15336 as_mkdir_p='mkdir -p "$as_dir"'
15337 else
15338 test -d ./-p && rmdir ./-p
15339 as_mkdir_p=false
15343 # as_fn_executable_p FILE
15344 # -----------------------
15345 # Test if FILE is an executable regular file.
15346 as_fn_executable_p ()
15348 test -f "$1" && test -x "$1"
15349 } # as_fn_executable_p
15350 as_test_x='test -x'
15351 as_executable_p=as_fn_executable_p
15353 # Sed expression to map a string onto a valid CPP name.
15354 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15356 # Sed expression to map a string onto a valid variable name.
15357 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15360 exec 6>&1
15361 ## ----------------------------------- ##
15362 ## Main body of $CONFIG_STATUS script. ##
15363 ## ----------------------------------- ##
15364 _ASEOF
15365 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15368 # Save the log message, to keep $0 and so on meaningful, and to
15369 # report actual input values of CONFIG_FILES etc. instead of their
15370 # values after options handling.
15371 ac_log="
15372 This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
15373 generated by GNU Autoconf 2.69. Invocation command line was
15375 CONFIG_FILES = $CONFIG_FILES
15376 CONFIG_HEADERS = $CONFIG_HEADERS
15377 CONFIG_LINKS = $CONFIG_LINKS
15378 CONFIG_COMMANDS = $CONFIG_COMMANDS
15379 $ $0 $@
15381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15384 _ACEOF
15386 case $ac_config_files in *"
15387 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15388 esac
15392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15393 # Files that config.status was made for.
15394 config_files="$ac_config_files"
15395 config_commands="$ac_config_commands"
15397 _ACEOF
15399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15400 ac_cs_usage="\
15401 \`$as_me' instantiates files and other configuration actions
15402 from templates according to the current configuration. Unless the files
15403 and actions are specified as TAGs, all are instantiated by default.
15405 Usage: $0 [OPTION]... [TAG]...
15407 -h, --help print this help, then exit
15408 -V, --version print version number and configuration settings, then exit
15409 --config print configuration, then exit
15410 -q, --quiet, --silent
15411 do not print progress messages
15412 -d, --debug don't remove temporary files
15413 --recheck update $as_me by reconfiguring in the same conditions
15414 --file=FILE[:TEMPLATE]
15415 instantiate the configuration file FILE
15417 Configuration files:
15418 $config_files
15420 Configuration commands:
15421 $config_commands
15423 Report bugs to the package provider."
15425 _ACEOF
15426 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15427 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15428 ac_cs_version="\\
15429 MIC Offload Runtime Library config.status 1.0
15430 configured by $0, generated by GNU Autoconf 2.69,
15431 with options \\"\$ac_cs_config\\"
15433 Copyright (C) 2012 Free Software Foundation, Inc.
15434 This config.status script is free software; the Free Software Foundation
15435 gives unlimited permission to copy, distribute and modify it."
15437 ac_pwd='$ac_pwd'
15438 srcdir='$srcdir'
15439 INSTALL='$INSTALL'
15440 MKDIR_P='$MKDIR_P'
15441 AWK='$AWK'
15442 test -n "\$AWK" || AWK=awk
15443 _ACEOF
15445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15446 # The default lists apply if the user does not specify any file.
15447 ac_need_defaults=:
15448 while test $# != 0
15450 case $1 in
15451 --*=?*)
15452 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15453 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15454 ac_shift=:
15456 --*=)
15457 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15458 ac_optarg=
15459 ac_shift=:
15462 ac_option=$1
15463 ac_optarg=$2
15464 ac_shift=shift
15466 esac
15468 case $ac_option in
15469 # Handling of the options.
15470 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15471 ac_cs_recheck=: ;;
15472 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15473 $as_echo "$ac_cs_version"; exit ;;
15474 --config | --confi | --conf | --con | --co | --c )
15475 $as_echo "$ac_cs_config"; exit ;;
15476 --debug | --debu | --deb | --de | --d | -d )
15477 debug=: ;;
15478 --file | --fil | --fi | --f )
15479 $ac_shift
15480 case $ac_optarg in
15481 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15482 '') as_fn_error $? "missing file argument" ;;
15483 esac
15484 as_fn_append CONFIG_FILES " '$ac_optarg'"
15485 ac_need_defaults=false;;
15486 --he | --h | --help | --hel | -h )
15487 $as_echo "$ac_cs_usage"; exit ;;
15488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15489 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15490 ac_cs_silent=: ;;
15492 # This is an error.
15493 -*) as_fn_error $? "unrecognized option: \`$1'
15494 Try \`$0 --help' for more information." ;;
15496 *) as_fn_append ac_config_targets " $1"
15497 ac_need_defaults=false ;;
15499 esac
15500 shift
15501 done
15503 ac_configure_extra_args=
15505 if $ac_cs_silent; then
15506 exec 6>/dev/null
15507 ac_configure_extra_args="$ac_configure_extra_args --silent"
15510 _ACEOF
15511 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15512 if \$ac_cs_recheck; then
15513 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15514 shift
15515 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15516 CONFIG_SHELL='$SHELL'
15517 export CONFIG_SHELL
15518 exec "\$@"
15521 _ACEOF
15522 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15523 exec 5>>config.log
15525 echo
15526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15527 ## Running $as_me. ##
15528 _ASBOX
15529 $as_echo "$ac_log"
15530 } >&5
15532 _ACEOF
15533 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15535 # INIT-COMMANDS
15537 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15539 srcdir="$srcdir"
15540 host="$host"
15541 target="$target"
15542 with_multisubdir="$with_multisubdir"
15543 with_multisrctop="$with_multisrctop"
15544 with_target_subdir="$with_target_subdir"
15545 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15546 multi_basedir="$multi_basedir"
15547 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15548 CC="$CC"
15549 CXX="$CXX"
15550 GFORTRAN="$GFORTRAN"
15551 GDC="$GDC"
15554 # The HP-UX ksh and POSIX shell print the target directory to stdout
15555 # if CDPATH is set.
15556 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15558 sed_quote_subst='$sed_quote_subst'
15559 double_quote_subst='$double_quote_subst'
15560 delay_variable_subst='$delay_variable_subst'
15561 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15562 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15563 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15564 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15565 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15566 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15567 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15568 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15569 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15570 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15571 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15572 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15573 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15574 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15575 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15576 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15577 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15578 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15579 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15580 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15581 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15582 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15583 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15584 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15585 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15586 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15587 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15588 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15589 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15590 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15591 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15592 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15593 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15594 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15595 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15596 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15597 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15598 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15599 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15600 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15601 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15602 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15603 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15604 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15605 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15606 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15607 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15608 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15609 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"`'
15610 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15611 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15612 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15613 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15614 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15615 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15616 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15617 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15618 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15619 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15620 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15621 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15622 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15623 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15624 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15625 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15626 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15627 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15628 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15629 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15630 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15631 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15632 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15633 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15634 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15635 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15636 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15637 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15638 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15639 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15640 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15641 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15642 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15643 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15644 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15645 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15646 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15647 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15648 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15649 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15650 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15651 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15652 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15653 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15654 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15655 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15656 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15657 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15658 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15659 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15660 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15661 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15662 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15663 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15664 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15665 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15666 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15667 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15668 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15669 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15670 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15671 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15672 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15673 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15674 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15675 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15676 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15677 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15678 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15679 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15680 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15681 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15682 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15683 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15684 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15685 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15686 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15687 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15688 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15689 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15690 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15691 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15692 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15693 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15694 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15695 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15696 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15697 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15698 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15699 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15700 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15701 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15702 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15703 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15704 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15705 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15706 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15707 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15708 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15709 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15710 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15711 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15712 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15713 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15714 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15715 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15716 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15717 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15718 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15719 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15720 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15721 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15722 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15723 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15724 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15725 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15726 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15727 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15728 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15729 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15730 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15731 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15732 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15733 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15734 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15735 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15737 LTCC='$LTCC'
15738 LTCFLAGS='$LTCFLAGS'
15739 compiler='$compiler_DEFAULT'
15741 # A function that is used when there is no print builtin or printf.
15742 func_fallback_echo ()
15744 eval 'cat <<_LTECHO_EOF
15746 _LTECHO_EOF'
15749 # Quote evaled strings.
15750 for var in SHELL \
15751 ECHO \
15752 SED \
15753 GREP \
15754 EGREP \
15755 FGREP \
15756 LD \
15757 NM \
15758 LN_S \
15759 lt_SP2NL \
15760 lt_NL2SP \
15761 reload_flag \
15762 OBJDUMP \
15763 deplibs_check_method \
15764 file_magic_cmd \
15765 AR \
15766 AR_FLAGS \
15767 STRIP \
15768 RANLIB \
15769 CC \
15770 CFLAGS \
15771 compiler \
15772 lt_cv_sys_global_symbol_pipe \
15773 lt_cv_sys_global_symbol_to_cdecl \
15774 lt_cv_sys_global_symbol_to_c_name_address \
15775 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15776 lt_prog_compiler_no_builtin_flag \
15777 lt_prog_compiler_wl \
15778 lt_prog_compiler_pic \
15779 lt_prog_compiler_static \
15780 lt_cv_prog_compiler_c_o \
15781 need_locks \
15782 DSYMUTIL \
15783 NMEDIT \
15784 LIPO \
15785 OTOOL \
15786 OTOOL64 \
15787 shrext_cmds \
15788 export_dynamic_flag_spec \
15789 whole_archive_flag_spec \
15790 compiler_needs_object \
15791 with_gnu_ld \
15792 allow_undefined_flag \
15793 no_undefined_flag \
15794 hardcode_libdir_flag_spec \
15795 hardcode_libdir_flag_spec_ld \
15796 hardcode_libdir_separator \
15797 fix_srcfile_path \
15798 exclude_expsyms \
15799 include_expsyms \
15800 file_list_spec \
15801 variables_saved_for_relink \
15802 libname_spec \
15803 library_names_spec \
15804 soname_spec \
15805 install_override_mode \
15806 finish_eval \
15807 old_striplib \
15808 striplib \
15809 compiler_lib_search_dirs \
15810 predep_objects \
15811 postdep_objects \
15812 predeps \
15813 postdeps \
15814 compiler_lib_search_path \
15815 LD_CXX \
15816 reload_flag_CXX \
15817 compiler_CXX \
15818 lt_prog_compiler_no_builtin_flag_CXX \
15819 lt_prog_compiler_wl_CXX \
15820 lt_prog_compiler_pic_CXX \
15821 lt_prog_compiler_static_CXX \
15822 lt_cv_prog_compiler_c_o_CXX \
15823 export_dynamic_flag_spec_CXX \
15824 whole_archive_flag_spec_CXX \
15825 compiler_needs_object_CXX \
15826 with_gnu_ld_CXX \
15827 allow_undefined_flag_CXX \
15828 no_undefined_flag_CXX \
15829 hardcode_libdir_flag_spec_CXX \
15830 hardcode_libdir_flag_spec_ld_CXX \
15831 hardcode_libdir_separator_CXX \
15832 fix_srcfile_path_CXX \
15833 exclude_expsyms_CXX \
15834 include_expsyms_CXX \
15835 file_list_spec_CXX \
15836 compiler_lib_search_dirs_CXX \
15837 predep_objects_CXX \
15838 postdep_objects_CXX \
15839 predeps_CXX \
15840 postdeps_CXX \
15841 compiler_lib_search_path_CXX; do
15842 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15843 *[\\\\\\\`\\"\\\$]*)
15844 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15847 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15849 esac
15850 done
15852 # Double-quote double-evaled strings.
15853 for var in reload_cmds \
15854 old_postinstall_cmds \
15855 old_postuninstall_cmds \
15856 old_archive_cmds \
15857 extract_expsyms_cmds \
15858 old_archive_from_new_cmds \
15859 old_archive_from_expsyms_cmds \
15860 archive_cmds \
15861 archive_expsym_cmds \
15862 module_cmds \
15863 module_expsym_cmds \
15864 export_symbols_cmds \
15865 prelink_cmds \
15866 postinstall_cmds \
15867 postuninstall_cmds \
15868 finish_cmds \
15869 sys_lib_search_path_spec \
15870 sys_lib_dlsearch_path_spec \
15871 reload_cmds_CXX \
15872 old_archive_cmds_CXX \
15873 old_archive_from_new_cmds_CXX \
15874 old_archive_from_expsyms_cmds_CXX \
15875 archive_cmds_CXX \
15876 archive_expsym_cmds_CXX \
15877 module_cmds_CXX \
15878 module_expsym_cmds_CXX \
15879 export_symbols_cmds_CXX \
15880 prelink_cmds_CXX; do
15881 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15882 *[\\\\\\\`\\"\\\$]*)
15883 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15886 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15888 esac
15889 done
15891 ac_aux_dir='$ac_aux_dir'
15892 xsi_shell='$xsi_shell'
15893 lt_shell_append='$lt_shell_append'
15895 # See if we are running on zsh, and set the options which allow our
15896 # commands through without removal of \ escapes INIT.
15897 if test -n "\${ZSH_VERSION+set}" ; then
15898 setopt NO_GLOB_SUBST
15902 PACKAGE='$PACKAGE'
15903 VERSION='$VERSION'
15904 TIMESTAMP='$TIMESTAMP'
15905 RM='$RM'
15906 ofile='$ofile'
15913 _ACEOF
15915 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15917 # Handling of arguments.
15918 for ac_config_target in $ac_config_targets
15920 case $ac_config_target in
15921 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15922 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15923 "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
15924 "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
15925 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15926 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15928 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15929 esac
15930 done
15933 # If the user did not use the arguments to specify the items to instantiate,
15934 # then the envvar interface is used. Set only those that are not.
15935 # We use the long form for the default assignment because of an extremely
15936 # bizarre bug on SunOS 4.1.3.
15937 if $ac_need_defaults; then
15938 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15939 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15942 # Have a temporary directory for convenience. Make it in the build tree
15943 # simply because there is no reason against having it here, and in addition,
15944 # creating and moving files from /tmp can sometimes cause problems.
15945 # Hook for its removal unless debugging.
15946 # Note that there is a small window in which the directory will not be cleaned:
15947 # after its creation but before its name has been assigned to `$tmp'.
15948 $debug ||
15950 tmp= ac_tmp=
15951 trap 'exit_status=$?
15952 : "${ac_tmp:=$tmp}"
15953 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15955 trap 'as_fn_exit 1' 1 2 13 15
15957 # Create a (secure) tmp directory for tmp files.
15960 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15961 test -d "$tmp"
15962 } ||
15964 tmp=./conf$$-$RANDOM
15965 (umask 077 && mkdir "$tmp")
15966 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15967 ac_tmp=$tmp
15969 # Set up the scripts for CONFIG_FILES section.
15970 # No need to generate them if there are no CONFIG_FILES.
15971 # This happens for instance with `./config.status config.h'.
15972 if test -n "$CONFIG_FILES"; then
15975 ac_cr=`echo X | tr X '\015'`
15976 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15977 # But we know of no other shell where ac_cr would be empty at this
15978 # point, so we can use a bashism as a fallback.
15979 if test "x$ac_cr" = x; then
15980 eval ac_cr=\$\'\\r\'
15982 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15983 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15984 ac_cs_awk_cr='\\r'
15985 else
15986 ac_cs_awk_cr=$ac_cr
15989 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15990 _ACEOF
15994 echo "cat >conf$$subs.awk <<_ACEOF" &&
15995 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15996 echo "_ACEOF"
15997 } >conf$$subs.sh ||
15998 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15999 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16000 ac_delim='%!_!# '
16001 for ac_last_try in false false false false false :; do
16002 . ./conf$$subs.sh ||
16003 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16005 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16006 if test $ac_delim_n = $ac_delim_num; then
16007 break
16008 elif $ac_last_try; then
16009 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16010 else
16011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16013 done
16014 rm -f conf$$subs.sh
16016 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16017 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16018 _ACEOF
16019 sed -n '
16021 s/^/S["/; s/!.*/"]=/
16024 s/^[^!]*!//
16025 :repl
16026 t repl
16027 s/'"$ac_delim"'$//
16028 t delim
16031 s/\(.\{148\}\)..*/\1/
16032 t more1
16033 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16036 b repl
16037 :more1
16038 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16041 s/.\{148\}//
16042 t nl
16043 :delim
16045 s/\(.\{148\}\)..*/\1/
16046 t more2
16047 s/["\\]/\\&/g; s/^/"/; s/$/"/
16050 :more2
16051 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16054 s/.\{148\}//
16055 t delim
16056 ' <conf$$subs.awk | sed '
16057 /^[^""]/{
16059 s/\n//
16061 ' >>$CONFIG_STATUS || ac_write_fail=1
16062 rm -f conf$$subs.awk
16063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16064 _ACAWK
16065 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16066 for (key in S) S_is_set[key] = 1
16067 FS = "\a"
16071 line = $ 0
16072 nfields = split(line, field, "@")
16073 substed = 0
16074 len = length(field[1])
16075 for (i = 2; i < nfields; i++) {
16076 key = field[i]
16077 keylen = length(key)
16078 if (S_is_set[key]) {
16079 value = S[key]
16080 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16081 len += length(value) + length(field[++i])
16082 substed = 1
16083 } else
16084 len += 1 + keylen
16087 print line
16090 _ACAWK
16091 _ACEOF
16092 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16093 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16094 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16095 else
16097 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16098 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16099 _ACEOF
16101 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16102 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16103 # trailing colons and then remove the whole line if VPATH becomes empty
16104 # (actually we leave an empty line to preserve line numbers).
16105 if test "x$srcdir" = x.; then
16106 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16108 s///
16109 s/^/:/
16110 s/[ ]*$/:/
16111 s/:\$(srcdir):/:/g
16112 s/:\${srcdir}:/:/g
16113 s/:@srcdir@:/:/g
16114 s/^:*//
16115 s/:*$//
16117 s/\(=[ ]*\).*/\1/
16119 s/\n//
16120 s/^[^=]*=[ ]*$//
16124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16125 fi # test -n "$CONFIG_FILES"
16128 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16129 shift
16130 for ac_tag
16132 case $ac_tag in
16133 :[FHLC]) ac_mode=$ac_tag; continue;;
16134 esac
16135 case $ac_mode$ac_tag in
16136 :[FHL]*:*);;
16137 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16138 :[FH]-) ac_tag=-:-;;
16139 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16140 esac
16141 ac_save_IFS=$IFS
16142 IFS=:
16143 set x $ac_tag
16144 IFS=$ac_save_IFS
16145 shift
16146 ac_file=$1
16147 shift
16149 case $ac_mode in
16150 :L) ac_source=$1;;
16151 :[FH])
16152 ac_file_inputs=
16153 for ac_f
16155 case $ac_f in
16156 -) ac_f="$ac_tmp/stdin";;
16157 *) # Look for the file first in the build tree, then in the source tree
16158 # (if the path is not absolute). The absolute path cannot be DOS-style,
16159 # because $ac_f cannot contain `:'.
16160 test -f "$ac_f" ||
16161 case $ac_f in
16162 [\\/$]*) false;;
16163 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16164 esac ||
16165 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16166 esac
16167 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16168 as_fn_append ac_file_inputs " '$ac_f'"
16169 done
16171 # Let's still pretend it is `configure' which instantiates (i.e., don't
16172 # use $as_me), people would be surprised to read:
16173 # /* config.h. Generated by config.status. */
16174 configure_input='Generated from '`
16175 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16176 `' by configure.'
16177 if test x"$ac_file" != x-; then
16178 configure_input="$ac_file. $configure_input"
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16180 $as_echo "$as_me: creating $ac_file" >&6;}
16182 # Neutralize special characters interpreted by sed in replacement strings.
16183 case $configure_input in #(
16184 *\&* | *\|* | *\\* )
16185 ac_sed_conf_input=`$as_echo "$configure_input" |
16186 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16187 *) ac_sed_conf_input=$configure_input;;
16188 esac
16190 case $ac_tag in
16191 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16193 esac
16195 esac
16197 ac_dir=`$as_dirname -- "$ac_file" ||
16198 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16199 X"$ac_file" : 'X\(//\)[^/]' \| \
16200 X"$ac_file" : 'X\(//\)$' \| \
16201 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16202 $as_echo X"$ac_file" |
16203 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16204 s//\1/
16207 /^X\(\/\/\)[^/].*/{
16208 s//\1/
16211 /^X\(\/\/\)$/{
16212 s//\1/
16215 /^X\(\/\).*/{
16216 s//\1/
16219 s/.*/./; q'`
16220 as_dir="$ac_dir"; as_fn_mkdir_p
16221 ac_builddir=.
16223 case "$ac_dir" in
16224 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16226 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16227 # A ".." for each directory in $ac_dir_suffix.
16228 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16229 case $ac_top_builddir_sub in
16230 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16231 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16232 esac ;;
16233 esac
16234 ac_abs_top_builddir=$ac_pwd
16235 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16236 # for backward compatibility:
16237 ac_top_builddir=$ac_top_build_prefix
16239 case $srcdir in
16240 .) # We are building in place.
16241 ac_srcdir=.
16242 ac_top_srcdir=$ac_top_builddir_sub
16243 ac_abs_top_srcdir=$ac_pwd ;;
16244 [\\/]* | ?:[\\/]* ) # Absolute name.
16245 ac_srcdir=$srcdir$ac_dir_suffix;
16246 ac_top_srcdir=$srcdir
16247 ac_abs_top_srcdir=$srcdir ;;
16248 *) # Relative name.
16249 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16250 ac_top_srcdir=$ac_top_build_prefix$srcdir
16251 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16252 esac
16253 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16256 case $ac_mode in
16259 # CONFIG_FILE
16262 case $INSTALL in
16263 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16264 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16265 esac
16266 ac_MKDIR_P=$MKDIR_P
16267 case $MKDIR_P in
16268 [\\/$]* | ?:[\\/]* ) ;;
16269 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16270 esac
16271 _ACEOF
16273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16274 # If the template does not know about datarootdir, expand it.
16275 # FIXME: This hack should be removed a few years after 2.60.
16276 ac_datarootdir_hack=; ac_datarootdir_seen=
16277 ac_sed_dataroot='
16278 /datarootdir/ {
16282 /@datadir@/p
16283 /@docdir@/p
16284 /@infodir@/p
16285 /@localedir@/p
16286 /@mandir@/p'
16287 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16288 *datarootdir*) ac_datarootdir_seen=yes;;
16289 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16291 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16292 _ACEOF
16293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16294 ac_datarootdir_hack='
16295 s&@datadir@&$datadir&g
16296 s&@docdir@&$docdir&g
16297 s&@infodir@&$infodir&g
16298 s&@localedir@&$localedir&g
16299 s&@mandir@&$mandir&g
16300 s&\\\${datarootdir}&$datarootdir&g' ;;
16301 esac
16302 _ACEOF
16304 # Neutralize VPATH when `$srcdir' = `.'.
16305 # Shell code in configure.ac might set extrasub.
16306 # FIXME: do we really want to maintain this feature?
16307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16308 ac_sed_extra="$ac_vpsub
16309 $extrasub
16310 _ACEOF
16311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16314 s|@configure_input@|$ac_sed_conf_input|;t t
16315 s&@top_builddir@&$ac_top_builddir_sub&;t t
16316 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16317 s&@srcdir@&$ac_srcdir&;t t
16318 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16319 s&@top_srcdir@&$ac_top_srcdir&;t t
16320 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16321 s&@builddir@&$ac_builddir&;t t
16322 s&@abs_builddir@&$ac_abs_builddir&;t t
16323 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16324 s&@INSTALL@&$ac_INSTALL&;t t
16325 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16326 $ac_datarootdir_hack
16328 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16329 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16331 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16332 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16333 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16334 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16336 which seems to be undefined. Please make sure it is defined" >&5
16337 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16338 which seems to be undefined. Please make sure it is defined" >&2;}
16340 rm -f "$ac_tmp/stdin"
16341 case $ac_file in
16342 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16343 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16344 esac \
16345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16349 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16350 $as_echo "$as_me: executing $ac_file commands" >&6;}
16352 esac
16355 case $ac_file$ac_mode in
16356 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16357 # Older Autoconf quotes --file arguments for eval, but not when files
16358 # are listed without --file. Let's play safe and only enable the eval
16359 # if we detect the quoting.
16360 case $CONFIG_FILES in
16361 *\'*) eval set x "$CONFIG_FILES" ;;
16362 *) set x $CONFIG_FILES ;;
16363 esac
16364 shift
16365 for mf
16367 # Strip MF so we end up with the name of the file.
16368 mf=`echo "$mf" | sed -e 's/:.*$//'`
16369 # Check whether this is an Automake generated Makefile or not.
16370 # We used to match only the files named 'Makefile.in', but
16371 # some people rename them; so instead we look at the file content.
16372 # Grep'ing the first line is not enough: some people post-process
16373 # each Makefile.in and add a new line on top of each file to say so.
16374 # Grep'ing the whole file is not good either: AIX grep has a line
16375 # limit of 2048, but all sed's we know have understand at least 4000.
16376 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16377 dirpart=`$as_dirname -- "$mf" ||
16378 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16379 X"$mf" : 'X\(//\)[^/]' \| \
16380 X"$mf" : 'X\(//\)$' \| \
16381 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16382 $as_echo X"$mf" |
16383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16384 s//\1/
16387 /^X\(\/\/\)[^/].*/{
16388 s//\1/
16391 /^X\(\/\/\)$/{
16392 s//\1/
16395 /^X\(\/\).*/{
16396 s//\1/
16399 s/.*/./; q'`
16400 else
16401 continue
16403 # Extract the definition of DEPDIR, am__include, and am__quote
16404 # from the Makefile without running 'make'.
16405 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16406 test -z "$DEPDIR" && continue
16407 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16408 test -z "$am__include" && continue
16409 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16410 # Find all dependency output files, they are included files with
16411 # $(DEPDIR) in their names. We invoke sed twice because it is the
16412 # simplest approach to changing $(DEPDIR) to its actual value in the
16413 # expansion.
16414 for file in `sed -n "
16415 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16416 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16417 # Make sure the directory exists.
16418 test -f "$dirpart/$file" && continue
16419 fdir=`$as_dirname -- "$file" ||
16420 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16421 X"$file" : 'X\(//\)[^/]' \| \
16422 X"$file" : 'X\(//\)$' \| \
16423 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16424 $as_echo X"$file" |
16425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16426 s//\1/
16429 /^X\(\/\/\)[^/].*/{
16430 s//\1/
16433 /^X\(\/\/\)$/{
16434 s//\1/
16437 /^X\(\/\).*/{
16438 s//\1/
16441 s/.*/./; q'`
16442 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16443 # echo "creating $dirpart/$file"
16444 echo '# dummy' > "$dirpart/$file"
16445 done
16446 done
16449 "default-1":C)
16450 # Only add multilib support code if we just rebuilt the top-level
16451 # Makefile.
16452 case " $CONFIG_FILES " in
16453 *" Makefile "*)
16454 ac_file=Makefile . ${multi_basedir}/config-ml.in
16456 esac ;;
16457 "libtool":C)
16459 # See if we are running on zsh, and set the options which allow our
16460 # commands through without removal of \ escapes.
16461 if test -n "${ZSH_VERSION+set}" ; then
16462 setopt NO_GLOB_SUBST
16465 cfgfile="${ofile}T"
16466 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16467 $RM "$cfgfile"
16469 cat <<_LT_EOF >> "$cfgfile"
16470 #! $SHELL
16472 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16473 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16474 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16475 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16477 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16478 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16479 # Written by Gordon Matzigkeit, 1996
16481 # This file is part of GNU Libtool.
16483 # GNU Libtool is free software; you can redistribute it and/or
16484 # modify it under the terms of the GNU General Public License as
16485 # published by the Free Software Foundation; either version 2 of
16486 # the License, or (at your option) any later version.
16488 # As a special exception to the GNU General Public License,
16489 # if you distribute this file as part of a program or library that
16490 # is built using GNU Libtool, you may include this file under the
16491 # same distribution terms that you use for the rest of that program.
16493 # GNU Libtool is distributed in the hope that it will be useful,
16494 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16495 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16496 # GNU General Public License for more details.
16498 # You should have received a copy of the GNU General Public License
16499 # along with GNU Libtool; see the file COPYING. If not, a copy
16500 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16501 # obtained by writing to the Free Software Foundation, Inc.,
16502 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16505 # The names of the tagged configurations supported by this script.
16506 available_tags="CXX "
16508 # ### BEGIN LIBTOOL CONFIG
16510 # Which release of libtool.m4 was used?
16511 macro_version=$macro_version
16512 macro_revision=$macro_revision
16514 # Whether or not to build shared libraries.
16515 build_libtool_libs=$enable_shared
16517 # Whether or not to build static libraries.
16518 build_old_libs=$enable_static
16520 # What type of objects to build.
16521 pic_mode=$pic_mode
16523 # Whether or not to optimize for fast installation.
16524 fast_install=$enable_fast_install
16526 # Shell to use when invoking shell scripts.
16527 SHELL=$lt_SHELL
16529 # An echo program that protects backslashes.
16530 ECHO=$lt_ECHO
16532 # The host system.
16533 host_alias=$host_alias
16534 host=$host
16535 host_os=$host_os
16537 # The build system.
16538 build_alias=$build_alias
16539 build=$build
16540 build_os=$build_os
16542 # A sed program that does not truncate output.
16543 SED=$lt_SED
16545 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16546 Xsed="\$SED -e 1s/^X//"
16548 # A grep program that handles long lines.
16549 GREP=$lt_GREP
16551 # An ERE matcher.
16552 EGREP=$lt_EGREP
16554 # A literal string matcher.
16555 FGREP=$lt_FGREP
16557 # A BSD- or MS-compatible name lister.
16558 NM=$lt_NM
16560 # Whether we need soft or hard links.
16561 LN_S=$lt_LN_S
16563 # What is the maximum length of a command?
16564 max_cmd_len=$max_cmd_len
16566 # Object file suffix (normally "o").
16567 objext=$ac_objext
16569 # Executable file suffix (normally "").
16570 exeext=$exeext
16572 # whether the shell understands "unset".
16573 lt_unset=$lt_unset
16575 # turn spaces into newlines.
16576 SP2NL=$lt_lt_SP2NL
16578 # turn newlines into spaces.
16579 NL2SP=$lt_lt_NL2SP
16581 # An object symbol dumper.
16582 OBJDUMP=$lt_OBJDUMP
16584 # Method to check whether dependent libraries are shared objects.
16585 deplibs_check_method=$lt_deplibs_check_method
16587 # Command to use when deplibs_check_method == "file_magic".
16588 file_magic_cmd=$lt_file_magic_cmd
16590 # The archiver.
16591 AR=$lt_AR
16592 AR_FLAGS=$lt_AR_FLAGS
16594 # A symbol stripping program.
16595 STRIP=$lt_STRIP
16597 # Commands used to install an old-style archive.
16598 RANLIB=$lt_RANLIB
16599 old_postinstall_cmds=$lt_old_postinstall_cmds
16600 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16602 # Whether to use a lock for old archive extraction.
16603 lock_old_archive_extraction=$lock_old_archive_extraction
16605 # A C compiler.
16606 LTCC=$lt_CC
16608 # LTCC compiler flags.
16609 LTCFLAGS=$lt_CFLAGS
16611 # Take the output of nm and produce a listing of raw symbols and C names.
16612 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16614 # Transform the output of nm in a proper C declaration.
16615 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16617 # Transform the output of nm in a C name address pair.
16618 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16620 # Transform the output of nm in a C name address pair when lib prefix is needed.
16621 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16623 # The name of the directory that contains temporary libtool files.
16624 objdir=$objdir
16626 # Used to examine libraries when file_magic_cmd begins with "file".
16627 MAGIC_CMD=$MAGIC_CMD
16629 # Must we lock files when doing compilation?
16630 need_locks=$lt_need_locks
16632 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16633 DSYMUTIL=$lt_DSYMUTIL
16635 # Tool to change global to local symbols on Mac OS X.
16636 NMEDIT=$lt_NMEDIT
16638 # Tool to manipulate fat objects and archives on Mac OS X.
16639 LIPO=$lt_LIPO
16641 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16642 OTOOL=$lt_OTOOL
16644 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16645 OTOOL64=$lt_OTOOL64
16647 # Old archive suffix (normally "a").
16648 libext=$libext
16650 # Shared library suffix (normally ".so").
16651 shrext_cmds=$lt_shrext_cmds
16653 # The commands to extract the exported symbol list from a shared archive.
16654 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16656 # Variables whose values should be saved in libtool wrapper scripts and
16657 # restored at link time.
16658 variables_saved_for_relink=$lt_variables_saved_for_relink
16660 # Do we need the "lib" prefix for modules?
16661 need_lib_prefix=$need_lib_prefix
16663 # Do we need a version for libraries?
16664 need_version=$need_version
16666 # Library versioning type.
16667 version_type=$version_type
16669 # Shared library runtime path variable.
16670 runpath_var=$runpath_var
16672 # Shared library path variable.
16673 shlibpath_var=$shlibpath_var
16675 # Is shlibpath searched before the hard-coded library search path?
16676 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16678 # Format of library name prefix.
16679 libname_spec=$lt_libname_spec
16681 # List of archive names. First name is the real one, the rest are links.
16682 # The last name is the one that the linker finds with -lNAME
16683 library_names_spec=$lt_library_names_spec
16685 # The coded name of the library, if different from the real name.
16686 soname_spec=$lt_soname_spec
16688 # Permission mode override for installation of shared libraries.
16689 install_override_mode=$lt_install_override_mode
16691 # Command to use after installation of a shared archive.
16692 postinstall_cmds=$lt_postinstall_cmds
16694 # Command to use after uninstallation of a shared archive.
16695 postuninstall_cmds=$lt_postuninstall_cmds
16697 # Commands used to finish a libtool library installation in a directory.
16698 finish_cmds=$lt_finish_cmds
16700 # As "finish_cmds", except a single script fragment to be evaled but
16701 # not shown.
16702 finish_eval=$lt_finish_eval
16704 # Whether we should hardcode library paths into libraries.
16705 hardcode_into_libs=$hardcode_into_libs
16707 # Compile-time system search path for libraries.
16708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16710 # Run-time system search path for libraries.
16711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16713 # Whether dlopen is supported.
16714 dlopen_support=$enable_dlopen
16716 # Whether dlopen of programs is supported.
16717 dlopen_self=$enable_dlopen_self
16719 # Whether dlopen of statically linked programs is supported.
16720 dlopen_self_static=$enable_dlopen_self_static
16722 # Commands to strip libraries.
16723 old_striplib=$lt_old_striplib
16724 striplib=$lt_striplib
16727 # The linker used to build libraries.
16728 LD=$lt_LD
16730 # How to create reloadable object files.
16731 reload_flag=$lt_reload_flag
16732 reload_cmds=$lt_reload_cmds
16734 # Commands used to build an old-style archive.
16735 old_archive_cmds=$lt_old_archive_cmds
16737 # A language specific compiler.
16738 CC=$lt_compiler
16740 # Is the compiler the GNU compiler?
16741 with_gcc=$GCC
16743 # Compiler flag to turn off builtin functions.
16744 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16746 # How to pass a linker flag through the compiler.
16747 wl=$lt_lt_prog_compiler_wl
16749 # Additional compiler flags for building library objects.
16750 pic_flag=$lt_lt_prog_compiler_pic
16752 # Compiler flag to prevent dynamic linking.
16753 link_static_flag=$lt_lt_prog_compiler_static
16755 # Does compiler simultaneously support -c and -o options?
16756 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16758 # Whether or not to add -lc for building shared libraries.
16759 build_libtool_need_lc=$archive_cmds_need_lc
16761 # Whether or not to disallow shared libs when runtime libs are static.
16762 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16764 # Compiler flag to allow reflexive dlopens.
16765 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16767 # Compiler flag to generate shared objects directly from archives.
16768 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16770 # Whether the compiler copes with passing no objects directly.
16771 compiler_needs_object=$lt_compiler_needs_object
16773 # Create an old-style archive from a shared archive.
16774 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16776 # Create a temporary old-style archive to link instead of a shared archive.
16777 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16779 # Commands used to build a shared archive.
16780 archive_cmds=$lt_archive_cmds
16781 archive_expsym_cmds=$lt_archive_expsym_cmds
16783 # Commands used to build a loadable module if different from building
16784 # a shared archive.
16785 module_cmds=$lt_module_cmds
16786 module_expsym_cmds=$lt_module_expsym_cmds
16788 # Whether we are building with GNU ld or not.
16789 with_gnu_ld=$lt_with_gnu_ld
16791 # Flag that allows shared libraries with undefined symbols to be built.
16792 allow_undefined_flag=$lt_allow_undefined_flag
16794 # Flag that enforces no undefined symbols.
16795 no_undefined_flag=$lt_no_undefined_flag
16797 # Flag to hardcode \$libdir into a binary during linking.
16798 # This must work even if \$libdir does not exist
16799 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16801 # If ld is used when linking, flag to hardcode \$libdir into a binary
16802 # during linking. This must work even if \$libdir does not exist.
16803 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16805 # Whether we need a single "-rpath" flag with a separated argument.
16806 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16808 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16809 # DIR into the resulting binary.
16810 hardcode_direct=$hardcode_direct
16812 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16813 # DIR into the resulting binary and the resulting library dependency is
16814 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16815 # library is relocated.
16816 hardcode_direct_absolute=$hardcode_direct_absolute
16818 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16819 # into the resulting binary.
16820 hardcode_minus_L=$hardcode_minus_L
16822 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16823 # into the resulting binary.
16824 hardcode_shlibpath_var=$hardcode_shlibpath_var
16826 # Set to "yes" if building a shared library automatically hardcodes DIR
16827 # into the library and all subsequent libraries and executables linked
16828 # against it.
16829 hardcode_automatic=$hardcode_automatic
16831 # Set to yes if linker adds runtime paths of dependent libraries
16832 # to runtime path list.
16833 inherit_rpath=$inherit_rpath
16835 # Whether libtool must link a program against all its dependency libraries.
16836 link_all_deplibs=$link_all_deplibs
16838 # Fix the shell variable \$srcfile for the compiler.
16839 fix_srcfile_path=$lt_fix_srcfile_path
16841 # Set to "yes" if exported symbols are required.
16842 always_export_symbols=$always_export_symbols
16844 # The commands to list exported symbols.
16845 export_symbols_cmds=$lt_export_symbols_cmds
16847 # Symbols that should not be listed in the preloaded symbols.
16848 exclude_expsyms=$lt_exclude_expsyms
16850 # Symbols that must always be exported.
16851 include_expsyms=$lt_include_expsyms
16853 # Commands necessary for linking programs (against libraries) with templates.
16854 prelink_cmds=$lt_prelink_cmds
16856 # Specify filename containing input files.
16857 file_list_spec=$lt_file_list_spec
16859 # How to hardcode a shared library path into an executable.
16860 hardcode_action=$hardcode_action
16862 # The directories searched by this compiler when creating a shared library.
16863 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16865 # Dependencies to place before and after the objects being linked to
16866 # create a shared library.
16867 predep_objects=$lt_predep_objects
16868 postdep_objects=$lt_postdep_objects
16869 predeps=$lt_predeps
16870 postdeps=$lt_postdeps
16872 # The library search path used internally by the compiler when linking
16873 # a shared library.
16874 compiler_lib_search_path=$lt_compiler_lib_search_path
16876 # ### END LIBTOOL CONFIG
16878 _LT_EOF
16880 case $host_os in
16881 aix3*)
16882 cat <<\_LT_EOF >> "$cfgfile"
16883 # AIX sometimes has problems with the GCC collect2 program. For some
16884 # reason, if we set the COLLECT_NAMES environment variable, the problems
16885 # vanish in a puff of smoke.
16886 if test "X${COLLECT_NAMES+set}" != Xset; then
16887 COLLECT_NAMES=
16888 export COLLECT_NAMES
16890 _LT_EOF
16892 esac
16895 ltmain="$ac_aux_dir/ltmain.sh"
16898 # We use sed instead of cat because bash on DJGPP gets confused if
16899 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16900 # text mode, it properly converts lines to CR/LF. This bash problem
16901 # is reportedly fixed, but why not run on old versions too?
16902 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16903 || (rm -f "$cfgfile"; exit 1)
16905 case $xsi_shell in
16906 yes)
16907 cat << \_LT_EOF >> "$cfgfile"
16909 # func_dirname file append nondir_replacement
16910 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16911 # otherwise set result to NONDIR_REPLACEMENT.
16912 func_dirname ()
16914 case ${1} in
16915 */*) func_dirname_result="${1%/*}${2}" ;;
16916 * ) func_dirname_result="${3}" ;;
16917 esac
16920 # func_basename file
16921 func_basename ()
16923 func_basename_result="${1##*/}"
16926 # func_dirname_and_basename file append nondir_replacement
16927 # perform func_basename and func_dirname in a single function
16928 # call:
16929 # dirname: Compute the dirname of FILE. If nonempty,
16930 # add APPEND to the result, otherwise set result
16931 # to NONDIR_REPLACEMENT.
16932 # value returned in "$func_dirname_result"
16933 # basename: Compute filename of FILE.
16934 # value retuned in "$func_basename_result"
16935 # Implementation must be kept synchronized with func_dirname
16936 # and func_basename. For efficiency, we do not delegate to
16937 # those functions but instead duplicate the functionality here.
16938 func_dirname_and_basename ()
16940 case ${1} in
16941 */*) func_dirname_result="${1%/*}${2}" ;;
16942 * ) func_dirname_result="${3}" ;;
16943 esac
16944 func_basename_result="${1##*/}"
16947 # func_stripname prefix suffix name
16948 # strip PREFIX and SUFFIX off of NAME.
16949 # PREFIX and SUFFIX must not contain globbing or regex special
16950 # characters, hashes, percent signs, but SUFFIX may contain a leading
16951 # dot (in which case that matches only a dot).
16952 func_stripname ()
16954 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16955 # positional parameters, so assign one to ordinary parameter first.
16956 func_stripname_result=${3}
16957 func_stripname_result=${func_stripname_result#"${1}"}
16958 func_stripname_result=${func_stripname_result%"${2}"}
16961 # func_opt_split
16962 func_opt_split ()
16964 func_opt_split_opt=${1%%=*}
16965 func_opt_split_arg=${1#*=}
16968 # func_lo2o object
16969 func_lo2o ()
16971 case ${1} in
16972 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16973 *) func_lo2o_result=${1} ;;
16974 esac
16977 # func_xform libobj-or-source
16978 func_xform ()
16980 func_xform_result=${1%.*}.lo
16983 # func_arith arithmetic-term...
16984 func_arith ()
16986 func_arith_result=$(( $* ))
16989 # func_len string
16990 # STRING may not start with a hyphen.
16991 func_len ()
16993 func_len_result=${#1}
16996 _LT_EOF
16998 *) # Bourne compatible functions.
16999 cat << \_LT_EOF >> "$cfgfile"
17001 # func_dirname file append nondir_replacement
17002 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17003 # otherwise set result to NONDIR_REPLACEMENT.
17004 func_dirname ()
17006 # Extract subdirectory from the argument.
17007 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17008 if test "X$func_dirname_result" = "X${1}"; then
17009 func_dirname_result="${3}"
17010 else
17011 func_dirname_result="$func_dirname_result${2}"
17015 # func_basename file
17016 func_basename ()
17018 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17022 # func_stripname prefix suffix name
17023 # strip PREFIX and SUFFIX off of NAME.
17024 # PREFIX and SUFFIX must not contain globbing or regex special
17025 # characters, hashes, percent signs, but SUFFIX may contain a leading
17026 # dot (in which case that matches only a dot).
17027 # func_strip_suffix prefix name
17028 func_stripname ()
17030 case ${2} in
17031 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17032 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17033 esac
17036 # sed scripts:
17037 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17038 my_sed_long_arg='1s/^-[^=]*=//'
17040 # func_opt_split
17041 func_opt_split ()
17043 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17044 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17047 # func_lo2o object
17048 func_lo2o ()
17050 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17053 # func_xform libobj-or-source
17054 func_xform ()
17056 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17059 # func_arith arithmetic-term...
17060 func_arith ()
17062 func_arith_result=`expr "$@"`
17065 # func_len string
17066 # STRING may not start with a hyphen.
17067 func_len ()
17069 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17072 _LT_EOF
17073 esac
17075 case $lt_shell_append in
17076 yes)
17077 cat << \_LT_EOF >> "$cfgfile"
17079 # func_append var value
17080 # Append VALUE to the end of shell variable VAR.
17081 func_append ()
17083 eval "$1+=\$2"
17085 _LT_EOF
17088 cat << \_LT_EOF >> "$cfgfile"
17090 # func_append var value
17091 # Append VALUE to the end of shell variable VAR.
17092 func_append ()
17094 eval "$1=\$$1\$2"
17097 _LT_EOF
17099 esac
17102 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17103 || (rm -f "$cfgfile"; exit 1)
17105 mv -f "$cfgfile" "$ofile" ||
17106 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17107 chmod +x "$ofile"
17110 cat <<_LT_EOF >> "$ofile"
17112 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17114 # The linker used to build libraries.
17115 LD=$lt_LD_CXX
17117 # How to create reloadable object files.
17118 reload_flag=$lt_reload_flag_CXX
17119 reload_cmds=$lt_reload_cmds_CXX
17121 # Commands used to build an old-style archive.
17122 old_archive_cmds=$lt_old_archive_cmds_CXX
17124 # A language specific compiler.
17125 CC=$lt_compiler_CXX
17127 # Is the compiler the GNU compiler?
17128 with_gcc=$GCC_CXX
17130 # Compiler flag to turn off builtin functions.
17131 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17133 # How to pass a linker flag through the compiler.
17134 wl=$lt_lt_prog_compiler_wl_CXX
17136 # Additional compiler flags for building library objects.
17137 pic_flag=$lt_lt_prog_compiler_pic_CXX
17139 # Compiler flag to prevent dynamic linking.
17140 link_static_flag=$lt_lt_prog_compiler_static_CXX
17142 # Does compiler simultaneously support -c and -o options?
17143 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17145 # Whether or not to add -lc for building shared libraries.
17146 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17148 # Whether or not to disallow shared libs when runtime libs are static.
17149 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17151 # Compiler flag to allow reflexive dlopens.
17152 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17154 # Compiler flag to generate shared objects directly from archives.
17155 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17157 # Whether the compiler copes with passing no objects directly.
17158 compiler_needs_object=$lt_compiler_needs_object_CXX
17160 # Create an old-style archive from a shared archive.
17161 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17163 # Create a temporary old-style archive to link instead of a shared archive.
17164 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17166 # Commands used to build a shared archive.
17167 archive_cmds=$lt_archive_cmds_CXX
17168 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17170 # Commands used to build a loadable module if different from building
17171 # a shared archive.
17172 module_cmds=$lt_module_cmds_CXX
17173 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17175 # Whether we are building with GNU ld or not.
17176 with_gnu_ld=$lt_with_gnu_ld_CXX
17178 # Flag that allows shared libraries with undefined symbols to be built.
17179 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17181 # Flag that enforces no undefined symbols.
17182 no_undefined_flag=$lt_no_undefined_flag_CXX
17184 # Flag to hardcode \$libdir into a binary during linking.
17185 # This must work even if \$libdir does not exist
17186 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17188 # If ld is used when linking, flag to hardcode \$libdir into a binary
17189 # during linking. This must work even if \$libdir does not exist.
17190 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17192 # Whether we need a single "-rpath" flag with a separated argument.
17193 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17195 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17196 # DIR into the resulting binary.
17197 hardcode_direct=$hardcode_direct_CXX
17199 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17200 # DIR into the resulting binary and the resulting library dependency is
17201 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17202 # library is relocated.
17203 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17205 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17206 # into the resulting binary.
17207 hardcode_minus_L=$hardcode_minus_L_CXX
17209 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17210 # into the resulting binary.
17211 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17213 # Set to "yes" if building a shared library automatically hardcodes DIR
17214 # into the library and all subsequent libraries and executables linked
17215 # against it.
17216 hardcode_automatic=$hardcode_automatic_CXX
17218 # Set to yes if linker adds runtime paths of dependent libraries
17219 # to runtime path list.
17220 inherit_rpath=$inherit_rpath_CXX
17222 # Whether libtool must link a program against all its dependency libraries.
17223 link_all_deplibs=$link_all_deplibs_CXX
17225 # Fix the shell variable \$srcfile for the compiler.
17226 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17228 # Set to "yes" if exported symbols are required.
17229 always_export_symbols=$always_export_symbols_CXX
17231 # The commands to list exported symbols.
17232 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17234 # Symbols that should not be listed in the preloaded symbols.
17235 exclude_expsyms=$lt_exclude_expsyms_CXX
17237 # Symbols that must always be exported.
17238 include_expsyms=$lt_include_expsyms_CXX
17240 # Commands necessary for linking programs (against libraries) with templates.
17241 prelink_cmds=$lt_prelink_cmds_CXX
17243 # Specify filename containing input files.
17244 file_list_spec=$lt_file_list_spec_CXX
17246 # How to hardcode a shared library path into an executable.
17247 hardcode_action=$hardcode_action_CXX
17249 # The directories searched by this compiler when creating a shared library.
17250 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17252 # Dependencies to place before and after the objects being linked to
17253 # create a shared library.
17254 predep_objects=$lt_predep_objects_CXX
17255 postdep_objects=$lt_postdep_objects_CXX
17256 predeps=$lt_predeps_CXX
17257 postdeps=$lt_postdeps_CXX
17259 # The library search path used internally by the compiler when linking
17260 # a shared library.
17261 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17263 # ### END LIBTOOL TAG CONFIG: CXX
17264 _LT_EOF
17268 esac
17269 done # for ac_tag
17272 as_fn_exit 0
17273 _ACEOF
17274 ac_clean_files=$ac_clean_files_save
17276 test $ac_write_fail = 0 ||
17277 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17280 # configure is writing to config.log, and then calls config.status.
17281 # config.status does its own redirection, appending to config.log.
17282 # Unfortunately, on DOS this fails, as config.log is still kept open
17283 # by configure, so config.status won't be able to write to it; its
17284 # output is simply discarded. So we exec the FD to /dev/null,
17285 # effectively closing config.log, so it can be properly (re)opened and
17286 # appended to by config.status. When coming back to configure, we
17287 # need to make the FD available again.
17288 if test "$no_create" != yes; then
17289 ac_cs_success=:
17290 ac_config_status_args=
17291 test "$silent" = yes &&
17292 ac_config_status_args="$ac_config_status_args --quiet"
17293 exec 5>/dev/null
17294 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17295 exec 5>>config.log
17296 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17297 # would make configure fail if this is the last instruction.
17298 $ac_cs_success || as_fn_exit 1
17302 # CONFIG_SUBDIRS section.
17304 if test "$no_recursion" != yes; then
17306 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17307 # so they do not pile up.
17308 ac_sub_configure_args=
17309 ac_prev=
17310 eval "set x $ac_configure_args"
17311 shift
17312 for ac_arg
17314 if test -n "$ac_prev"; then
17315 ac_prev=
17316 continue
17318 case $ac_arg in
17319 -cache-file | --cache-file | --cache-fil | --cache-fi \
17320 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17321 ac_prev=cache_file ;;
17322 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17323 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17324 | --c=*)
17326 --config-cache | -C)
17328 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17329 ac_prev=srcdir ;;
17330 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17332 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17333 ac_prev=prefix ;;
17334 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17336 --disable-option-checking)
17339 case $ac_arg in
17340 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17341 esac
17342 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17343 esac
17344 done
17346 # Always prepend --prefix to ensure using the same prefix
17347 # in subdir configurations.
17348 ac_arg="--prefix=$prefix"
17349 case $ac_arg in
17350 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17351 esac
17352 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17354 # Pass --silent
17355 if test "$silent" = yes; then
17356 ac_sub_configure_args="--silent $ac_sub_configure_args"
17359 # Always prepend --disable-option-checking to silence warnings, since
17360 # different subdirs can have different --enable and --with options.
17361 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17363 ac_popdir=`pwd`
17364 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17366 # Do not complain, so a configure script can configure whichever
17367 # parts of a large source tree are present.
17368 test -d "$srcdir/$ac_dir" || continue
17370 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17371 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17372 $as_echo "$ac_msg" >&6
17373 as_dir="$ac_dir"; as_fn_mkdir_p
17374 ac_builddir=.
17376 case "$ac_dir" in
17377 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17379 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17380 # A ".." for each directory in $ac_dir_suffix.
17381 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17382 case $ac_top_builddir_sub in
17383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17385 esac ;;
17386 esac
17387 ac_abs_top_builddir=$ac_pwd
17388 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17389 # for backward compatibility:
17390 ac_top_builddir=$ac_top_build_prefix
17392 case $srcdir in
17393 .) # We are building in place.
17394 ac_srcdir=.
17395 ac_top_srcdir=$ac_top_builddir_sub
17396 ac_abs_top_srcdir=$ac_pwd ;;
17397 [\\/]* | ?:[\\/]* ) # Absolute name.
17398 ac_srcdir=$srcdir$ac_dir_suffix;
17399 ac_top_srcdir=$srcdir
17400 ac_abs_top_srcdir=$srcdir ;;
17401 *) # Relative name.
17402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17403 ac_top_srcdir=$ac_top_build_prefix$srcdir
17404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17405 esac
17406 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17409 cd "$ac_dir"
17411 # Check for guested configure; otherwise get Cygnus style configure.
17412 if test -f "$ac_srcdir/configure.gnu"; then
17413 ac_sub_configure=$ac_srcdir/configure.gnu
17414 elif test -f "$ac_srcdir/configure"; then
17415 ac_sub_configure=$ac_srcdir/configure
17416 elif test -f "$ac_srcdir/configure.in"; then
17417 # This should be Cygnus configure.
17418 ac_sub_configure=$ac_aux_dir/configure
17419 else
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17421 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17422 ac_sub_configure=
17425 # The recursion is here.
17426 if test -n "$ac_sub_configure"; then
17427 # Make the cache file name correct relative to the subdirectory.
17428 case $cache_file in
17429 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17430 *) # Relative name.
17431 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17432 esac
17434 { $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
17435 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17436 # The eval makes quoting arguments work.
17437 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17438 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17439 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17442 cd "$ac_popdir"
17443 done
17445 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17447 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}