Add testcase of PR c++/92542, already fixed.
[official-gcc.git] / liboffloadmic / configure
blob3d99ffd3b4efdde1f7410f9c666272debe4f2269
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 | uclinuxfdpiceabi)
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 | uclinuxfdpiceabi)
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.
10713 # uclinux* changes (here and below) have been submitted to the libtool
10714 # project, but have not yet been accepted: they are GCC-local changes
10715 # for the time being. (See
10716 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10717 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10718 version_type=linux
10719 need_lib_prefix=no
10720 need_version=no
10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10722 soname_spec='${libname}${release}${shared_ext}$major'
10723 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10724 shlibpath_var=LD_LIBRARY_PATH
10725 shlibpath_overrides_runpath=no
10727 # Some binutils ld are patched to set DT_RUNPATH
10728 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10729 $as_echo_n "(cached) " >&6
10730 else
10731 lt_cv_shlibpath_overrides_runpath=no
10732 save_LDFLAGS=$LDFLAGS
10733 save_libdir=$libdir
10734 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10735 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10737 /* end confdefs.h. */
10740 main ()
10744 return 0;
10746 _ACEOF
10747 if ac_fn_c_try_link "$LINENO"; then :
10748 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10749 lt_cv_shlibpath_overrides_runpath=yes
10752 rm -f core conftest.err conftest.$ac_objext \
10753 conftest$ac_exeext conftest.$ac_ext
10754 LDFLAGS=$save_LDFLAGS
10755 libdir=$save_libdir
10759 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10761 # This implies no fast_install, which is unacceptable.
10762 # Some rework will be needed to allow for fast_install
10763 # before this can be enabled.
10764 hardcode_into_libs=yes
10766 # Append ld.so.conf contents to the search path
10767 if test -f /etc/ld.so.conf; then
10768 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' ' '`
10769 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10772 # We used to test for /lib/ld.so.1 and disable shared libraries on
10773 # powerpc, because MkLinux only supported shared libraries with the
10774 # GNU dynamic linker. Since this was broken with cross compilers,
10775 # most powerpc-linux boxes support dynamic linking these days and
10776 # people can always --disable-shared, the test was removed, and we
10777 # assume the GNU/Linux dynamic linker is in use.
10778 dynamic_linker='GNU/Linux ld.so'
10781 netbsd*)
10782 version_type=sunos
10783 need_lib_prefix=no
10784 need_version=no
10785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10788 dynamic_linker='NetBSD (a.out) ld.so'
10789 else
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10791 soname_spec='${libname}${release}${shared_ext}$major'
10792 dynamic_linker='NetBSD ld.elf_so'
10794 shlibpath_var=LD_LIBRARY_PATH
10795 shlibpath_overrides_runpath=yes
10796 hardcode_into_libs=yes
10799 newsos6)
10800 version_type=linux
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10802 shlibpath_var=LD_LIBRARY_PATH
10803 shlibpath_overrides_runpath=yes
10806 *nto* | *qnx*)
10807 version_type=qnx
10808 need_lib_prefix=no
10809 need_version=no
10810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10811 soname_spec='${libname}${release}${shared_ext}$major'
10812 shlibpath_var=LD_LIBRARY_PATH
10813 shlibpath_overrides_runpath=no
10814 hardcode_into_libs=yes
10815 dynamic_linker='ldqnx.so'
10818 openbsd*)
10819 version_type=sunos
10820 sys_lib_dlsearch_path_spec="/usr/lib"
10821 need_lib_prefix=no
10822 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10823 case $host_os in
10824 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10825 *) need_version=no ;;
10826 esac
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10829 shlibpath_var=LD_LIBRARY_PATH
10830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10831 case $host_os in
10832 openbsd2.[89] | openbsd2.[89].*)
10833 shlibpath_overrides_runpath=no
10836 shlibpath_overrides_runpath=yes
10838 esac
10839 else
10840 shlibpath_overrides_runpath=yes
10844 os2*)
10845 libname_spec='$name'
10846 shrext_cmds=".dll"
10847 need_lib_prefix=no
10848 library_names_spec='$libname${shared_ext} $libname.a'
10849 dynamic_linker='OS/2 ld.exe'
10850 shlibpath_var=LIBPATH
10853 osf3* | osf4* | osf5*)
10854 version_type=osf
10855 need_lib_prefix=no
10856 need_version=no
10857 soname_spec='${libname}${release}${shared_ext}$major'
10858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10859 shlibpath_var=LD_LIBRARY_PATH
10860 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10861 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10864 rdos*)
10865 dynamic_linker=no
10868 solaris*)
10869 version_type=linux
10870 need_lib_prefix=no
10871 need_version=no
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10873 soname_spec='${libname}${release}${shared_ext}$major'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=yes
10876 hardcode_into_libs=yes
10877 # ldd complains unless libraries are executable
10878 postinstall_cmds='chmod +x $lib'
10881 sunos4*)
10882 version_type=sunos
10883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10885 shlibpath_var=LD_LIBRARY_PATH
10886 shlibpath_overrides_runpath=yes
10887 if test "$with_gnu_ld" = yes; then
10888 need_lib_prefix=no
10890 need_version=yes
10893 sysv4 | sysv4.3*)
10894 version_type=linux
10895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10896 soname_spec='${libname}${release}${shared_ext}$major'
10897 shlibpath_var=LD_LIBRARY_PATH
10898 case $host_vendor in
10899 sni)
10900 shlibpath_overrides_runpath=no
10901 need_lib_prefix=no
10902 runpath_var=LD_RUN_PATH
10904 siemens)
10905 need_lib_prefix=no
10907 motorola)
10908 need_lib_prefix=no
10909 need_version=no
10910 shlibpath_overrides_runpath=no
10911 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10913 esac
10916 sysv4*MP*)
10917 if test -d /usr/nec ;then
10918 version_type=linux
10919 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10920 soname_spec='$libname${shared_ext}.$major'
10921 shlibpath_var=LD_LIBRARY_PATH
10925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10926 version_type=freebsd-elf
10927 need_lib_prefix=no
10928 need_version=no
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10930 soname_spec='${libname}${release}${shared_ext}$major'
10931 shlibpath_var=LD_LIBRARY_PATH
10932 shlibpath_overrides_runpath=yes
10933 hardcode_into_libs=yes
10934 if test "$with_gnu_ld" = yes; then
10935 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10936 else
10937 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10938 case $host_os in
10939 sco3.2v5*)
10940 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10942 esac
10944 sys_lib_dlsearch_path_spec='/usr/lib'
10947 tpf*)
10948 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10949 version_type=linux
10950 need_lib_prefix=no
10951 need_version=no
10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10953 shlibpath_var=LD_LIBRARY_PATH
10954 shlibpath_overrides_runpath=no
10955 hardcode_into_libs=yes
10958 uts4*)
10959 version_type=linux
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10961 soname_spec='${libname}${release}${shared_ext}$major'
10962 shlibpath_var=LD_LIBRARY_PATH
10966 dynamic_linker=no
10968 esac
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10970 $as_echo "$dynamic_linker" >&6; }
10971 test "$dynamic_linker" = no && can_build_shared=no
10973 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10974 if test "$GCC" = yes; then
10975 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10978 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10979 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10981 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10982 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11077 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11078 hardcode_action=
11079 if test -n "$hardcode_libdir_flag_spec" ||
11080 test -n "$runpath_var" ||
11081 test "X$hardcode_automatic" = "Xyes" ; then
11083 # We can hardcode non-existent directories.
11084 if test "$hardcode_direct" != no &&
11085 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11086 # have to relink, otherwise we might link with an installed library
11087 # when we should be linking with a yet-to-be-installed one
11088 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11089 test "$hardcode_minus_L" != no; then
11090 # Linking always hardcodes the temporary library directory.
11091 hardcode_action=relink
11092 else
11093 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11094 hardcode_action=immediate
11096 else
11097 # We cannot hardcode anything, or else we can only hardcode existing
11098 # directories.
11099 hardcode_action=unsupported
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11102 $as_echo "$hardcode_action" >&6; }
11104 if test "$hardcode_action" = relink ||
11105 test "$inherit_rpath" = yes; then
11106 # Fast installation is not supported
11107 enable_fast_install=no
11108 elif test "$shlibpath_overrides_runpath" = yes ||
11109 test "$enable_shared" = no; then
11110 # Fast installation is not necessary
11111 enable_fast_install=needless
11119 if test "x$enable_dlopen" != xyes; then
11120 enable_dlopen=unknown
11121 enable_dlopen_self=unknown
11122 enable_dlopen_self_static=unknown
11123 else
11124 lt_cv_dlopen=no
11125 lt_cv_dlopen_libs=
11127 case $host_os in
11128 beos*)
11129 lt_cv_dlopen="load_add_on"
11130 lt_cv_dlopen_libs=
11131 lt_cv_dlopen_self=yes
11134 mingw* | pw32* | cegcc*)
11135 lt_cv_dlopen="LoadLibrary"
11136 lt_cv_dlopen_libs=
11139 cygwin*)
11140 lt_cv_dlopen="dlopen"
11141 lt_cv_dlopen_libs=
11144 darwin*)
11145 # if libdl is installed we need to link against it
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11147 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11148 if ${ac_cv_lib_dl_dlopen+:} false; then :
11149 $as_echo_n "(cached) " >&6
11150 else
11151 ac_check_lib_save_LIBS=$LIBS
11152 LIBS="-ldl $LIBS"
11153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11154 /* end confdefs.h. */
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 char dlopen ();
11164 main ()
11166 return dlopen ();
11168 return 0;
11170 _ACEOF
11171 if ac_fn_c_try_link "$LINENO"; then :
11172 ac_cv_lib_dl_dlopen=yes
11173 else
11174 ac_cv_lib_dl_dlopen=no
11176 rm -f core conftest.err conftest.$ac_objext \
11177 conftest$ac_exeext conftest.$ac_ext
11178 LIBS=$ac_check_lib_save_LIBS
11180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11181 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11182 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11183 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11184 else
11186 lt_cv_dlopen="dyld"
11187 lt_cv_dlopen_libs=
11188 lt_cv_dlopen_self=yes
11195 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11196 if test "x$ac_cv_func_shl_load" = xyes; then :
11197 lt_cv_dlopen="shl_load"
11198 else
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11200 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11201 if ${ac_cv_lib_dld_shl_load+:} false; then :
11202 $as_echo_n "(cached) " >&6
11203 else
11204 ac_check_lib_save_LIBS=$LIBS
11205 LIBS="-ldld $LIBS"
11206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11207 /* end confdefs.h. */
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11212 #ifdef __cplusplus
11213 extern "C"
11214 #endif
11215 char shl_load ();
11217 main ()
11219 return shl_load ();
11221 return 0;
11223 _ACEOF
11224 if ac_fn_c_try_link "$LINENO"; then :
11225 ac_cv_lib_dld_shl_load=yes
11226 else
11227 ac_cv_lib_dld_shl_load=no
11229 rm -f core conftest.err conftest.$ac_objext \
11230 conftest$ac_exeext conftest.$ac_ext
11231 LIBS=$ac_check_lib_save_LIBS
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11234 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11235 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11236 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11237 else
11238 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11239 if test "x$ac_cv_func_dlopen" = xyes; then :
11240 lt_cv_dlopen="dlopen"
11241 else
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11243 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11244 if ${ac_cv_lib_dl_dlopen+:} false; then :
11245 $as_echo_n "(cached) " >&6
11246 else
11247 ac_check_lib_save_LIBS=$LIBS
11248 LIBS="-ldl $LIBS"
11249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11250 /* end confdefs.h. */
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11255 #ifdef __cplusplus
11256 extern "C"
11257 #endif
11258 char dlopen ();
11260 main ()
11262 return dlopen ();
11264 return 0;
11266 _ACEOF
11267 if ac_fn_c_try_link "$LINENO"; then :
11268 ac_cv_lib_dl_dlopen=yes
11269 else
11270 ac_cv_lib_dl_dlopen=no
11272 rm -f core conftest.err conftest.$ac_objext \
11273 conftest$ac_exeext conftest.$ac_ext
11274 LIBS=$ac_check_lib_save_LIBS
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11277 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11278 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11280 else
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11282 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11283 if ${ac_cv_lib_svld_dlopen+:} false; then :
11284 $as_echo_n "(cached) " >&6
11285 else
11286 ac_check_lib_save_LIBS=$LIBS
11287 LIBS="-lsvld $LIBS"
11288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11289 /* end confdefs.h. */
11291 /* Override any GCC internal prototype to avoid an error.
11292 Use char because int might match the return type of a GCC
11293 builtin and then its argument prototype would still apply. */
11294 #ifdef __cplusplus
11295 extern "C"
11296 #endif
11297 char dlopen ();
11299 main ()
11301 return dlopen ();
11303 return 0;
11305 _ACEOF
11306 if ac_fn_c_try_link "$LINENO"; then :
11307 ac_cv_lib_svld_dlopen=yes
11308 else
11309 ac_cv_lib_svld_dlopen=no
11311 rm -f core conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11313 LIBS=$ac_check_lib_save_LIBS
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11316 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11317 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11318 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11319 else
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11321 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11322 if ${ac_cv_lib_dld_dld_link+:} false; then :
11323 $as_echo_n "(cached) " >&6
11324 else
11325 ac_check_lib_save_LIBS=$LIBS
11326 LIBS="-ldld $LIBS"
11327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11328 /* end confdefs.h. */
11330 /* Override any GCC internal prototype to avoid an error.
11331 Use char because int might match the return type of a GCC
11332 builtin and then its argument prototype would still apply. */
11333 #ifdef __cplusplus
11334 extern "C"
11335 #endif
11336 char dld_link ();
11338 main ()
11340 return dld_link ();
11342 return 0;
11344 _ACEOF
11345 if ac_fn_c_try_link "$LINENO"; then :
11346 ac_cv_lib_dld_dld_link=yes
11347 else
11348 ac_cv_lib_dld_dld_link=no
11350 rm -f core conftest.err conftest.$ac_objext \
11351 conftest$ac_exeext conftest.$ac_ext
11352 LIBS=$ac_check_lib_save_LIBS
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11355 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11356 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11357 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11376 esac
11378 if test "x$lt_cv_dlopen" != xno; then
11379 enable_dlopen=yes
11380 else
11381 enable_dlopen=no
11384 case $lt_cv_dlopen in
11385 dlopen)
11386 save_CPPFLAGS="$CPPFLAGS"
11387 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11389 save_LDFLAGS="$LDFLAGS"
11390 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11392 save_LIBS="$LIBS"
11393 LIBS="$lt_cv_dlopen_libs $LIBS"
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11396 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11397 if ${lt_cv_dlopen_self+:} false; then :
11398 $as_echo_n "(cached) " >&6
11399 else
11400 if test "$cross_compiling" = yes; then :
11401 lt_cv_dlopen_self=cross
11402 else
11403 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11404 lt_status=$lt_dlunknown
11405 cat > conftest.$ac_ext <<_LT_EOF
11406 #line 11406 "configure"
11407 #include "confdefs.h"
11409 #if HAVE_DLFCN_H
11410 #include <dlfcn.h>
11411 #endif
11413 #include <stdio.h>
11415 #ifdef RTLD_GLOBAL
11416 # define LT_DLGLOBAL RTLD_GLOBAL
11417 #else
11418 # ifdef DL_GLOBAL
11419 # define LT_DLGLOBAL DL_GLOBAL
11420 # else
11421 # define LT_DLGLOBAL 0
11422 # endif
11423 #endif
11425 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11426 find out it does not work in some platform. */
11427 #ifndef LT_DLLAZY_OR_NOW
11428 # ifdef RTLD_LAZY
11429 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11430 # else
11431 # ifdef DL_LAZY
11432 # define LT_DLLAZY_OR_NOW DL_LAZY
11433 # else
11434 # ifdef RTLD_NOW
11435 # define LT_DLLAZY_OR_NOW RTLD_NOW
11436 # else
11437 # ifdef DL_NOW
11438 # define LT_DLLAZY_OR_NOW DL_NOW
11439 # else
11440 # define LT_DLLAZY_OR_NOW 0
11441 # endif
11442 # endif
11443 # endif
11444 # endif
11445 #endif
11447 /* When -fvisbility=hidden is used, assume the code has been annotated
11448 correspondingly for the symbols needed. */
11449 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11450 void fnord () __attribute__((visibility("default")));
11451 #endif
11453 void fnord () { int i=42; }
11454 int main ()
11456 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11457 int status = $lt_dlunknown;
11459 if (self)
11461 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11462 else
11464 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11465 else puts (dlerror ());
11467 /* dlclose (self); */
11469 else
11470 puts (dlerror ());
11472 return status;
11474 _LT_EOF
11475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11476 (eval $ac_link) 2>&5
11477 ac_status=$?
11478 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11479 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11480 (./conftest; exit; ) >&5 2>/dev/null
11481 lt_status=$?
11482 case x$lt_status in
11483 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11484 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11485 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11486 esac
11487 else :
11488 # compilation failed
11489 lt_cv_dlopen_self=no
11492 rm -fr conftest*
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11497 $as_echo "$lt_cv_dlopen_self" >&6; }
11499 if test "x$lt_cv_dlopen_self" = xyes; then
11500 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11502 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11503 if ${lt_cv_dlopen_self_static+:} false; then :
11504 $as_echo_n "(cached) " >&6
11505 else
11506 if test "$cross_compiling" = yes; then :
11507 lt_cv_dlopen_self_static=cross
11508 else
11509 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11510 lt_status=$lt_dlunknown
11511 cat > conftest.$ac_ext <<_LT_EOF
11512 #line 11512 "configure"
11513 #include "confdefs.h"
11515 #if HAVE_DLFCN_H
11516 #include <dlfcn.h>
11517 #endif
11519 #include <stdio.h>
11521 #ifdef RTLD_GLOBAL
11522 # define LT_DLGLOBAL RTLD_GLOBAL
11523 #else
11524 # ifdef DL_GLOBAL
11525 # define LT_DLGLOBAL DL_GLOBAL
11526 # else
11527 # define LT_DLGLOBAL 0
11528 # endif
11529 #endif
11531 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11532 find out it does not work in some platform. */
11533 #ifndef LT_DLLAZY_OR_NOW
11534 # ifdef RTLD_LAZY
11535 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11536 # else
11537 # ifdef DL_LAZY
11538 # define LT_DLLAZY_OR_NOW DL_LAZY
11539 # else
11540 # ifdef RTLD_NOW
11541 # define LT_DLLAZY_OR_NOW RTLD_NOW
11542 # else
11543 # ifdef DL_NOW
11544 # define LT_DLLAZY_OR_NOW DL_NOW
11545 # else
11546 # define LT_DLLAZY_OR_NOW 0
11547 # endif
11548 # endif
11549 # endif
11550 # endif
11551 #endif
11553 /* When -fvisbility=hidden is used, assume the code has been annotated
11554 correspondingly for the symbols needed. */
11555 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11556 void fnord () __attribute__((visibility("default")));
11557 #endif
11559 void fnord () { int i=42; }
11560 int main ()
11562 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11563 int status = $lt_dlunknown;
11565 if (self)
11567 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11568 else
11570 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11571 else puts (dlerror ());
11573 /* dlclose (self); */
11575 else
11576 puts (dlerror ());
11578 return status;
11580 _LT_EOF
11581 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11582 (eval $ac_link) 2>&5
11583 ac_status=$?
11584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11585 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11586 (./conftest; exit; ) >&5 2>/dev/null
11587 lt_status=$?
11588 case x$lt_status in
11589 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11590 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11591 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11592 esac
11593 else :
11594 # compilation failed
11595 lt_cv_dlopen_self_static=no
11598 rm -fr conftest*
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11603 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11606 CPPFLAGS="$save_CPPFLAGS"
11607 LDFLAGS="$save_LDFLAGS"
11608 LIBS="$save_LIBS"
11610 esac
11612 case $lt_cv_dlopen_self in
11613 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11614 *) enable_dlopen_self=unknown ;;
11615 esac
11617 case $lt_cv_dlopen_self_static in
11618 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11619 *) enable_dlopen_self_static=unknown ;;
11620 esac
11639 striplib=
11640 old_striplib=
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11642 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11643 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11644 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11645 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11647 $as_echo "yes" >&6; }
11648 else
11649 # FIXME - insert some real tests, host_os isn't really good enough
11650 case $host_os in
11651 darwin*)
11652 if test -n "$STRIP" ; then
11653 striplib="$STRIP -x"
11654 old_striplib="$STRIP -S"
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11656 $as_echo "yes" >&6; }
11657 else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659 $as_echo "no" >&6; }
11663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11664 $as_echo "no" >&6; }
11666 esac
11680 # Report which library types will actually be built
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11682 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11684 $as_echo "$can_build_shared" >&6; }
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11687 $as_echo_n "checking whether to build shared libraries... " >&6; }
11688 test "$can_build_shared" = "no" && enable_shared=no
11690 # On AIX, shared libraries and static libraries use the same namespace, and
11691 # are all built from PIC.
11692 case $host_os in
11693 aix3*)
11694 test "$enable_shared" = yes && enable_static=no
11695 if test -n "$RANLIB"; then
11696 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11697 postinstall_cmds='$RANLIB $lib'
11701 aix[4-9]*)
11702 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11703 test "$enable_shared" = yes && enable_static=no
11706 esac
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11708 $as_echo "$enable_shared" >&6; }
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11711 $as_echo_n "checking whether to build static libraries... " >&6; }
11712 # Make sure either enable_shared or enable_static is yes.
11713 test "$enable_shared" = yes || enable_static=yes
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11715 $as_echo "$enable_static" >&6; }
11721 ac_ext=c
11722 ac_cpp='$CPP $CPPFLAGS'
11723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11727 CC="$lt_save_CC"
11729 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11730 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11731 (test "X$CXX" != "Xg++"))) ; then
11732 ac_ext=cpp
11733 ac_cpp='$CXXCPP $CPPFLAGS'
11734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11738 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11739 if test -z "$CXXCPP"; then
11740 if ${ac_cv_prog_CXXCPP+:} false; then :
11741 $as_echo_n "(cached) " >&6
11742 else
11743 # Double quotes because CXXCPP needs to be expanded
11744 for CXXCPP in "$CXX -E" "/lib/cpp"
11746 ac_preproc_ok=false
11747 for ac_cxx_preproc_warn_flag in '' yes
11749 # Use a header file that comes with gcc, so configuring glibc
11750 # with a fresh cross-compiler works.
11751 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752 # <limits.h> exists even on freestanding compilers.
11753 # On the NeXT, cc -E runs the code through the compiler's parser,
11754 # not just through cpp. "Syntax error" is here to catch this case.
11755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756 /* end confdefs.h. */
11757 #ifdef __STDC__
11758 # include <limits.h>
11759 #else
11760 # include <assert.h>
11761 #endif
11762 Syntax error
11763 _ACEOF
11764 if ac_fn_cxx_try_cpp "$LINENO"; then :
11766 else
11767 # Broken: fails on valid input.
11768 continue
11770 rm -f conftest.err conftest.i conftest.$ac_ext
11772 # OK, works on sane cases. Now check whether nonexistent headers
11773 # can be detected and how.
11774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11775 /* end confdefs.h. */
11776 #include <ac_nonexistent.h>
11777 _ACEOF
11778 if ac_fn_cxx_try_cpp "$LINENO"; then :
11779 # Broken: success on invalid input.
11780 continue
11781 else
11782 # Passes both tests.
11783 ac_preproc_ok=:
11784 break
11786 rm -f conftest.err conftest.i conftest.$ac_ext
11788 done
11789 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11790 rm -f conftest.i conftest.err conftest.$ac_ext
11791 if $ac_preproc_ok; then :
11792 break
11795 done
11796 ac_cv_prog_CXXCPP=$CXXCPP
11799 CXXCPP=$ac_cv_prog_CXXCPP
11800 else
11801 ac_cv_prog_CXXCPP=$CXXCPP
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11804 $as_echo "$CXXCPP" >&6; }
11805 ac_preproc_ok=false
11806 for ac_cxx_preproc_warn_flag in '' yes
11808 # Use a header file that comes with gcc, so configuring glibc
11809 # with a fresh cross-compiler works.
11810 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11811 # <limits.h> exists even on freestanding compilers.
11812 # On the NeXT, cc -E runs the code through the compiler's parser,
11813 # not just through cpp. "Syntax error" is here to catch this case.
11814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11815 /* end confdefs.h. */
11816 #ifdef __STDC__
11817 # include <limits.h>
11818 #else
11819 # include <assert.h>
11820 #endif
11821 Syntax error
11822 _ACEOF
11823 if ac_fn_cxx_try_cpp "$LINENO"; then :
11825 else
11826 # Broken: fails on valid input.
11827 continue
11829 rm -f conftest.err conftest.i conftest.$ac_ext
11831 # OK, works on sane cases. Now check whether nonexistent headers
11832 # can be detected and how.
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11835 #include <ac_nonexistent.h>
11836 _ACEOF
11837 if ac_fn_cxx_try_cpp "$LINENO"; then :
11838 # Broken: success on invalid input.
11839 continue
11840 else
11841 # Passes both tests.
11842 ac_preproc_ok=:
11843 break
11845 rm -f conftest.err conftest.i conftest.$ac_ext
11847 done
11848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11849 rm -f conftest.i conftest.err conftest.$ac_ext
11850 if $ac_preproc_ok; then :
11852 else
11853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11855 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11856 See \`config.log' for more details" "$LINENO" 5; }
11859 ac_ext=c
11860 ac_cpp='$CPP $CPPFLAGS'
11861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11865 else
11866 _lt_caught_CXX_error=yes
11869 ac_ext=cpp
11870 ac_cpp='$CXXCPP $CPPFLAGS'
11871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11875 archive_cmds_need_lc_CXX=no
11876 allow_undefined_flag_CXX=
11877 always_export_symbols_CXX=no
11878 archive_expsym_cmds_CXX=
11879 compiler_needs_object_CXX=no
11880 export_dynamic_flag_spec_CXX=
11881 hardcode_direct_CXX=no
11882 hardcode_direct_absolute_CXX=no
11883 hardcode_libdir_flag_spec_CXX=
11884 hardcode_libdir_flag_spec_ld_CXX=
11885 hardcode_libdir_separator_CXX=
11886 hardcode_minus_L_CXX=no
11887 hardcode_shlibpath_var_CXX=unsupported
11888 hardcode_automatic_CXX=no
11889 inherit_rpath_CXX=no
11890 module_cmds_CXX=
11891 module_expsym_cmds_CXX=
11892 link_all_deplibs_CXX=unknown
11893 old_archive_cmds_CXX=$old_archive_cmds
11894 reload_flag_CXX=$reload_flag
11895 reload_cmds_CXX=$reload_cmds
11896 no_undefined_flag_CXX=
11897 whole_archive_flag_spec_CXX=
11898 enable_shared_with_static_runtimes_CXX=no
11900 # Source file extension for C++ test sources.
11901 ac_ext=cpp
11903 # Object file extension for compiled C++ test sources.
11904 objext=o
11905 objext_CXX=$objext
11907 # No sense in running all these tests if we already determined that
11908 # the CXX compiler isn't working. Some variables (like enable_shared)
11909 # are currently assumed to apply to all compilers on this platform,
11910 # and will be corrupted by setting them based on a non-working compiler.
11911 if test "$_lt_caught_CXX_error" != yes; then
11912 # Code to be used in simple compile tests
11913 lt_simple_compile_test_code="int some_variable = 0;"
11915 # Code to be used in simple link tests
11916 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11918 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11925 # If no C compiler was specified, use CC.
11926 LTCC=${LTCC-"$CC"}
11928 # If no C compiler flags were specified, use CFLAGS.
11929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11931 # Allow CC to be a program name with arguments.
11932 compiler=$CC
11935 # save warnings/boilerplate of simple test code
11936 ac_outfile=conftest.$ac_objext
11937 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11938 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11939 _lt_compiler_boilerplate=`cat conftest.err`
11940 $RM conftest*
11942 ac_outfile=conftest.$ac_objext
11943 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11944 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11945 _lt_linker_boilerplate=`cat conftest.err`
11946 $RM -r conftest*
11949 # Allow CC to be a program name with arguments.
11950 lt_save_CC=$CC
11951 lt_save_LD=$LD
11952 lt_save_GCC=$GCC
11953 GCC=$GXX
11954 lt_save_with_gnu_ld=$with_gnu_ld
11955 lt_save_path_LD=$lt_cv_path_LD
11956 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11957 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11958 else
11959 $as_unset lt_cv_prog_gnu_ld
11961 if test -n "${lt_cv_path_LDCXX+set}"; then
11962 lt_cv_path_LD=$lt_cv_path_LDCXX
11963 else
11964 $as_unset lt_cv_path_LD
11966 test -z "${LDCXX+set}" || LD=$LDCXX
11967 CC=${CXX-"c++"}
11968 compiler=$CC
11969 compiler_CXX=$CC
11970 for cc_temp in $compiler""; do
11971 case $cc_temp in
11972 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11973 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11974 \-*) ;;
11975 *) break;;
11976 esac
11977 done
11978 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11981 if test -n "$compiler"; then
11982 # We don't want -fno-exception when compiling C++ code, so set the
11983 # no_builtin_flag separately
11984 if test "$GXX" = yes; then
11985 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11986 else
11987 lt_prog_compiler_no_builtin_flag_CXX=
11990 if test "$GXX" = yes; then
11991 # Set up default GNU C++ configuration
11995 # Check whether --with-gnu-ld was given.
11996 if test "${with_gnu_ld+set}" = set; then :
11997 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11998 else
11999 with_gnu_ld=no
12002 ac_prog=ld
12003 if test "$GCC" = yes; then
12004 # Check if gcc -print-prog-name=ld gives a path.
12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12006 $as_echo_n "checking for ld used by $CC... " >&6; }
12007 case $host in
12008 *-*-mingw*)
12009 # gcc leaves a trailing carriage return which upsets mingw
12010 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12012 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12013 esac
12014 case $ac_prog in
12015 # Accept absolute paths.
12016 [\\/]* | ?:[\\/]*)
12017 re_direlt='/[^/][^/]*/\.\./'
12018 # Canonicalize the pathname of ld
12019 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12020 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12021 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12022 done
12023 test -z "$LD" && LD="$ac_prog"
12026 # If it fails, then pretend we aren't using GCC.
12027 ac_prog=ld
12030 # If it is relative, then search for the first ld in PATH.
12031 with_gnu_ld=unknown
12033 esac
12034 elif test "$with_gnu_ld" = yes; then
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12036 $as_echo_n "checking for GNU ld... " >&6; }
12037 else
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12039 $as_echo_n "checking for non-GNU ld... " >&6; }
12041 if ${lt_cv_path_LD+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 if test -z "$LD"; then
12045 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12046 for ac_dir in $PATH; do
12047 IFS="$lt_save_ifs"
12048 test -z "$ac_dir" && ac_dir=.
12049 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12050 lt_cv_path_LD="$ac_dir/$ac_prog"
12051 # Check to see if the program is GNU ld. I'd rather use --version,
12052 # but apparently some variants of GNU ld only accept -v.
12053 # Break only if it was the GNU/non-GNU ld that we prefer.
12054 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12055 *GNU* | *'with BFD'*)
12056 test "$with_gnu_ld" != no && break
12059 test "$with_gnu_ld" != yes && break
12061 esac
12063 done
12064 IFS="$lt_save_ifs"
12065 else
12066 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12070 LD="$lt_cv_path_LD"
12071 if test -n "$LD"; then
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12073 $as_echo "$LD" >&6; }
12074 else
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12078 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12080 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12081 if ${lt_cv_prog_gnu_ld+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12085 case `$LD -v 2>&1 </dev/null` in
12086 *GNU* | *'with BFD'*)
12087 lt_cv_prog_gnu_ld=yes
12090 lt_cv_prog_gnu_ld=no
12092 esac
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12095 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12096 with_gnu_ld=$lt_cv_prog_gnu_ld
12104 # Check if GNU C++ uses GNU ld as the underlying linker, since the
12105 # archiving commands below assume that GNU ld is being used.
12106 if test "$with_gnu_ld" = yes; then
12107 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12108 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'
12110 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12111 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12113 # If archive_cmds runs LD, not CC, wlarc should be empty
12114 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12115 # investigate it a little bit more. (MM)
12116 wlarc='${wl}'
12118 # ancient GNU ld didn't support --whole-archive et. al.
12119 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12120 $GREP 'no-whole-archive' > /dev/null; then
12121 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12122 else
12123 whole_archive_flag_spec_CXX=
12125 else
12126 with_gnu_ld=no
12127 wlarc=
12129 # A generic and very simple default shared library creation
12130 # command for GNU C++ for the case where it uses the native
12131 # linker, instead of GNU ld. If possible, this setting should
12132 # overridden to take advantage of the native linker features on
12133 # the platform it is being used on.
12134 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12137 # Commands to make compiler produce verbose output that lists
12138 # what "hidden" libraries, object files and flags are used when
12139 # linking a shared library.
12140 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12142 else
12143 GXX=no
12144 with_gnu_ld=no
12145 wlarc=
12148 # PORTME: fill in a description of your system's C++ link characteristics
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12150 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12151 ld_shlibs_CXX=yes
12152 case $host_os in
12153 aix3*)
12154 # FIXME: insert proper C++ library support
12155 ld_shlibs_CXX=no
12157 aix[4-9]*)
12158 if test "$host_cpu" = ia64; then
12159 # On IA64, the linker does run time linking by default, so we don't
12160 # have to do anything special.
12161 aix_use_runtimelinking=no
12162 exp_sym_flag='-Bexport'
12163 no_entry_flag=""
12164 else
12165 aix_use_runtimelinking=no
12167 # Test if we are trying to use run time linking or normal
12168 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12169 # need to do runtime linking.
12170 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12171 for ld_flag in $LDFLAGS; do
12172 case $ld_flag in
12173 *-brtl*)
12174 aix_use_runtimelinking=yes
12175 break
12177 esac
12178 done
12180 esac
12182 exp_sym_flag='-bexport'
12183 no_entry_flag='-bnoentry'
12186 # When large executables or shared objects are built, AIX ld can
12187 # have problems creating the table of contents. If linking a library
12188 # or program results in "error TOC overflow" add -mminimal-toc to
12189 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12190 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12192 archive_cmds_CXX=''
12193 hardcode_direct_CXX=yes
12194 hardcode_direct_absolute_CXX=yes
12195 hardcode_libdir_separator_CXX=':'
12196 link_all_deplibs_CXX=yes
12197 file_list_spec_CXX='${wl}-f,'
12199 if test "$GXX" = yes; then
12200 case $host_os in aix4.[012]|aix4.[012].*)
12201 # We only want to do this on AIX 4.2 and lower, the check
12202 # below for broken collect2 doesn't work under 4.3+
12203 collect2name=`${CC} -print-prog-name=collect2`
12204 if test -f "$collect2name" &&
12205 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12206 then
12207 # We have reworked collect2
12209 else
12210 # We have old collect2
12211 hardcode_direct_CXX=unsupported
12212 # It fails to find uninstalled libraries when the uninstalled
12213 # path is not listed in the libpath. Setting hardcode_minus_L
12214 # to unsupported forces relinking
12215 hardcode_minus_L_CXX=yes
12216 hardcode_libdir_flag_spec_CXX='-L$libdir'
12217 hardcode_libdir_separator_CXX=
12219 esac
12220 shared_flag='-shared'
12221 if test "$aix_use_runtimelinking" = yes; then
12222 shared_flag="$shared_flag "'${wl}-G'
12224 else
12225 # not using gcc
12226 if test "$host_cpu" = ia64; then
12227 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12228 # chokes on -Wl,-G. The following line is correct:
12229 shared_flag='-G'
12230 else
12231 if test "$aix_use_runtimelinking" = yes; then
12232 shared_flag='${wl}-G'
12233 else
12234 shared_flag='${wl}-bM:SRE'
12239 export_dynamic_flag_spec_CXX='${wl}-bexpall'
12240 # It seems that -bexpall does not export symbols beginning with
12241 # underscore (_), so it is better to generate a list of symbols to
12242 # export.
12243 always_export_symbols_CXX=yes
12244 if test "$aix_use_runtimelinking" = yes; then
12245 # Warning - without using the other runtime loading flags (-brtl),
12246 # -berok will link without error, but may produce a broken library.
12247 allow_undefined_flag_CXX='-berok'
12248 # Determine the default libpath from the value encoded in an empty
12249 # executable.
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12251 /* end confdefs.h. */
12254 main ()
12258 return 0;
12260 _ACEOF
12261 if ac_fn_cxx_try_link "$LINENO"; then :
12263 lt_aix_libpath_sed='
12264 /Import File Strings/,/^$/ {
12265 /^0/ {
12266 s/^0 *\(.*\)$/\1/
12270 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12271 # Check for a 64-bit object if we didn't find anything.
12272 if test -z "$aix_libpath"; then
12273 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12276 rm -f core conftest.err conftest.$ac_objext \
12277 conftest$ac_exeext conftest.$ac_ext
12278 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12280 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12282 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"
12283 else
12284 if test "$host_cpu" = ia64; then
12285 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12286 allow_undefined_flag_CXX="-z nodefs"
12287 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"
12288 else
12289 # Determine the default libpath from the value encoded in an
12290 # empty executable.
12291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12292 /* end confdefs.h. */
12295 main ()
12299 return 0;
12301 _ACEOF
12302 if ac_fn_cxx_try_link "$LINENO"; then :
12304 lt_aix_libpath_sed='
12305 /Import File Strings/,/^$/ {
12306 /^0/ {
12307 s/^0 *\(.*\)$/\1/
12311 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12312 # Check for a 64-bit object if we didn't find anything.
12313 if test -z "$aix_libpath"; then
12314 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12317 rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12319 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12321 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12322 # Warning - without using the other run time loading flags,
12323 # -berok will link without error, but may produce a broken library.
12324 no_undefined_flag_CXX=' ${wl}-bernotok'
12325 allow_undefined_flag_CXX=' ${wl}-berok'
12326 if test "$with_gnu_ld" = yes; then
12327 # We only use this code for GNU lds that support --whole-archive.
12328 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12329 else
12330 # Exported symbols can be pulled into shared objects from archives
12331 whole_archive_flag_spec_CXX='$convenience'
12333 archive_cmds_need_lc_CXX=yes
12334 # This is similar to how AIX traditionally builds its shared
12335 # libraries.
12336 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'
12341 beos*)
12342 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12343 allow_undefined_flag_CXX=unsupported
12344 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12345 # support --undefined. This deserves some investigation. FIXME
12346 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12347 else
12348 ld_shlibs_CXX=no
12352 chorus*)
12353 case $cc_basename in
12355 # FIXME: insert proper C++ library support
12356 ld_shlibs_CXX=no
12358 esac
12361 cygwin* | mingw* | pw32* | cegcc*)
12362 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12363 # as there is no search path for DLLs.
12364 hardcode_libdir_flag_spec_CXX='-L$libdir'
12365 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12366 allow_undefined_flag_CXX=unsupported
12367 always_export_symbols_CXX=no
12368 enable_shared_with_static_runtimes_CXX=yes
12370 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12371 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'
12372 # If the export-symbols file already is a .def file (1st line
12373 # is EXPORTS), use it as is; otherwise, prepend...
12374 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12375 cp $export_symbols $output_objdir/$soname.def;
12376 else
12377 echo EXPORTS > $output_objdir/$soname.def;
12378 cat $export_symbols >> $output_objdir/$soname.def;
12380 $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'
12381 else
12382 ld_shlibs_CXX=no
12385 darwin* | rhapsody*)
12388 archive_cmds_need_lc_CXX=no
12389 hardcode_direct_CXX=no
12390 hardcode_automatic_CXX=yes
12391 hardcode_shlibpath_var_CXX=unsupported
12392 if test "$lt_cv_ld_force_load" = "yes"; then
12393 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\"`'
12394 else
12395 whole_archive_flag_spec_CXX=''
12397 link_all_deplibs_CXX=yes
12398 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12399 case $cc_basename in
12400 ifort*) _lt_dar_can_shared=yes ;;
12401 *) _lt_dar_can_shared=$GCC ;;
12402 esac
12403 if test "$_lt_dar_can_shared" = "yes"; then
12404 output_verbose_link_cmd=func_echo_all
12405 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}"
12406 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12407 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}"
12408 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}"
12409 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12410 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}"
12411 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}"
12414 else
12415 ld_shlibs_CXX=no
12420 dgux*)
12421 case $cc_basename in
12422 ec++*)
12423 # FIXME: insert proper C++ library support
12424 ld_shlibs_CXX=no
12426 ghcx*)
12427 # Green Hills C++ Compiler
12428 # FIXME: insert proper C++ library support
12429 ld_shlibs_CXX=no
12432 # FIXME: insert proper C++ library support
12433 ld_shlibs_CXX=no
12435 esac
12438 freebsd2.*)
12439 # C++ shared libraries reported to be fairly broken before
12440 # switch to ELF
12441 ld_shlibs_CXX=no
12444 freebsd-elf*)
12445 archive_cmds_need_lc_CXX=no
12448 freebsd* | dragonfly*)
12449 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12450 # conventions
12451 ld_shlibs_CXX=yes
12454 gnu*)
12457 haiku*)
12458 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12459 link_all_deplibs_CXX=yes
12462 hpux9*)
12463 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12464 hardcode_libdir_separator_CXX=:
12465 export_dynamic_flag_spec_CXX='${wl}-E'
12466 hardcode_direct_CXX=yes
12467 hardcode_minus_L_CXX=yes # Not in the search PATH,
12468 # but as the default
12469 # location of the library.
12471 case $cc_basename in
12472 CC*)
12473 # FIXME: insert proper C++ library support
12474 ld_shlibs_CXX=no
12476 aCC*)
12477 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'
12478 # Commands to make compiler produce verbose output that lists
12479 # what "hidden" libraries, object files and flags are used when
12480 # linking a shared library.
12482 # There doesn't appear to be a way to prevent this compiler from
12483 # explicitly linking system object files so we need to strip them
12484 # from the output so that they don't get included in the library
12485 # dependencies.
12486 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"'
12489 if test "$GXX" = yes; then
12490 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'
12491 else
12492 # FIXME: insert proper C++ library support
12493 ld_shlibs_CXX=no
12496 esac
12499 hpux10*|hpux11*)
12500 if test $with_gnu_ld = no; then
12501 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12502 hardcode_libdir_separator_CXX=:
12504 case $host_cpu in
12505 hppa*64*|ia64*)
12508 export_dynamic_flag_spec_CXX='${wl}-E'
12510 esac
12512 case $host_cpu in
12513 hppa*64*|ia64*)
12514 hardcode_direct_CXX=no
12515 hardcode_shlibpath_var_CXX=no
12518 hardcode_direct_CXX=yes
12519 hardcode_direct_absolute_CXX=yes
12520 hardcode_minus_L_CXX=yes # Not in the search PATH,
12521 # but as the default
12522 # location of the library.
12524 esac
12526 case $cc_basename in
12527 CC*)
12528 # FIXME: insert proper C++ library support
12529 ld_shlibs_CXX=no
12531 aCC*)
12532 case $host_cpu in
12533 hppa*64*)
12534 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12536 ia64*)
12537 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12540 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12542 esac
12543 # Commands to make compiler produce verbose output that lists
12544 # what "hidden" libraries, object files and flags are used when
12545 # linking a shared library.
12547 # There doesn't appear to be a way to prevent this compiler from
12548 # explicitly linking system object files so we need to strip them
12549 # from the output so that they don't get included in the library
12550 # dependencies.
12551 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"'
12554 if test "$GXX" = yes; then
12555 if test $with_gnu_ld = no; then
12556 case $host_cpu in
12557 hppa*64*)
12558 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12560 ia64*)
12561 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12564 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'
12566 esac
12568 else
12569 # FIXME: insert proper C++ library support
12570 ld_shlibs_CXX=no
12573 esac
12576 interix[3-9]*)
12577 hardcode_direct_CXX=no
12578 hardcode_shlibpath_var_CXX=no
12579 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12580 export_dynamic_flag_spec_CXX='${wl}-E'
12581 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12582 # Instead, shared libraries are loaded at an image base (0x10000000 by
12583 # default) and relocated if they conflict, which is a slow very memory
12584 # consuming and fragmenting process. To avoid this, we pick a random,
12585 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12586 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12587 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'
12588 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'
12590 irix5* | irix6*)
12591 case $cc_basename in
12592 CC*)
12593 # SGI C++
12594 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'
12596 # Archives containing C++ object files must be created using
12597 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12598 # necessary to make sure instantiated templates are included
12599 # in the archive.
12600 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12603 if test "$GXX" = yes; then
12604 if test "$with_gnu_ld" = no; then
12605 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'
12606 else
12607 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'
12610 link_all_deplibs_CXX=yes
12612 esac
12613 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12614 hardcode_libdir_separator_CXX=:
12615 inherit_rpath_CXX=yes
12618 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12619 case $cc_basename in
12620 KCC*)
12621 # Kuck and Associates, Inc. (KAI) C++ Compiler
12623 # KCC will only create a shared library if the output file
12624 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12625 # to its proper name (with version) after linking.
12626 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'
12627 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'
12628 # Commands to make compiler produce verbose output that lists
12629 # what "hidden" libraries, object files and flags are used when
12630 # linking a shared library.
12632 # There doesn't appear to be a way to prevent this compiler from
12633 # explicitly linking system object files so we need to strip them
12634 # from the output so that they don't get included in the library
12635 # dependencies.
12636 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"'
12638 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12639 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12641 # Archives containing C++ object files must be created using
12642 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12643 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12645 icpc* | ecpc* )
12646 # Intel C++
12647 with_gnu_ld=yes
12648 # version 8.0 and above of icpc choke on multiply defined symbols
12649 # if we add $predep_objects and $postdep_objects, however 7.1 and
12650 # earlier do not add the objects themselves.
12651 case `$CC -V 2>&1` in
12652 *"Version 7."*)
12653 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12654 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'
12656 *) # Version 8.0 or newer
12657 tmp_idyn=
12658 case $host_cpu in
12659 ia64*) tmp_idyn=' -i_dynamic';;
12660 esac
12661 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12662 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'
12664 esac
12665 archive_cmds_need_lc_CXX=no
12666 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12667 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12668 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12670 pgCC* | pgcpp*)
12671 # Portland Group C++ compiler
12672 case `$CC -V` in
12673 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12674 prelink_cmds_CXX='tpldir=Template.dir~
12675 rm -rf $tpldir~
12676 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12677 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12678 old_archive_cmds_CXX='tpldir=Template.dir~
12679 rm -rf $tpldir~
12680 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12681 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12682 $RANLIB $oldlib'
12683 archive_cmds_CXX='tpldir=Template.dir~
12684 rm -rf $tpldir~
12685 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12686 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12687 archive_expsym_cmds_CXX='tpldir=Template.dir~
12688 rm -rf $tpldir~
12689 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12690 $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'
12692 *) # Version 6 and above use weak symbols
12693 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12694 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'
12696 esac
12698 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12699 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12700 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'
12702 cxx*)
12703 # Compaq C++
12704 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12705 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'
12707 runpath_var=LD_RUN_PATH
12708 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12709 hardcode_libdir_separator_CXX=:
12711 # Commands to make compiler produce verbose output that lists
12712 # what "hidden" libraries, object files and flags are used when
12713 # linking a shared library.
12715 # There doesn't appear to be a way to prevent this compiler from
12716 # explicitly linking system object files so we need to strip them
12717 # from the output so that they don't get included in the library
12718 # dependencies.
12719 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'
12721 xl* | mpixl* | bgxl*)
12722 # IBM XL 8.0 on PPC, with GNU ld
12723 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12724 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12725 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12726 if test "x$supports_anon_versioning" = xyes; then
12727 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12728 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12729 echo "local: *; };" >> $output_objdir/$libname.ver~
12730 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12734 case `$CC -V 2>&1 | sed 5q` in
12735 *Sun\ C*)
12736 # Sun C++ 5.9
12737 no_undefined_flag_CXX=' -zdefs'
12738 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12739 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'
12740 hardcode_libdir_flag_spec_CXX='-R$libdir'
12741 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'
12742 compiler_needs_object_CXX=yes
12744 # Not sure whether something based on
12745 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12746 # would be better.
12747 output_verbose_link_cmd='func_echo_all'
12749 # Archives containing C++ object files must be created using
12750 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12751 # necessary to make sure instantiated templates are included
12752 # in the archive.
12753 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12755 esac
12757 esac
12760 lynxos*)
12761 # FIXME: insert proper C++ library support
12762 ld_shlibs_CXX=no
12765 m88k*)
12766 # FIXME: insert proper C++ library support
12767 ld_shlibs_CXX=no
12770 mvs*)
12771 case $cc_basename in
12772 cxx*)
12773 # FIXME: insert proper C++ library support
12774 ld_shlibs_CXX=no
12777 # FIXME: insert proper C++ library support
12778 ld_shlibs_CXX=no
12780 esac
12783 netbsd*)
12784 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12785 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12786 wlarc=
12787 hardcode_libdir_flag_spec_CXX='-R$libdir'
12788 hardcode_direct_CXX=yes
12789 hardcode_shlibpath_var_CXX=no
12791 # Workaround some broken pre-1.5 toolchains
12792 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12795 *nto* | *qnx*)
12796 ld_shlibs_CXX=yes
12799 openbsd2*)
12800 # C++ shared libraries are fairly broken
12801 ld_shlibs_CXX=no
12804 openbsd*)
12805 if test -f /usr/libexec/ld.so; then
12806 hardcode_direct_CXX=yes
12807 hardcode_shlibpath_var_CXX=no
12808 hardcode_direct_absolute_CXX=yes
12809 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12810 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12811 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12812 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12813 export_dynamic_flag_spec_CXX='${wl}-E'
12814 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12816 output_verbose_link_cmd=func_echo_all
12817 else
12818 ld_shlibs_CXX=no
12822 osf3* | osf4* | osf5*)
12823 case $cc_basename in
12824 KCC*)
12825 # Kuck and Associates, Inc. (KAI) C++ Compiler
12827 # KCC will only create a shared library if the output file
12828 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12829 # to its proper name (with version) after linking.
12830 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'
12832 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12833 hardcode_libdir_separator_CXX=:
12835 # Archives containing C++ object files must be created using
12836 # the KAI C++ compiler.
12837 case $host in
12838 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12839 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12840 esac
12842 RCC*)
12843 # Rational C++ 2.4.1
12844 # FIXME: insert proper C++ library support
12845 ld_shlibs_CXX=no
12847 cxx*)
12848 case $host in
12849 osf3*)
12850 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12851 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'
12852 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12855 allow_undefined_flag_CXX=' -expect_unresolved \*'
12856 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'
12857 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12858 echo "-hidden">> $lib.exp~
12859 $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~
12860 $RM $lib.exp'
12861 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12863 esac
12865 hardcode_libdir_separator_CXX=:
12867 # Commands to make compiler produce verbose output that lists
12868 # what "hidden" libraries, object files and flags are used when
12869 # linking a shared library.
12871 # There doesn't appear to be a way to prevent this compiler from
12872 # explicitly linking system object files so we need to strip them
12873 # from the output so that they don't get included in the library
12874 # dependencies.
12875 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"'
12878 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12879 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12880 case $host in
12881 osf3*)
12882 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'
12885 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'
12887 esac
12889 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12890 hardcode_libdir_separator_CXX=:
12892 # Commands to make compiler produce verbose output that lists
12893 # what "hidden" libraries, object files and flags are used when
12894 # linking a shared library.
12895 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12897 else
12898 # FIXME: insert proper C++ library support
12899 ld_shlibs_CXX=no
12902 esac
12905 psos*)
12906 # FIXME: insert proper C++ library support
12907 ld_shlibs_CXX=no
12910 sunos4*)
12911 case $cc_basename in
12912 CC*)
12913 # Sun C++ 4.x
12914 # FIXME: insert proper C++ library support
12915 ld_shlibs_CXX=no
12917 lcc*)
12918 # Lucid
12919 # FIXME: insert proper C++ library support
12920 ld_shlibs_CXX=no
12923 # FIXME: insert proper C++ library support
12924 ld_shlibs_CXX=no
12926 esac
12929 solaris*)
12930 case $cc_basename in
12931 CC*)
12932 # Sun C++ 4.2, 5.x and Centerline C++
12933 archive_cmds_need_lc_CXX=yes
12934 no_undefined_flag_CXX=' -zdefs'
12935 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12936 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12937 $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'
12939 hardcode_libdir_flag_spec_CXX='-R$libdir'
12940 hardcode_shlibpath_var_CXX=no
12941 case $host_os in
12942 solaris2.[0-5] | solaris2.[0-5].*) ;;
12944 # The compiler driver will combine and reorder linker options,
12945 # but understands `-z linker_flag'.
12946 # Supported since Solaris 2.6 (maybe 2.5.1?)
12947 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12949 esac
12950 link_all_deplibs_CXX=yes
12952 output_verbose_link_cmd='func_echo_all'
12954 # Archives containing C++ object files must be created using
12955 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12956 # necessary to make sure instantiated templates are included
12957 # in the archive.
12958 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12960 gcx*)
12961 # Green Hills C++ Compiler
12962 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12964 # The C++ compiler must be used to create the archive.
12965 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12968 # GNU C++ compiler with Solaris linker
12969 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12970 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12971 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
12972 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12973 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12974 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12976 # Commands to make compiler produce verbose output that lists
12977 # what "hidden" libraries, object files and flags are used when
12978 # linking a shared library.
12979 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12980 else
12981 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12982 # platform.
12983 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12984 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12985 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
12987 # Commands to make compiler produce verbose output that lists
12988 # what "hidden" libraries, object files and flags are used when
12989 # linking a shared library.
12990 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12993 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12994 case $host_os in
12995 solaris2.[0-5] | solaris2.[0-5].*) ;;
12997 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12999 esac
13002 esac
13005 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13006 no_undefined_flag_CXX='${wl}-z,text'
13007 archive_cmds_need_lc_CXX=no
13008 hardcode_shlibpath_var_CXX=no
13009 runpath_var='LD_RUN_PATH'
13011 case $cc_basename in
13012 CC*)
13013 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13014 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13017 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13018 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13020 esac
13023 sysv5* | sco3.2v5* | sco5v6*)
13024 # Note: We can NOT use -z defs as we might desire, because we do not
13025 # link with -lc, and that would cause any symbols used from libc to
13026 # always be unresolved, which means just about no library would
13027 # ever link correctly. If we're not using GNU ld we use -z text
13028 # though, which does catch some bad symbols but isn't as heavy-handed
13029 # as -z defs.
13030 no_undefined_flag_CXX='${wl}-z,text'
13031 allow_undefined_flag_CXX='${wl}-z,nodefs'
13032 archive_cmds_need_lc_CXX=no
13033 hardcode_shlibpath_var_CXX=no
13034 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13035 hardcode_libdir_separator_CXX=':'
13036 link_all_deplibs_CXX=yes
13037 export_dynamic_flag_spec_CXX='${wl}-Bexport'
13038 runpath_var='LD_RUN_PATH'
13040 case $cc_basename in
13041 CC*)
13042 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13043 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13044 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13045 '"$old_archive_cmds_CXX"
13046 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13047 '"$reload_cmds_CXX"
13050 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13051 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13053 esac
13056 tandem*)
13057 case $cc_basename in
13058 NCC*)
13059 # NonStop-UX NCC 3.20
13060 # FIXME: insert proper C++ library support
13061 ld_shlibs_CXX=no
13064 # FIXME: insert proper C++ library support
13065 ld_shlibs_CXX=no
13067 esac
13070 vxworks*)
13071 # FIXME: insert proper C++ library support
13072 ld_shlibs_CXX=no
13076 # FIXME: insert proper C++ library support
13077 ld_shlibs_CXX=no
13079 esac
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13082 $as_echo "$ld_shlibs_CXX" >&6; }
13083 test "$ld_shlibs_CXX" = no && can_build_shared=no
13085 GCC_CXX="$GXX"
13086 LD_CXX="$LD"
13088 ## CAVEAT EMPTOR:
13089 ## There is no encapsulation within the following macros, do not change
13090 ## the running order or otherwise move them around unless you know exactly
13091 ## what you are doing...
13092 # Dependencies to place before and after the object being linked:
13093 predep_objects_CXX=
13094 postdep_objects_CXX=
13095 predeps_CXX=
13096 postdeps_CXX=
13097 compiler_lib_search_path_CXX=
13099 cat > conftest.$ac_ext <<_LT_EOF
13100 class Foo
13102 public:
13103 Foo (void) { a = 0; }
13104 private:
13105 int a;
13107 _LT_EOF
13109 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13110 (eval $ac_compile) 2>&5
13111 ac_status=$?
13112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13113 test $ac_status = 0; }; then
13114 # Parse the compiler output and extract the necessary
13115 # objects, libraries and library flags.
13117 # Sentinel used to keep track of whether or not we are before
13118 # the conftest object file.
13119 pre_test_object_deps_done=no
13121 for p in `eval "$output_verbose_link_cmd"`; do
13122 case $p in
13124 -L* | -R* | -l*)
13125 # Some compilers place space between "-{L,R}" and the path.
13126 # Remove the space.
13127 if test $p = "-L" ||
13128 test $p = "-R"; then
13129 prev=$p
13130 continue
13131 else
13132 prev=
13135 if test "$pre_test_object_deps_done" = no; then
13136 case $p in
13137 -L* | -R*)
13138 # Internal compiler library paths should come after those
13139 # provided the user. The postdeps already come after the
13140 # user supplied libs so there is no need to process them.
13141 if test -z "$compiler_lib_search_path_CXX"; then
13142 compiler_lib_search_path_CXX="${prev}${p}"
13143 else
13144 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13147 # The "-l" case would never come before the object being
13148 # linked, so don't bother handling this case.
13149 esac
13150 else
13151 if test -z "$postdeps_CXX"; then
13152 postdeps_CXX="${prev}${p}"
13153 else
13154 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13159 *.$objext)
13160 # This assumes that the test object file only shows up
13161 # once in the compiler output.
13162 if test "$p" = "conftest.$objext"; then
13163 pre_test_object_deps_done=yes
13164 continue
13167 if test "$pre_test_object_deps_done" = no; then
13168 if test -z "$predep_objects_CXX"; then
13169 predep_objects_CXX="$p"
13170 else
13171 predep_objects_CXX="$predep_objects_CXX $p"
13173 else
13174 if test -z "$postdep_objects_CXX"; then
13175 postdep_objects_CXX="$p"
13176 else
13177 postdep_objects_CXX="$postdep_objects_CXX $p"
13182 *) ;; # Ignore the rest.
13184 esac
13185 done
13187 # Clean up.
13188 rm -f a.out a.exe
13189 else
13190 echo "libtool.m4: error: problem compiling CXX test program"
13193 $RM -f confest.$objext
13195 # PORTME: override above test on systems where it is broken
13196 case $host_os in
13197 interix[3-9]*)
13198 # Interix 3.5 installs completely hosed .la files for C++, so rather than
13199 # hack all around it, let's just trust "g++" to DTRT.
13200 predep_objects_CXX=
13201 postdep_objects_CXX=
13202 postdeps_CXX=
13205 linux*)
13206 case `$CC -V 2>&1 | sed 5q` in
13207 *Sun\ C*)
13208 # Sun C++ 5.9
13210 # The more standards-conforming stlport4 library is
13211 # incompatible with the Cstd library. Avoid specifying
13212 # it if it's in CXXFLAGS. Ignore libCrun as
13213 # -library=stlport4 depends on it.
13214 case " $CXX $CXXFLAGS " in
13215 *" -library=stlport4 "*)
13216 solaris_use_stlport4=yes
13218 esac
13220 if test "$solaris_use_stlport4" != yes; then
13221 postdeps_CXX='-library=Cstd -library=Crun'
13224 esac
13227 solaris*)
13228 case $cc_basename in
13229 CC*)
13230 # The more standards-conforming stlport4 library is
13231 # incompatible with the Cstd library. Avoid specifying
13232 # it if it's in CXXFLAGS. Ignore libCrun as
13233 # -library=stlport4 depends on it.
13234 case " $CXX $CXXFLAGS " in
13235 *" -library=stlport4 "*)
13236 solaris_use_stlport4=yes
13238 esac
13240 # Adding this requires a known-good setup of shared libraries for
13241 # Sun compiler versions before 5.6, else PIC objects from an old
13242 # archive will be linked into the output, leading to subtle bugs.
13243 if test "$solaris_use_stlport4" != yes; then
13244 postdeps_CXX='-library=Cstd -library=Crun'
13247 esac
13249 esac
13252 case " $postdeps_CXX " in
13253 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
13254 esac
13255 compiler_lib_search_dirs_CXX=
13256 if test -n "${compiler_lib_search_path_CXX}"; then
13257 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13290 lt_prog_compiler_wl_CXX=
13291 lt_prog_compiler_pic_CXX=
13292 lt_prog_compiler_static_CXX=
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13295 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13297 # C++ specific cases for pic, static, wl, etc.
13298 if test "$GXX" = yes; then
13299 lt_prog_compiler_wl_CXX='-Wl,'
13300 lt_prog_compiler_static_CXX='-static'
13302 case $host_os in
13303 aix*)
13304 # All AIX code is PIC.
13305 if test "$host_cpu" = ia64; then
13306 # AIX 5 now supports IA64 processor
13307 lt_prog_compiler_static_CXX='-Bstatic'
13309 lt_prog_compiler_pic_CXX='-fPIC'
13312 amigaos*)
13313 case $host_cpu in
13314 powerpc)
13315 # see comment about AmigaOS4 .so support
13316 lt_prog_compiler_pic_CXX='-fPIC'
13318 m68k)
13319 # FIXME: we need at least 68020 code to build shared libraries, but
13320 # adding the `-m68020' flag to GCC prevents building anything better,
13321 # like `-m68040'.
13322 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13324 esac
13327 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13328 # PIC is the default for these OSes.
13330 mingw* | cygwin* | os2* | pw32* | cegcc*)
13331 # This hack is so that the source file can tell whether it is being
13332 # built for inclusion in a dll (and should export symbols for example).
13333 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13334 # (--disable-auto-import) libraries
13335 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13337 darwin* | rhapsody*)
13338 # PIC is the default on this platform
13339 # Common symbols not allowed in MH_DYLIB files
13340 lt_prog_compiler_pic_CXX='-fno-common'
13342 *djgpp*)
13343 # DJGPP does not support shared libraries at all
13344 lt_prog_compiler_pic_CXX=
13346 haiku*)
13347 # PIC is the default for Haiku.
13348 # The "-static" flag exists, but is broken.
13349 lt_prog_compiler_static_CXX=
13351 interix[3-9]*)
13352 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13353 # Instead, we relocate shared libraries at runtime.
13355 sysv4*MP*)
13356 if test -d /usr/nec; then
13357 lt_prog_compiler_pic_CXX=-Kconform_pic
13360 hpux*)
13361 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13362 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13363 # sets the default TLS model and affects inlining.
13364 case $host_cpu in
13365 hppa*64*)
13368 lt_prog_compiler_pic_CXX='-fPIC'
13370 esac
13372 *qnx* | *nto*)
13373 # QNX uses GNU C++, but need to define -shared option too, otherwise
13374 # it will coredump.
13375 lt_prog_compiler_pic_CXX='-fPIC -shared'
13378 lt_prog_compiler_pic_CXX='-fPIC'
13380 esac
13381 else
13382 case $host_os in
13383 aix[4-9]*)
13384 # All AIX code is PIC.
13385 if test "$host_cpu" = ia64; then
13386 # AIX 5 now supports IA64 processor
13387 lt_prog_compiler_static_CXX='-Bstatic'
13388 else
13389 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13392 chorus*)
13393 case $cc_basename in
13394 cxch68*)
13395 # Green Hills C++ Compiler
13396 # _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"
13398 esac
13400 dgux*)
13401 case $cc_basename in
13402 ec++*)
13403 lt_prog_compiler_pic_CXX='-KPIC'
13405 ghcx*)
13406 # Green Hills C++ Compiler
13407 lt_prog_compiler_pic_CXX='-pic'
13411 esac
13413 freebsd* | dragonfly*)
13414 # FreeBSD uses GNU C++
13416 hpux9* | hpux10* | hpux11*)
13417 case $cc_basename in
13418 CC*)
13419 lt_prog_compiler_wl_CXX='-Wl,'
13420 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13421 if test "$host_cpu" != ia64; then
13422 lt_prog_compiler_pic_CXX='+Z'
13425 aCC*)
13426 lt_prog_compiler_wl_CXX='-Wl,'
13427 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13428 case $host_cpu in
13429 hppa*64*|ia64*)
13430 # +Z the default
13433 lt_prog_compiler_pic_CXX='+Z'
13435 esac
13439 esac
13441 interix*)
13442 # This is c89, which is MS Visual C++ (no shared libs)
13443 # Anyone wants to do a port?
13445 irix5* | irix6* | nonstopux*)
13446 case $cc_basename in
13447 CC*)
13448 lt_prog_compiler_wl_CXX='-Wl,'
13449 lt_prog_compiler_static_CXX='-non_shared'
13450 # CC pic flag -KPIC is the default.
13454 esac
13456 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13457 case $cc_basename in
13458 KCC*)
13459 # KAI C++ Compiler
13460 lt_prog_compiler_wl_CXX='--backend -Wl,'
13461 lt_prog_compiler_pic_CXX='-fPIC'
13463 ecpc* )
13464 # old Intel C++ for x86_64 which still supported -KPIC.
13465 lt_prog_compiler_wl_CXX='-Wl,'
13466 lt_prog_compiler_pic_CXX='-KPIC'
13467 lt_prog_compiler_static_CXX='-static'
13469 icpc* )
13470 # Intel C++, used to be incompatible with GCC.
13471 # ICC 10 doesn't accept -KPIC any more.
13472 lt_prog_compiler_wl_CXX='-Wl,'
13473 lt_prog_compiler_pic_CXX='-fPIC'
13474 lt_prog_compiler_static_CXX='-static'
13476 pgCC* | pgcpp*)
13477 # Portland Group C++ compiler
13478 lt_prog_compiler_wl_CXX='-Wl,'
13479 lt_prog_compiler_pic_CXX='-fpic'
13480 lt_prog_compiler_static_CXX='-Bstatic'
13482 cxx*)
13483 # Compaq C++
13484 # Make sure the PIC flag is empty. It appears that all Alpha
13485 # Linux and Compaq Tru64 Unix objects are PIC.
13486 lt_prog_compiler_pic_CXX=
13487 lt_prog_compiler_static_CXX='-non_shared'
13489 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13490 # IBM XL 8.0, 9.0 on PPC and BlueGene
13491 lt_prog_compiler_wl_CXX='-Wl,'
13492 lt_prog_compiler_pic_CXX='-qpic'
13493 lt_prog_compiler_static_CXX='-qstaticlink'
13496 case `$CC -V 2>&1 | sed 5q` in
13497 *Sun\ C*)
13498 # Sun C++ 5.9
13499 lt_prog_compiler_pic_CXX='-KPIC'
13500 lt_prog_compiler_static_CXX='-Bstatic'
13501 lt_prog_compiler_wl_CXX='-Qoption ld '
13503 esac
13505 esac
13507 lynxos*)
13509 m88k*)
13511 mvs*)
13512 case $cc_basename in
13513 cxx*)
13514 lt_prog_compiler_pic_CXX='-W c,exportall'
13518 esac
13520 netbsd*)
13522 *qnx* | *nto*)
13523 # QNX uses GNU C++, but need to define -shared option too, otherwise
13524 # it will coredump.
13525 lt_prog_compiler_pic_CXX='-fPIC -shared'
13527 osf3* | osf4* | osf5*)
13528 case $cc_basename in
13529 KCC*)
13530 lt_prog_compiler_wl_CXX='--backend -Wl,'
13532 RCC*)
13533 # Rational C++ 2.4.1
13534 lt_prog_compiler_pic_CXX='-pic'
13536 cxx*)
13537 # Digital/Compaq C++
13538 lt_prog_compiler_wl_CXX='-Wl,'
13539 # Make sure the PIC flag is empty. It appears that all Alpha
13540 # Linux and Compaq Tru64 Unix objects are PIC.
13541 lt_prog_compiler_pic_CXX=
13542 lt_prog_compiler_static_CXX='-non_shared'
13546 esac
13548 psos*)
13550 solaris*)
13551 case $cc_basename in
13552 CC*)
13553 # Sun C++ 4.2, 5.x and Centerline C++
13554 lt_prog_compiler_pic_CXX='-KPIC'
13555 lt_prog_compiler_static_CXX='-Bstatic'
13556 lt_prog_compiler_wl_CXX='-Qoption ld '
13558 gcx*)
13559 # Green Hills C++ Compiler
13560 lt_prog_compiler_pic_CXX='-PIC'
13564 esac
13566 sunos4*)
13567 case $cc_basename in
13568 CC*)
13569 # Sun C++ 4.x
13570 lt_prog_compiler_pic_CXX='-pic'
13571 lt_prog_compiler_static_CXX='-Bstatic'
13573 lcc*)
13574 # Lucid
13575 lt_prog_compiler_pic_CXX='-pic'
13579 esac
13581 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13582 case $cc_basename in
13583 CC*)
13584 lt_prog_compiler_wl_CXX='-Wl,'
13585 lt_prog_compiler_pic_CXX='-KPIC'
13586 lt_prog_compiler_static_CXX='-Bstatic'
13588 esac
13590 tandem*)
13591 case $cc_basename in
13592 NCC*)
13593 # NonStop-UX NCC 3.20
13594 lt_prog_compiler_pic_CXX='-KPIC'
13598 esac
13600 vxworks*)
13603 lt_prog_compiler_can_build_shared_CXX=no
13605 esac
13608 case $host_os in
13609 # For platforms which do not support PIC, -DPIC is meaningless:
13610 *djgpp*)
13611 lt_prog_compiler_pic_CXX=
13614 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13616 esac
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13618 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13623 # Check to make sure the PIC flag actually works.
13625 if test -n "$lt_prog_compiler_pic_CXX"; then
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13627 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13628 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
13629 $as_echo_n "(cached) " >&6
13630 else
13631 lt_cv_prog_compiler_pic_works_CXX=no
13632 ac_outfile=conftest.$ac_objext
13633 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13634 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13635 # Insert the option either (1) after the last *FLAGS variable, or
13636 # (2) before a word containing "conftest.", or (3) at the end.
13637 # Note that $ac_compile itself does not contain backslashes and begins
13638 # with a dollar sign (not a hyphen), so the echo should work correctly.
13639 # The option is referenced via a variable to avoid confusing sed.
13640 lt_compile=`echo "$ac_compile" | $SED \
13641 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13642 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13643 -e 's:$: $lt_compiler_flag:'`
13644 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13645 (eval "$lt_compile" 2>conftest.err)
13646 ac_status=$?
13647 cat conftest.err >&5
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 if (exit $ac_status) && test -s "$ac_outfile"; then
13650 # The compiler can only warn and ignore the option if not recognized
13651 # So say no if there are warnings other than the usual output.
13652 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13653 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13654 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13655 lt_cv_prog_compiler_pic_works_CXX=yes
13658 $RM conftest*
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13662 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13664 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13665 case $lt_prog_compiler_pic_CXX in
13666 "" | " "*) ;;
13667 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13668 esac
13669 else
13670 lt_prog_compiler_pic_CXX=
13671 lt_prog_compiler_can_build_shared_CXX=no
13679 # Check to make sure the static flag actually works.
13681 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13683 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13684 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
13685 $as_echo_n "(cached) " >&6
13686 else
13687 lt_cv_prog_compiler_static_works_CXX=no
13688 save_LDFLAGS="$LDFLAGS"
13689 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13690 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13691 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13692 # The linker can only warn and ignore the option if not recognized
13693 # So say no if there are warnings
13694 if test -s conftest.err; then
13695 # Append any errors to the config.log.
13696 cat conftest.err 1>&5
13697 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13699 if diff conftest.exp conftest.er2 >/dev/null; then
13700 lt_cv_prog_compiler_static_works_CXX=yes
13702 else
13703 lt_cv_prog_compiler_static_works_CXX=yes
13706 $RM -r conftest*
13707 LDFLAGS="$save_LDFLAGS"
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13711 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13713 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13715 else
13716 lt_prog_compiler_static_CXX=
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13723 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13724 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13725 $as_echo_n "(cached) " >&6
13726 else
13727 lt_cv_prog_compiler_c_o_CXX=no
13728 $RM -r conftest 2>/dev/null
13729 mkdir conftest
13730 cd conftest
13731 mkdir out
13732 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13734 lt_compiler_flag="-o out/conftest2.$ac_objext"
13735 # Insert the option either (1) after the last *FLAGS variable, or
13736 # (2) before a word containing "conftest.", or (3) at the end.
13737 # Note that $ac_compile itself does not contain backslashes and begins
13738 # with a dollar sign (not a hyphen), so the echo should work correctly.
13739 lt_compile=`echo "$ac_compile" | $SED \
13740 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13741 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13742 -e 's:$: $lt_compiler_flag:'`
13743 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13744 (eval "$lt_compile" 2>out/conftest.err)
13745 ac_status=$?
13746 cat out/conftest.err >&5
13747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13748 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13749 then
13750 # The compiler can only warn and ignore the option if not recognized
13751 # So say no if there are warnings
13752 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13753 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13754 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13755 lt_cv_prog_compiler_c_o_CXX=yes
13758 chmod u+w . 2>&5
13759 $RM conftest*
13760 # SGI C++ compiler will create directory out/ii_files/ for
13761 # template instantiation
13762 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13763 $RM out/* && rmdir out
13764 cd ..
13765 $RM -r conftest
13766 $RM conftest*
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13770 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13775 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13776 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
13777 $as_echo_n "(cached) " >&6
13778 else
13779 lt_cv_prog_compiler_c_o_CXX=no
13780 $RM -r conftest 2>/dev/null
13781 mkdir conftest
13782 cd conftest
13783 mkdir out
13784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13786 lt_compiler_flag="-o out/conftest2.$ac_objext"
13787 # Insert the option either (1) after the last *FLAGS variable, or
13788 # (2) before a word containing "conftest.", or (3) at the end.
13789 # Note that $ac_compile itself does not contain backslashes and begins
13790 # with a dollar sign (not a hyphen), so the echo should work correctly.
13791 lt_compile=`echo "$ac_compile" | $SED \
13792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13794 -e 's:$: $lt_compiler_flag:'`
13795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13796 (eval "$lt_compile" 2>out/conftest.err)
13797 ac_status=$?
13798 cat out/conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13801 then
13802 # The compiler can only warn and ignore the option if not recognized
13803 # So say no if there are warnings
13804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13807 lt_cv_prog_compiler_c_o_CXX=yes
13810 chmod u+w . 2>&5
13811 $RM conftest*
13812 # SGI C++ compiler will create directory out/ii_files/ for
13813 # template instantiation
13814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13815 $RM out/* && rmdir out
13816 cd ..
13817 $RM -r conftest
13818 $RM conftest*
13821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13822 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13827 hard_links="nottested"
13828 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13829 # do not overwrite the value of need_locks provided by the user
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13831 $as_echo_n "checking if we can lock with hard links... " >&6; }
13832 hard_links=yes
13833 $RM conftest*
13834 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13835 touch conftest.a
13836 ln conftest.a conftest.b 2>&5 || hard_links=no
13837 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13839 $as_echo "$hard_links" >&6; }
13840 if test "$hard_links" = no; then
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13842 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13843 need_locks=warn
13845 else
13846 need_locks=no
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13852 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13854 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13855 case $host_os in
13856 aix[4-9]*)
13857 # If we're using GNU nm, then we don't want the "-C" option.
13858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13859 # Also, AIX nm treats weak defined symbols like other global defined
13860 # symbols, whereas GNU nm marks them as "W".
13861 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13862 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'
13863 else
13864 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'
13867 pw32*)
13868 export_symbols_cmds_CXX="$ltdll_cmds"
13870 cygwin* | mingw* | cegcc*)
13871 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'
13874 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13876 esac
13877 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13880 $as_echo "$ld_shlibs_CXX" >&6; }
13881 test "$ld_shlibs_CXX" = no && can_build_shared=no
13883 with_gnu_ld_CXX=$with_gnu_ld
13891 # Do we need to explicitly link libc?
13893 case "x$archive_cmds_need_lc_CXX" in
13894 x|xyes)
13895 # Assume -lc should be added
13896 archive_cmds_need_lc_CXX=yes
13898 if test "$enable_shared" = yes && test "$GCC" = yes; then
13899 case $archive_cmds_CXX in
13900 *'~'*)
13901 # FIXME: we may have to deal with multi-command sequences.
13903 '$CC '*)
13904 # Test whether the compiler implicitly links with -lc since on some
13905 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13906 # to ld, don't add -lc before -lgcc.
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13908 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13909 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
13910 $as_echo_n "(cached) " >&6
13911 else
13912 $RM conftest*
13913 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13915 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13916 (eval $ac_compile) 2>&5
13917 ac_status=$?
13918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13919 test $ac_status = 0; } 2>conftest.err; then
13920 soname=conftest
13921 lib=conftest
13922 libobjs=conftest.$ac_objext
13923 deplibs=
13924 wl=$lt_prog_compiler_wl_CXX
13925 pic_flag=$lt_prog_compiler_pic_CXX
13926 compiler_flags=-v
13927 linker_flags=-v
13928 verstring=
13929 output_objdir=.
13930 libname=conftest
13931 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13932 allow_undefined_flag_CXX=
13933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13934 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13935 ac_status=$?
13936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13937 test $ac_status = 0; }
13938 then
13939 lt_cv_archive_cmds_need_lc_CXX=no
13940 else
13941 lt_cv_archive_cmds_need_lc_CXX=yes
13943 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13944 else
13945 cat conftest.err 1>&5
13947 $RM conftest*
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
13951 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
13952 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
13954 esac
13957 esac
14022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14023 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14025 library_names_spec=
14026 libname_spec='lib$name'
14027 soname_spec=
14028 shrext_cmds=".so"
14029 postinstall_cmds=
14030 postuninstall_cmds=
14031 finish_cmds=
14032 finish_eval=
14033 shlibpath_var=
14034 shlibpath_overrides_runpath=unknown
14035 version_type=none
14036 dynamic_linker="$host_os ld.so"
14037 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14038 need_lib_prefix=unknown
14039 hardcode_into_libs=no
14041 # when you set need_version to no, make sure it does not cause -set_version
14042 # flags to be left without arguments
14043 need_version=unknown
14045 case $host_os in
14046 aix3*)
14047 version_type=linux
14048 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14049 shlibpath_var=LIBPATH
14051 # AIX 3 has no versioning support, so we append a major version to the name.
14052 soname_spec='${libname}${release}${shared_ext}$major'
14055 aix[4-9]*)
14056 version_type=linux
14057 need_lib_prefix=no
14058 need_version=no
14059 hardcode_into_libs=yes
14060 if test "$host_cpu" = ia64; then
14061 # AIX 5 supports IA64
14062 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14063 shlibpath_var=LD_LIBRARY_PATH
14064 else
14065 # With GCC up to 2.95.x, collect2 would create an import file
14066 # for dependence libraries. The import file would start with
14067 # the line `#! .'. This would cause the generated library to
14068 # depend on `.', always an invalid library. This was fixed in
14069 # development snapshots of GCC prior to 3.0.
14070 case $host_os in
14071 aix4 | aix4.[01] | aix4.[01].*)
14072 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14073 echo ' yes '
14074 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14076 else
14077 can_build_shared=no
14080 esac
14081 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14082 # soname into executable. Probably we can add versioning support to
14083 # collect2, so additional links can be useful in future.
14084 if test "$aix_use_runtimelinking" = yes; then
14085 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14086 # instead of lib<name>.a to let people know that these are not
14087 # typical AIX shared libraries.
14088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14089 else
14090 # We preserve .a as extension for shared libraries through AIX4.2
14091 # and later when we are not doing run time linking.
14092 library_names_spec='${libname}${release}.a $libname.a'
14093 soname_spec='${libname}${release}${shared_ext}$major'
14095 shlibpath_var=LIBPATH
14099 amigaos*)
14100 case $host_cpu in
14101 powerpc)
14102 # Since July 2007 AmigaOS4 officially supports .so libraries.
14103 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14106 m68k)
14107 library_names_spec='$libname.ixlibrary $libname.a'
14108 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14109 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'
14111 esac
14114 beos*)
14115 library_names_spec='${libname}${shared_ext}'
14116 dynamic_linker="$host_os ld.so"
14117 shlibpath_var=LIBRARY_PATH
14120 bsdi[45]*)
14121 version_type=linux
14122 need_version=no
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 soname_spec='${libname}${release}${shared_ext}$major'
14125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14126 shlibpath_var=LD_LIBRARY_PATH
14127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14129 # the default ld.so.conf also contains /usr/contrib/lib and
14130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14131 # libtool to hard-code these into programs
14134 cygwin* | mingw* | pw32* | cegcc*)
14135 version_type=windows
14136 shrext_cmds=".dll"
14137 need_version=no
14138 need_lib_prefix=no
14140 case $GCC,$host_os in
14141 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14142 library_names_spec='$libname.dll.a'
14143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14144 postinstall_cmds='base_file=`basename \${file}`~
14145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14146 dldir=$destdir/`dirname \$dlpath`~
14147 test -d \$dldir || mkdir -p \$dldir~
14148 $install_prog $dir/$dlname \$dldir/$dlname~
14149 chmod a+x \$dldir/$dlname~
14150 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14151 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14153 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14154 dlpath=$dir/\$dldll~
14155 $RM \$dlpath'
14156 shlibpath_overrides_runpath=yes
14158 case $host_os in
14159 cygwin*)
14160 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14161 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14164 mingw* | cegcc*)
14165 # MinGW DLLs use traditional 'lib' prefix
14166 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14168 pw32*)
14169 # pw32 DLLs use 'pw' prefix rather than 'lib'
14170 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14172 esac
14176 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14178 esac
14179 dynamic_linker='Win32 ld.exe'
14180 # FIXME: first we should search . and the directory the executable is in
14181 shlibpath_var=PATH
14184 darwin* | rhapsody*)
14185 dynamic_linker="$host_os dyld"
14186 version_type=darwin
14187 need_lib_prefix=no
14188 need_version=no
14189 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14190 soname_spec='${libname}${release}${major}$shared_ext'
14191 shlibpath_overrides_runpath=yes
14192 shlibpath_var=DYLD_LIBRARY_PATH
14193 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14195 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14198 dgux*)
14199 version_type=linux
14200 need_lib_prefix=no
14201 need_version=no
14202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14203 soname_spec='${libname}${release}${shared_ext}$major'
14204 shlibpath_var=LD_LIBRARY_PATH
14207 freebsd* | dragonfly*)
14208 # DragonFly does not have aout. When/if they implement a new
14209 # versioning mechanism, adjust this.
14210 if test -x /usr/bin/objformat; then
14211 objformat=`/usr/bin/objformat`
14212 else
14213 case $host_os in
14214 freebsd[23].*) objformat=aout ;;
14215 *) objformat=elf ;;
14216 esac
14218 version_type=freebsd-$objformat
14219 case $version_type in
14220 freebsd-elf*)
14221 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14222 need_version=no
14223 need_lib_prefix=no
14225 freebsd-*)
14226 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14227 need_version=yes
14229 esac
14230 shlibpath_var=LD_LIBRARY_PATH
14231 case $host_os in
14232 freebsd2.*)
14233 shlibpath_overrides_runpath=yes
14235 freebsd3.[01]* | freebsdelf3.[01]*)
14236 shlibpath_overrides_runpath=yes
14237 hardcode_into_libs=yes
14239 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14240 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14241 shlibpath_overrides_runpath=no
14242 hardcode_into_libs=yes
14244 *) # from 4.6 on, and DragonFly
14245 shlibpath_overrides_runpath=yes
14246 hardcode_into_libs=yes
14248 esac
14251 gnu*)
14252 version_type=linux
14253 need_lib_prefix=no
14254 need_version=no
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14256 soname_spec='${libname}${release}${shared_ext}$major'
14257 shlibpath_var=LD_LIBRARY_PATH
14258 hardcode_into_libs=yes
14261 haiku*)
14262 version_type=linux
14263 need_lib_prefix=no
14264 need_version=no
14265 dynamic_linker="$host_os runtime_loader"
14266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14267 soname_spec='${libname}${release}${shared_ext}$major'
14268 shlibpath_var=LIBRARY_PATH
14269 shlibpath_overrides_runpath=yes
14270 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14271 hardcode_into_libs=yes
14274 hpux9* | hpux10* | hpux11*)
14275 # Give a soname corresponding to the major version so that dld.sl refuses to
14276 # link against other versions.
14277 version_type=sunos
14278 need_lib_prefix=no
14279 need_version=no
14280 case $host_cpu in
14281 ia64*)
14282 shrext_cmds='.so'
14283 hardcode_into_libs=yes
14284 dynamic_linker="$host_os dld.so"
14285 shlibpath_var=LD_LIBRARY_PATH
14286 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14288 soname_spec='${libname}${release}${shared_ext}$major'
14289 if test "X$HPUX_IA64_MODE" = X32; then
14290 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14291 else
14292 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14294 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14296 hppa*64*)
14297 shrext_cmds='.sl'
14298 hardcode_into_libs=yes
14299 dynamic_linker="$host_os dld.sl"
14300 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14301 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14303 soname_spec='${libname}${release}${shared_ext}$major'
14304 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14305 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14308 shrext_cmds='.sl'
14309 dynamic_linker="$host_os dld.sl"
14310 shlibpath_var=SHLIB_PATH
14311 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313 soname_spec='${libname}${release}${shared_ext}$major'
14315 esac
14316 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14317 postinstall_cmds='chmod 555 $lib'
14318 # or fails outright, so override atomically:
14319 install_override_mode=555
14322 interix[3-9]*)
14323 version_type=linux
14324 need_lib_prefix=no
14325 need_version=no
14326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14327 soname_spec='${libname}${release}${shared_ext}$major'
14328 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14329 shlibpath_var=LD_LIBRARY_PATH
14330 shlibpath_overrides_runpath=no
14331 hardcode_into_libs=yes
14334 irix5* | irix6* | nonstopux*)
14335 case $host_os in
14336 nonstopux*) version_type=nonstopux ;;
14338 if test "$lt_cv_prog_gnu_ld" = yes; then
14339 version_type=linux
14340 else
14341 version_type=irix
14342 fi ;;
14343 esac
14344 need_lib_prefix=no
14345 need_version=no
14346 soname_spec='${libname}${release}${shared_ext}$major'
14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14348 case $host_os in
14349 irix5* | nonstopux*)
14350 libsuff= shlibsuff=
14353 case $LD in # libtool.m4 will add one of these switches to LD
14354 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14355 libsuff= shlibsuff= libmagic=32-bit;;
14356 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14357 libsuff=32 shlibsuff=N32 libmagic=N32;;
14358 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14359 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14360 *) libsuff= shlibsuff= libmagic=never-match;;
14361 esac
14363 esac
14364 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14365 shlibpath_overrides_runpath=no
14366 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14367 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14368 hardcode_into_libs=yes
14371 # No shared lib support for Linux oldld, aout, or coff.
14372 linux*oldld* | linux*aout* | linux*coff*)
14373 dynamic_linker=no
14376 # This must be Linux ELF.
14378 # uclinux* changes (here and below) have been submitted to the libtool
14379 # project, but have not yet been accepted: they are GCC-local changes
14380 # for the time being. (See
14381 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14382 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14383 version_type=linux
14384 need_lib_prefix=no
14385 need_version=no
14386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14387 soname_spec='${libname}${release}${shared_ext}$major'
14388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14389 shlibpath_var=LD_LIBRARY_PATH
14390 shlibpath_overrides_runpath=no
14392 # Some binutils ld are patched to set DT_RUNPATH
14393 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14394 $as_echo_n "(cached) " >&6
14395 else
14396 lt_cv_shlibpath_overrides_runpath=no
14397 save_LDFLAGS=$LDFLAGS
14398 save_libdir=$libdir
14399 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14400 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14405 main ()
14409 return 0;
14411 _ACEOF
14412 if ac_fn_cxx_try_link "$LINENO"; then :
14413 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14414 lt_cv_shlibpath_overrides_runpath=yes
14417 rm -f core conftest.err conftest.$ac_objext \
14418 conftest$ac_exeext conftest.$ac_ext
14419 LDFLAGS=$save_LDFLAGS
14420 libdir=$save_libdir
14424 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14426 # This implies no fast_install, which is unacceptable.
14427 # Some rework will be needed to allow for fast_install
14428 # before this can be enabled.
14429 hardcode_into_libs=yes
14431 # Append ld.so.conf contents to the search path
14432 if test -f /etc/ld.so.conf; then
14433 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' ' '`
14434 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14437 # We used to test for /lib/ld.so.1 and disable shared libraries on
14438 # powerpc, because MkLinux only supported shared libraries with the
14439 # GNU dynamic linker. Since this was broken with cross compilers,
14440 # most powerpc-linux boxes support dynamic linking these days and
14441 # people can always --disable-shared, the test was removed, and we
14442 # assume the GNU/Linux dynamic linker is in use.
14443 dynamic_linker='GNU/Linux ld.so'
14446 netbsd*)
14447 version_type=sunos
14448 need_lib_prefix=no
14449 need_version=no
14450 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14452 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14453 dynamic_linker='NetBSD (a.out) ld.so'
14454 else
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14456 soname_spec='${libname}${release}${shared_ext}$major'
14457 dynamic_linker='NetBSD ld.elf_so'
14459 shlibpath_var=LD_LIBRARY_PATH
14460 shlibpath_overrides_runpath=yes
14461 hardcode_into_libs=yes
14464 newsos6)
14465 version_type=linux
14466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14467 shlibpath_var=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath=yes
14471 *nto* | *qnx*)
14472 version_type=qnx
14473 need_lib_prefix=no
14474 need_version=no
14475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14476 soname_spec='${libname}${release}${shared_ext}$major'
14477 shlibpath_var=LD_LIBRARY_PATH
14478 shlibpath_overrides_runpath=no
14479 hardcode_into_libs=yes
14480 dynamic_linker='ldqnx.so'
14483 openbsd*)
14484 version_type=sunos
14485 sys_lib_dlsearch_path_spec="/usr/lib"
14486 need_lib_prefix=no
14487 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14488 case $host_os in
14489 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14490 *) need_version=no ;;
14491 esac
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14493 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14494 shlibpath_var=LD_LIBRARY_PATH
14495 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14496 case $host_os in
14497 openbsd2.[89] | openbsd2.[89].*)
14498 shlibpath_overrides_runpath=no
14501 shlibpath_overrides_runpath=yes
14503 esac
14504 else
14505 shlibpath_overrides_runpath=yes
14509 os2*)
14510 libname_spec='$name'
14511 shrext_cmds=".dll"
14512 need_lib_prefix=no
14513 library_names_spec='$libname${shared_ext} $libname.a'
14514 dynamic_linker='OS/2 ld.exe'
14515 shlibpath_var=LIBPATH
14518 osf3* | osf4* | osf5*)
14519 version_type=osf
14520 need_lib_prefix=no
14521 need_version=no
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524 shlibpath_var=LD_LIBRARY_PATH
14525 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14526 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14529 rdos*)
14530 dynamic_linker=no
14533 solaris*)
14534 version_type=linux
14535 need_lib_prefix=no
14536 need_version=no
14537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14538 soname_spec='${libname}${release}${shared_ext}$major'
14539 shlibpath_var=LD_LIBRARY_PATH
14540 shlibpath_overrides_runpath=yes
14541 hardcode_into_libs=yes
14542 # ldd complains unless libraries are executable
14543 postinstall_cmds='chmod +x $lib'
14546 sunos4*)
14547 version_type=sunos
14548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14549 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14550 shlibpath_var=LD_LIBRARY_PATH
14551 shlibpath_overrides_runpath=yes
14552 if test "$with_gnu_ld" = yes; then
14553 need_lib_prefix=no
14555 need_version=yes
14558 sysv4 | sysv4.3*)
14559 version_type=linux
14560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14561 soname_spec='${libname}${release}${shared_ext}$major'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 case $host_vendor in
14564 sni)
14565 shlibpath_overrides_runpath=no
14566 need_lib_prefix=no
14567 runpath_var=LD_RUN_PATH
14569 siemens)
14570 need_lib_prefix=no
14572 motorola)
14573 need_lib_prefix=no
14574 need_version=no
14575 shlibpath_overrides_runpath=no
14576 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14578 esac
14581 sysv4*MP*)
14582 if test -d /usr/nec ;then
14583 version_type=linux
14584 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14585 soname_spec='$libname${shared_ext}.$major'
14586 shlibpath_var=LD_LIBRARY_PATH
14590 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14591 version_type=freebsd-elf
14592 need_lib_prefix=no
14593 need_version=no
14594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14595 soname_spec='${libname}${release}${shared_ext}$major'
14596 shlibpath_var=LD_LIBRARY_PATH
14597 shlibpath_overrides_runpath=yes
14598 hardcode_into_libs=yes
14599 if test "$with_gnu_ld" = yes; then
14600 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14601 else
14602 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14603 case $host_os in
14604 sco3.2v5*)
14605 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14607 esac
14609 sys_lib_dlsearch_path_spec='/usr/lib'
14612 tpf*)
14613 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14614 version_type=linux
14615 need_lib_prefix=no
14616 need_version=no
14617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 shlibpath_overrides_runpath=no
14620 hardcode_into_libs=yes
14623 uts4*)
14624 version_type=linux
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 soname_spec='${libname}${release}${shared_ext}$major'
14627 shlibpath_var=LD_LIBRARY_PATH
14631 dynamic_linker=no
14633 esac
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14635 $as_echo "$dynamic_linker" >&6; }
14636 test "$dynamic_linker" = no && can_build_shared=no
14638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14639 if test "$GCC" = yes; then
14640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14643 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14644 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14646 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14647 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14688 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14689 hardcode_action_CXX=
14690 if test -n "$hardcode_libdir_flag_spec_CXX" ||
14691 test -n "$runpath_var_CXX" ||
14692 test "X$hardcode_automatic_CXX" = "Xyes" ; then
14694 # We can hardcode non-existent directories.
14695 if test "$hardcode_direct_CXX" != no &&
14696 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14697 # have to relink, otherwise we might link with an installed library
14698 # when we should be linking with a yet-to-be-installed one
14699 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14700 test "$hardcode_minus_L_CXX" != no; then
14701 # Linking always hardcodes the temporary library directory.
14702 hardcode_action_CXX=relink
14703 else
14704 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14705 hardcode_action_CXX=immediate
14707 else
14708 # We cannot hardcode anything, or else we can only hardcode existing
14709 # directories.
14710 hardcode_action_CXX=unsupported
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14713 $as_echo "$hardcode_action_CXX" >&6; }
14715 if test "$hardcode_action_CXX" = relink ||
14716 test "$inherit_rpath_CXX" = yes; then
14717 # Fast installation is not supported
14718 enable_fast_install=no
14719 elif test "$shlibpath_overrides_runpath" = yes ||
14720 test "$enable_shared" = no; then
14721 # Fast installation is not necessary
14722 enable_fast_install=needless
14731 fi # test -n "$compiler"
14733 CC=$lt_save_CC
14734 LDCXX=$LD
14735 LD=$lt_save_LD
14736 GCC=$lt_save_GCC
14737 with_gnu_ld=$lt_save_with_gnu_ld
14738 lt_cv_path_LDCXX=$lt_cv_path_LD
14739 lt_cv_path_LD=$lt_save_path_LD
14740 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14741 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14742 fi # test "$_lt_caught_CXX_error" != yes
14744 ac_ext=c
14745 ac_cpp='$CPP $CPPFLAGS'
14746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14762 ac_config_commands="$ac_config_commands libtool"
14767 # Only expand once:
14770 # Forbid libtool to hardcode RPATH, because we want to be able to specify
14771 # library search directory using LD_LIBRARY_PATH
14772 hardcode_into_libs=no
14778 if test $enable_shared = yes; then
14779 link_offloadmic_host="-loffloadmic_host %{static: $LIBS}"
14780 link_offloadmic_target="-loffloadmic_target %{static: $LIBS}"
14781 else
14782 link_offloadmic_host="-loffloadmic_host $LIBS"
14783 link_offloadmic_target="-loffloadmic_target $LIBS"
14788 # Determine what GCC version number to use in filesystem paths.
14790 get_gcc_base_ver="cat"
14792 # Check whether --with-gcc-major-version-only was given.
14793 if test "${with_gcc_major_version_only+set}" = set; then :
14794 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
14795 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
14803 # Must be last
14804 cat >confcache <<\_ACEOF
14805 # This file is a shell script that caches the results of configure
14806 # tests run on this system so they can be shared between configure
14807 # scripts and configure runs, see configure's option --config-cache.
14808 # It is not useful on other systems. If it contains results you don't
14809 # want to keep, you may remove or edit it.
14811 # config.status only pays attention to the cache file if you give it
14812 # the --recheck option to rerun configure.
14814 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14815 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14816 # following values.
14818 _ACEOF
14820 # The following way of writing the cache mishandles newlines in values,
14821 # but we know of no workaround that is simple, portable, and efficient.
14822 # So, we kill variables containing newlines.
14823 # Ultrix sh set writes to stderr and can't be redirected directly,
14824 # and sets the high bit in the cache file unless we assign to the vars.
14826 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14827 eval ac_val=\$$ac_var
14828 case $ac_val in #(
14829 *${as_nl}*)
14830 case $ac_var in #(
14831 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14832 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14833 esac
14834 case $ac_var in #(
14835 _ | IFS | as_nl) ;; #(
14836 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14837 *) { eval $ac_var=; unset $ac_var;} ;;
14838 esac ;;
14839 esac
14840 done
14842 (set) 2>&1 |
14843 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14844 *${as_nl}ac_space=\ *)
14845 # `set' does not quote correctly, so add quotes: double-quote
14846 # substitution turns \\\\ into \\, and sed turns \\ into \.
14847 sed -n \
14848 "s/'/'\\\\''/g;
14849 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14850 ;; #(
14852 # `set' quotes correctly as required by POSIX, so do not add quotes.
14853 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14855 esac |
14856 sort
14858 sed '
14859 /^ac_cv_env_/b end
14860 t clear
14861 :clear
14862 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14863 t end
14864 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14865 :end' >>confcache
14866 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14867 if test -w "$cache_file"; then
14868 if test "x$cache_file" != "x/dev/null"; then
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14870 $as_echo "$as_me: updating cache $cache_file" >&6;}
14871 if test ! -f "$cache_file" || test -h "$cache_file"; then
14872 cat confcache >"$cache_file"
14873 else
14874 case $cache_file in #(
14875 */* | ?:*)
14876 mv -f confcache "$cache_file"$$ &&
14877 mv -f "$cache_file"$$ "$cache_file" ;; #(
14879 mv -f confcache "$cache_file" ;;
14880 esac
14883 else
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14885 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14888 rm -f confcache
14890 test "x$prefix" = xNONE && prefix=$ac_default_prefix
14891 # Let make expand exec_prefix.
14892 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14894 # Transform confdefs.h into DEFS.
14895 # Protect against shell expansion while executing Makefile rules.
14896 # Protect against Makefile macro expansion.
14898 # If the first sed substitution is executed (which looks for macros that
14899 # take arguments), then branch to the quote section. Otherwise,
14900 # look for a macro that doesn't take arguments.
14901 ac_script='
14902 :mline
14903 /\\$/{
14905 s,\\\n,,
14906 b mline
14908 t clear
14909 :clear
14910 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
14911 t quote
14912 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
14913 t quote
14914 b any
14915 :quote
14916 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
14917 s/\[/\\&/g
14918 s/\]/\\&/g
14919 s/\$/$$/g
14921 :any
14924 s/^\n//
14925 s/\n/ /g
14929 DEFS=`sed -n "$ac_script" confdefs.h`
14932 ac_libobjs=
14933 ac_ltlibobjs=
14935 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14936 # 1. Remove the extension, and $U if already installed.
14937 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
14938 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
14939 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14940 # will be set to the directory where LIBOBJS objects are built.
14941 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14942 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
14943 done
14944 LIBOBJS=$ac_libobjs
14946 LTLIBOBJS=$ac_ltlibobjs
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14950 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14951 if test -n "$am_sleep_pid"; then
14952 # Hide warnings about reused PIDs.
14953 wait $am_sleep_pid 2>/dev/null
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14956 $as_echo "done" >&6; }
14957 if test -n "$EXEEXT"; then
14958 am__EXEEXT_TRUE=
14959 am__EXEEXT_FALSE='#'
14960 else
14961 am__EXEEXT_TRUE='#'
14962 am__EXEEXT_FALSE=
14965 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14966 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
14967 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14969 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14970 as_fn_error $? "conditional \"AMDEP\" was never defined.
14971 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14973 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14974 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
14975 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14977 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
14978 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
14979 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14981 if test -z "${LIBOFFLOADMIC_HOST_TRUE}" && test -z "${LIBOFFLOADMIC_HOST_FALSE}"; then
14982 as_fn_error $? "conditional \"LIBOFFLOADMIC_HOST\" was never defined.
14983 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14986 : "${CONFIG_STATUS=./config.status}"
14987 ac_write_fail=0
14988 ac_clean_files_save=$ac_clean_files
14989 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14991 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14992 as_write_fail=0
14993 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14994 #! $SHELL
14995 # Generated by $as_me.
14996 # Run this file to recreate the current configuration.
14997 # Compiler output produced by configure, useful for debugging
14998 # configure, is in config.log if it exists.
15000 debug=false
15001 ac_cs_recheck=false
15002 ac_cs_silent=false
15004 SHELL=\${CONFIG_SHELL-$SHELL}
15005 export SHELL
15006 _ASEOF
15007 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15008 ## -------------------- ##
15009 ## M4sh Initialization. ##
15010 ## -------------------- ##
15012 # Be more Bourne compatible
15013 DUALCASE=1; export DUALCASE # for MKS sh
15014 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15015 emulate sh
15016 NULLCMD=:
15017 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15018 # is contrary to our usage. Disable this feature.
15019 alias -g '${1+"$@"}'='"$@"'
15020 setopt NO_GLOB_SUBST
15021 else
15022 case `(set -o) 2>/dev/null` in #(
15023 *posix*) :
15024 set -o posix ;; #(
15025 *) :
15027 esac
15031 as_nl='
15033 export as_nl
15034 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15035 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15036 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15037 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15038 # Prefer a ksh shell builtin over an external printf program on Solaris,
15039 # but without wasting forks for bash or zsh.
15040 if test -z "$BASH_VERSION$ZSH_VERSION" \
15041 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15042 as_echo='print -r --'
15043 as_echo_n='print -rn --'
15044 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15045 as_echo='printf %s\n'
15046 as_echo_n='printf %s'
15047 else
15048 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15049 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15050 as_echo_n='/usr/ucb/echo -n'
15051 else
15052 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15053 as_echo_n_body='eval
15054 arg=$1;
15055 case $arg in #(
15056 *"$as_nl"*)
15057 expr "X$arg" : "X\\(.*\\)$as_nl";
15058 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15059 esac;
15060 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15062 export as_echo_n_body
15063 as_echo_n='sh -c $as_echo_n_body as_echo'
15065 export as_echo_body
15066 as_echo='sh -c $as_echo_body as_echo'
15069 # The user is always right.
15070 if test "${PATH_SEPARATOR+set}" != set; then
15071 PATH_SEPARATOR=:
15072 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15073 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15074 PATH_SEPARATOR=';'
15079 # IFS
15080 # We need space, tab and new line, in precisely that order. Quoting is
15081 # there to prevent editors from complaining about space-tab.
15082 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15083 # splitting by setting IFS to empty value.)
15084 IFS=" "" $as_nl"
15086 # Find who we are. Look in the path if we contain no directory separator.
15087 as_myself=
15088 case $0 in #((
15089 *[\\/]* ) as_myself=$0 ;;
15090 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15091 for as_dir in $PATH
15093 IFS=$as_save_IFS
15094 test -z "$as_dir" && as_dir=.
15095 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15096 done
15097 IFS=$as_save_IFS
15100 esac
15101 # We did not find ourselves, most probably we were run as `sh COMMAND'
15102 # in which case we are not to be found in the path.
15103 if test "x$as_myself" = x; then
15104 as_myself=$0
15106 if test ! -f "$as_myself"; then
15107 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15108 exit 1
15111 # Unset variables that we do not need and which cause bugs (e.g. in
15112 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15113 # suppresses any "Segmentation fault" message there. '((' could
15114 # trigger a bug in pdksh 5.2.14.
15115 for as_var in BASH_ENV ENV MAIL MAILPATH
15116 do eval test x\${$as_var+set} = xset \
15117 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15118 done
15119 PS1='$ '
15120 PS2='> '
15121 PS4='+ '
15123 # NLS nuisances.
15124 LC_ALL=C
15125 export LC_ALL
15126 LANGUAGE=C
15127 export LANGUAGE
15129 # CDPATH.
15130 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15133 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15134 # ----------------------------------------
15135 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15136 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15137 # script with STATUS, using 1 if that was 0.
15138 as_fn_error ()
15140 as_status=$1; test $as_status -eq 0 && as_status=1
15141 if test "$4"; then
15142 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15143 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15145 $as_echo "$as_me: error: $2" >&2
15146 as_fn_exit $as_status
15147 } # as_fn_error
15150 # as_fn_set_status STATUS
15151 # -----------------------
15152 # Set $? to STATUS, without forking.
15153 as_fn_set_status ()
15155 return $1
15156 } # as_fn_set_status
15158 # as_fn_exit STATUS
15159 # -----------------
15160 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15161 as_fn_exit ()
15163 set +e
15164 as_fn_set_status $1
15165 exit $1
15166 } # as_fn_exit
15168 # as_fn_unset VAR
15169 # ---------------
15170 # Portably unset VAR.
15171 as_fn_unset ()
15173 { eval $1=; unset $1;}
15175 as_unset=as_fn_unset
15176 # as_fn_append VAR VALUE
15177 # ----------------------
15178 # Append the text in VALUE to the end of the definition contained in VAR. Take
15179 # advantage of any shell optimizations that allow amortized linear growth over
15180 # repeated appends, instead of the typical quadratic growth present in naive
15181 # implementations.
15182 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15183 eval 'as_fn_append ()
15185 eval $1+=\$2
15187 else
15188 as_fn_append ()
15190 eval $1=\$$1\$2
15192 fi # as_fn_append
15194 # as_fn_arith ARG...
15195 # ------------------
15196 # Perform arithmetic evaluation on the ARGs, and store the result in the
15197 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15198 # must be portable across $(()) and expr.
15199 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15200 eval 'as_fn_arith ()
15202 as_val=$(( $* ))
15204 else
15205 as_fn_arith ()
15207 as_val=`expr "$@" || test $? -eq 1`
15209 fi # as_fn_arith
15212 if expr a : '\(a\)' >/dev/null 2>&1 &&
15213 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15214 as_expr=expr
15215 else
15216 as_expr=false
15219 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15220 as_basename=basename
15221 else
15222 as_basename=false
15225 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15226 as_dirname=dirname
15227 else
15228 as_dirname=false
15231 as_me=`$as_basename -- "$0" ||
15232 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15233 X"$0" : 'X\(//\)$' \| \
15234 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15235 $as_echo X/"$0" |
15236 sed '/^.*\/\([^/][^/]*\)\/*$/{
15237 s//\1/
15240 /^X\/\(\/\/\)$/{
15241 s//\1/
15244 /^X\/\(\/\).*/{
15245 s//\1/
15248 s/.*/./; q'`
15250 # Avoid depending upon Character Ranges.
15251 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15252 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15253 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15254 as_cr_digits='0123456789'
15255 as_cr_alnum=$as_cr_Letters$as_cr_digits
15257 ECHO_C= ECHO_N= ECHO_T=
15258 case `echo -n x` in #(((((
15259 -n*)
15260 case `echo 'xy\c'` in
15261 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15262 xy) ECHO_C='\c';;
15263 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15264 ECHO_T=' ';;
15265 esac;;
15267 ECHO_N='-n';;
15268 esac
15270 rm -f conf$$ conf$$.exe conf$$.file
15271 if test -d conf$$.dir; then
15272 rm -f conf$$.dir/conf$$.file
15273 else
15274 rm -f conf$$.dir
15275 mkdir conf$$.dir 2>/dev/null
15277 if (echo >conf$$.file) 2>/dev/null; then
15278 if ln -s conf$$.file conf$$ 2>/dev/null; then
15279 as_ln_s='ln -s'
15280 # ... but there are two gotchas:
15281 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15282 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15283 # In both cases, we have to default to `cp -pR'.
15284 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15285 as_ln_s='cp -pR'
15286 elif ln conf$$.file conf$$ 2>/dev/null; then
15287 as_ln_s=ln
15288 else
15289 as_ln_s='cp -pR'
15291 else
15292 as_ln_s='cp -pR'
15294 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15295 rmdir conf$$.dir 2>/dev/null
15298 # as_fn_mkdir_p
15299 # -------------
15300 # Create "$as_dir" as a directory, including parents if necessary.
15301 as_fn_mkdir_p ()
15304 case $as_dir in #(
15305 -*) as_dir=./$as_dir;;
15306 esac
15307 test -d "$as_dir" || eval $as_mkdir_p || {
15308 as_dirs=
15309 while :; do
15310 case $as_dir in #(
15311 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15312 *) as_qdir=$as_dir;;
15313 esac
15314 as_dirs="'$as_qdir' $as_dirs"
15315 as_dir=`$as_dirname -- "$as_dir" ||
15316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15317 X"$as_dir" : 'X\(//\)[^/]' \| \
15318 X"$as_dir" : 'X\(//\)$' \| \
15319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15320 $as_echo X"$as_dir" |
15321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15322 s//\1/
15325 /^X\(\/\/\)[^/].*/{
15326 s//\1/
15329 /^X\(\/\/\)$/{
15330 s//\1/
15333 /^X\(\/\).*/{
15334 s//\1/
15337 s/.*/./; q'`
15338 test -d "$as_dir" && break
15339 done
15340 test -z "$as_dirs" || eval "mkdir $as_dirs"
15341 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15344 } # as_fn_mkdir_p
15345 if mkdir -p . 2>/dev/null; then
15346 as_mkdir_p='mkdir -p "$as_dir"'
15347 else
15348 test -d ./-p && rmdir ./-p
15349 as_mkdir_p=false
15353 # as_fn_executable_p FILE
15354 # -----------------------
15355 # Test if FILE is an executable regular file.
15356 as_fn_executable_p ()
15358 test -f "$1" && test -x "$1"
15359 } # as_fn_executable_p
15360 as_test_x='test -x'
15361 as_executable_p=as_fn_executable_p
15363 # Sed expression to map a string onto a valid CPP name.
15364 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15366 # Sed expression to map a string onto a valid variable name.
15367 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15370 exec 6>&1
15371 ## ----------------------------------- ##
15372 ## Main body of $CONFIG_STATUS script. ##
15373 ## ----------------------------------- ##
15374 _ASEOF
15375 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15377 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15378 # Save the log message, to keep $0 and so on meaningful, and to
15379 # report actual input values of CONFIG_FILES etc. instead of their
15380 # values after options handling.
15381 ac_log="
15382 This file was extended by MIC Offload Runtime Library $as_me 1.0, which was
15383 generated by GNU Autoconf 2.69. Invocation command line was
15385 CONFIG_FILES = $CONFIG_FILES
15386 CONFIG_HEADERS = $CONFIG_HEADERS
15387 CONFIG_LINKS = $CONFIG_LINKS
15388 CONFIG_COMMANDS = $CONFIG_COMMANDS
15389 $ $0 $@
15391 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15394 _ACEOF
15396 case $ac_config_files in *"
15397 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15398 esac
15402 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15403 # Files that config.status was made for.
15404 config_files="$ac_config_files"
15405 config_commands="$ac_config_commands"
15407 _ACEOF
15409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15410 ac_cs_usage="\
15411 \`$as_me' instantiates files and other configuration actions
15412 from templates according to the current configuration. Unless the files
15413 and actions are specified as TAGs, all are instantiated by default.
15415 Usage: $0 [OPTION]... [TAG]...
15417 -h, --help print this help, then exit
15418 -V, --version print version number and configuration settings, then exit
15419 --config print configuration, then exit
15420 -q, --quiet, --silent
15421 do not print progress messages
15422 -d, --debug don't remove temporary files
15423 --recheck update $as_me by reconfiguring in the same conditions
15424 --file=FILE[:TEMPLATE]
15425 instantiate the configuration file FILE
15427 Configuration files:
15428 $config_files
15430 Configuration commands:
15431 $config_commands
15433 Report bugs to the package provider."
15435 _ACEOF
15436 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15437 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15438 ac_cs_version="\\
15439 MIC Offload Runtime Library config.status 1.0
15440 configured by $0, generated by GNU Autoconf 2.69,
15441 with options \\"\$ac_cs_config\\"
15443 Copyright (C) 2012 Free Software Foundation, Inc.
15444 This config.status script is free software; the Free Software Foundation
15445 gives unlimited permission to copy, distribute and modify it."
15447 ac_pwd='$ac_pwd'
15448 srcdir='$srcdir'
15449 INSTALL='$INSTALL'
15450 MKDIR_P='$MKDIR_P'
15451 AWK='$AWK'
15452 test -n "\$AWK" || AWK=awk
15453 _ACEOF
15455 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15456 # The default lists apply if the user does not specify any file.
15457 ac_need_defaults=:
15458 while test $# != 0
15460 case $1 in
15461 --*=?*)
15462 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15463 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15464 ac_shift=:
15466 --*=)
15467 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15468 ac_optarg=
15469 ac_shift=:
15472 ac_option=$1
15473 ac_optarg=$2
15474 ac_shift=shift
15476 esac
15478 case $ac_option in
15479 # Handling of the options.
15480 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15481 ac_cs_recheck=: ;;
15482 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15483 $as_echo "$ac_cs_version"; exit ;;
15484 --config | --confi | --conf | --con | --co | --c )
15485 $as_echo "$ac_cs_config"; exit ;;
15486 --debug | --debu | --deb | --de | --d | -d )
15487 debug=: ;;
15488 --file | --fil | --fi | --f )
15489 $ac_shift
15490 case $ac_optarg in
15491 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15492 '') as_fn_error $? "missing file argument" ;;
15493 esac
15494 as_fn_append CONFIG_FILES " '$ac_optarg'"
15495 ac_need_defaults=false;;
15496 --he | --h | --help | --hel | -h )
15497 $as_echo "$ac_cs_usage"; exit ;;
15498 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15499 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15500 ac_cs_silent=: ;;
15502 # This is an error.
15503 -*) as_fn_error $? "unrecognized option: \`$1'
15504 Try \`$0 --help' for more information." ;;
15506 *) as_fn_append ac_config_targets " $1"
15507 ac_need_defaults=false ;;
15509 esac
15510 shift
15511 done
15513 ac_configure_extra_args=
15515 if $ac_cs_silent; then
15516 exec 6>/dev/null
15517 ac_configure_extra_args="$ac_configure_extra_args --silent"
15520 _ACEOF
15521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15522 if \$ac_cs_recheck; then
15523 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15524 shift
15525 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15526 CONFIG_SHELL='$SHELL'
15527 export CONFIG_SHELL
15528 exec "\$@"
15531 _ACEOF
15532 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15533 exec 5>>config.log
15535 echo
15536 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15537 ## Running $as_me. ##
15538 _ASBOX
15539 $as_echo "$ac_log"
15540 } >&5
15542 _ACEOF
15543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15545 # INIT-COMMANDS
15547 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15549 srcdir="$srcdir"
15550 host="$host"
15551 target="$target"
15552 with_multisubdir="$with_multisubdir"
15553 with_multisrctop="$with_multisrctop"
15554 with_target_subdir="$with_target_subdir"
15555 ac_configure_args="${multilib_arg} ${ac_configure_args}"
15556 multi_basedir="$multi_basedir"
15557 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
15558 CC="$CC"
15559 CXX="$CXX"
15560 GFORTRAN="$GFORTRAN"
15561 GDC="$GDC"
15564 # The HP-UX ksh and POSIX shell print the target directory to stdout
15565 # if CDPATH is set.
15566 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15568 sed_quote_subst='$sed_quote_subst'
15569 double_quote_subst='$double_quote_subst'
15570 delay_variable_subst='$delay_variable_subst'
15571 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15572 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15573 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15574 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15575 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15576 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15577 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15578 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15579 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15580 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15581 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15582 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15583 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15584 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15585 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15586 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15587 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15588 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15589 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15590 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15591 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15592 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15593 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15594 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15595 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15596 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15597 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15598 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15599 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15600 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15601 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15602 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15603 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15604 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15605 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15606 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15607 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15608 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15609 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15610 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15611 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15612 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15613 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15614 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15615 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15616 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15617 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15618 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15619 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"`'
15620 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15621 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15622 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15623 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15624 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15625 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15626 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15627 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15628 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15629 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15630 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15631 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15632 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15633 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15634 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15635 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15636 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15637 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15638 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15639 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15640 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15641 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15642 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15643 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15644 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15645 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15646 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15647 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15648 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15649 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15650 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15651 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15652 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15653 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15654 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15655 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15656 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15657 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15658 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15659 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15660 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15661 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15662 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15663 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15664 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15665 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15666 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15667 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15668 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15669 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15670 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15671 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15672 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15673 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15674 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15675 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15676 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15677 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15678 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15679 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15680 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15681 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15682 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15683 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15684 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15685 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15686 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15687 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15688 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15689 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15690 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15691 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15692 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15693 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15694 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15695 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15696 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15697 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15698 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15699 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15700 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15701 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15702 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15703 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15704 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15705 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15706 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15707 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15708 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15709 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15710 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15711 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15712 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15713 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15714 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15715 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15716 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15717 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15718 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15719 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15720 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15721 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15722 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15723 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15724 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15725 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15726 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15727 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15728 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15729 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15730 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15731 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15732 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15733 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15734 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15735 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15736 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15737 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15738 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15739 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15740 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15741 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15742 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15743 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15744 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15745 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15747 LTCC='$LTCC'
15748 LTCFLAGS='$LTCFLAGS'
15749 compiler='$compiler_DEFAULT'
15751 # A function that is used when there is no print builtin or printf.
15752 func_fallback_echo ()
15754 eval 'cat <<_LTECHO_EOF
15756 _LTECHO_EOF'
15759 # Quote evaled strings.
15760 for var in SHELL \
15761 ECHO \
15762 SED \
15763 GREP \
15764 EGREP \
15765 FGREP \
15766 LD \
15767 NM \
15768 LN_S \
15769 lt_SP2NL \
15770 lt_NL2SP \
15771 reload_flag \
15772 OBJDUMP \
15773 deplibs_check_method \
15774 file_magic_cmd \
15775 AR \
15776 AR_FLAGS \
15777 STRIP \
15778 RANLIB \
15779 CC \
15780 CFLAGS \
15781 compiler \
15782 lt_cv_sys_global_symbol_pipe \
15783 lt_cv_sys_global_symbol_to_cdecl \
15784 lt_cv_sys_global_symbol_to_c_name_address \
15785 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15786 lt_prog_compiler_no_builtin_flag \
15787 lt_prog_compiler_wl \
15788 lt_prog_compiler_pic \
15789 lt_prog_compiler_static \
15790 lt_cv_prog_compiler_c_o \
15791 need_locks \
15792 DSYMUTIL \
15793 NMEDIT \
15794 LIPO \
15795 OTOOL \
15796 OTOOL64 \
15797 shrext_cmds \
15798 export_dynamic_flag_spec \
15799 whole_archive_flag_spec \
15800 compiler_needs_object \
15801 with_gnu_ld \
15802 allow_undefined_flag \
15803 no_undefined_flag \
15804 hardcode_libdir_flag_spec \
15805 hardcode_libdir_flag_spec_ld \
15806 hardcode_libdir_separator \
15807 fix_srcfile_path \
15808 exclude_expsyms \
15809 include_expsyms \
15810 file_list_spec \
15811 variables_saved_for_relink \
15812 libname_spec \
15813 library_names_spec \
15814 soname_spec \
15815 install_override_mode \
15816 finish_eval \
15817 old_striplib \
15818 striplib \
15819 compiler_lib_search_dirs \
15820 predep_objects \
15821 postdep_objects \
15822 predeps \
15823 postdeps \
15824 compiler_lib_search_path \
15825 LD_CXX \
15826 reload_flag_CXX \
15827 compiler_CXX \
15828 lt_prog_compiler_no_builtin_flag_CXX \
15829 lt_prog_compiler_wl_CXX \
15830 lt_prog_compiler_pic_CXX \
15831 lt_prog_compiler_static_CXX \
15832 lt_cv_prog_compiler_c_o_CXX \
15833 export_dynamic_flag_spec_CXX \
15834 whole_archive_flag_spec_CXX \
15835 compiler_needs_object_CXX \
15836 with_gnu_ld_CXX \
15837 allow_undefined_flag_CXX \
15838 no_undefined_flag_CXX \
15839 hardcode_libdir_flag_spec_CXX \
15840 hardcode_libdir_flag_spec_ld_CXX \
15841 hardcode_libdir_separator_CXX \
15842 fix_srcfile_path_CXX \
15843 exclude_expsyms_CXX \
15844 include_expsyms_CXX \
15845 file_list_spec_CXX \
15846 compiler_lib_search_dirs_CXX \
15847 predep_objects_CXX \
15848 postdep_objects_CXX \
15849 predeps_CXX \
15850 postdeps_CXX \
15851 compiler_lib_search_path_CXX; do
15852 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15853 *[\\\\\\\`\\"\\\$]*)
15854 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15857 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15859 esac
15860 done
15862 # Double-quote double-evaled strings.
15863 for var in reload_cmds \
15864 old_postinstall_cmds \
15865 old_postuninstall_cmds \
15866 old_archive_cmds \
15867 extract_expsyms_cmds \
15868 old_archive_from_new_cmds \
15869 old_archive_from_expsyms_cmds \
15870 archive_cmds \
15871 archive_expsym_cmds \
15872 module_cmds \
15873 module_expsym_cmds \
15874 export_symbols_cmds \
15875 prelink_cmds \
15876 postinstall_cmds \
15877 postuninstall_cmds \
15878 finish_cmds \
15879 sys_lib_search_path_spec \
15880 sys_lib_dlsearch_path_spec \
15881 reload_cmds_CXX \
15882 old_archive_cmds_CXX \
15883 old_archive_from_new_cmds_CXX \
15884 old_archive_from_expsyms_cmds_CXX \
15885 archive_cmds_CXX \
15886 archive_expsym_cmds_CXX \
15887 module_cmds_CXX \
15888 module_expsym_cmds_CXX \
15889 export_symbols_cmds_CXX \
15890 prelink_cmds_CXX; do
15891 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15892 *[\\\\\\\`\\"\\\$]*)
15893 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15896 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15898 esac
15899 done
15901 ac_aux_dir='$ac_aux_dir'
15902 xsi_shell='$xsi_shell'
15903 lt_shell_append='$lt_shell_append'
15905 # See if we are running on zsh, and set the options which allow our
15906 # commands through without removal of \ escapes INIT.
15907 if test -n "\${ZSH_VERSION+set}" ; then
15908 setopt NO_GLOB_SUBST
15912 PACKAGE='$PACKAGE'
15913 VERSION='$VERSION'
15914 TIMESTAMP='$TIMESTAMP'
15915 RM='$RM'
15916 ofile='$ofile'
15923 _ACEOF
15925 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15927 # Handling of arguments.
15928 for ac_config_target in $ac_config_targets
15930 case $ac_config_target in
15931 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
15932 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
15933 "liboffloadmic_host.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_host.spec" ;;
15934 "liboffloadmic_target.spec") CONFIG_FILES="$CONFIG_FILES liboffloadmic_target.spec" ;;
15935 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15936 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15938 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15939 esac
15940 done
15943 # If the user did not use the arguments to specify the items to instantiate,
15944 # then the envvar interface is used. Set only those that are not.
15945 # We use the long form for the default assignment because of an extremely
15946 # bizarre bug on SunOS 4.1.3.
15947 if $ac_need_defaults; then
15948 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15949 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15952 # Have a temporary directory for convenience. Make it in the build tree
15953 # simply because there is no reason against having it here, and in addition,
15954 # creating and moving files from /tmp can sometimes cause problems.
15955 # Hook for its removal unless debugging.
15956 # Note that there is a small window in which the directory will not be cleaned:
15957 # after its creation but before its name has been assigned to `$tmp'.
15958 $debug ||
15960 tmp= ac_tmp=
15961 trap 'exit_status=$?
15962 : "${ac_tmp:=$tmp}"
15963 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15965 trap 'as_fn_exit 1' 1 2 13 15
15967 # Create a (secure) tmp directory for tmp files.
15970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15971 test -d "$tmp"
15972 } ||
15974 tmp=./conf$$-$RANDOM
15975 (umask 077 && mkdir "$tmp")
15976 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15977 ac_tmp=$tmp
15979 # Set up the scripts for CONFIG_FILES section.
15980 # No need to generate them if there are no CONFIG_FILES.
15981 # This happens for instance with `./config.status config.h'.
15982 if test -n "$CONFIG_FILES"; then
15985 ac_cr=`echo X | tr X '\015'`
15986 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15987 # But we know of no other shell where ac_cr would be empty at this
15988 # point, so we can use a bashism as a fallback.
15989 if test "x$ac_cr" = x; then
15990 eval ac_cr=\$\'\\r\'
15992 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15993 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15994 ac_cs_awk_cr='\\r'
15995 else
15996 ac_cs_awk_cr=$ac_cr
15999 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16000 _ACEOF
16004 echo "cat >conf$$subs.awk <<_ACEOF" &&
16005 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16006 echo "_ACEOF"
16007 } >conf$$subs.sh ||
16008 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16009 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16010 ac_delim='%!_!# '
16011 for ac_last_try in false false false false false :; do
16012 . ./conf$$subs.sh ||
16013 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16015 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16016 if test $ac_delim_n = $ac_delim_num; then
16017 break
16018 elif $ac_last_try; then
16019 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16020 else
16021 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16023 done
16024 rm -f conf$$subs.sh
16026 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16027 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16028 _ACEOF
16029 sed -n '
16031 s/^/S["/; s/!.*/"]=/
16034 s/^[^!]*!//
16035 :repl
16036 t repl
16037 s/'"$ac_delim"'$//
16038 t delim
16041 s/\(.\{148\}\)..*/\1/
16042 t more1
16043 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16046 b repl
16047 :more1
16048 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16051 s/.\{148\}//
16052 t nl
16053 :delim
16055 s/\(.\{148\}\)..*/\1/
16056 t more2
16057 s/["\\]/\\&/g; s/^/"/; s/$/"/
16060 :more2
16061 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16064 s/.\{148\}//
16065 t delim
16066 ' <conf$$subs.awk | sed '
16067 /^[^""]/{
16069 s/\n//
16071 ' >>$CONFIG_STATUS || ac_write_fail=1
16072 rm -f conf$$subs.awk
16073 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16074 _ACAWK
16075 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16076 for (key in S) S_is_set[key] = 1
16077 FS = "\a"
16081 line = $ 0
16082 nfields = split(line, field, "@")
16083 substed = 0
16084 len = length(field[1])
16085 for (i = 2; i < nfields; i++) {
16086 key = field[i]
16087 keylen = length(key)
16088 if (S_is_set[key]) {
16089 value = S[key]
16090 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16091 len += length(value) + length(field[++i])
16092 substed = 1
16093 } else
16094 len += 1 + keylen
16097 print line
16100 _ACAWK
16101 _ACEOF
16102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16103 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16104 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16105 else
16107 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16108 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16109 _ACEOF
16111 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16112 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16113 # trailing colons and then remove the whole line if VPATH becomes empty
16114 # (actually we leave an empty line to preserve line numbers).
16115 if test "x$srcdir" = x.; then
16116 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16118 s///
16119 s/^/:/
16120 s/[ ]*$/:/
16121 s/:\$(srcdir):/:/g
16122 s/:\${srcdir}:/:/g
16123 s/:@srcdir@:/:/g
16124 s/^:*//
16125 s/:*$//
16127 s/\(=[ ]*\).*/\1/
16129 s/\n//
16130 s/^[^=]*=[ ]*$//
16134 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16135 fi # test -n "$CONFIG_FILES"
16138 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
16139 shift
16140 for ac_tag
16142 case $ac_tag in
16143 :[FHLC]) ac_mode=$ac_tag; continue;;
16144 esac
16145 case $ac_mode$ac_tag in
16146 :[FHL]*:*);;
16147 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16148 :[FH]-) ac_tag=-:-;;
16149 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16150 esac
16151 ac_save_IFS=$IFS
16152 IFS=:
16153 set x $ac_tag
16154 IFS=$ac_save_IFS
16155 shift
16156 ac_file=$1
16157 shift
16159 case $ac_mode in
16160 :L) ac_source=$1;;
16161 :[FH])
16162 ac_file_inputs=
16163 for ac_f
16165 case $ac_f in
16166 -) ac_f="$ac_tmp/stdin";;
16167 *) # Look for the file first in the build tree, then in the source tree
16168 # (if the path is not absolute). The absolute path cannot be DOS-style,
16169 # because $ac_f cannot contain `:'.
16170 test -f "$ac_f" ||
16171 case $ac_f in
16172 [\\/$]*) false;;
16173 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16174 esac ||
16175 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16176 esac
16177 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16178 as_fn_append ac_file_inputs " '$ac_f'"
16179 done
16181 # Let's still pretend it is `configure' which instantiates (i.e., don't
16182 # use $as_me), people would be surprised to read:
16183 # /* config.h. Generated by config.status. */
16184 configure_input='Generated from '`
16185 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16186 `' by configure.'
16187 if test x"$ac_file" != x-; then
16188 configure_input="$ac_file. $configure_input"
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16190 $as_echo "$as_me: creating $ac_file" >&6;}
16192 # Neutralize special characters interpreted by sed in replacement strings.
16193 case $configure_input in #(
16194 *\&* | *\|* | *\\* )
16195 ac_sed_conf_input=`$as_echo "$configure_input" |
16196 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16197 *) ac_sed_conf_input=$configure_input;;
16198 esac
16200 case $ac_tag in
16201 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16202 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16203 esac
16205 esac
16207 ac_dir=`$as_dirname -- "$ac_file" ||
16208 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16209 X"$ac_file" : 'X\(//\)[^/]' \| \
16210 X"$ac_file" : 'X\(//\)$' \| \
16211 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16212 $as_echo X"$ac_file" |
16213 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16214 s//\1/
16217 /^X\(\/\/\)[^/].*/{
16218 s//\1/
16221 /^X\(\/\/\)$/{
16222 s//\1/
16225 /^X\(\/\).*/{
16226 s//\1/
16229 s/.*/./; q'`
16230 as_dir="$ac_dir"; as_fn_mkdir_p
16231 ac_builddir=.
16233 case "$ac_dir" in
16234 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16236 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16237 # A ".." for each directory in $ac_dir_suffix.
16238 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16239 case $ac_top_builddir_sub in
16240 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16241 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16242 esac ;;
16243 esac
16244 ac_abs_top_builddir=$ac_pwd
16245 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16246 # for backward compatibility:
16247 ac_top_builddir=$ac_top_build_prefix
16249 case $srcdir in
16250 .) # We are building in place.
16251 ac_srcdir=.
16252 ac_top_srcdir=$ac_top_builddir_sub
16253 ac_abs_top_srcdir=$ac_pwd ;;
16254 [\\/]* | ?:[\\/]* ) # Absolute name.
16255 ac_srcdir=$srcdir$ac_dir_suffix;
16256 ac_top_srcdir=$srcdir
16257 ac_abs_top_srcdir=$srcdir ;;
16258 *) # Relative name.
16259 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16260 ac_top_srcdir=$ac_top_build_prefix$srcdir
16261 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16262 esac
16263 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16266 case $ac_mode in
16269 # CONFIG_FILE
16272 case $INSTALL in
16273 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
16274 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
16275 esac
16276 ac_MKDIR_P=$MKDIR_P
16277 case $MKDIR_P in
16278 [\\/$]* | ?:[\\/]* ) ;;
16279 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16280 esac
16281 _ACEOF
16283 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16284 # If the template does not know about datarootdir, expand it.
16285 # FIXME: This hack should be removed a few years after 2.60.
16286 ac_datarootdir_hack=; ac_datarootdir_seen=
16287 ac_sed_dataroot='
16288 /datarootdir/ {
16292 /@datadir@/p
16293 /@docdir@/p
16294 /@infodir@/p
16295 /@localedir@/p
16296 /@mandir@/p'
16297 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16298 *datarootdir*) ac_datarootdir_seen=yes;;
16299 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16301 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16302 _ACEOF
16303 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16304 ac_datarootdir_hack='
16305 s&@datadir@&$datadir&g
16306 s&@docdir@&$docdir&g
16307 s&@infodir@&$infodir&g
16308 s&@localedir@&$localedir&g
16309 s&@mandir@&$mandir&g
16310 s&\\\${datarootdir}&$datarootdir&g' ;;
16311 esac
16312 _ACEOF
16314 # Neutralize VPATH when `$srcdir' = `.'.
16315 # Shell code in configure.ac might set extrasub.
16316 # FIXME: do we really want to maintain this feature?
16317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16318 ac_sed_extra="$ac_vpsub
16319 $extrasub
16320 _ACEOF
16321 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16324 s|@configure_input@|$ac_sed_conf_input|;t t
16325 s&@top_builddir@&$ac_top_builddir_sub&;t t
16326 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16327 s&@srcdir@&$ac_srcdir&;t t
16328 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16329 s&@top_srcdir@&$ac_top_srcdir&;t t
16330 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16331 s&@builddir@&$ac_builddir&;t t
16332 s&@abs_builddir@&$ac_abs_builddir&;t t
16333 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16334 s&@INSTALL@&$ac_INSTALL&;t t
16335 s&@MKDIR_P@&$ac_MKDIR_P&;t t
16336 $ac_datarootdir_hack
16338 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16339 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16341 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16342 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16343 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16344 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16346 which seems to be undefined. Please make sure it is defined" >&5
16347 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16348 which seems to be undefined. Please make sure it is defined" >&2;}
16350 rm -f "$ac_tmp/stdin"
16351 case $ac_file in
16352 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16353 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16354 esac \
16355 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16359 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16360 $as_echo "$as_me: executing $ac_file commands" >&6;}
16362 esac
16365 case $ac_file$ac_mode in
16366 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
16367 # Older Autoconf quotes --file arguments for eval, but not when files
16368 # are listed without --file. Let's play safe and only enable the eval
16369 # if we detect the quoting.
16370 case $CONFIG_FILES in
16371 *\'*) eval set x "$CONFIG_FILES" ;;
16372 *) set x $CONFIG_FILES ;;
16373 esac
16374 shift
16375 for mf
16377 # Strip MF so we end up with the name of the file.
16378 mf=`echo "$mf" | sed -e 's/:.*$//'`
16379 # Check whether this is an Automake generated Makefile or not.
16380 # We used to match only the files named 'Makefile.in', but
16381 # some people rename them; so instead we look at the file content.
16382 # Grep'ing the first line is not enough: some people post-process
16383 # each Makefile.in and add a new line on top of each file to say so.
16384 # Grep'ing the whole file is not good either: AIX grep has a line
16385 # limit of 2048, but all sed's we know have understand at least 4000.
16386 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
16387 dirpart=`$as_dirname -- "$mf" ||
16388 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16389 X"$mf" : 'X\(//\)[^/]' \| \
16390 X"$mf" : 'X\(//\)$' \| \
16391 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16392 $as_echo X"$mf" |
16393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16394 s//\1/
16397 /^X\(\/\/\)[^/].*/{
16398 s//\1/
16401 /^X\(\/\/\)$/{
16402 s//\1/
16405 /^X\(\/\).*/{
16406 s//\1/
16409 s/.*/./; q'`
16410 else
16411 continue
16413 # Extract the definition of DEPDIR, am__include, and am__quote
16414 # from the Makefile without running 'make'.
16415 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
16416 test -z "$DEPDIR" && continue
16417 am__include=`sed -n 's/^am__include = //p' < "$mf"`
16418 test -z "$am__include" && continue
16419 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
16420 # Find all dependency output files, they are included files with
16421 # $(DEPDIR) in their names. We invoke sed twice because it is the
16422 # simplest approach to changing $(DEPDIR) to its actual value in the
16423 # expansion.
16424 for file in `sed -n "
16425 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16426 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16427 # Make sure the directory exists.
16428 test -f "$dirpart/$file" && continue
16429 fdir=`$as_dirname -- "$file" ||
16430 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16431 X"$file" : 'X\(//\)[^/]' \| \
16432 X"$file" : 'X\(//\)$' \| \
16433 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16434 $as_echo X"$file" |
16435 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16436 s//\1/
16439 /^X\(\/\/\)[^/].*/{
16440 s//\1/
16443 /^X\(\/\/\)$/{
16444 s//\1/
16447 /^X\(\/\).*/{
16448 s//\1/
16451 s/.*/./; q'`
16452 as_dir=$dirpart/$fdir; as_fn_mkdir_p
16453 # echo "creating $dirpart/$file"
16454 echo '# dummy' > "$dirpart/$file"
16455 done
16456 done
16459 "default-1":C)
16460 # Only add multilib support code if we just rebuilt the top-level
16461 # Makefile.
16462 case " $CONFIG_FILES " in
16463 *" Makefile "*)
16464 ac_file=Makefile . ${multi_basedir}/config-ml.in
16466 esac ;;
16467 "libtool":C)
16469 # See if we are running on zsh, and set the options which allow our
16470 # commands through without removal of \ escapes.
16471 if test -n "${ZSH_VERSION+set}" ; then
16472 setopt NO_GLOB_SUBST
16475 cfgfile="${ofile}T"
16476 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16477 $RM "$cfgfile"
16479 cat <<_LT_EOF >> "$cfgfile"
16480 #! $SHELL
16482 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16483 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16484 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16485 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16487 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16488 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
16489 # Written by Gordon Matzigkeit, 1996
16491 # This file is part of GNU Libtool.
16493 # GNU Libtool is free software; you can redistribute it and/or
16494 # modify it under the terms of the GNU General Public License as
16495 # published by the Free Software Foundation; either version 2 of
16496 # the License, or (at your option) any later version.
16498 # As a special exception to the GNU General Public License,
16499 # if you distribute this file as part of a program or library that
16500 # is built using GNU Libtool, you may include this file under the
16501 # same distribution terms that you use for the rest of that program.
16503 # GNU Libtool is distributed in the hope that it will be useful,
16504 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16505 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16506 # GNU General Public License for more details.
16508 # You should have received a copy of the GNU General Public License
16509 # along with GNU Libtool; see the file COPYING. If not, a copy
16510 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16511 # obtained by writing to the Free Software Foundation, Inc.,
16512 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16515 # The names of the tagged configurations supported by this script.
16516 available_tags="CXX "
16518 # ### BEGIN LIBTOOL CONFIG
16520 # Which release of libtool.m4 was used?
16521 macro_version=$macro_version
16522 macro_revision=$macro_revision
16524 # Whether or not to build shared libraries.
16525 build_libtool_libs=$enable_shared
16527 # Whether or not to build static libraries.
16528 build_old_libs=$enable_static
16530 # What type of objects to build.
16531 pic_mode=$pic_mode
16533 # Whether or not to optimize for fast installation.
16534 fast_install=$enable_fast_install
16536 # Shell to use when invoking shell scripts.
16537 SHELL=$lt_SHELL
16539 # An echo program that protects backslashes.
16540 ECHO=$lt_ECHO
16542 # The host system.
16543 host_alias=$host_alias
16544 host=$host
16545 host_os=$host_os
16547 # The build system.
16548 build_alias=$build_alias
16549 build=$build
16550 build_os=$build_os
16552 # A sed program that does not truncate output.
16553 SED=$lt_SED
16555 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16556 Xsed="\$SED -e 1s/^X//"
16558 # A grep program that handles long lines.
16559 GREP=$lt_GREP
16561 # An ERE matcher.
16562 EGREP=$lt_EGREP
16564 # A literal string matcher.
16565 FGREP=$lt_FGREP
16567 # A BSD- or MS-compatible name lister.
16568 NM=$lt_NM
16570 # Whether we need soft or hard links.
16571 LN_S=$lt_LN_S
16573 # What is the maximum length of a command?
16574 max_cmd_len=$max_cmd_len
16576 # Object file suffix (normally "o").
16577 objext=$ac_objext
16579 # Executable file suffix (normally "").
16580 exeext=$exeext
16582 # whether the shell understands "unset".
16583 lt_unset=$lt_unset
16585 # turn spaces into newlines.
16586 SP2NL=$lt_lt_SP2NL
16588 # turn newlines into spaces.
16589 NL2SP=$lt_lt_NL2SP
16591 # An object symbol dumper.
16592 OBJDUMP=$lt_OBJDUMP
16594 # Method to check whether dependent libraries are shared objects.
16595 deplibs_check_method=$lt_deplibs_check_method
16597 # Command to use when deplibs_check_method == "file_magic".
16598 file_magic_cmd=$lt_file_magic_cmd
16600 # The archiver.
16601 AR=$lt_AR
16602 AR_FLAGS=$lt_AR_FLAGS
16604 # A symbol stripping program.
16605 STRIP=$lt_STRIP
16607 # Commands used to install an old-style archive.
16608 RANLIB=$lt_RANLIB
16609 old_postinstall_cmds=$lt_old_postinstall_cmds
16610 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16612 # Whether to use a lock for old archive extraction.
16613 lock_old_archive_extraction=$lock_old_archive_extraction
16615 # A C compiler.
16616 LTCC=$lt_CC
16618 # LTCC compiler flags.
16619 LTCFLAGS=$lt_CFLAGS
16621 # Take the output of nm and produce a listing of raw symbols and C names.
16622 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16624 # Transform the output of nm in a proper C declaration.
16625 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16627 # Transform the output of nm in a C name address pair.
16628 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16630 # Transform the output of nm in a C name address pair when lib prefix is needed.
16631 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16633 # The name of the directory that contains temporary libtool files.
16634 objdir=$objdir
16636 # Used to examine libraries when file_magic_cmd begins with "file".
16637 MAGIC_CMD=$MAGIC_CMD
16639 # Must we lock files when doing compilation?
16640 need_locks=$lt_need_locks
16642 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16643 DSYMUTIL=$lt_DSYMUTIL
16645 # Tool to change global to local symbols on Mac OS X.
16646 NMEDIT=$lt_NMEDIT
16648 # Tool to manipulate fat objects and archives on Mac OS X.
16649 LIPO=$lt_LIPO
16651 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16652 OTOOL=$lt_OTOOL
16654 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16655 OTOOL64=$lt_OTOOL64
16657 # Old archive suffix (normally "a").
16658 libext=$libext
16660 # Shared library suffix (normally ".so").
16661 shrext_cmds=$lt_shrext_cmds
16663 # The commands to extract the exported symbol list from a shared archive.
16664 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16666 # Variables whose values should be saved in libtool wrapper scripts and
16667 # restored at link time.
16668 variables_saved_for_relink=$lt_variables_saved_for_relink
16670 # Do we need the "lib" prefix for modules?
16671 need_lib_prefix=$need_lib_prefix
16673 # Do we need a version for libraries?
16674 need_version=$need_version
16676 # Library versioning type.
16677 version_type=$version_type
16679 # Shared library runtime path variable.
16680 runpath_var=$runpath_var
16682 # Shared library path variable.
16683 shlibpath_var=$shlibpath_var
16685 # Is shlibpath searched before the hard-coded library search path?
16686 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16688 # Format of library name prefix.
16689 libname_spec=$lt_libname_spec
16691 # List of archive names. First name is the real one, the rest are links.
16692 # The last name is the one that the linker finds with -lNAME
16693 library_names_spec=$lt_library_names_spec
16695 # The coded name of the library, if different from the real name.
16696 soname_spec=$lt_soname_spec
16698 # Permission mode override for installation of shared libraries.
16699 install_override_mode=$lt_install_override_mode
16701 # Command to use after installation of a shared archive.
16702 postinstall_cmds=$lt_postinstall_cmds
16704 # Command to use after uninstallation of a shared archive.
16705 postuninstall_cmds=$lt_postuninstall_cmds
16707 # Commands used to finish a libtool library installation in a directory.
16708 finish_cmds=$lt_finish_cmds
16710 # As "finish_cmds", except a single script fragment to be evaled but
16711 # not shown.
16712 finish_eval=$lt_finish_eval
16714 # Whether we should hardcode library paths into libraries.
16715 hardcode_into_libs=$hardcode_into_libs
16717 # Compile-time system search path for libraries.
16718 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16720 # Run-time system search path for libraries.
16721 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16723 # Whether dlopen is supported.
16724 dlopen_support=$enable_dlopen
16726 # Whether dlopen of programs is supported.
16727 dlopen_self=$enable_dlopen_self
16729 # Whether dlopen of statically linked programs is supported.
16730 dlopen_self_static=$enable_dlopen_self_static
16732 # Commands to strip libraries.
16733 old_striplib=$lt_old_striplib
16734 striplib=$lt_striplib
16737 # The linker used to build libraries.
16738 LD=$lt_LD
16740 # How to create reloadable object files.
16741 reload_flag=$lt_reload_flag
16742 reload_cmds=$lt_reload_cmds
16744 # Commands used to build an old-style archive.
16745 old_archive_cmds=$lt_old_archive_cmds
16747 # A language specific compiler.
16748 CC=$lt_compiler
16750 # Is the compiler the GNU compiler?
16751 with_gcc=$GCC
16753 # Compiler flag to turn off builtin functions.
16754 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16756 # How to pass a linker flag through the compiler.
16757 wl=$lt_lt_prog_compiler_wl
16759 # Additional compiler flags for building library objects.
16760 pic_flag=$lt_lt_prog_compiler_pic
16762 # Compiler flag to prevent dynamic linking.
16763 link_static_flag=$lt_lt_prog_compiler_static
16765 # Does compiler simultaneously support -c and -o options?
16766 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16768 # Whether or not to add -lc for building shared libraries.
16769 build_libtool_need_lc=$archive_cmds_need_lc
16771 # Whether or not to disallow shared libs when runtime libs are static.
16772 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16774 # Compiler flag to allow reflexive dlopens.
16775 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16777 # Compiler flag to generate shared objects directly from archives.
16778 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16780 # Whether the compiler copes with passing no objects directly.
16781 compiler_needs_object=$lt_compiler_needs_object
16783 # Create an old-style archive from a shared archive.
16784 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16786 # Create a temporary old-style archive to link instead of a shared archive.
16787 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16789 # Commands used to build a shared archive.
16790 archive_cmds=$lt_archive_cmds
16791 archive_expsym_cmds=$lt_archive_expsym_cmds
16793 # Commands used to build a loadable module if different from building
16794 # a shared archive.
16795 module_cmds=$lt_module_cmds
16796 module_expsym_cmds=$lt_module_expsym_cmds
16798 # Whether we are building with GNU ld or not.
16799 with_gnu_ld=$lt_with_gnu_ld
16801 # Flag that allows shared libraries with undefined symbols to be built.
16802 allow_undefined_flag=$lt_allow_undefined_flag
16804 # Flag that enforces no undefined symbols.
16805 no_undefined_flag=$lt_no_undefined_flag
16807 # Flag to hardcode \$libdir into a binary during linking.
16808 # This must work even if \$libdir does not exist
16809 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16811 # If ld is used when linking, flag to hardcode \$libdir into a binary
16812 # during linking. This must work even if \$libdir does not exist.
16813 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16815 # Whether we need a single "-rpath" flag with a separated argument.
16816 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16818 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16819 # DIR into the resulting binary.
16820 hardcode_direct=$hardcode_direct
16822 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16823 # DIR into the resulting binary and the resulting library dependency is
16824 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16825 # library is relocated.
16826 hardcode_direct_absolute=$hardcode_direct_absolute
16828 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16829 # into the resulting binary.
16830 hardcode_minus_L=$hardcode_minus_L
16832 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16833 # into the resulting binary.
16834 hardcode_shlibpath_var=$hardcode_shlibpath_var
16836 # Set to "yes" if building a shared library automatically hardcodes DIR
16837 # into the library and all subsequent libraries and executables linked
16838 # against it.
16839 hardcode_automatic=$hardcode_automatic
16841 # Set to yes if linker adds runtime paths of dependent libraries
16842 # to runtime path list.
16843 inherit_rpath=$inherit_rpath
16845 # Whether libtool must link a program against all its dependency libraries.
16846 link_all_deplibs=$link_all_deplibs
16848 # Fix the shell variable \$srcfile for the compiler.
16849 fix_srcfile_path=$lt_fix_srcfile_path
16851 # Set to "yes" if exported symbols are required.
16852 always_export_symbols=$always_export_symbols
16854 # The commands to list exported symbols.
16855 export_symbols_cmds=$lt_export_symbols_cmds
16857 # Symbols that should not be listed in the preloaded symbols.
16858 exclude_expsyms=$lt_exclude_expsyms
16860 # Symbols that must always be exported.
16861 include_expsyms=$lt_include_expsyms
16863 # Commands necessary for linking programs (against libraries) with templates.
16864 prelink_cmds=$lt_prelink_cmds
16866 # Specify filename containing input files.
16867 file_list_spec=$lt_file_list_spec
16869 # How to hardcode a shared library path into an executable.
16870 hardcode_action=$hardcode_action
16872 # The directories searched by this compiler when creating a shared library.
16873 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16875 # Dependencies to place before and after the objects being linked to
16876 # create a shared library.
16877 predep_objects=$lt_predep_objects
16878 postdep_objects=$lt_postdep_objects
16879 predeps=$lt_predeps
16880 postdeps=$lt_postdeps
16882 # The library search path used internally by the compiler when linking
16883 # a shared library.
16884 compiler_lib_search_path=$lt_compiler_lib_search_path
16886 # ### END LIBTOOL CONFIG
16888 _LT_EOF
16890 case $host_os in
16891 aix3*)
16892 cat <<\_LT_EOF >> "$cfgfile"
16893 # AIX sometimes has problems with the GCC collect2 program. For some
16894 # reason, if we set the COLLECT_NAMES environment variable, the problems
16895 # vanish in a puff of smoke.
16896 if test "X${COLLECT_NAMES+set}" != Xset; then
16897 COLLECT_NAMES=
16898 export COLLECT_NAMES
16900 _LT_EOF
16902 esac
16905 ltmain="$ac_aux_dir/ltmain.sh"
16908 # We use sed instead of cat because bash on DJGPP gets confused if
16909 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16910 # text mode, it properly converts lines to CR/LF. This bash problem
16911 # is reportedly fixed, but why not run on old versions too?
16912 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16913 || (rm -f "$cfgfile"; exit 1)
16915 case $xsi_shell in
16916 yes)
16917 cat << \_LT_EOF >> "$cfgfile"
16919 # func_dirname file append nondir_replacement
16920 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
16921 # otherwise set result to NONDIR_REPLACEMENT.
16922 func_dirname ()
16924 case ${1} in
16925 */*) func_dirname_result="${1%/*}${2}" ;;
16926 * ) func_dirname_result="${3}" ;;
16927 esac
16930 # func_basename file
16931 func_basename ()
16933 func_basename_result="${1##*/}"
16936 # func_dirname_and_basename file append nondir_replacement
16937 # perform func_basename and func_dirname in a single function
16938 # call:
16939 # dirname: Compute the dirname of FILE. If nonempty,
16940 # add APPEND to the result, otherwise set result
16941 # to NONDIR_REPLACEMENT.
16942 # value returned in "$func_dirname_result"
16943 # basename: Compute filename of FILE.
16944 # value retuned in "$func_basename_result"
16945 # Implementation must be kept synchronized with func_dirname
16946 # and func_basename. For efficiency, we do not delegate to
16947 # those functions but instead duplicate the functionality here.
16948 func_dirname_and_basename ()
16950 case ${1} in
16951 */*) func_dirname_result="${1%/*}${2}" ;;
16952 * ) func_dirname_result="${3}" ;;
16953 esac
16954 func_basename_result="${1##*/}"
16957 # func_stripname prefix suffix name
16958 # strip PREFIX and SUFFIX off of NAME.
16959 # PREFIX and SUFFIX must not contain globbing or regex special
16960 # characters, hashes, percent signs, but SUFFIX may contain a leading
16961 # dot (in which case that matches only a dot).
16962 func_stripname ()
16964 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16965 # positional parameters, so assign one to ordinary parameter first.
16966 func_stripname_result=${3}
16967 func_stripname_result=${func_stripname_result#"${1}"}
16968 func_stripname_result=${func_stripname_result%"${2}"}
16971 # func_opt_split
16972 func_opt_split ()
16974 func_opt_split_opt=${1%%=*}
16975 func_opt_split_arg=${1#*=}
16978 # func_lo2o object
16979 func_lo2o ()
16981 case ${1} in
16982 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16983 *) func_lo2o_result=${1} ;;
16984 esac
16987 # func_xform libobj-or-source
16988 func_xform ()
16990 func_xform_result=${1%.*}.lo
16993 # func_arith arithmetic-term...
16994 func_arith ()
16996 func_arith_result=$(( $* ))
16999 # func_len string
17000 # STRING may not start with a hyphen.
17001 func_len ()
17003 func_len_result=${#1}
17006 _LT_EOF
17008 *) # Bourne compatible functions.
17009 cat << \_LT_EOF >> "$cfgfile"
17011 # func_dirname file append nondir_replacement
17012 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
17013 # otherwise set result to NONDIR_REPLACEMENT.
17014 func_dirname ()
17016 # Extract subdirectory from the argument.
17017 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
17018 if test "X$func_dirname_result" = "X${1}"; then
17019 func_dirname_result="${3}"
17020 else
17021 func_dirname_result="$func_dirname_result${2}"
17025 # func_basename file
17026 func_basename ()
17028 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
17032 # func_stripname prefix suffix name
17033 # strip PREFIX and SUFFIX off of NAME.
17034 # PREFIX and SUFFIX must not contain globbing or regex special
17035 # characters, hashes, percent signs, but SUFFIX may contain a leading
17036 # dot (in which case that matches only a dot).
17037 # func_strip_suffix prefix name
17038 func_stripname ()
17040 case ${2} in
17041 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
17042 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
17043 esac
17046 # sed scripts:
17047 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
17048 my_sed_long_arg='1s/^-[^=]*=//'
17050 # func_opt_split
17051 func_opt_split ()
17053 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
17054 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
17057 # func_lo2o object
17058 func_lo2o ()
17060 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
17063 # func_xform libobj-or-source
17064 func_xform ()
17066 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
17069 # func_arith arithmetic-term...
17070 func_arith ()
17072 func_arith_result=`expr "$@"`
17075 # func_len string
17076 # STRING may not start with a hyphen.
17077 func_len ()
17079 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
17082 _LT_EOF
17083 esac
17085 case $lt_shell_append in
17086 yes)
17087 cat << \_LT_EOF >> "$cfgfile"
17089 # func_append var value
17090 # Append VALUE to the end of shell variable VAR.
17091 func_append ()
17093 eval "$1+=\$2"
17095 _LT_EOF
17098 cat << \_LT_EOF >> "$cfgfile"
17100 # func_append var value
17101 # Append VALUE to the end of shell variable VAR.
17102 func_append ()
17104 eval "$1=\$$1\$2"
17107 _LT_EOF
17109 esac
17112 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
17113 || (rm -f "$cfgfile"; exit 1)
17115 mv -f "$cfgfile" "$ofile" ||
17116 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17117 chmod +x "$ofile"
17120 cat <<_LT_EOF >> "$ofile"
17122 # ### BEGIN LIBTOOL TAG CONFIG: CXX
17124 # The linker used to build libraries.
17125 LD=$lt_LD_CXX
17127 # How to create reloadable object files.
17128 reload_flag=$lt_reload_flag_CXX
17129 reload_cmds=$lt_reload_cmds_CXX
17131 # Commands used to build an old-style archive.
17132 old_archive_cmds=$lt_old_archive_cmds_CXX
17134 # A language specific compiler.
17135 CC=$lt_compiler_CXX
17137 # Is the compiler the GNU compiler?
17138 with_gcc=$GCC_CXX
17140 # Compiler flag to turn off builtin functions.
17141 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
17143 # How to pass a linker flag through the compiler.
17144 wl=$lt_lt_prog_compiler_wl_CXX
17146 # Additional compiler flags for building library objects.
17147 pic_flag=$lt_lt_prog_compiler_pic_CXX
17149 # Compiler flag to prevent dynamic linking.
17150 link_static_flag=$lt_lt_prog_compiler_static_CXX
17152 # Does compiler simultaneously support -c and -o options?
17153 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
17155 # Whether or not to add -lc for building shared libraries.
17156 build_libtool_need_lc=$archive_cmds_need_lc_CXX
17158 # Whether or not to disallow shared libs when runtime libs are static.
17159 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
17161 # Compiler flag to allow reflexive dlopens.
17162 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
17164 # Compiler flag to generate shared objects directly from archives.
17165 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
17167 # Whether the compiler copes with passing no objects directly.
17168 compiler_needs_object=$lt_compiler_needs_object_CXX
17170 # Create an old-style archive from a shared archive.
17171 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17173 # Create a temporary old-style archive to link instead of a shared archive.
17174 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17176 # Commands used to build a shared archive.
17177 archive_cmds=$lt_archive_cmds_CXX
17178 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17180 # Commands used to build a loadable module if different from building
17181 # a shared archive.
17182 module_cmds=$lt_module_cmds_CXX
17183 module_expsym_cmds=$lt_module_expsym_cmds_CXX
17185 # Whether we are building with GNU ld or not.
17186 with_gnu_ld=$lt_with_gnu_ld_CXX
17188 # Flag that allows shared libraries with undefined symbols to be built.
17189 allow_undefined_flag=$lt_allow_undefined_flag_CXX
17191 # Flag that enforces no undefined symbols.
17192 no_undefined_flag=$lt_no_undefined_flag_CXX
17194 # Flag to hardcode \$libdir into a binary during linking.
17195 # This must work even if \$libdir does not exist
17196 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17198 # If ld is used when linking, flag to hardcode \$libdir into a binary
17199 # during linking. This must work even if \$libdir does not exist.
17200 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17202 # Whether we need a single "-rpath" flag with a separated argument.
17203 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17205 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17206 # DIR into the resulting binary.
17207 hardcode_direct=$hardcode_direct_CXX
17209 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17210 # DIR into the resulting binary and the resulting library dependency is
17211 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17212 # library is relocated.
17213 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17215 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17216 # into the resulting binary.
17217 hardcode_minus_L=$hardcode_minus_L_CXX
17219 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17220 # into the resulting binary.
17221 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17223 # Set to "yes" if building a shared library automatically hardcodes DIR
17224 # into the library and all subsequent libraries and executables linked
17225 # against it.
17226 hardcode_automatic=$hardcode_automatic_CXX
17228 # Set to yes if linker adds runtime paths of dependent libraries
17229 # to runtime path list.
17230 inherit_rpath=$inherit_rpath_CXX
17232 # Whether libtool must link a program against all its dependency libraries.
17233 link_all_deplibs=$link_all_deplibs_CXX
17235 # Fix the shell variable \$srcfile for the compiler.
17236 fix_srcfile_path=$lt_fix_srcfile_path_CXX
17238 # Set to "yes" if exported symbols are required.
17239 always_export_symbols=$always_export_symbols_CXX
17241 # The commands to list exported symbols.
17242 export_symbols_cmds=$lt_export_symbols_cmds_CXX
17244 # Symbols that should not be listed in the preloaded symbols.
17245 exclude_expsyms=$lt_exclude_expsyms_CXX
17247 # Symbols that must always be exported.
17248 include_expsyms=$lt_include_expsyms_CXX
17250 # Commands necessary for linking programs (against libraries) with templates.
17251 prelink_cmds=$lt_prelink_cmds_CXX
17253 # Specify filename containing input files.
17254 file_list_spec=$lt_file_list_spec_CXX
17256 # How to hardcode a shared library path into an executable.
17257 hardcode_action=$hardcode_action_CXX
17259 # The directories searched by this compiler when creating a shared library.
17260 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17262 # Dependencies to place before and after the objects being linked to
17263 # create a shared library.
17264 predep_objects=$lt_predep_objects_CXX
17265 postdep_objects=$lt_postdep_objects_CXX
17266 predeps=$lt_predeps_CXX
17267 postdeps=$lt_postdeps_CXX
17269 # The library search path used internally by the compiler when linking
17270 # a shared library.
17271 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17273 # ### END LIBTOOL TAG CONFIG: CXX
17274 _LT_EOF
17278 esac
17279 done # for ac_tag
17282 as_fn_exit 0
17283 _ACEOF
17284 ac_clean_files=$ac_clean_files_save
17286 test $ac_write_fail = 0 ||
17287 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17290 # configure is writing to config.log, and then calls config.status.
17291 # config.status does its own redirection, appending to config.log.
17292 # Unfortunately, on DOS this fails, as config.log is still kept open
17293 # by configure, so config.status won't be able to write to it; its
17294 # output is simply discarded. So we exec the FD to /dev/null,
17295 # effectively closing config.log, so it can be properly (re)opened and
17296 # appended to by config.status. When coming back to configure, we
17297 # need to make the FD available again.
17298 if test "$no_create" != yes; then
17299 ac_cs_success=:
17300 ac_config_status_args=
17301 test "$silent" = yes &&
17302 ac_config_status_args="$ac_config_status_args --quiet"
17303 exec 5>/dev/null
17304 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17305 exec 5>>config.log
17306 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17307 # would make configure fail if this is the last instruction.
17308 $ac_cs_success || as_fn_exit 1
17312 # CONFIG_SUBDIRS section.
17314 if test "$no_recursion" != yes; then
17316 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
17317 # so they do not pile up.
17318 ac_sub_configure_args=
17319 ac_prev=
17320 eval "set x $ac_configure_args"
17321 shift
17322 for ac_arg
17324 if test -n "$ac_prev"; then
17325 ac_prev=
17326 continue
17328 case $ac_arg in
17329 -cache-file | --cache-file | --cache-fil | --cache-fi \
17330 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
17331 ac_prev=cache_file ;;
17332 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
17333 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
17334 | --c=*)
17336 --config-cache | -C)
17338 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
17339 ac_prev=srcdir ;;
17340 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
17342 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
17343 ac_prev=prefix ;;
17344 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
17346 --disable-option-checking)
17349 case $ac_arg in
17350 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17351 esac
17352 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
17353 esac
17354 done
17356 # Always prepend --prefix to ensure using the same prefix
17357 # in subdir configurations.
17358 ac_arg="--prefix=$prefix"
17359 case $ac_arg in
17360 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
17361 esac
17362 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
17364 # Pass --silent
17365 if test "$silent" = yes; then
17366 ac_sub_configure_args="--silent $ac_sub_configure_args"
17369 # Always prepend --disable-option-checking to silence warnings, since
17370 # different subdirs can have different --enable and --with options.
17371 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
17373 ac_popdir=`pwd`
17374 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
17376 # Do not complain, so a configure script can configure whichever
17377 # parts of a large source tree are present.
17378 test -d "$srcdir/$ac_dir" || continue
17380 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
17381 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
17382 $as_echo "$ac_msg" >&6
17383 as_dir="$ac_dir"; as_fn_mkdir_p
17384 ac_builddir=.
17386 case "$ac_dir" in
17387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17389 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17390 # A ".." for each directory in $ac_dir_suffix.
17391 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17392 case $ac_top_builddir_sub in
17393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17395 esac ;;
17396 esac
17397 ac_abs_top_builddir=$ac_pwd
17398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17399 # for backward compatibility:
17400 ac_top_builddir=$ac_top_build_prefix
17402 case $srcdir in
17403 .) # We are building in place.
17404 ac_srcdir=.
17405 ac_top_srcdir=$ac_top_builddir_sub
17406 ac_abs_top_srcdir=$ac_pwd ;;
17407 [\\/]* | ?:[\\/]* ) # Absolute name.
17408 ac_srcdir=$srcdir$ac_dir_suffix;
17409 ac_top_srcdir=$srcdir
17410 ac_abs_top_srcdir=$srcdir ;;
17411 *) # Relative name.
17412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17413 ac_top_srcdir=$ac_top_build_prefix$srcdir
17414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17415 esac
17416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17419 cd "$ac_dir"
17421 # Check for guested configure; otherwise get Cygnus style configure.
17422 if test -f "$ac_srcdir/configure.gnu"; then
17423 ac_sub_configure=$ac_srcdir/configure.gnu
17424 elif test -f "$ac_srcdir/configure"; then
17425 ac_sub_configure=$ac_srcdir/configure
17426 elif test -f "$ac_srcdir/configure.in"; then
17427 # This should be Cygnus configure.
17428 ac_sub_configure=$ac_aux_dir/configure
17429 else
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
17431 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
17432 ac_sub_configure=
17435 # The recursion is here.
17436 if test -n "$ac_sub_configure"; then
17437 # Make the cache file name correct relative to the subdirectory.
17438 case $cache_file in
17439 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
17440 *) # Relative name.
17441 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
17442 esac
17444 { $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
17445 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
17446 # The eval makes quoting arguments work.
17447 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
17448 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
17449 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
17452 cd "$ac_popdir"
17453 done
17455 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17457 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}