c++: ICE with template code in constexpr [PR104284]
[official-gcc.git] / libgomp / configure
bloba73a6d4400368dced71dca9f8a015a186cd63951
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing 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
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || 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='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME='libgomp'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
631 ac_header_list=
632 ac_func_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 get_gcc_base_ver
638 OMP_DEPEND_KIND
639 OMP_NEST_LOCK_25_KIND
640 OMP_LOCK_25_KIND
641 OMP_NEST_LOCK_25_ALIGN
642 OMP_NEST_LOCK_25_SIZE
643 OMP_LOCK_25_ALIGN
644 OMP_LOCK_25_SIZE
645 OMP_NEST_LOCK_KIND
646 OMP_LOCK_KIND
647 OMP_NEST_LOCK_ALIGN
648 OMP_NEST_LOCK_SIZE
649 OMP_LOCK_ALIGN
650 OMP_LOCK_SIZE
651 INTPTR_T_KIND
652 USE_FORTRAN_FALSE
653 USE_FORTRAN_TRUE
654 link_gomp
655 tmake_file
656 XLDFLAGS
657 XCFLAGS
658 config_path
659 CPU_COUNT
660 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
663 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
664 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
665 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
666 OPT_LDFLAGS
667 SECTION_LDFLAGS
668 PLUGIN_GCN_FALSE
669 PLUGIN_GCN_TRUE
670 PLUGIN_NVPTX_FALSE
671 PLUGIN_NVPTX_TRUE
672 offload_additional_lib_paths
673 offload_additional_options
674 offload_targets
675 offload_plugins
676 PLUGIN_GCN_LIBS
677 PLUGIN_GCN_LDFLAGS
678 PLUGIN_GCN_CPPFLAGS
679 PLUGIN_GCN
680 HSA_RUNTIME_LIB
681 HSA_RUNTIME_INCLUDE
682 PLUGIN_NVPTX_LIBS
683 PLUGIN_NVPTX_LDFLAGS
684 PLUGIN_NVPTX_CPPFLAGS
685 PLUGIN_NVPTX
686 CUDA_DRIVER_LIB
687 CUDA_DRIVER_INCLUDE
688 libtool_VERSION
689 ac_ct_FC
690 FCFLAGS
692 MAINT
693 MAINTAINER_MODE_FALSE
694 MAINTAINER_MODE_TRUE
695 enable_static
696 enable_shared
697 lt_host_flags
699 OTOOL64
700 OTOOL
701 LIPO
702 NMEDIT
703 DSYMUTIL
704 OBJDUMP
705 LN_S
707 ac_ct_DUMPBIN
708 DUMPBIN
710 FGREP
711 EGREP
712 GREP
714 LIBTOOL
715 BUILD_INFO_FALSE
716 BUILD_INFO_TRUE
717 PERL
718 RANLIB
720 am__fastdepCC_FALSE
721 am__fastdepCC_TRUE
722 CCDEPMODE
723 am__nodep
724 AMDEPBACKSLASH
725 AMDEP_FALSE
726 AMDEP_TRUE
727 am__quote
728 am__include
729 DEPDIR
730 OBJEXT
731 EXEEXT
732 ac_ct_CC
733 CPPFLAGS
734 LDFLAGS
735 CFLAGS
737 toolexeclibdir
738 toolexecdir
739 multi_basedir
740 AM_BACKSLASH
741 AM_DEFAULT_VERBOSITY
742 AM_DEFAULT_V
743 AM_V
744 am__untar
745 am__tar
746 AMTAR
747 am__leading_dot
748 SET_MAKE
750 mkdir_p
751 MKDIR_P
752 INSTALL_STRIP_PROGRAM
753 STRIP
754 install_sh
755 MAKEINFO
756 AUTOHEADER
757 AUTOMAKE
758 AUTOCONF
759 ACLOCAL
760 VERSION
761 PACKAGE
762 CYGPATH_W
763 am__isrc
764 INSTALL_DATA
765 INSTALL_SCRIPT
766 INSTALL_PROGRAM
767 target_os
768 target_vendor
769 target_cpu
770 target
771 host_os
772 host_vendor
773 host_cpu
774 host
775 build_os
776 build_vendor
777 build_cpu
778 build
779 GENINSRC_FALSE
780 GENINSRC_TRUE
781 target_alias
782 host_alias
783 build_alias
784 LIBS
785 ECHO_T
786 ECHO_N
787 ECHO_C
788 DEFS
789 mandir
790 localedir
791 libdir
792 psdir
793 pdfdir
794 dvidir
795 htmldir
796 infodir
797 docdir
798 oldincludedir
799 includedir
800 localstatedir
801 sharedstatedir
802 sysconfdir
803 datadir
804 datarootdir
805 libexecdir
806 sbindir
807 bindir
808 program_transform_name
809 prefix
810 exec_prefix
811 PACKAGE_URL
812 PACKAGE_BUGREPORT
813 PACKAGE_STRING
814 PACKAGE_VERSION
815 PACKAGE_TARNAME
816 PACKAGE_NAME
817 PATH_SEPARATOR
818 SHELL'
819 ac_subst_files=''
820 ac_user_opts='
821 enable_option_checking
822 enable_version_specific_runtime_libs
823 enable_generated_files_in_srcdir
824 enable_silent_rules
825 enable_multilib
826 with_toolexeclibdir
827 enable_dependency_tracking
828 enable_werror
829 enable_shared
830 enable_static
831 with_pic
832 enable_fast_install
833 with_gnu_ld
834 enable_libtool_lock
835 enable_maintainer_mode
836 with_cuda_driver
837 with_cuda_driver_include
838 with_cuda_driver_lib
839 with_hsa_runtime
840 with_hsa_runtime_include
841 with_hsa_runtime_lib
842 enable_linux_futex
843 enable_tls
844 enable_symvers
845 enable_cet
846 with_gcc_major_version_only
848 ac_precious_vars='build_alias
849 host_alias
850 target_alias
852 CPPFLAGS
854 FCFLAGS
855 LDFLAGS
856 LIBS'
859 # Initialize some variables set by options.
860 ac_init_help=
861 ac_init_version=false
862 ac_unrecognized_opts=
863 ac_unrecognized_sep=
864 # The variables have the same names as the options, with
865 # dashes changed to underlines.
866 cache_file=/dev/null
867 exec_prefix=NONE
868 no_create=
869 no_recursion=
870 prefix=NONE
871 program_prefix=NONE
872 program_suffix=NONE
873 program_transform_name=s,x,x,
874 silent=
875 site=
876 srcdir=
877 verbose=
878 x_includes=NONE
879 x_libraries=NONE
881 # Installation directory options.
882 # These are left unexpanded so users can "make install exec_prefix=/foo"
883 # and all the variables that are supposed to be based on exec_prefix
884 # by default will actually change.
885 # Use braces instead of parens because sh, perl, etc. also accept them.
886 # (The list follows the same order as the GNU Coding Standards.)
887 bindir='${exec_prefix}/bin'
888 sbindir='${exec_prefix}/sbin'
889 libexecdir='${exec_prefix}/libexec'
890 datarootdir='${prefix}/share'
891 datadir='${datarootdir}'
892 sysconfdir='${prefix}/etc'
893 sharedstatedir='${prefix}/com'
894 localstatedir='${prefix}/var'
895 includedir='${prefix}/include'
896 oldincludedir='/usr/include'
897 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898 infodir='${datarootdir}/info'
899 htmldir='${docdir}'
900 dvidir='${docdir}'
901 pdfdir='${docdir}'
902 psdir='${docdir}'
903 libdir='${exec_prefix}/lib'
904 localedir='${datarootdir}/locale'
905 mandir='${datarootdir}/man'
907 ac_prev=
908 ac_dashdash=
909 for ac_option
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
914 ac_prev=
915 continue
918 case $ac_option in
919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *=) ac_optarg= ;;
921 *) ac_optarg=yes ;;
922 esac
924 # Accept the important Cygnus configure options, so we can diagnose typos.
926 case $ac_dashdash$ac_option in
928 ac_dashdash=yes ;;
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 ac_prev=bindir ;;
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 bindir=$ac_optarg ;;
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
947 --config-cache | -C)
948 cache_file=config.cache ;;
950 -datadir | --datadir | --datadi | --datad)
951 ac_prev=datadir ;;
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
971 "enable_$ac_useropt"
972 "*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
997 "enable_$ac_useropt"
998 "*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1015 with_gas=yes ;;
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 ac_prev=htmldir ;;
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 | --ht=*)
1033 htmldir=$ac_optarg ;;
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 ac_prev=infodir ;;
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1047 -libdir | --libdir | --libdi | --libd)
1048 ac_prev=libdir ;;
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 ac_prev=mandir ;;
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1078 with_fp=no ;;
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1082 no_create=yes ;;
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 no_recursion=yes ;;
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 ac_prev=prefix ;;
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 ac_prev=pdfdir ;;
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1138 -psdir | --psdir | --psdi | --psd | --ps)
1139 ac_prev=psdir ;;
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 psdir=$ac_optarg ;;
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1145 silent=yes ;;
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1201 "with_$ac_useropt"
1202 "*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1217 "with_$ac_useropt"
1218 "*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243 Try \`$0 --help' for more information"
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 esac
1265 done
1267 if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1272 if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1280 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299 done
1301 # There might be people who depend on the old broken behavior: `$host'
1302 # used to hold the argument of --host etc.
1303 # FIXME: To remove some day.
1304 build=$build_alias
1305 host=$host_alias
1306 target=$target_alias
1308 # FIXME: To remove some day.
1309 if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1317 ac_tool_prefix=
1318 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320 test "$silent" = yes && exec 6>/dev/null
1323 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324 ac_ls_di=`ls -di .` &&
1325 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1331 # Find the source files, if location was not specified.
1332 if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340 $as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1349 /^X\(\/\/\)$/{
1350 s//\1/
1353 /^X\(\/\).*/{
1354 s//\1/
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1362 else
1363 ac_srcdir_defaulted=no
1365 if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373 # When building in place, set srcdir=.
1374 if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1377 # Remove unnecessary trailing slashes from srcdir.
1378 # Double slashes in file names in object file debugging info
1379 # mess up M-x gdb in Emacs.
1380 case $srcdir in
1381 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382 esac
1383 for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388 done
1391 # Report the --help message.
1393 if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1399 Usage: $0 [OPTION]... [VAR=VALUE]...
1401 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402 VAR=VALUE. See below for descriptions of some of the useful variables.
1404 Defaults for the options are specified in brackets.
1406 Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417 Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1423 By default, \`make install' will install all the files in
1424 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426 for instance \`--prefix=\$HOME'.
1428 For better control, use the options below.
1430 Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450 _ACEOF
1452 cat <<\_ACEOF
1454 Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459 System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462 --target=TARGET configure for building compilers for TARGET [HOST]
1463 _ACEOF
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1469 esac
1470 cat <<\_ACEOF
1472 Optional Features:
1473 --disable-option-checking ignore unrecognized --enable/--with options
1474 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1475 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1476 --enable-version-specific-runtime-libs
1477 Specify that runtime libraries should be installed
1478 in a compiler-specific directory [default=no]
1479 --enable-generated-files-in-srcdir
1480 put copies of generated files in source dir intended
1481 for creating source tarballs for users without
1482 texinfo bison or flex. [default=no]
1483 --enable-silent-rules less verbose build output (undo: "make V=1")
1484 --disable-silent-rules verbose build output (undo: "make V=0")
1485 --enable-multilib build many library versions (default)
1486 --enable-dependency-tracking
1487 do not reject slow dependency extractors
1488 --disable-dependency-tracking
1489 speeds up one-time build
1490 --disable-werror disable building with -Werror
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
1496 --enable-maintainer-mode
1497 enable make rules and dependencies not useful (and
1498 sometimes confusing) to the casual installer
1499 --enable-linux-futex use the Linux futex system call [default=default]
1500 --enable-tls Use thread-local storage [default=yes]
1501 --enable-symvers=STYLE enables symbol versioning of the shared library
1502 [default=yes]
1503 --enable-cet enable Intel CET in target libraries [default=auto]
1505 Optional Packages:
1506 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1507 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1508 --with-toolexeclibdir=DIR
1509 install libraries built with a cross compiler within
1511 --with-pic try to use only PIC/non-PIC objects [default=use
1512 both]
1513 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1514 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1515 package. Equivalent to
1516 --with-cuda-driver-include=PATH/include plus
1517 --with-cuda-driver-lib=PATH/lib
1518 --with-cuda-driver-include=PATH
1519 specify directory for installed CUDA driver include
1520 files
1521 --with-cuda-driver-lib=PATH
1522 specify directory for the installed CUDA driver
1523 library
1524 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1525 package. Equivalent to
1526 --with-hsa-runtime-include=PATH/include plus
1527 --with-hsa-runtime-lib=PATH/lib
1528 --with-hsa-runtime-include=PATH
1529 specify directory for installed HSA run-time include
1530 files
1531 --with-hsa-runtime-lib=PATH
1532 specify directory for the installed HSA run-time
1533 library
1534 --with-gcc-major-version-only
1535 use only GCC major number in filesystem paths
1537 Some influential environment variables:
1538 CC C compiler command
1539 CFLAGS C compiler flags
1540 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1541 nonstandard directory <lib dir>
1542 LIBS libraries to pass to the linker, e.g. -l<library>
1543 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1544 you have headers in a nonstandard directory <include dir>
1545 CPP C preprocessor
1546 FC Fortran compiler command
1547 FCFLAGS Fortran compiler flags
1549 Use these variables to override the choices made by `configure' or to help
1550 it to find libraries and programs with nonstandard names/locations.
1552 Report bugs to the package provider.
1553 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1554 General help using GNU software: <http://www.gnu.org/gethelp/>.
1555 _ACEOF
1556 ac_status=$?
1559 if test "$ac_init_help" = "recursive"; then
1560 # If there are subdirs, report their specific --help.
1561 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1562 test -d "$ac_dir" ||
1563 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1564 continue
1565 ac_builddir=.
1567 case "$ac_dir" in
1568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1571 # A ".." for each directory in $ac_dir_suffix.
1572 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1573 case $ac_top_builddir_sub in
1574 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1576 esac ;;
1577 esac
1578 ac_abs_top_builddir=$ac_pwd
1579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1580 # for backward compatibility:
1581 ac_top_builddir=$ac_top_build_prefix
1583 case $srcdir in
1584 .) # We are building in place.
1585 ac_srcdir=.
1586 ac_top_srcdir=$ac_top_builddir_sub
1587 ac_abs_top_srcdir=$ac_pwd ;;
1588 [\\/]* | ?:[\\/]* ) # Absolute name.
1589 ac_srcdir=$srcdir$ac_dir_suffix;
1590 ac_top_srcdir=$srcdir
1591 ac_abs_top_srcdir=$srcdir ;;
1592 *) # Relative name.
1593 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1594 ac_top_srcdir=$ac_top_build_prefix$srcdir
1595 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1596 esac
1597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599 cd "$ac_dir" || { ac_status=$?; continue; }
1600 # Check for guested configure.
1601 if test -f "$ac_srcdir/configure.gnu"; then
1602 echo &&
1603 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1604 elif test -f "$ac_srcdir/configure"; then
1605 echo &&
1606 $SHELL "$ac_srcdir/configure" --help=recursive
1607 else
1608 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1609 fi || ac_status=$?
1610 cd "$ac_pwd" || { ac_status=$?; break; }
1611 done
1614 test -n "$ac_init_help" && exit $ac_status
1615 if $ac_init_version; then
1616 cat <<\_ACEOF
1617 GNU Offloading and Multi Processing Runtime Library configure 1.0
1618 generated by GNU Autoconf 2.69
1620 Copyright (C) 2012 Free Software Foundation, Inc.
1621 This configure script is free software; the Free Software Foundation
1622 gives unlimited permission to copy, distribute and modify it.
1623 _ACEOF
1624 exit
1627 ## ------------------------ ##
1628 ## Autoconf initialization. ##
1629 ## ------------------------ ##
1631 # ac_fn_c_try_compile LINENO
1632 # --------------------------
1633 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1634 ac_fn_c_try_compile ()
1636 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1637 rm -f conftest.$ac_objext
1638 if { { ac_try="$ac_compile"
1639 case "(($ac_try" in
1640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1641 *) ac_try_echo=$ac_try;;
1642 esac
1643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1644 $as_echo "$ac_try_echo"; } >&5
1645 (eval "$ac_compile") 2>conftest.err
1646 ac_status=$?
1647 if test -s conftest.err; then
1648 grep -v '^ *+' conftest.err >conftest.er1
1649 cat conftest.er1 >&5
1650 mv -f conftest.er1 conftest.err
1652 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1653 test $ac_status = 0; } && {
1654 test -z "$ac_c_werror_flag" ||
1655 test ! -s conftest.err
1656 } && test -s conftest.$ac_objext; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1662 ac_retval=1
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1665 as_fn_set_status $ac_retval
1667 } # ac_fn_c_try_compile
1669 # ac_fn_c_try_link LINENO
1670 # -----------------------
1671 # Try to link conftest.$ac_ext, and return whether this succeeded.
1672 ac_fn_c_try_link ()
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 rm -f conftest.$ac_objext conftest$ac_exeext
1676 if { { ac_try="$ac_link"
1677 case "(($ac_try" in
1678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679 *) ac_try_echo=$ac_try;;
1680 esac
1681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682 $as_echo "$ac_try_echo"; } >&5
1683 (eval "$ac_link") 2>conftest.err
1684 ac_status=$?
1685 if test -s conftest.err; then
1686 grep -v '^ *+' conftest.err >conftest.er1
1687 cat conftest.er1 >&5
1688 mv -f conftest.er1 conftest.err
1690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1691 test $ac_status = 0; } && {
1692 test -z "$ac_c_werror_flag" ||
1693 test ! -s conftest.err
1694 } && test -s conftest$ac_exeext && {
1695 test "$cross_compiling" = yes ||
1696 test -x conftest$ac_exeext
1697 }; then :
1698 ac_retval=0
1699 else
1700 $as_echo "$as_me: failed program was:" >&5
1701 sed 's/^/| /' conftest.$ac_ext >&5
1703 ac_retval=1
1705 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1706 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1707 # interfere with the next link command; also delete a directory that is
1708 # left behind by Apple's compiler. We do this before executing the actions.
1709 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1713 } # ac_fn_c_try_link
1715 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1716 # -------------------------------------------------------
1717 # Tests whether HEADER exists and can be compiled using the include files in
1718 # INCLUDES, setting the cache variable VAR accordingly.
1719 ac_fn_c_check_header_compile ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1723 $as_echo_n "checking for $2... " >&6; }
1724 if eval \${$3+:} false; then :
1725 $as_echo_n "(cached) " >&6
1726 else
1727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1728 /* end confdefs.h. */
1730 #include <$2>
1731 _ACEOF
1732 if ac_fn_c_try_compile "$LINENO"; then :
1733 eval "$3=yes"
1734 else
1735 eval "$3=no"
1737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 eval ac_res=\$$3
1740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1741 $as_echo "$ac_res" >&6; }
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 } # ac_fn_c_check_header_compile
1746 # ac_fn_c_try_cpp LINENO
1747 # ----------------------
1748 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1749 ac_fn_c_try_cpp ()
1751 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752 if { { ac_try="$ac_cpp conftest.$ac_ext"
1753 case "(($ac_try" in
1754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1755 *) ac_try_echo=$ac_try;;
1756 esac
1757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1758 $as_echo "$ac_try_echo"; } >&5
1759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1760 ac_status=$?
1761 if test -s conftest.err; then
1762 grep -v '^ *+' conftest.err >conftest.er1
1763 cat conftest.er1 >&5
1764 mv -f conftest.er1 conftest.err
1766 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1767 test $ac_status = 0; } > conftest.i && {
1768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1769 test ! -s conftest.err
1770 }; then :
1771 ac_retval=0
1772 else
1773 $as_echo "$as_me: failed program was:" >&5
1774 sed 's/^/| /' conftest.$ac_ext >&5
1776 ac_retval=1
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1779 as_fn_set_status $ac_retval
1781 } # ac_fn_c_try_cpp
1783 # ac_fn_c_try_run LINENO
1784 # ----------------------
1785 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1786 # that executables *can* be run.
1787 ac_fn_c_try_run ()
1789 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1790 if { { ac_try="$ac_link"
1791 case "(($ac_try" in
1792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1793 *) ac_try_echo=$ac_try;;
1794 esac
1795 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1796 $as_echo "$ac_try_echo"; } >&5
1797 (eval "$ac_link") 2>&5
1798 ac_status=$?
1799 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1800 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1801 { { case "(($ac_try" in
1802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1803 *) ac_try_echo=$ac_try;;
1804 esac
1805 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1806 $as_echo "$ac_try_echo"; } >&5
1807 (eval "$ac_try") 2>&5
1808 ac_status=$?
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; }; }; then :
1811 ac_retval=0
1812 else
1813 $as_echo "$as_me: program exited with status $ac_status" >&5
1814 $as_echo "$as_me: failed program was:" >&5
1815 sed 's/^/| /' conftest.$ac_ext >&5
1817 ac_retval=$ac_status
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_run
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_fc_try_compile LINENO
1893 # ---------------------------
1894 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1895 ac_fn_fc_try_compile ()
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 rm -f conftest.$ac_objext
1899 if { { ac_try="$ac_compile"
1900 case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903 esac
1904 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905 $as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_compile") 2>conftest.err
1907 ac_status=$?
1908 if test -s conftest.err; then
1909 grep -v '^ *+' conftest.err >conftest.er1
1910 cat conftest.er1 >&5
1911 mv -f conftest.er1 conftest.err
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; } && {
1915 test -z "$ac_fc_werror_flag" ||
1916 test ! -s conftest.err
1917 } && test -s conftest.$ac_objext; then :
1918 ac_retval=0
1919 else
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1923 ac_retval=1
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1928 } # ac_fn_fc_try_compile
1930 # ac_fn_fc_try_link LINENO
1931 # ------------------------
1932 # Try to link conftest.$ac_ext, and return whether this succeeded.
1933 ac_fn_fc_try_link ()
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 rm -f conftest.$ac_objext conftest$ac_exeext
1937 if { { ac_try="$ac_link"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_link") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } && {
1953 test -z "$ac_fc_werror_flag" ||
1954 test ! -s conftest.err
1955 } && test -s conftest$ac_exeext && {
1956 test "$cross_compiling" = yes ||
1957 test -x conftest$ac_exeext
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=1
1966 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1967 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1968 # interfere with the next link command; also delete a directory that is
1969 # left behind by Apple's compiler. We do this before executing the actions.
1970 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1971 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1972 as_fn_set_status $ac_retval
1974 } # ac_fn_fc_try_link
1976 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1977 # -------------------------------------------------------
1978 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1979 # the include files in INCLUDES and setting the cache variable VAR
1980 # accordingly.
1981 ac_fn_c_check_header_mongrel ()
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 if eval \${$3+:} false; then :
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1986 $as_echo_n "checking for $2... " >&6; }
1987 if eval \${$3+:} false; then :
1988 $as_echo_n "(cached) " >&6
1990 eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992 $as_echo "$ac_res" >&6; }
1993 else
1994 # Is the header compilable?
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1996 $as_echo_n "checking $2 usability... " >&6; }
1997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h. */
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003 ac_header_compiler=yes
2004 else
2005 ac_header_compiler=no
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2009 $as_echo "$ac_header_compiler" >&6; }
2011 # Is the header present?
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2013 $as_echo_n "checking $2 presence... " >&6; }
2014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2015 /* end confdefs.h. */
2016 #include <$2>
2017 _ACEOF
2018 if ac_fn_c_try_cpp "$LINENO"; then :
2019 ac_header_preproc=yes
2020 else
2021 ac_header_preproc=no
2023 rm -f conftest.err conftest.i conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2025 $as_echo "$ac_header_preproc" >&6; }
2027 # So? What about this header?
2028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 yes:no: )
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2031 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2033 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 no:yes:* )
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2037 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2039 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2041 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2043 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2045 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 esac
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2049 $as_echo_n "checking for $2... " >&6; }
2050 if eval \${$3+:} false; then :
2051 $as_echo_n "(cached) " >&6
2052 else
2053 eval "$3=\$ac_header_compiler"
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061 } # ac_fn_c_check_header_mongrel
2063 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2064 # --------------------------------------------
2065 # Tries to find the compile-time value of EXPR in a program that includes
2066 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2067 # computed
2068 ac_fn_c_compute_int ()
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 if test "$cross_compiling" = yes; then
2072 # Depending upon the size, compute the lo and hi bounds.
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 static int test_array [1 - 2 * !(($2) >= 0)];
2080 test_array [0] = 0;
2081 return test_array [0];
2084 return 0;
2086 _ACEOF
2087 if ac_fn_c_try_compile "$LINENO"; then :
2088 ac_lo=0 ac_mid=0
2089 while :; do
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2094 main ()
2096 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2097 test_array [0] = 0;
2098 return test_array [0];
2101 return 0;
2103 _ACEOF
2104 if ac_fn_c_try_compile "$LINENO"; then :
2105 ac_hi=$ac_mid; break
2106 else
2107 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2108 if test $ac_lo -le $ac_mid; then
2109 ac_lo= ac_hi=
2110 break
2112 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 done
2116 else
2117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2118 /* end confdefs.h. */
2121 main ()
2123 static int test_array [1 - 2 * !(($2) < 0)];
2124 test_array [0] = 0;
2125 return test_array [0];
2128 return 0;
2130 _ACEOF
2131 if ac_fn_c_try_compile "$LINENO"; then :
2132 ac_hi=-1 ac_mid=-1
2133 while :; do
2134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2135 /* end confdefs.h. */
2138 main ()
2140 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2141 test_array [0] = 0;
2142 return test_array [0];
2145 return 0;
2147 _ACEOF
2148 if ac_fn_c_try_compile "$LINENO"; then :
2149 ac_lo=$ac_mid; break
2150 else
2151 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2152 if test $ac_mid -le $ac_hi; then
2153 ac_lo= ac_hi=
2154 break
2156 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 done
2160 else
2161 ac_lo= ac_hi=
2163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2166 # Binary search between lo and hi bounds.
2167 while test "x$ac_lo" != "x$ac_hi"; do
2168 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h. */
2173 main ()
2175 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2176 test_array [0] = 0;
2177 return test_array [0];
2180 return 0;
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184 ac_hi=$ac_mid
2185 else
2186 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2189 done
2190 case $ac_lo in #((
2191 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2192 '') ac_retval=1 ;;
2193 esac
2194 else
2195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2196 /* end confdefs.h. */
2198 static long int longval () { return $2; }
2199 static unsigned long int ulongval () { return $2; }
2200 #include <stdio.h>
2201 #include <stdlib.h>
2203 main ()
2206 FILE *f = fopen ("conftest.val", "w");
2207 if (! f)
2208 return 1;
2209 if (($2) < 0)
2211 long int i = longval ();
2212 if (i != ($2))
2213 return 1;
2214 fprintf (f, "%ld", i);
2216 else
2218 unsigned long int i = ulongval ();
2219 if (i != ($2))
2220 return 1;
2221 fprintf (f, "%lu", i);
2223 /* Do not output a trailing newline, as this causes \r\n confusion
2224 on some platforms. */
2225 return ferror (f) || fclose (f) != 0;
2228 return 0;
2230 _ACEOF
2231 if ac_fn_c_try_run "$LINENO"; then :
2232 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2233 else
2234 ac_retval=1
2236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2237 conftest.$ac_objext conftest.beam conftest.$ac_ext
2238 rm -f conftest.val
2241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2242 as_fn_set_status $ac_retval
2244 } # ac_fn_c_compute_int
2246 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2247 # -------------------------------------------
2248 # Tests whether TYPE exists after having included INCLUDES, setting cache
2249 # variable VAR accordingly.
2250 ac_fn_c_check_type ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2254 $as_echo_n "checking for $2... " >&6; }
2255 if eval \${$3+:} false; then :
2256 $as_echo_n "(cached) " >&6
2257 else
2258 eval "$3=no"
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2263 main ()
2265 if (sizeof ($2))
2266 return 0;
2268 return 0;
2270 _ACEOF
2271 if ac_fn_c_try_compile "$LINENO"; then :
2272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2273 /* end confdefs.h. */
2276 main ()
2278 if (sizeof (($2)))
2279 return 0;
2281 return 0;
2283 _ACEOF
2284 if ac_fn_c_try_compile "$LINENO"; then :
2286 else
2287 eval "$3=yes"
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2293 eval ac_res=\$$3
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2295 $as_echo "$ac_res" >&6; }
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2298 } # ac_fn_c_check_type
2299 cat >config.log <<_ACEOF
2300 This file contains any messages produced by compilers while
2301 running configure, to aid debugging if configure makes a mistake.
2303 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2304 generated by GNU Autoconf 2.69. Invocation command line was
2306 $ $0 $@
2308 _ACEOF
2309 exec 5>>config.log
2311 cat <<_ASUNAME
2312 ## --------- ##
2313 ## Platform. ##
2314 ## --------- ##
2316 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2317 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2318 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2319 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2320 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2322 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2323 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2325 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2326 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2327 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2328 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2329 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2330 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2331 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2333 _ASUNAME
2335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2336 for as_dir in $PATH
2338 IFS=$as_save_IFS
2339 test -z "$as_dir" && as_dir=.
2340 $as_echo "PATH: $as_dir"
2341 done
2342 IFS=$as_save_IFS
2344 } >&5
2346 cat >&5 <<_ACEOF
2349 ## ----------- ##
2350 ## Core tests. ##
2351 ## ----------- ##
2353 _ACEOF
2356 # Keep a trace of the command line.
2357 # Strip out --no-create and --no-recursion so they do not pile up.
2358 # Strip out --silent because we don't want to record it for future runs.
2359 # Also quote any args containing shell meta-characters.
2360 # Make two passes to allow for proper duplicate-argument suppression.
2361 ac_configure_args=
2362 ac_configure_args0=
2363 ac_configure_args1=
2364 ac_must_keep_next=false
2365 for ac_pass in 1 2
2367 for ac_arg
2369 case $ac_arg in
2370 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2371 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2372 | -silent | --silent | --silen | --sile | --sil)
2373 continue ;;
2374 *\'*)
2375 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2376 esac
2377 case $ac_pass in
2378 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2380 as_fn_append ac_configure_args1 " '$ac_arg'"
2381 if test $ac_must_keep_next = true; then
2382 ac_must_keep_next=false # Got value, back to normal.
2383 else
2384 case $ac_arg in
2385 *=* | --config-cache | -C | -disable-* | --disable-* \
2386 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2387 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2388 | -with-* | --with-* | -without-* | --without-* | --x)
2389 case "$ac_configure_args0 " in
2390 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2391 esac
2393 -* ) ac_must_keep_next=true ;;
2394 esac
2396 as_fn_append ac_configure_args " '$ac_arg'"
2398 esac
2399 done
2400 done
2401 { ac_configure_args0=; unset ac_configure_args0;}
2402 { ac_configure_args1=; unset ac_configure_args1;}
2404 # When interrupted or exit'd, cleanup temporary files, and complete
2405 # config.log. We remove comments because anyway the quotes in there
2406 # would cause problems or look ugly.
2407 # WARNING: Use '\'' to represent an apostrophe within the trap.
2408 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2409 trap 'exit_status=$?
2410 # Save into config.log some information that might help in debugging.
2412 echo
2414 $as_echo "## ---------------- ##
2415 ## Cache variables. ##
2416 ## ---------------- ##"
2417 echo
2418 # The following way of writing the cache mishandles newlines in values,
2420 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2421 eval ac_val=\$$ac_var
2422 case $ac_val in #(
2423 *${as_nl}*)
2424 case $ac_var in #(
2425 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2426 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2427 esac
2428 case $ac_var in #(
2429 _ | IFS | as_nl) ;; #(
2430 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2431 *) { eval $ac_var=; unset $ac_var;} ;;
2432 esac ;;
2433 esac
2434 done
2435 (set) 2>&1 |
2436 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2437 *${as_nl}ac_space=\ *)
2438 sed -n \
2439 "s/'\''/'\''\\\\'\'''\''/g;
2440 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2441 ;; #(
2443 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2445 esac |
2446 sort
2448 echo
2450 $as_echo "## ----------------- ##
2451 ## Output variables. ##
2452 ## ----------------- ##"
2453 echo
2454 for ac_var in $ac_subst_vars
2456 eval ac_val=\$$ac_var
2457 case $ac_val in
2458 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2459 esac
2460 $as_echo "$ac_var='\''$ac_val'\''"
2461 done | sort
2462 echo
2464 if test -n "$ac_subst_files"; then
2465 $as_echo "## ------------------- ##
2466 ## File substitutions. ##
2467 ## ------------------- ##"
2468 echo
2469 for ac_var in $ac_subst_files
2471 eval ac_val=\$$ac_var
2472 case $ac_val in
2473 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2474 esac
2475 $as_echo "$ac_var='\''$ac_val'\''"
2476 done | sort
2477 echo
2480 if test -s confdefs.h; then
2481 $as_echo "## ----------- ##
2482 ## confdefs.h. ##
2483 ## ----------- ##"
2484 echo
2485 cat confdefs.h
2486 echo
2488 test "$ac_signal" != 0 &&
2489 $as_echo "$as_me: caught signal $ac_signal"
2490 $as_echo "$as_me: exit $exit_status"
2491 } >&5
2492 rm -f core *.core core.conftest.* &&
2493 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2494 exit $exit_status
2496 for ac_signal in 1 2 13 15; do
2497 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2498 done
2499 ac_signal=0
2501 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2502 rm -f -r conftest* confdefs.h
2504 $as_echo "/* confdefs.h */" > confdefs.h
2506 # Predefined preprocessor variables.
2508 cat >>confdefs.h <<_ACEOF
2509 #define PACKAGE_NAME "$PACKAGE_NAME"
2510 _ACEOF
2512 cat >>confdefs.h <<_ACEOF
2513 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2514 _ACEOF
2516 cat >>confdefs.h <<_ACEOF
2517 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2518 _ACEOF
2520 cat >>confdefs.h <<_ACEOF
2521 #define PACKAGE_STRING "$PACKAGE_STRING"
2522 _ACEOF
2524 cat >>confdefs.h <<_ACEOF
2525 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2526 _ACEOF
2528 cat >>confdefs.h <<_ACEOF
2529 #define PACKAGE_URL "$PACKAGE_URL"
2530 _ACEOF
2533 # Let the site file select an alternate cache file if it wants to.
2534 # Prefer an explicitly selected file to automatically selected ones.
2535 ac_site_file1=NONE
2536 ac_site_file2=NONE
2537 if test -n "$CONFIG_SITE"; then
2538 # We do not want a PATH search for config.site.
2539 case $CONFIG_SITE in #((
2540 -*) ac_site_file1=./$CONFIG_SITE;;
2541 */*) ac_site_file1=$CONFIG_SITE;;
2542 *) ac_site_file1=./$CONFIG_SITE;;
2543 esac
2544 elif test "x$prefix" != xNONE; then
2545 ac_site_file1=$prefix/share/config.site
2546 ac_site_file2=$prefix/etc/config.site
2547 else
2548 ac_site_file1=$ac_default_prefix/share/config.site
2549 ac_site_file2=$ac_default_prefix/etc/config.site
2551 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2553 test "x$ac_site_file" = xNONE && continue
2554 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2556 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2557 sed 's/^/| /' "$ac_site_file" >&5
2558 . "$ac_site_file" \
2559 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2560 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2561 as_fn_error $? "failed to load site script $ac_site_file
2562 See \`config.log' for more details" "$LINENO" 5; }
2564 done
2566 if test -r "$cache_file"; then
2567 # Some versions of bash will fail to source /dev/null (special files
2568 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2569 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2571 $as_echo "$as_me: loading cache $cache_file" >&6;}
2572 case $cache_file in
2573 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2574 *) . "./$cache_file";;
2575 esac
2577 else
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2579 $as_echo "$as_me: creating cache $cache_file" >&6;}
2580 >$cache_file
2583 as_fn_append ac_header_list " unistd.h"
2584 as_fn_append ac_func_list " secure_getenv"
2585 as_fn_append ac_func_list " __secure_getenv"
2586 as_fn_append ac_func_list " getuid"
2587 as_fn_append ac_func_list " geteuid"
2588 as_fn_append ac_func_list " getgid"
2589 as_fn_append ac_func_list " getegid"
2590 # Check that the precious variables saved in the cache have kept the same
2591 # value.
2592 ac_cache_corrupted=false
2593 for ac_var in $ac_precious_vars; do
2594 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2595 eval ac_new_set=\$ac_env_${ac_var}_set
2596 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2597 eval ac_new_val=\$ac_env_${ac_var}_value
2598 case $ac_old_set,$ac_new_set in
2599 set,)
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2601 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2602 ac_cache_corrupted=: ;;
2603 ,set)
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2605 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2606 ac_cache_corrupted=: ;;
2607 ,);;
2609 if test "x$ac_old_val" != "x$ac_new_val"; then
2610 # differences in whitespace do not lead to failure.
2611 ac_old_val_w=`echo x $ac_old_val`
2612 ac_new_val_w=`echo x $ac_new_val`
2613 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2615 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2616 ac_cache_corrupted=:
2617 else
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2619 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2620 eval $ac_var=\$ac_old_val
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2623 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2625 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2626 fi;;
2627 esac
2628 # Pass precious variables to config.status.
2629 if test "$ac_new_set" = set; then
2630 case $ac_new_val in
2631 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2632 *) ac_arg=$ac_var=$ac_new_val ;;
2633 esac
2634 case " $ac_configure_args " in
2635 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2636 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2637 esac
2639 done
2640 if $ac_cache_corrupted; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2642 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2644 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2645 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647 ## -------------------- ##
2648 ## Main body of script. ##
2649 ## -------------------- ##
2651 ac_ext=c
2652 ac_cpp='$CPP $CPPFLAGS'
2653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2661 ac_config_headers="$ac_config_headers config.h"
2664 # -------
2665 # Options
2666 # -------
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2669 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2670 # Check whether --enable-version-specific-runtime-libs was given.
2671 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2672 enableval=$enable_version_specific_runtime_libs;
2673 case "$enableval" in
2674 yes|no) ;;
2675 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2676 esac
2678 else
2679 enable_version_specific_runtime_libs=no
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2684 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2686 # We would like our source tree to be readonly. However when releases or
2687 # pre-releases are generated, the flex/bison generated files as well as the
2688 # various formats of manuals need to be included along with the rest of the
2689 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2690 # just that.
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2692 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2693 # Check whether --enable-generated-files-in-srcdir was given.
2694 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2695 enableval=$enable_generated_files_in_srcdir;
2696 case "$enableval" in
2697 yes|no) ;;
2698 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2699 esac
2701 else
2702 enable_generated_files_in_srcdir=no
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2707 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2708 if test "$enable_generated_files_in_srcdir" = yes; then
2709 GENINSRC_TRUE=
2710 GENINSRC_FALSE='#'
2711 else
2712 GENINSRC_TRUE='#'
2713 GENINSRC_FALSE=
2718 # -------
2719 # -------
2721 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2723 # You will slowly go insane if you do not grok the following fact: when
2724 # building this library, the top-level /target/ becomes the library's /host/.
2726 # configure then causes --target to default to --host, exactly like any
2727 # other package using autoconf. Therefore, 'target' and 'host' will
2728 # always be the same. This makes sense both for native and cross compilers
2729 # just think about it for a little while. :-)
2731 # Also, if this library is being configured as part of a cross compiler, the
2732 # top-level configure script will pass the "real" host as $with_cross_host.
2734 # Do not delete or change the following two lines. For why, see
2735 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2736 ac_aux_dir=
2737 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2738 if test -f "$ac_dir/install-sh"; then
2739 ac_aux_dir=$ac_dir
2740 ac_install_sh="$ac_aux_dir/install-sh -c"
2741 break
2742 elif test -f "$ac_dir/install.sh"; then
2743 ac_aux_dir=$ac_dir
2744 ac_install_sh="$ac_aux_dir/install.sh -c"
2745 break
2746 elif test -f "$ac_dir/shtool"; then
2747 ac_aux_dir=$ac_dir
2748 ac_install_sh="$ac_aux_dir/shtool install -c"
2749 break
2751 done
2752 if test -z "$ac_aux_dir"; then
2753 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2756 # These three variables are undocumented and unsupported,
2757 # and are intended to be withdrawn in a future Autoconf release.
2758 # They can cause serious problems if a builder's source tree is in a directory
2759 # whose full name contains unusual characters.
2760 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2761 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2762 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2765 # Make sure we can run config.sub.
2766 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2770 $as_echo_n "checking build system type... " >&6; }
2771 if ${ac_cv_build+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 ac_build_alias=$build_alias
2775 test "x$ac_build_alias" = x &&
2776 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777 test "x$ac_build_alias" = x &&
2778 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2779 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2780 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2784 $as_echo "$ac_cv_build" >&6; }
2785 case $ac_cv_build in
2786 *-*-*) ;;
2787 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788 esac
2789 build=$ac_cv_build
2790 ac_save_IFS=$IFS; IFS='-'
2791 set x $ac_cv_build
2792 shift
2793 build_cpu=$1
2794 build_vendor=$2
2795 shift; shift
2796 # Remember, the first character of IFS is used to create $*,
2797 # except with old shells:
2798 build_os=$*
2799 IFS=$ac_save_IFS
2800 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2804 $as_echo_n "checking host system type... " >&6; }
2805 if ${ac_cv_host+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test "x$host_alias" = x; then
2809 ac_cv_host=$ac_cv_build
2810 else
2811 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2812 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2817 $as_echo "$ac_cv_host" >&6; }
2818 case $ac_cv_host in
2819 *-*-*) ;;
2820 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821 esac
2822 host=$ac_cv_host
2823 ac_save_IFS=$IFS; IFS='-'
2824 set x $ac_cv_host
2825 shift
2826 host_cpu=$1
2827 host_vendor=$2
2828 shift; shift
2829 # Remember, the first character of IFS is used to create $*,
2830 # except with old shells:
2831 host_os=$*
2832 IFS=$ac_save_IFS
2833 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2837 $as_echo_n "checking target system type... " >&6; }
2838 if ${ac_cv_target+:} false; then :
2839 $as_echo_n "(cached) " >&6
2840 else
2841 if test "x$target_alias" = x; then
2842 ac_cv_target=$ac_cv_host
2843 else
2844 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2845 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2850 $as_echo "$ac_cv_target" >&6; }
2851 case $ac_cv_target in
2852 *-*-*) ;;
2853 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2854 esac
2855 target=$ac_cv_target
2856 ac_save_IFS=$IFS; IFS='-'
2857 set x $ac_cv_target
2858 shift
2859 target_cpu=$1
2860 target_vendor=$2
2861 shift; shift
2862 # Remember, the first character of IFS is used to create $*,
2863 # except with old shells:
2864 target_os=$*
2865 IFS=$ac_save_IFS
2866 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2869 # The aliases save the names the user supplied, while $host etc.
2870 # will get canonicalized.
2871 test -n "$target_alias" &&
2872 test "$program_prefix$program_suffix$program_transform_name" = \
2873 NONENONEs,x,x, &&
2874 program_prefix=${target_alias}-
2876 target_alias=${target_alias-$host_alias}
2878 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2879 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2880 # 1.9.0: minimum required version
2881 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2882 # of other PACKAGE_* variables will, however, and there's nothing
2883 # we can do about that; they come from AC_INIT).
2884 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2885 # file in the top srcdir, etc, etc), so stop complaining.
2886 # no-dist: we don't want 'dist' and related rules.
2887 # -Wall: turns on all automake warnings...
2888 # -Wno-portability: ...except this one, since GNU make is required.
2889 # -Wno-override: ... and this one, since we do want this in testsuite.
2890 am__api_version='1.15'
2892 # Find a good install program. We prefer a C program (faster),
2893 # so one script is as good as another. But avoid the broken or
2894 # incompatible versions:
2895 # SysV /etc/install, /usr/sbin/install
2896 # SunOS /usr/etc/install
2897 # IRIX /sbin/install
2898 # AIX /bin/install
2899 # AmigaOS /C/install, which installs bootblocks on floppy discs
2900 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2901 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2902 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2903 # OS/2's system install, which has a completely different semantic
2904 # ./install, which can be erroneously created by make from ./install.sh.
2905 # Reject install programs that cannot install multiple files.
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2907 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2908 if test -z "$INSTALL"; then
2909 if ${ac_cv_path_install+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 # Account for people who put trailing slashes in PATH elements.
2918 case $as_dir/ in #((
2919 ./ | .// | /[cC]/* | \
2920 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2921 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2922 /usr/ucb/* ) ;;
2924 # OSF1 and SCO ODT 3.0 have their own names for install.
2925 # Don't use installbsd from OSF since it installs stuff as root
2926 # by default.
2927 for ac_prog in ginstall scoinst install; do
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2930 if test $ac_prog = install &&
2931 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2932 # AIX install. It has an incompatible calling convention.
2934 elif test $ac_prog = install &&
2935 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2936 # program-specific install script used by HP pwplus--don't use.
2938 else
2939 rm -rf conftest.one conftest.two conftest.dir
2940 echo one > conftest.one
2941 echo two > conftest.two
2942 mkdir conftest.dir
2943 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2944 test -s conftest.one && test -s conftest.two &&
2945 test -s conftest.dir/conftest.one &&
2946 test -s conftest.dir/conftest.two
2947 then
2948 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2949 break 3
2953 done
2954 done
2956 esac
2958 done
2959 IFS=$as_save_IFS
2961 rm -rf conftest.one conftest.two conftest.dir
2964 if test "${ac_cv_path_install+set}" = set; then
2965 INSTALL=$ac_cv_path_install
2966 else
2967 # As a last resort, use the slow shell script. Don't cache a
2968 # value for INSTALL within a source directory, because that will
2969 # break other packages using the cache if that directory is
2970 # removed, or if the value is a relative name.
2971 INSTALL=$ac_install_sh
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2975 $as_echo "$INSTALL" >&6; }
2977 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2978 # It thinks the first close brace ends the variable substitution.
2979 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2981 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2983 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2986 $as_echo_n "checking whether build environment is sane... " >&6; }
2987 # Reject unsafe characters in $srcdir or the absolute working directory
2988 # name. Accept space and tab only in the latter.
2989 am_lf='
2991 case `pwd` in
2992 *[\\\"\#\$\&\'\`$am_lf]*)
2993 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2994 esac
2995 case $srcdir in
2996 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2997 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2998 esac
3000 # Do 'set' in a subshell so we don't clobber the current shell's
3001 # arguments. Must try -L first in case configure is actually a
3002 # symlink; some systems play weird games with the mod time of symlinks
3003 # (eg FreeBSD returns the mod time of the symlink's containing
3004 # directory).
3005 if (
3006 am_has_slept=no
3007 for am_try in 1 2; do
3008 echo "timestamp, slept: $am_has_slept" > conftest.file
3009 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3010 if test "$*" = "X"; then
3011 # -L didn't work.
3012 set X `ls -t "$srcdir/configure" conftest.file`
3014 if test "$*" != "X $srcdir/configure conftest.file" \
3015 && test "$*" != "X conftest.file $srcdir/configure"; then
3017 # If neither matched, then we have a broken ls. This can happen
3018 # if, for instance, CONFIG_SHELL is bash and it inherits a
3019 # broken ls alias from the environment. This has actually
3020 # happened. Such a system could not be considered "sane".
3021 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3022 alias in your environment" "$LINENO" 5
3024 if test "$2" = conftest.file || test $am_try -eq 2; then
3025 break
3027 # Just in case.
3028 sleep 1
3029 am_has_slept=yes
3030 done
3031 test "$2" = conftest.file
3033 then
3034 # Ok.
3036 else
3037 as_fn_error $? "newly created file is older than distributed files!
3038 Check your system clock" "$LINENO" 5
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3041 $as_echo "yes" >&6; }
3042 # If we didn't sleep, we still need to ensure time stamps of config.status and
3043 # generated files are strictly newer.
3044 am_sleep_pid=
3045 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3046 ( sleep 1 ) &
3047 am_sleep_pid=$!
3050 rm -f conftest.file
3052 test "$program_prefix" != NONE &&
3053 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3054 # Use a double $ so make ignores it.
3055 test "$program_suffix" != NONE &&
3056 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3057 # Double any \ or $.
3058 # By default was `s,x,x', remove it if useless.
3059 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3060 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3062 # Expand $ac_aux_dir to an absolute path.
3063 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3065 if test x"${MISSING+set}" != xset; then
3066 case $am_aux_dir in
3067 *\ * | *\ *)
3068 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3070 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3071 esac
3073 # Use eval to expand $SHELL
3074 if eval "$MISSING --is-lightweight"; then
3075 am_missing_run="$MISSING "
3076 else
3077 am_missing_run=
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3079 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3082 if test x"${install_sh+set}" != xset; then
3083 case $am_aux_dir in
3084 *\ * | *\ *)
3085 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3087 install_sh="\${SHELL} $am_aux_dir/install-sh"
3088 esac
3091 # Installed binaries are usually stripped using 'strip' when the user
3092 # run "make install-strip". However 'strip' might not be the right
3093 # tool to use in cross-compilation environments, therefore Automake
3094 # will honor the 'STRIP' environment variable to overrule this program.
3095 if test "$cross_compiling" != no; then
3096 if test -n "$ac_tool_prefix"; then
3097 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3098 set dummy ${ac_tool_prefix}strip; ac_word=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if ${ac_cv_prog_STRIP+:} false; then :
3102 $as_echo_n "(cached) " >&6
3103 else
3104 if test -n "$STRIP"; then
3105 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3106 else
3107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3108 for as_dir in $PATH
3110 IFS=$as_save_IFS
3111 test -z "$as_dir" && as_dir=.
3112 for ac_exec_ext in '' $ac_executable_extensions; do
3113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3114 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3116 break 2
3118 done
3119 done
3120 IFS=$as_save_IFS
3124 STRIP=$ac_cv_prog_STRIP
3125 if test -n "$STRIP"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3127 $as_echo "$STRIP" >&6; }
3128 else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130 $as_echo "no" >&6; }
3135 if test -z "$ac_cv_prog_STRIP"; then
3136 ac_ct_STRIP=$STRIP
3137 # Extract the first word of "strip", so it can be a program name with args.
3138 set dummy strip; ac_word=$2
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3140 $as_echo_n "checking for $ac_word... " >&6; }
3141 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 if test -n "$ac_ct_STRIP"; then
3145 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3146 else
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH
3150 IFS=$as_save_IFS
3151 test -z "$as_dir" && as_dir=.
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3154 ac_cv_prog_ac_ct_STRIP="strip"
3155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3156 break 2
3158 done
3159 done
3160 IFS=$as_save_IFS
3164 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3165 if test -n "$ac_ct_STRIP"; then
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3167 $as_echo "$ac_ct_STRIP" >&6; }
3168 else
3169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3170 $as_echo "no" >&6; }
3173 if test "x$ac_ct_STRIP" = x; then
3174 STRIP=":"
3175 else
3176 case $cross_compiling:$ac_tool_warned in
3177 yes:)
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3180 ac_tool_warned=yes ;;
3181 esac
3182 STRIP=$ac_ct_STRIP
3184 else
3185 STRIP="$ac_cv_prog_STRIP"
3189 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3192 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3193 if test -z "$MKDIR_P"; then
3194 if ${ac_cv_path_mkdir+:} false; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3198 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3200 IFS=$as_save_IFS
3201 test -z "$as_dir" && as_dir=.
3202 for ac_prog in mkdir gmkdir; do
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3205 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3206 'mkdir (GNU coreutils) '* | \
3207 'mkdir (coreutils) '* | \
3208 'mkdir (fileutils) '4.1*)
3209 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3210 break 3;;
3211 esac
3212 done
3213 done
3214 done
3215 IFS=$as_save_IFS
3219 test -d ./--version && rmdir ./--version
3220 if test "${ac_cv_path_mkdir+set}" = set; then
3221 MKDIR_P="$ac_cv_path_mkdir -p"
3222 else
3223 # As a last resort, use the slow shell script. Don't cache a
3224 # value for MKDIR_P within a source directory, because that will
3225 # break other packages using the cache if that directory is
3226 # removed, or if the value is a relative name.
3227 MKDIR_P="$ac_install_sh -d"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3231 $as_echo "$MKDIR_P" >&6; }
3233 for ac_prog in gawk mawk nawk awk
3235 # Extract the first word of "$ac_prog", so it can be a program name with args.
3236 set dummy $ac_prog; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_prog_AWK+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 if test -n "$AWK"; then
3243 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3244 else
3245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3246 for as_dir in $PATH
3248 IFS=$as_save_IFS
3249 test -z "$as_dir" && as_dir=.
3250 for ac_exec_ext in '' $ac_executable_extensions; do
3251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3252 ac_cv_prog_AWK="$ac_prog"
3253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3254 break 2
3256 done
3257 done
3258 IFS=$as_save_IFS
3262 AWK=$ac_cv_prog_AWK
3263 if test -n "$AWK"; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3265 $as_echo "$AWK" >&6; }
3266 else
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3272 test -n "$AWK" && break
3273 done
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3276 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3277 set x ${MAKE-make}
3278 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3279 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3280 $as_echo_n "(cached) " >&6
3281 else
3282 cat >conftest.make <<\_ACEOF
3283 SHELL = /bin/sh
3284 all:
3285 @echo '@@@%%%=$(MAKE)=@@@%%%'
3286 _ACEOF
3287 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3288 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3289 *@@@%%%=?*=@@@%%%*)
3290 eval ac_cv_prog_make_${ac_make}_set=yes;;
3292 eval ac_cv_prog_make_${ac_make}_set=no;;
3293 esac
3294 rm -f conftest.make
3296 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3298 $as_echo "yes" >&6; }
3299 SET_MAKE=
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 SET_MAKE="MAKE=${MAKE-make}"
3306 rm -rf .tst 2>/dev/null
3307 mkdir .tst 2>/dev/null
3308 if test -d .tst; then
3309 am__leading_dot=.
3310 else
3311 am__leading_dot=_
3313 rmdir .tst 2>/dev/null
3315 # Check whether --enable-silent-rules was given.
3316 if test "${enable_silent_rules+set}" = set; then :
3317 enableval=$enable_silent_rules;
3320 case $enable_silent_rules in # (((
3321 yes) AM_DEFAULT_VERBOSITY=0;;
3322 no) AM_DEFAULT_VERBOSITY=1;;
3323 *) AM_DEFAULT_VERBOSITY=1;;
3324 esac
3325 am_make=${MAKE-make}
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3327 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3328 if ${am_cv_make_support_nested_variables+:} false; then :
3329 $as_echo_n "(cached) " >&6
3330 else
3331 if $as_echo 'TRUE=$(BAR$(V))
3332 BAR0=false
3333 BAR1=true
3335 am__doit:
3336 @$(TRUE)
3337 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3338 am_cv_make_support_nested_variables=yes
3339 else
3340 am_cv_make_support_nested_variables=no
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3344 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3345 if test $am_cv_make_support_nested_variables = yes; then
3346 AM_V='$(V)'
3347 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3348 else
3349 AM_V=$AM_DEFAULT_VERBOSITY
3350 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3352 AM_BACKSLASH='\'
3354 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3355 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3356 # is not polluted with repeated "-I."
3357 am__isrc=' -I$(srcdir)'
3358 # test to see if srcdir already configured
3359 if test -f $srcdir/config.status; then
3360 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3364 # test whether we have cygpath
3365 if test -z "$CYGPATH_W"; then
3366 if (cygpath --version) >/dev/null 2>/dev/null; then
3367 CYGPATH_W='cygpath -w'
3368 else
3369 CYGPATH_W=echo
3374 # Define the identity of the package.
3375 PACKAGE='libgomp'
3376 VERSION='1.0'
3379 cat >>confdefs.h <<_ACEOF
3380 #define PACKAGE "$PACKAGE"
3381 _ACEOF
3384 cat >>confdefs.h <<_ACEOF
3385 #define VERSION "$VERSION"
3386 _ACEOF
3388 # Some tools Automake needs.
3390 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3393 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3396 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3399 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3402 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3404 # For better backward compatibility. To be removed once Automake 1.9.x
3405 # dies out for good. For more background, see:
3406 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3407 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3408 mkdir_p='$(MKDIR_P)'
3410 # We need awk for the "check" target (and possibly the TAP driver). The
3411 # system "awk" is bad on some platforms.
3412 # Always define AMTAR for backward compatibility. Yes, it's still used
3413 # in the wild :-( We should find a proper way to deprecate it ...
3414 AMTAR='$${TAR-tar}'
3417 # We'll loop over all known methods to create a tar archive until one works.
3418 _am_tools='gnutar pax cpio none'
3420 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3427 # POSIX will say in a future version that running "rm -f" with no argument
3428 # is OK; and we want to be able to make that assumption in our Makefile
3429 # recipes. So use an aggressive probe to check that the usage we want is
3430 # actually supported "in the wild" to an acceptable degree.
3431 # See automake bug#10828.
3432 # To make any issue more visible, cause the running configure to be aborted
3433 # by default if the 'rm' program in use doesn't match our expectations; the
3434 # user can still override this though.
3435 if rm -f && rm -fr && rm -rf; then : OK; else
3436 cat >&2 <<'END'
3437 Oops!
3439 Your 'rm' program seems unable to run without file operands specified
3440 on the command line, even when the '-f' option is present. This is contrary
3441 to the behaviour of most rm programs out there, and not conforming with
3442 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3444 Please tell bug-automake@gnu.org about your system, including the value
3445 of your $PATH and any error possibly output before this message. This
3446 can help us improve future automake versions.
3449 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3450 echo 'Configuration will proceed anyway, since you have set the' >&2
3451 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3452 echo >&2
3453 else
3454 cat >&2 <<'END'
3455 Aborting the configuration process, to ensure you take notice of the issue.
3457 You can download and install GNU coreutils to get an 'rm' implementation
3458 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3460 If you want to complete the configuration process using your problematic
3461 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3462 to "yes", and re-run configure.
3465 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3469 # Default to --enable-multilib
3470 # Check whether --enable-multilib was given.
3471 if test "${enable_multilib+set}" = set; then :
3472 enableval=$enable_multilib; case "$enableval" in
3473 yes) multilib=yes ;;
3474 no) multilib=no ;;
3475 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3476 esac
3477 else
3478 multilib=yes
3482 # We may get other options which we leave undocumented:
3483 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3484 # See config-ml.in if you want the gory details.
3486 if test "$srcdir" = "."; then
3487 if test "$with_target_subdir" != "."; then
3488 multi_basedir="$srcdir/$with_multisrctop../.."
3489 else
3490 multi_basedir="$srcdir/$with_multisrctop.."
3492 else
3493 multi_basedir="$srcdir/.."
3497 # Even if the default multilib is not a cross compilation,
3498 # it may be that some of the other multilibs are.
3499 if test $cross_compiling = no && test $multilib = yes \
3500 && test "x${with_multisubdir}" != x ; then
3501 cross_compiling=maybe
3504 ac_config_commands="$ac_config_commands default-1"
3508 # Check whether --with-toolexeclibdir was given.
3509 if test "${with_toolexeclibdir+set}" = set; then :
3510 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3514 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3516 esac
3517 else
3518 with_toolexeclibdir=no
3523 # Calculate toolexeclibdir
3524 # Also toolexecdir, though it's only used in toolexeclibdir
3525 case ${enable_version_specific_runtime_libs} in
3526 yes)
3527 # Need the gcc compiler version to know where to install libraries
3528 # and header files if --enable-version-specific-runtime-libs option
3529 # is selected.
3530 toolexecdir='$(libdir)/gcc/$(target_alias)'
3531 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3534 if test -n "$with_cross_host" &&
3535 test x"$with_cross_host" != x"no"; then
3536 # Install a library built with a cross compiler in tooldir, not libdir.
3537 toolexecdir='$(exec_prefix)/$(target_alias)'
3538 case ${with_toolexeclibdir} in
3540 toolexeclibdir='$(toolexecdir)/lib'
3543 toolexeclibdir=${with_toolexeclibdir}
3545 esac
3546 else
3547 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3548 toolexeclibdir='$(libdir)'
3550 multi_os_directory=`$CC -print-multi-os-directory`
3551 case $multi_os_directory in
3552 .) ;; # Avoid trailing /.
3553 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3554 esac
3556 esac
3560 # Check the compiler.
3561 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3562 # We must force CC to /not/ be precious variables; otherwise
3563 # the wrong, non-multilib-adjusted value will be used in multilibs.
3564 # As a side effect, we have to subst CFLAGS ourselves.
3568 ac_ext=c
3569 ac_cpp='$CPP $CPPFLAGS'
3570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3573 if test -n "$ac_tool_prefix"; then
3574 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3575 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_prog_CC+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 if test -n "$CC"; then
3582 ac_cv_prog_CC="$CC" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3587 IFS=$as_save_IFS
3588 test -z "$as_dir" && as_dir=.
3589 for ac_exec_ext in '' $ac_executable_extensions; do
3590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3591 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3593 break 2
3595 done
3596 done
3597 IFS=$as_save_IFS
3601 CC=$ac_cv_prog_CC
3602 if test -n "$CC"; then
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3604 $as_echo "$CC" >&6; }
3605 else
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3612 if test -z "$ac_cv_prog_CC"; then
3613 ac_ct_CC=$CC
3614 # Extract the first word of "gcc", so it can be a program name with args.
3615 set dummy gcc; ac_word=$2
3616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3617 $as_echo_n "checking for $ac_word... " >&6; }
3618 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3619 $as_echo_n "(cached) " >&6
3620 else
3621 if test -n "$ac_ct_CC"; then
3622 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3623 else
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH
3627 IFS=$as_save_IFS
3628 test -z "$as_dir" && as_dir=.
3629 for ac_exec_ext in '' $ac_executable_extensions; do
3630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3631 ac_cv_prog_ac_ct_CC="gcc"
3632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3633 break 2
3635 done
3636 done
3637 IFS=$as_save_IFS
3641 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3642 if test -n "$ac_ct_CC"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3644 $as_echo "$ac_ct_CC" >&6; }
3645 else
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3650 if test "x$ac_ct_CC" = x; then
3651 CC=""
3652 else
3653 case $cross_compiling:$ac_tool_warned in
3654 yes:)
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3656 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3657 ac_tool_warned=yes ;;
3658 esac
3659 CC=$ac_ct_CC
3661 else
3662 CC="$ac_cv_prog_CC"
3665 if test -z "$CC"; then
3666 if test -n "$ac_tool_prefix"; then
3667 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3668 set dummy ${ac_tool_prefix}cc; ac_word=$2
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3670 $as_echo_n "checking for $ac_word... " >&6; }
3671 if ${ac_cv_prog_CC+:} false; then :
3672 $as_echo_n "(cached) " >&6
3673 else
3674 if test -n "$CC"; then
3675 ac_cv_prog_CC="$CC" # Let the user override the test.
3676 else
3677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678 for as_dir in $PATH
3680 IFS=$as_save_IFS
3681 test -z "$as_dir" && as_dir=.
3682 for ac_exec_ext in '' $ac_executable_extensions; do
3683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3684 ac_cv_prog_CC="${ac_tool_prefix}cc"
3685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686 break 2
3688 done
3689 done
3690 IFS=$as_save_IFS
3694 CC=$ac_cv_prog_CC
3695 if test -n "$CC"; then
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3697 $as_echo "$CC" >&6; }
3698 else
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3700 $as_echo "no" >&6; }
3706 if test -z "$CC"; then
3707 # Extract the first word of "cc", so it can be a program name with args.
3708 set dummy cc; ac_word=$2
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3710 $as_echo_n "checking for $ac_word... " >&6; }
3711 if ${ac_cv_prog_CC+:} false; then :
3712 $as_echo_n "(cached) " >&6
3713 else
3714 if test -n "$CC"; then
3715 ac_cv_prog_CC="$CC" # Let the user override the test.
3716 else
3717 ac_prog_rejected=no
3718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3719 for as_dir in $PATH
3721 IFS=$as_save_IFS
3722 test -z "$as_dir" && as_dir=.
3723 for ac_exec_ext in '' $ac_executable_extensions; do
3724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3725 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3726 ac_prog_rejected=yes
3727 continue
3729 ac_cv_prog_CC="cc"
3730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3731 break 2
3733 done
3734 done
3735 IFS=$as_save_IFS
3737 if test $ac_prog_rejected = yes; then
3738 # We found a bogon in the path, so make sure we never use it.
3739 set dummy $ac_cv_prog_CC
3740 shift
3741 if test $# != 0; then
3742 # We chose a different compiler from the bogus one.
3743 # However, it has the same basename, so the bogon will be chosen
3744 # first if we set CC to just the basename; use the full file name.
3745 shift
3746 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3751 CC=$ac_cv_prog_CC
3752 if test -n "$CC"; then
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3754 $as_echo "$CC" >&6; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3757 $as_echo "no" >&6; }
3762 if test -z "$CC"; then
3763 if test -n "$ac_tool_prefix"; then
3764 for ac_prog in cl.exe
3766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 $as_echo_n "checking for $ac_word... " >&6; }
3770 if ${ac_cv_prog_CC+:} false; then :
3771 $as_echo_n "(cached) " >&6
3772 else
3773 if test -n "$CC"; then
3774 ac_cv_prog_CC="$CC" # Let the user override the test.
3775 else
3776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777 for as_dir in $PATH
3779 IFS=$as_save_IFS
3780 test -z "$as_dir" && as_dir=.
3781 for ac_exec_ext in '' $ac_executable_extensions; do
3782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3783 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 break 2
3787 done
3788 done
3789 IFS=$as_save_IFS
3793 CC=$ac_cv_prog_CC
3794 if test -n "$CC"; then
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3796 $as_echo "$CC" >&6; }
3797 else
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3799 $as_echo "no" >&6; }
3803 test -n "$CC" && break
3804 done
3806 if test -z "$CC"; then
3807 ac_ct_CC=$CC
3808 for ac_prog in cl.exe
3810 # Extract the first word of "$ac_prog", so it can be a program name with args.
3811 set dummy $ac_prog; ac_word=$2
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3813 $as_echo_n "checking for $ac_word... " >&6; }
3814 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3815 $as_echo_n "(cached) " >&6
3816 else
3817 if test -n "$ac_ct_CC"; then
3818 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3819 else
3820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3821 for as_dir in $PATH
3823 IFS=$as_save_IFS
3824 test -z "$as_dir" && as_dir=.
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_ac_ct_CC="$ac_prog"
3828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3829 break 2
3831 done
3832 done
3833 IFS=$as_save_IFS
3837 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838 if test -n "$ac_ct_CC"; then
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840 $as_echo "$ac_ct_CC" >&6; }
3841 else
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843 $as_echo "no" >&6; }
3847 test -n "$ac_ct_CC" && break
3848 done
3850 if test "x$ac_ct_CC" = x; then
3851 CC=""
3852 else
3853 case $cross_compiling:$ac_tool_warned in
3854 yes:)
3855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3857 ac_tool_warned=yes ;;
3858 esac
3859 CC=$ac_ct_CC
3866 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3867 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3868 as_fn_error $? "no acceptable C compiler found in \$PATH
3869 See \`config.log' for more details" "$LINENO" 5; }
3871 # Provide some information about the compiler.
3872 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3873 set X $ac_compile
3874 ac_compiler=$2
3875 for ac_option in --version -v -V -qversion; do
3876 { { ac_try="$ac_compiler $ac_option >&5"
3877 case "(($ac_try" in
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3880 esac
3881 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3882 $as_echo "$ac_try_echo"; } >&5
3883 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3884 ac_status=$?
3885 if test -s conftest.err; then
3886 sed '10a\
3887 ... rest of stderr output deleted ...
3888 10q' conftest.err >conftest.er1
3889 cat conftest.er1 >&5
3891 rm -f conftest.er1 conftest.err
3892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3893 test $ac_status = 0; }
3894 done
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3900 main ()
3904 return 0;
3906 _ACEOF
3907 ac_clean_files_save=$ac_clean_files
3908 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3909 # Try to create an executable without -o first, disregard a.out.
3910 # It will help us diagnose broken compilers, and finding out an intuition
3911 # of exeext.
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3913 $as_echo_n "checking whether the C compiler works... " >&6; }
3914 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916 # The possible output files:
3917 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919 ac_rmfiles=
3920 for ac_file in $ac_files
3922 case $ac_file in
3923 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3924 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3925 esac
3926 done
3927 rm -f $ac_rmfiles
3929 if { { ac_try="$ac_link_default"
3930 case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3933 esac
3934 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3935 $as_echo "$ac_try_echo"; } >&5
3936 (eval "$ac_link_default") 2>&5
3937 ac_status=$?
3938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3939 test $ac_status = 0; }; then :
3940 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3941 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3942 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3943 # so that the user can short-circuit this test for compilers unknown to
3944 # Autoconf.
3945 for ac_file in $ac_files ''
3947 test -f "$ac_file" || continue
3948 case $ac_file in
3949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951 [ab].out )
3952 # We found the default executable, but exeext='' is most
3953 # certainly right.
3954 break;;
3955 *.* )
3956 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3957 then :; else
3958 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 # We set ac_cv_exeext here because the later test for it is not
3961 # safe: cross compilers may not add the suffix if given an `-o'
3962 # argument, so we may need to know it at that point already.
3963 # Even if this section looks crufty: it has the advantage of
3964 # actually working.
3965 break;;
3967 break;;
3968 esac
3969 done
3970 test "$ac_cv_exeext" = no && ac_cv_exeext=
3972 else
3973 ac_file=''
3975 if test -z "$ac_file"; then :
3976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977 $as_echo "no" >&6; }
3978 $as_echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3981 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3983 as_fn_error 77 "C compiler cannot create executables
3984 See \`config.log' for more details" "$LINENO" 5; }
3985 else
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987 $as_echo "yes" >&6; }
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3990 $as_echo_n "checking for C compiler default output file name... " >&6; }
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3992 $as_echo "$ac_file" >&6; }
3993 ac_exeext=$ac_cv_exeext
3995 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3996 ac_clean_files=$ac_clean_files_save
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998 $as_echo_n "checking for suffix of executables... " >&6; }
3999 if { { ac_try="$ac_link"
4000 case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003 esac
4004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4005 $as_echo "$ac_try_echo"; } >&5
4006 (eval "$ac_link") 2>&5
4007 ac_status=$?
4008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }; then :
4010 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4011 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4012 # work properly (i.e., refer to `conftest.exe'), while it won't with
4013 # `rm'.
4014 for ac_file in conftest.exe conftest conftest.*; do
4015 test -f "$ac_file" || continue
4016 case $ac_file in
4017 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4018 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4019 break;;
4020 * ) break;;
4021 esac
4022 done
4023 else
4024 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4025 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4026 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4027 See \`config.log' for more details" "$LINENO" 5; }
4029 rm -f conftest conftest$ac_cv_exeext
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4031 $as_echo "$ac_cv_exeext" >&6; }
4033 rm -f conftest.$ac_ext
4034 EXEEXT=$ac_cv_exeext
4035 ac_exeext=$EXEEXT
4036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4037 /* end confdefs.h. */
4038 #include <stdio.h>
4040 main ()
4042 FILE *f = fopen ("conftest.out", "w");
4043 return ferror (f) || fclose (f) != 0;
4046 return 0;
4048 _ACEOF
4049 ac_clean_files="$ac_clean_files conftest.out"
4050 # Check that the compiler produces executables we can run. If not, either
4051 # the compiler is broken, or we cross compile.
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4053 $as_echo_n "checking whether we are cross compiling... " >&6; }
4054 if test "$cross_compiling" != yes; then
4055 { { ac_try="$ac_link"
4056 case "(($ac_try" in
4057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058 *) ac_try_echo=$ac_try;;
4059 esac
4060 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4061 $as_echo "$ac_try_echo"; } >&5
4062 (eval "$ac_link") 2>&5
4063 ac_status=$?
4064 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4065 test $ac_status = 0; }
4066 if { ac_try='./conftest$ac_cv_exeext'
4067 { { case "(($ac_try" in
4068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4069 *) ac_try_echo=$ac_try;;
4070 esac
4071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4072 $as_echo "$ac_try_echo"; } >&5
4073 (eval "$ac_try") 2>&5
4074 ac_status=$?
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }; }; then
4077 cross_compiling=no
4078 else
4079 if test "$cross_compiling" = maybe; then
4080 cross_compiling=yes
4081 else
4082 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4083 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4084 as_fn_error $? "cannot run C compiled programs.
4085 If you meant to cross compile, use \`--host'.
4086 See \`config.log' for more details" "$LINENO" 5; }
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4091 $as_echo "$cross_compiling" >&6; }
4093 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4094 ac_clean_files=$ac_clean_files_save
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4096 $as_echo_n "checking for suffix of object files... " >&6; }
4097 if ${ac_cv_objext+:} false; then :
4098 $as_echo_n "(cached) " >&6
4099 else
4100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4101 /* end confdefs.h. */
4104 main ()
4108 return 0;
4110 _ACEOF
4111 rm -f conftest.o conftest.obj
4112 if { { ac_try="$ac_compile"
4113 case "(($ac_try" in
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4116 esac
4117 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4118 $as_echo "$ac_try_echo"; } >&5
4119 (eval "$ac_compile") 2>&5
4120 ac_status=$?
4121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4122 test $ac_status = 0; }; then :
4123 for ac_file in conftest.o conftest.obj conftest.*; do
4124 test -f "$ac_file" || continue;
4125 case $ac_file in
4126 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4127 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4128 break;;
4129 esac
4130 done
4131 else
4132 $as_echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4136 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4137 as_fn_error $? "cannot compute suffix of object files: cannot compile
4138 See \`config.log' for more details" "$LINENO" 5; }
4140 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4143 $as_echo "$ac_cv_objext" >&6; }
4144 OBJEXT=$ac_cv_objext
4145 ac_objext=$OBJEXT
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4147 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4148 if ${ac_cv_c_compiler_gnu+:} false; then :
4149 $as_echo_n "(cached) " >&6
4150 else
4151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4152 /* end confdefs.h. */
4155 main ()
4157 #ifndef __GNUC__
4158 choke me
4159 #endif
4162 return 0;
4164 _ACEOF
4165 if ac_fn_c_try_compile "$LINENO"; then :
4166 ac_compiler_gnu=yes
4167 else
4168 ac_compiler_gnu=no
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4175 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4176 if test $ac_compiler_gnu = yes; then
4177 GCC=yes
4178 else
4179 GCC=
4181 ac_test_CFLAGS=${CFLAGS+set}
4182 ac_save_CFLAGS=$CFLAGS
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4184 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4185 if ${ac_cv_prog_cc_g+:} false; then :
4186 $as_echo_n "(cached) " >&6
4187 else
4188 ac_save_c_werror_flag=$ac_c_werror_flag
4189 ac_c_werror_flag=yes
4190 ac_cv_prog_cc_g=no
4191 CFLAGS="-g"
4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4193 /* end confdefs.h. */
4196 main ()
4200 return 0;
4202 _ACEOF
4203 if ac_fn_c_try_compile "$LINENO"; then :
4204 ac_cv_prog_cc_g=yes
4205 else
4206 CFLAGS=""
4207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208 /* end confdefs.h. */
4211 main ()
4215 return 0;
4217 _ACEOF
4218 if ac_fn_c_try_compile "$LINENO"; then :
4220 else
4221 ac_c_werror_flag=$ac_save_c_werror_flag
4222 CFLAGS="-g"
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224 /* end confdefs.h. */
4227 main ()
4231 return 0;
4233 _ACEOF
4234 if ac_fn_c_try_compile "$LINENO"; then :
4235 ac_cv_prog_cc_g=yes
4237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4242 ac_c_werror_flag=$ac_save_c_werror_flag
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4245 $as_echo "$ac_cv_prog_cc_g" >&6; }
4246 if test "$ac_test_CFLAGS" = set; then
4247 CFLAGS=$ac_save_CFLAGS
4248 elif test $ac_cv_prog_cc_g = yes; then
4249 if test "$GCC" = yes; then
4250 CFLAGS="-g -O2"
4251 else
4252 CFLAGS="-g"
4254 else
4255 if test "$GCC" = yes; then
4256 CFLAGS="-O2"
4257 else
4258 CFLAGS=
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4262 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4263 if ${ac_cv_prog_cc_c89+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 ac_cv_prog_cc_c89=no
4267 ac_save_CC=$CC
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4270 #include <stdarg.h>
4271 #include <stdio.h>
4272 struct stat;
4273 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4274 struct buf { int x; };
4275 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4276 static char *e (p, i)
4277 char **p;
4278 int i;
4280 return p[i];
4282 static char *f (char * (*g) (char **, int), char **p, ...)
4284 char *s;
4285 va_list v;
4286 va_start (v,p);
4287 s = g (p, va_arg (v,int));
4288 va_end (v);
4289 return s;
4292 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4293 function prototypes and stuff, but not '\xHH' hex character constants.
4294 These don't provoke an error unfortunately, instead are silently treated
4295 as 'x'. The following induces an error, until -std is added to get
4296 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4297 array size at least. It's necessary to write '\x00'==0 to get something
4298 that's true only with -std. */
4299 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4301 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4302 inside strings and character constants. */
4303 #define FOO(x) 'x'
4304 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4306 int test (int i, double x);
4307 struct s1 {int (*f) (int a);};
4308 struct s2 {int (*f) (double a);};
4309 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4310 int argc;
4311 char **argv;
4313 main ()
4315 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4317 return 0;
4319 _ACEOF
4320 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4321 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323 CC="$ac_save_CC $ac_arg"
4324 if ac_fn_c_try_compile "$LINENO"; then :
4325 ac_cv_prog_cc_c89=$ac_arg
4327 rm -f core conftest.err conftest.$ac_objext
4328 test "x$ac_cv_prog_cc_c89" != "xno" && break
4329 done
4330 rm -f conftest.$ac_ext
4331 CC=$ac_save_CC
4334 # AC_CACHE_VAL
4335 case "x$ac_cv_prog_cc_c89" in
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4338 $as_echo "none needed" >&6; } ;;
4339 xno)
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4341 $as_echo "unsupported" >&6; } ;;
4343 CC="$CC $ac_cv_prog_cc_c89"
4344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4345 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4346 esac
4347 if test "x$ac_cv_prog_cc_c89" != xno; then :
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 ac_ext=c
4358 ac_cpp='$CPP $CPPFLAGS'
4359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4363 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4364 if ${am_cv_prog_cc_c_o+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368 /* end confdefs.h. */
4371 main ()
4375 return 0;
4377 _ACEOF
4378 # Make sure it works both with $CC and with simple cc.
4379 # Following AC_PROG_CC_C_O, we do the test twice because some
4380 # compilers refuse to overwrite an existing .o file with -o,
4381 # though they will create one.
4382 am_cv_prog_cc_c_o=yes
4383 for am_i in 1 2; do
4384 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4385 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4386 ac_status=$?
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); } \
4389 && test -f conftest2.$ac_objext; then
4390 : OK
4391 else
4392 am_cv_prog_cc_c_o=no
4393 break
4395 done
4396 rm -f core conftest*
4397 unset am_i
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4400 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4401 if test "$am_cv_prog_cc_c_o" != yes; then
4402 # Losing compiler, so override with the script.
4403 # FIXME: It is wrong to rewrite CC.
4404 # But if we don't then we get into trouble of one sort or another.
4405 # A longer-term fix would be to have automake use am__CC in this case,
4406 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4407 CC="$am_aux_dir/compile $CC"
4409 ac_ext=c
4410 ac_cpp='$CPP $CPPFLAGS'
4411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415 DEPDIR="${am__leading_dot}deps"
4417 ac_config_commands="$ac_config_commands depfiles"
4420 am_make=${MAKE-make}
4421 cat > confinc << 'END'
4422 am__doit:
4423 @echo this is the am__doit target
4424 .PHONY: am__doit
4426 # If we don't find an include directive, just comment out the code.
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4428 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4429 am__include="#"
4430 am__quote=
4431 _am_result=none
4432 # First try GNU make style include.
4433 echo "include confinc" > confmf
4434 # Ignore all kinds of additional output from 'make'.
4435 case `$am_make -s -f confmf 2> /dev/null` in #(
4436 *the\ am__doit\ target*)
4437 am__include=include
4438 am__quote=
4439 _am_result=GNU
4441 esac
4442 # Now try BSD make style include.
4443 if test "$am__include" = "#"; then
4444 echo '.include "confinc"' > confmf
4445 case `$am_make -s -f confmf 2> /dev/null` in #(
4446 *the\ am__doit\ target*)
4447 am__include=.include
4448 am__quote="\""
4449 _am_result=BSD
4451 esac
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4456 $as_echo "$_am_result" >&6; }
4457 rm -f confinc confmf
4459 # Check whether --enable-dependency-tracking was given.
4460 if test "${enable_dependency_tracking+set}" = set; then :
4461 enableval=$enable_dependency_tracking;
4464 if test "x$enable_dependency_tracking" != xno; then
4465 am_depcomp="$ac_aux_dir/depcomp"
4466 AMDEPBACKSLASH='\'
4467 am__nodep='_no'
4469 if test "x$enable_dependency_tracking" != xno; then
4470 AMDEP_TRUE=
4471 AMDEP_FALSE='#'
4472 else
4473 AMDEP_TRUE='#'
4474 AMDEP_FALSE=
4479 depcc="$CC" am_compiler_list=
4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4482 $as_echo_n "checking dependency style of $depcc... " >&6; }
4483 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4484 $as_echo_n "(cached) " >&6
4485 else
4486 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4487 # We make a subdir and do the tests there. Otherwise we can end up
4488 # making bogus files that we don't know about and never remove. For
4489 # instance it was reported that on HP-UX the gcc test will end up
4490 # making a dummy file named 'D' -- because '-MD' means "put the output
4491 # in D".
4492 rm -rf conftest.dir
4493 mkdir conftest.dir
4494 # Copy depcomp to subdir because otherwise we won't find it if we're
4495 # using a relative directory.
4496 cp "$am_depcomp" conftest.dir
4497 cd conftest.dir
4498 # We will build objects and dependencies in a subdirectory because
4499 # it helps to detect inapplicable dependency modes. For instance
4500 # both Tru64's cc and ICC support -MD to output dependencies as a
4501 # side effect of compilation, but ICC will put the dependencies in
4502 # the current directory while Tru64 will put them in the object
4503 # directory.
4504 mkdir sub
4506 am_cv_CC_dependencies_compiler_type=none
4507 if test "$am_compiler_list" = ""; then
4508 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4510 am__universal=false
4511 case " $depcc " in #(
4512 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4513 esac
4515 for depmode in $am_compiler_list; do
4516 # Setup a source with many dependencies, because some compilers
4517 # like to wrap large dependency lists on column 80 (with \), and
4518 # we should not choose a depcomp mode which is confused by this.
4520 # We need to recreate these files for each test, as the compiler may
4521 # overwrite some of them when testing with obscure command lines.
4522 # This happens at least with the AIX C compiler.
4523 : > sub/conftest.c
4524 for i in 1 2 3 4 5 6; do
4525 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4526 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4527 # Solaris 10 /bin/sh.
4528 echo '/* dummy */' > sub/conftst$i.h
4529 done
4530 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4532 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4533 # mode. It turns out that the SunPro C++ compiler does not properly
4534 # handle '-M -o', and we need to detect this. Also, some Intel
4535 # versions had trouble with output in subdirs.
4536 am__obj=sub/conftest.${OBJEXT-o}
4537 am__minus_obj="-o $am__obj"
4538 case $depmode in
4539 gcc)
4540 # This depmode causes a compiler race in universal mode.
4541 test "$am__universal" = false || continue
4543 nosideeffect)
4544 # After this tag, mechanisms are not by side-effect, so they'll
4545 # only be used when explicitly requested.
4546 if test "x$enable_dependency_tracking" = xyes; then
4547 continue
4548 else
4549 break
4552 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4553 # This compiler won't grok '-c -o', but also, the minuso test has
4554 # not run yet. These depmodes are late enough in the game, and
4555 # so weak that their functioning should not be impacted.
4556 am__obj=conftest.${OBJEXT-o}
4557 am__minus_obj=
4559 none) break ;;
4560 esac
4561 if depmode=$depmode \
4562 source=sub/conftest.c object=$am__obj \
4563 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4564 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4565 >/dev/null 2>conftest.err &&
4566 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4567 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4568 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4569 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4570 # icc doesn't choke on unknown options, it will just issue warnings
4571 # or remarks (even with -Werror). So we grep stderr for any message
4572 # that says an option was ignored or not supported.
4573 # When given -MP, icc 7.0 and 7.1 complain thusly:
4574 # icc: Command line warning: ignoring option '-M'; no argument required
4575 # The diagnosis changed in icc 8.0:
4576 # icc: Command line remark: option '-MP' not supported
4577 if (grep 'ignoring option' conftest.err ||
4578 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4579 am_cv_CC_dependencies_compiler_type=$depmode
4580 break
4583 done
4585 cd ..
4586 rm -rf conftest.dir
4587 else
4588 am_cv_CC_dependencies_compiler_type=none
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4593 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4594 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4597 test "x$enable_dependency_tracking" != xno \
4598 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4599 am__fastdepCC_TRUE=
4600 am__fastdepCC_FALSE='#'
4601 else
4602 am__fastdepCC_TRUE='#'
4603 am__fastdepCC_FALSE=
4611 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4612 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4613 # in both places for now and restore CFLAGS at the end of config.
4614 save_CFLAGS="$CFLAGS"
4616 # Check whether --enable-werror was given.
4617 if test "${enable_werror+set}" = set; then :
4618 enableval=$enable_werror;
4621 # Add -Wall -Werror if we are using GCC.
4622 if test "x$GCC" = "xyes"; then :
4623 XCFLAGS="$XCFLAGS -Wall"
4625 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
4626 XCFLAGS="$XCFLAGS -Werror"
4629 # Find other programs we need.
4630 if test -n "$ac_tool_prefix"; then
4631 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4632 set dummy ${ac_tool_prefix}ar; ac_word=$2
4633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4634 $as_echo_n "checking for $ac_word... " >&6; }
4635 if ${ac_cv_prog_AR+:} false; then :
4636 $as_echo_n "(cached) " >&6
4637 else
4638 if test -n "$AR"; then
4639 ac_cv_prog_AR="$AR" # Let the user override the test.
4640 else
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4644 IFS=$as_save_IFS
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4648 ac_cv_prog_AR="${ac_tool_prefix}ar"
4649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4650 break 2
4652 done
4653 done
4654 IFS=$as_save_IFS
4658 AR=$ac_cv_prog_AR
4659 if test -n "$AR"; then
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4661 $as_echo "$AR" >&6; }
4662 else
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4664 $as_echo "no" >&6; }
4669 if test -z "$ac_cv_prog_AR"; then
4670 ac_ct_AR=$AR
4671 # Extract the first word of "ar", so it can be a program name with args.
4672 set dummy ar; ac_word=$2
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4674 $as_echo_n "checking for $ac_word... " >&6; }
4675 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4676 $as_echo_n "(cached) " >&6
4677 else
4678 if test -n "$ac_ct_AR"; then
4679 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4680 else
4681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4682 for as_dir in $PATH
4684 IFS=$as_save_IFS
4685 test -z "$as_dir" && as_dir=.
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4688 ac_cv_prog_ac_ct_AR="ar"
4689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4690 break 2
4692 done
4693 done
4694 IFS=$as_save_IFS
4698 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4699 if test -n "$ac_ct_AR"; then
4700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4701 $as_echo "$ac_ct_AR" >&6; }
4702 else
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4704 $as_echo "no" >&6; }
4707 if test "x$ac_ct_AR" = x; then
4708 AR=""
4709 else
4710 case $cross_compiling:$ac_tool_warned in
4711 yes:)
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4713 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4714 ac_tool_warned=yes ;;
4715 esac
4716 AR=$ac_ct_AR
4718 else
4719 AR="$ac_cv_prog_AR"
4722 if test -n "$ac_tool_prefix"; then
4723 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4724 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4726 $as_echo_n "checking for $ac_word... " >&6; }
4727 if ${ac_cv_prog_RANLIB+:} false; then :
4728 $as_echo_n "(cached) " >&6
4729 else
4730 if test -n "$RANLIB"; then
4731 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4732 else
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734 for as_dir in $PATH
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 break 2
4744 done
4745 done
4746 IFS=$as_save_IFS
4750 RANLIB=$ac_cv_prog_RANLIB
4751 if test -n "$RANLIB"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4753 $as_echo "$RANLIB" >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4761 if test -z "$ac_cv_prog_RANLIB"; then
4762 ac_ct_RANLIB=$RANLIB
4763 # Extract the first word of "ranlib", so it can be a program name with args.
4764 set dummy ranlib; ac_word=$2
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4766 $as_echo_n "checking for $ac_word... " >&6; }
4767 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4768 $as_echo_n "(cached) " >&6
4769 else
4770 if test -n "$ac_ct_RANLIB"; then
4771 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4772 else
4773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4774 for as_dir in $PATH
4776 IFS=$as_save_IFS
4777 test -z "$as_dir" && as_dir=.
4778 for ac_exec_ext in '' $ac_executable_extensions; do
4779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4780 ac_cv_prog_ac_ct_RANLIB="ranlib"
4781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4782 break 2
4784 done
4785 done
4786 IFS=$as_save_IFS
4790 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4791 if test -n "$ac_ct_RANLIB"; then
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4793 $as_echo "$ac_ct_RANLIB" >&6; }
4794 else
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4796 $as_echo "no" >&6; }
4799 if test "x$ac_ct_RANLIB" = x; then
4800 RANLIB="ranlib-not-found-in-path-error"
4801 else
4802 case $cross_compiling:$ac_tool_warned in
4803 yes:)
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4805 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4806 ac_tool_warned=yes ;;
4807 esac
4808 RANLIB=$ac_ct_RANLIB
4810 else
4811 RANLIB="$ac_cv_prog_RANLIB"
4814 # Extract the first word of "perl", so it can be a program name with args.
4815 set dummy perl; ac_word=$2
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817 $as_echo_n "checking for $ac_word... " >&6; }
4818 if ${ac_cv_path_PERL+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 case $PERL in
4822 [\\/]* | ?:[\\/]*)
4823 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4827 for as_dir in $PATH
4829 IFS=$as_save_IFS
4830 test -z "$as_dir" && as_dir=.
4831 for ac_exec_ext in '' $ac_executable_extensions; do
4832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4833 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4835 break 2
4837 done
4838 done
4839 IFS=$as_save_IFS
4841 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4843 esac
4845 PERL=$ac_cv_path_PERL
4846 if test -n "$PERL"; then
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4848 $as_echo "$PERL" >&6; }
4849 else
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4851 $as_echo "no" >&6; }
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4856 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4857 set x ${MAKE-make}
4858 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4859 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4860 $as_echo_n "(cached) " >&6
4861 else
4862 cat >conftest.make <<\_ACEOF
4863 SHELL = /bin/sh
4864 all:
4865 @echo '@@@%%%=$(MAKE)=@@@%%%'
4866 _ACEOF
4867 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4868 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4869 *@@@%%%=?*=@@@%%%*)
4870 eval ac_cv_prog_make_${ac_make}_set=yes;;
4872 eval ac_cv_prog_make_${ac_make}_set=no;;
4873 esac
4874 rm -f conftest.make
4876 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4878 $as_echo "yes" >&6; }
4879 SET_MAKE=
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 SET_MAKE="MAKE=${MAKE-make}"
4888 # See if makeinfo has been installed and is modern enough
4889 # that we can use it.
4891 # Extract the first word of "makeinfo", so it can be a program name with args.
4892 set dummy makeinfo; ac_word=$2
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if ${ac_cv_prog_MAKEINFO+:} false; then :
4896 $as_echo_n "(cached) " >&6
4897 else
4898 if test -n "$MAKEINFO"; then
4899 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4900 else
4901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4902 for as_dir in $PATH
4904 IFS=$as_save_IFS
4905 test -z "$as_dir" && as_dir=.
4906 for ac_exec_ext in '' $ac_executable_extensions; do
4907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4908 ac_cv_prog_MAKEINFO="makeinfo"
4909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4910 break 2
4912 done
4913 done
4914 IFS=$as_save_IFS
4918 MAKEINFO=$ac_cv_prog_MAKEINFO
4919 if test -n "$MAKEINFO"; then
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4921 $as_echo "$MAKEINFO" >&6; }
4922 else
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4924 $as_echo "no" >&6; }
4928 if test -n "$MAKEINFO"; then
4929 # Found it, now check the version.
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4931 $as_echo_n "checking for modern makeinfo... " >&6; }
4932 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4936 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4938 case $ac_prog_version in
4939 '') gcc_cv_prog_makeinfo_modern=no;;
4940 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4941 *) gcc_cv_prog_makeinfo_modern=no;;
4942 esac
4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4946 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4947 else
4948 gcc_cv_prog_makeinfo_modern=no
4950 if test $gcc_cv_prog_makeinfo_modern = no; then
4951 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4954 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4955 BUILD_INFO_TRUE=
4956 BUILD_INFO_FALSE='#'
4957 else
4958 BUILD_INFO_TRUE='#'
4959 BUILD_INFO_FALSE=
4964 # Configure libtool
4965 case `pwd` in
4966 *\ * | *\ *)
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4968 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4969 esac
4973 macro_version='2.2.7a'
4974 macro_revision='1.3134'
4988 ltmain="$ac_aux_dir/ltmain.sh"
4990 # Backslashify metacharacters that are still active within
4991 # double-quoted strings.
4992 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4994 # Same as above, but do not quote variable references.
4995 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4997 # Sed substitution to delay expansion of an escaped shell variable in a
4998 # double_quote_subst'ed string.
4999 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5001 # Sed substitution to delay expansion of an escaped single quote.
5002 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5004 # Sed substitution to avoid accidental globbing in evaled expressions
5005 no_glob_subst='s/\*/\\\*/g'
5007 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5008 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5009 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5012 $as_echo_n "checking how to print strings... " >&6; }
5013 # Test print first, because it will be a builtin if present.
5014 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5015 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5016 ECHO='print -r --'
5017 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5018 ECHO='printf %s\n'
5019 else
5020 # Use this function as a fallback that always works.
5021 func_fallback_echo ()
5023 eval 'cat <<_LTECHO_EOF
5025 _LTECHO_EOF'
5027 ECHO='func_fallback_echo'
5030 # func_echo_all arg...
5031 # Invoke $ECHO with all args, space-separated.
5032 func_echo_all ()
5034 $ECHO ""
5037 case "$ECHO" in
5038 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5039 $as_echo "printf" >&6; } ;;
5040 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5041 $as_echo "print -r" >&6; } ;;
5042 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5043 $as_echo "cat" >&6; } ;;
5044 esac
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5060 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5061 if ${ac_cv_path_SED+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5065 for ac_i in 1 2 3 4 5 6 7; do
5066 ac_script="$ac_script$as_nl$ac_script"
5067 done
5068 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5069 { ac_script=; unset ac_script;}
5070 if test -z "$SED"; then
5071 ac_path_SED_found=false
5072 # Loop through the user's path and test for each of PROGNAME-LIST
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_prog in sed gsed; do
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5081 as_fn_executable_p "$ac_path_SED" || continue
5082 # Check for GNU ac_path_SED and select it if it is found.
5083 # Check for GNU $ac_path_SED
5084 case `"$ac_path_SED" --version 2>&1` in
5085 *GNU*)
5086 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5088 ac_count=0
5089 $as_echo_n 0123456789 >"conftest.in"
5090 while :
5092 cat "conftest.in" "conftest.in" >"conftest.tmp"
5093 mv "conftest.tmp" "conftest.in"
5094 cp "conftest.in" "conftest.nl"
5095 $as_echo '' >> "conftest.nl"
5096 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5097 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5098 as_fn_arith $ac_count + 1 && ac_count=$as_val
5099 if test $ac_count -gt ${ac_path_SED_max-0}; then
5100 # Best one so far, save it but keep looking for a better one
5101 ac_cv_path_SED="$ac_path_SED"
5102 ac_path_SED_max=$ac_count
5104 # 10*(2^10) chars as input seems more than enough
5105 test $ac_count -gt 10 && break
5106 done
5107 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5108 esac
5110 $ac_path_SED_found && break 3
5111 done
5112 done
5113 done
5114 IFS=$as_save_IFS
5115 if test -z "$ac_cv_path_SED"; then
5116 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5118 else
5119 ac_cv_path_SED=$SED
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5124 $as_echo "$ac_cv_path_SED" >&6; }
5125 SED="$ac_cv_path_SED"
5126 rm -f conftest.sed
5128 test -z "$SED" && SED=sed
5129 Xsed="$SED -e 1s/^X//"
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5142 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5143 if ${ac_cv_path_GREP+:} false; then :
5144 $as_echo_n "(cached) " >&6
5145 else
5146 if test -z "$GREP"; then
5147 ac_path_GREP_found=false
5148 # Loop through the user's path and test for each of PROGNAME-LIST
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5150 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5152 IFS=$as_save_IFS
5153 test -z "$as_dir" && as_dir=.
5154 for ac_prog in grep ggrep; do
5155 for ac_exec_ext in '' $ac_executable_extensions; do
5156 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5157 as_fn_executable_p "$ac_path_GREP" || continue
5158 # Check for GNU ac_path_GREP and select it if it is found.
5159 # Check for GNU $ac_path_GREP
5160 case `"$ac_path_GREP" --version 2>&1` in
5161 *GNU*)
5162 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5164 ac_count=0
5165 $as_echo_n 0123456789 >"conftest.in"
5166 while :
5168 cat "conftest.in" "conftest.in" >"conftest.tmp"
5169 mv "conftest.tmp" "conftest.in"
5170 cp "conftest.in" "conftest.nl"
5171 $as_echo 'GREP' >> "conftest.nl"
5172 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5173 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5174 as_fn_arith $ac_count + 1 && ac_count=$as_val
5175 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5176 # Best one so far, save it but keep looking for a better one
5177 ac_cv_path_GREP="$ac_path_GREP"
5178 ac_path_GREP_max=$ac_count
5180 # 10*(2^10) chars as input seems more than enough
5181 test $ac_count -gt 10 && break
5182 done
5183 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5184 esac
5186 $ac_path_GREP_found && break 3
5187 done
5188 done
5189 done
5190 IFS=$as_save_IFS
5191 if test -z "$ac_cv_path_GREP"; then
5192 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5194 else
5195 ac_cv_path_GREP=$GREP
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5200 $as_echo "$ac_cv_path_GREP" >&6; }
5201 GREP="$ac_cv_path_GREP"
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5205 $as_echo_n "checking for egrep... " >&6; }
5206 if ${ac_cv_path_EGREP+:} false; then :
5207 $as_echo_n "(cached) " >&6
5208 else
5209 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5210 then ac_cv_path_EGREP="$GREP -E"
5211 else
5212 if test -z "$EGREP"; then
5213 ac_path_EGREP_found=false
5214 # Loop through the user's path and test for each of PROGNAME-LIST
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_prog in egrep; do
5221 for ac_exec_ext in '' $ac_executable_extensions; do
5222 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5223 as_fn_executable_p "$ac_path_EGREP" || continue
5224 # Check for GNU ac_path_EGREP and select it if it is found.
5225 # Check for GNU $ac_path_EGREP
5226 case `"$ac_path_EGREP" --version 2>&1` in
5227 *GNU*)
5228 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5230 ac_count=0
5231 $as_echo_n 0123456789 >"conftest.in"
5232 while :
5234 cat "conftest.in" "conftest.in" >"conftest.tmp"
5235 mv "conftest.tmp" "conftest.in"
5236 cp "conftest.in" "conftest.nl"
5237 $as_echo 'EGREP' >> "conftest.nl"
5238 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5239 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5240 as_fn_arith $ac_count + 1 && ac_count=$as_val
5241 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5242 # Best one so far, save it but keep looking for a better one
5243 ac_cv_path_EGREP="$ac_path_EGREP"
5244 ac_path_EGREP_max=$ac_count
5246 # 10*(2^10) chars as input seems more than enough
5247 test $ac_count -gt 10 && break
5248 done
5249 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5250 esac
5252 $ac_path_EGREP_found && break 3
5253 done
5254 done
5255 done
5256 IFS=$as_save_IFS
5257 if test -z "$ac_cv_path_EGREP"; then
5258 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5260 else
5261 ac_cv_path_EGREP=$EGREP
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5267 $as_echo "$ac_cv_path_EGREP" >&6; }
5268 EGREP="$ac_cv_path_EGREP"
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5272 $as_echo_n "checking for fgrep... " >&6; }
5273 if ${ac_cv_path_FGREP+:} false; then :
5274 $as_echo_n "(cached) " >&6
5275 else
5276 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5277 then ac_cv_path_FGREP="$GREP -F"
5278 else
5279 if test -z "$FGREP"; then
5280 ac_path_FGREP_found=false
5281 # Loop through the user's path and test for each of PROGNAME-LIST
5282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5283 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5285 IFS=$as_save_IFS
5286 test -z "$as_dir" && as_dir=.
5287 for ac_prog in fgrep; do
5288 for ac_exec_ext in '' $ac_executable_extensions; do
5289 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5290 as_fn_executable_p "$ac_path_FGREP" || continue
5291 # Check for GNU ac_path_FGREP and select it if it is found.
5292 # Check for GNU $ac_path_FGREP
5293 case `"$ac_path_FGREP" --version 2>&1` in
5294 *GNU*)
5295 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5297 ac_count=0
5298 $as_echo_n 0123456789 >"conftest.in"
5299 while :
5301 cat "conftest.in" "conftest.in" >"conftest.tmp"
5302 mv "conftest.tmp" "conftest.in"
5303 cp "conftest.in" "conftest.nl"
5304 $as_echo 'FGREP' >> "conftest.nl"
5305 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5307 as_fn_arith $ac_count + 1 && ac_count=$as_val
5308 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5309 # Best one so far, save it but keep looking for a better one
5310 ac_cv_path_FGREP="$ac_path_FGREP"
5311 ac_path_FGREP_max=$ac_count
5313 # 10*(2^10) chars as input seems more than enough
5314 test $ac_count -gt 10 && break
5315 done
5316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5317 esac
5319 $ac_path_FGREP_found && break 3
5320 done
5321 done
5322 done
5323 IFS=$as_save_IFS
5324 if test -z "$ac_cv_path_FGREP"; then
5325 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5327 else
5328 ac_cv_path_FGREP=$FGREP
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5334 $as_echo "$ac_cv_path_FGREP" >&6; }
5335 FGREP="$ac_cv_path_FGREP"
5338 test -z "$GREP" && GREP=grep
5358 # Check whether --with-gnu-ld was given.
5359 if test "${with_gnu_ld+set}" = set; then :
5360 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5361 else
5362 with_gnu_ld=no
5365 ac_prog=ld
5366 if test "$GCC" = yes; then
5367 # Check if gcc -print-prog-name=ld gives a path.
5368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5369 $as_echo_n "checking for ld used by $CC... " >&6; }
5370 case $host in
5371 *-*-mingw*)
5372 # gcc leaves a trailing carriage return which upsets mingw
5373 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5375 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5376 esac
5377 case $ac_prog in
5378 # Accept absolute paths.
5379 [\\/]* | ?:[\\/]*)
5380 re_direlt='/[^/][^/]*/\.\./'
5381 # Canonicalize the pathname of ld
5382 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5383 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5384 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5385 done
5386 test -z "$LD" && LD="$ac_prog"
5389 # If it fails, then pretend we aren't using GCC.
5390 ac_prog=ld
5393 # If it is relative, then search for the first ld in PATH.
5394 with_gnu_ld=unknown
5396 esac
5397 elif test "$with_gnu_ld" = yes; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5399 $as_echo_n "checking for GNU ld... " >&6; }
5400 else
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5402 $as_echo_n "checking for non-GNU ld... " >&6; }
5404 if ${lt_cv_path_LD+:} false; then :
5405 $as_echo_n "(cached) " >&6
5406 else
5407 if test -z "$LD"; then
5408 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5409 for ac_dir in $PATH; do
5410 IFS="$lt_save_ifs"
5411 test -z "$ac_dir" && ac_dir=.
5412 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5413 lt_cv_path_LD="$ac_dir/$ac_prog"
5414 # Check to see if the program is GNU ld. I'd rather use --version,
5415 # but apparently some variants of GNU ld only accept -v.
5416 # Break only if it was the GNU/non-GNU ld that we prefer.
5417 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5418 *GNU* | *'with BFD'*)
5419 test "$with_gnu_ld" != no && break
5422 test "$with_gnu_ld" != yes && break
5424 esac
5426 done
5427 IFS="$lt_save_ifs"
5428 else
5429 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5433 LD="$lt_cv_path_LD"
5434 if test -n "$LD"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5436 $as_echo "$LD" >&6; }
5437 else
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5441 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5443 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5444 if ${lt_cv_prog_gnu_ld+:} false; then :
5445 $as_echo_n "(cached) " >&6
5446 else
5447 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5448 case `$LD -v 2>&1 </dev/null` in
5449 *GNU* | *'with BFD'*)
5450 lt_cv_prog_gnu_ld=yes
5453 lt_cv_prog_gnu_ld=no
5455 esac
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5458 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5459 with_gnu_ld=$lt_cv_prog_gnu_ld
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5470 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5471 if ${lt_cv_path_NM+:} false; then :
5472 $as_echo_n "(cached) " >&6
5473 else
5474 if test -n "$NM"; then
5475 # Let the user override the test.
5476 lt_cv_path_NM="$NM"
5477 else
5478 lt_nm_to_check="${ac_tool_prefix}nm"
5479 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5480 lt_nm_to_check="$lt_nm_to_check nm"
5482 for lt_tmp_nm in $lt_nm_to_check; do
5483 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5484 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5485 IFS="$lt_save_ifs"
5486 test -z "$ac_dir" && ac_dir=.
5487 tmp_nm="$ac_dir/$lt_tmp_nm"
5488 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5489 # Check to see if the nm accepts a BSD-compat flag.
5490 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5491 # nm: unknown option "B" ignored
5492 # Tru64's nm complains that /dev/null is an invalid object file
5493 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5494 */dev/null* | *'Invalid file or object type'*)
5495 lt_cv_path_NM="$tmp_nm -B"
5496 break
5499 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5500 */dev/null*)
5501 lt_cv_path_NM="$tmp_nm -p"
5502 break
5505 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5506 continue # so that we can try to find one that supports BSD flags
5508 esac
5510 esac
5512 done
5513 IFS="$lt_save_ifs"
5514 done
5515 : ${lt_cv_path_NM=no}
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5519 $as_echo "$lt_cv_path_NM" >&6; }
5520 if test "$lt_cv_path_NM" != "no"; then
5521 NM="$lt_cv_path_NM"
5522 else
5523 # Didn't find any BSD compatible name lister, look for dumpbin.
5524 if test -n "$DUMPBIN"; then :
5525 # Let the user override the test.
5526 else
5527 if test -n "$ac_tool_prefix"; then
5528 for ac_prog in dumpbin "link -dump"
5530 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5533 $as_echo_n "checking for $ac_word... " >&6; }
5534 if ${ac_cv_prog_DUMPBIN+:} false; then :
5535 $as_echo_n "(cached) " >&6
5536 else
5537 if test -n "$DUMPBIN"; then
5538 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5539 else
5540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5541 for as_dir in $PATH
5543 IFS=$as_save_IFS
5544 test -z "$as_dir" && as_dir=.
5545 for ac_exec_ext in '' $ac_executable_extensions; do
5546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5547 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5549 break 2
5551 done
5552 done
5553 IFS=$as_save_IFS
5557 DUMPBIN=$ac_cv_prog_DUMPBIN
5558 if test -n "$DUMPBIN"; then
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5560 $as_echo "$DUMPBIN" >&6; }
5561 else
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5563 $as_echo "no" >&6; }
5567 test -n "$DUMPBIN" && break
5568 done
5570 if test -z "$DUMPBIN"; then
5571 ac_ct_DUMPBIN=$DUMPBIN
5572 for ac_prog in dumpbin "link -dump"
5574 # Extract the first word of "$ac_prog", so it can be a program name with args.
5575 set dummy $ac_prog; ac_word=$2
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5577 $as_echo_n "checking for $ac_word... " >&6; }
5578 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580 else
5581 if test -n "$ac_ct_DUMPBIN"; then
5582 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5583 else
5584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5585 for as_dir in $PATH
5587 IFS=$as_save_IFS
5588 test -z "$as_dir" && as_dir=.
5589 for ac_exec_ext in '' $ac_executable_extensions; do
5590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5591 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5593 break 2
5595 done
5596 done
5597 IFS=$as_save_IFS
5601 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5602 if test -n "$ac_ct_DUMPBIN"; then
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5604 $as_echo "$ac_ct_DUMPBIN" >&6; }
5605 else
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5607 $as_echo "no" >&6; }
5611 test -n "$ac_ct_DUMPBIN" && break
5612 done
5614 if test "x$ac_ct_DUMPBIN" = x; then
5615 DUMPBIN=":"
5616 else
5617 case $cross_compiling:$ac_tool_warned in
5618 yes:)
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5621 ac_tool_warned=yes ;;
5622 esac
5623 DUMPBIN=$ac_ct_DUMPBIN
5627 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5628 *COFF*)
5629 DUMPBIN="$DUMPBIN -symbols"
5632 DUMPBIN=:
5634 esac
5637 if test "$DUMPBIN" != ":"; then
5638 NM="$DUMPBIN"
5641 test -z "$NM" && NM=nm
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5649 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5650 if ${lt_cv_nm_interface+:} false; then :
5651 $as_echo_n "(cached) " >&6
5652 else
5653 lt_cv_nm_interface="BSD nm"
5654 echo "int some_variable = 0;" > conftest.$ac_ext
5655 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5656 (eval "$ac_compile" 2>conftest.err)
5657 cat conftest.err >&5
5658 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5659 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5660 cat conftest.err >&5
5661 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5662 cat conftest.out >&5
5663 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5664 lt_cv_nm_interface="MS dumpbin"
5666 rm -f conftest*
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5669 $as_echo "$lt_cv_nm_interface" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5672 $as_echo_n "checking whether ln -s works... " >&6; }
5673 LN_S=$as_ln_s
5674 if test "$LN_S" = "ln -s"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5676 $as_echo "yes" >&6; }
5677 else
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5679 $as_echo "no, using $LN_S" >&6; }
5682 # find the maximum length of command line arguments
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5684 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5685 if ${lt_cv_sys_max_cmd_len+:} false; then :
5686 $as_echo_n "(cached) " >&6
5687 else
5689 teststring="ABCD"
5691 case $build_os in
5692 msdosdjgpp*)
5693 # On DJGPP, this test can blow up pretty badly due to problems in libc
5694 # (any single argument exceeding 2000 bytes causes a buffer overrun
5695 # during glob expansion). Even if it were fixed, the result of this
5696 # check would be larger than it should be.
5697 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5700 gnu*)
5701 # Under GNU Hurd, this test is not required because there is
5702 # no limit to the length of command line arguments.
5703 # Libtool will interpret -1 as no limit whatsoever
5704 lt_cv_sys_max_cmd_len=-1;
5707 cygwin* | mingw* | cegcc*)
5708 # On Win9x/ME, this test blows up -- it succeeds, but takes
5709 # about 5 minutes as the teststring grows exponentially.
5710 # Worse, since 9x/ME are not pre-emptively multitasking,
5711 # you end up with a "frozen" computer, even though with patience
5712 # the test eventually succeeds (with a max line length of 256k).
5713 # Instead, let's just punt: use the minimum linelength reported by
5714 # all of the supported platforms: 8192 (on NT/2K/XP).
5715 lt_cv_sys_max_cmd_len=8192;
5718 mint*)
5719 # On MiNT this can take a long time and run out of memory.
5720 lt_cv_sys_max_cmd_len=8192;
5723 amigaos*)
5724 # On AmigaOS with pdksh, this test takes hours, literally.
5725 # So we just punt and use a minimum line length of 8192.
5726 lt_cv_sys_max_cmd_len=8192;
5729 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5730 # This has been around since 386BSD, at least. Likely further.
5731 if test -x /sbin/sysctl; then
5732 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5733 elif test -x /usr/sbin/sysctl; then
5734 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5735 else
5736 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5738 # And add a safety zone
5739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5743 interix*)
5744 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5745 lt_cv_sys_max_cmd_len=196608
5748 osf*)
5749 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5750 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5751 # nice to cause kernel panics so lets avoid the loop below.
5752 # First set a reasonable default.
5753 lt_cv_sys_max_cmd_len=16384
5755 if test -x /sbin/sysconfig; then
5756 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5757 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5758 esac
5761 sco3.2v5*)
5762 lt_cv_sys_max_cmd_len=102400
5764 sysv5* | sco5v6* | sysv4.2uw2*)
5765 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5766 if test -n "$kargmax"; then
5767 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5768 else
5769 lt_cv_sys_max_cmd_len=32768
5773 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5774 if test -n "$lt_cv_sys_max_cmd_len"; then
5775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5777 else
5778 # Make teststring a little bigger before we do anything with it.
5779 # a 1K string should be a reasonable start.
5780 for i in 1 2 3 4 5 6 7 8 ; do
5781 teststring=$teststring$teststring
5782 done
5783 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5784 # If test is not a shell built-in, we'll probably end up computing a
5785 # maximum length that is only half of the actual maximum length, but
5786 # we can't tell.
5787 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5788 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5789 test $i != 17 # 1/2 MB should be enough
5791 i=`expr $i + 1`
5792 teststring=$teststring$teststring
5793 done
5794 # Only check the string length outside the loop.
5795 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5796 teststring=
5797 # Add a significant safety factor because C++ compilers can tack on
5798 # massive amounts of additional arguments before passing them to the
5799 # linker. It appears as though 1/2 is a usable value.
5800 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5803 esac
5807 if test -n $lt_cv_sys_max_cmd_len ; then
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5809 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5810 else
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5812 $as_echo "none" >&6; }
5814 max_cmd_len=$lt_cv_sys_max_cmd_len
5821 : ${CP="cp -f"}
5822 : ${MV="mv -f"}
5823 : ${RM="rm -f"}
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5826 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5827 # Try some XSI features
5828 xsi_shell=no
5829 ( _lt_dummy="a/b/c"
5830 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5831 = c,a/b,, \
5832 && eval 'test $(( 1 + 1 )) -eq 2 \
5833 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5834 && xsi_shell=yes
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5836 $as_echo "$xsi_shell" >&6; }
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5840 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5841 lt_shell_append=no
5842 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5843 >/dev/null 2>&1 \
5844 && lt_shell_append=yes
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5846 $as_echo "$lt_shell_append" >&6; }
5849 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5850 lt_unset=unset
5851 else
5852 lt_unset=false
5859 # test EBCDIC or ASCII
5860 case `echo X|tr X '\101'` in
5861 A) # ASCII based system
5862 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5863 lt_SP2NL='tr \040 \012'
5864 lt_NL2SP='tr \015\012 \040\040'
5866 *) # EBCDIC based system
5867 lt_SP2NL='tr \100 \n'
5868 lt_NL2SP='tr \r\n \100\100'
5870 esac
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5881 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5882 if ${lt_cv_ld_reload_flag+:} false; then :
5883 $as_echo_n "(cached) " >&6
5884 else
5885 lt_cv_ld_reload_flag='-r'
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5888 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5889 reload_flag=$lt_cv_ld_reload_flag
5890 case $reload_flag in
5891 "" | " "*) ;;
5892 *) reload_flag=" $reload_flag" ;;
5893 esac
5894 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5895 case $host_os in
5896 darwin*)
5897 if test "$GCC" = yes; then
5898 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5899 else
5900 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5903 esac
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5917 $as_echo_n "checking for $ac_word... " >&6; }
5918 if ${ac_cv_prog_OBJDUMP+:} false; then :
5919 $as_echo_n "(cached) " >&6
5920 else
5921 if test -n "$OBJDUMP"; then
5922 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5923 else
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5925 for as_dir in $PATH
5927 IFS=$as_save_IFS
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5933 break 2
5935 done
5936 done
5937 IFS=$as_save_IFS
5941 OBJDUMP=$ac_cv_prog_OBJDUMP
5942 if test -n "$OBJDUMP"; then
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5944 $as_echo "$OBJDUMP" >&6; }
5945 else
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5947 $as_echo "no" >&6; }
5952 if test -z "$ac_cv_prog_OBJDUMP"; then
5953 ac_ct_OBJDUMP=$OBJDUMP
5954 # Extract the first word of "objdump", so it can be a program name with args.
5955 set dummy objdump; ac_word=$2
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5957 $as_echo_n "checking for $ac_word... " >&6; }
5958 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5959 $as_echo_n "(cached) " >&6
5960 else
5961 if test -n "$ac_ct_OBJDUMP"; then
5962 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5963 else
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5965 for as_dir in $PATH
5967 IFS=$as_save_IFS
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5973 break 2
5975 done
5976 done
5977 IFS=$as_save_IFS
5981 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5982 if test -n "$ac_ct_OBJDUMP"; then
5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5984 $as_echo "$ac_ct_OBJDUMP" >&6; }
5985 else
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 $as_echo "no" >&6; }
5990 if test "x$ac_ct_OBJDUMP" = x; then
5991 OBJDUMP="false"
5992 else
5993 case $cross_compiling:$ac_tool_warned in
5994 yes:)
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5996 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5997 ac_tool_warned=yes ;;
5998 esac
5999 OBJDUMP=$ac_ct_OBJDUMP
6001 else
6002 OBJDUMP="$ac_cv_prog_OBJDUMP"
6005 test -z "$OBJDUMP" && OBJDUMP=objdump
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6016 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6017 if ${lt_cv_deplibs_check_method+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 lt_cv_file_magic_cmd='$MAGIC_CMD'
6021 lt_cv_file_magic_test_file=
6022 lt_cv_deplibs_check_method='unknown'
6023 # Need to set the preceding variable on all platforms that support
6024 # interlibrary dependencies.
6025 # 'none' -- dependencies not supported.
6026 # `unknown' -- same as none, but documents that we really don't know.
6027 # 'pass_all' -- all dependencies passed with no checks.
6028 # 'test_compile' -- check by making test program.
6029 # 'file_magic [[regex]]' -- check by looking for files in library path
6030 # which responds to the $file_magic_cmd with a given extended regex.
6031 # If you have `file' or equivalent on your system and you're not sure
6032 # whether `pass_all' will *always* work, you probably want this one.
6034 case $host_os in
6035 aix[4-9]*)
6036 lt_cv_deplibs_check_method=pass_all
6039 beos*)
6040 lt_cv_deplibs_check_method=pass_all
6043 bsdi[45]*)
6044 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6045 lt_cv_file_magic_cmd='/usr/bin/file -L'
6046 lt_cv_file_magic_test_file=/shlib/libc.so
6049 cygwin*)
6050 # func_win32_libid is a shell function defined in ltmain.sh
6051 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6052 lt_cv_file_magic_cmd='func_win32_libid'
6055 mingw* | pw32*)
6056 # Base MSYS/MinGW do not provide the 'file' command needed by
6057 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6058 # unless we find 'file', for example because we are cross-compiling.
6059 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6060 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6061 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6062 lt_cv_file_magic_cmd='func_win32_libid'
6063 else
6064 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6065 lt_cv_file_magic_cmd='$OBJDUMP -f'
6069 cegcc*)
6070 # use the weaker test based on 'objdump'. See mingw*.
6071 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6072 lt_cv_file_magic_cmd='$OBJDUMP -f'
6075 darwin* | rhapsody*)
6076 lt_cv_deplibs_check_method=pass_all
6079 freebsd* | dragonfly*)
6080 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6081 case $host_cpu in
6082 i*86 )
6083 # Not sure whether the presence of OpenBSD here was a mistake.
6084 # Let's accept both of them until this is cleared up.
6085 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6086 lt_cv_file_magic_cmd=/usr/bin/file
6087 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6089 esac
6090 else
6091 lt_cv_deplibs_check_method=pass_all
6095 gnu*)
6096 lt_cv_deplibs_check_method=pass_all
6099 haiku*)
6100 lt_cv_deplibs_check_method=pass_all
6103 hpux10.20* | hpux11*)
6104 lt_cv_file_magic_cmd=/usr/bin/file
6105 case $host_cpu in
6106 ia64*)
6107 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6108 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6110 hppa*64*)
6111 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]'
6112 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6115 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6116 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6118 esac
6121 interix[3-9]*)
6122 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6126 irix5* | irix6* | nonstopux*)
6127 case $LD in
6128 *-32|*"-32 ") libmagic=32-bit;;
6129 *-n32|*"-n32 ") libmagic=N32;;
6130 *-64|*"-64 ") libmagic=64-bit;;
6131 *) libmagic=never-match;;
6132 esac
6133 lt_cv_deplibs_check_method=pass_all
6136 # This must be Linux ELF.
6137 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6138 lt_cv_deplibs_check_method=pass_all
6141 netbsd*)
6142 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6143 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6144 else
6145 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6149 newos6*)
6150 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6151 lt_cv_file_magic_cmd=/usr/bin/file
6152 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6155 *nto* | *qnx*)
6156 lt_cv_deplibs_check_method=pass_all
6159 openbsd*)
6160 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6162 else
6163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6167 osf3* | osf4* | osf5*)
6168 lt_cv_deplibs_check_method=pass_all
6171 rdos*)
6172 lt_cv_deplibs_check_method=pass_all
6175 solaris*)
6176 lt_cv_deplibs_check_method=pass_all
6179 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6180 lt_cv_deplibs_check_method=pass_all
6183 sysv4 | sysv4.3*)
6184 case $host_vendor in
6185 motorola)
6186 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]'
6187 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6189 ncr)
6190 lt_cv_deplibs_check_method=pass_all
6192 sequent)
6193 lt_cv_file_magic_cmd='/bin/file'
6194 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6196 sni)
6197 lt_cv_file_magic_cmd='/bin/file'
6198 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6199 lt_cv_file_magic_test_file=/lib/libc.so
6201 siemens)
6202 lt_cv_deplibs_check_method=pass_all
6205 lt_cv_deplibs_check_method=pass_all
6207 esac
6210 tpf*)
6211 lt_cv_deplibs_check_method=pass_all
6213 esac
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6217 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6218 file_magic_cmd=$lt_cv_file_magic_cmd
6219 deplibs_check_method=$lt_cv_deplibs_check_method
6220 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6233 if test -n "$ac_tool_prefix"; then
6234 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6235 set dummy ${ac_tool_prefix}ar; ac_word=$2
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237 $as_echo_n "checking for $ac_word... " >&6; }
6238 if ${ac_cv_prog_AR+:} false; then :
6239 $as_echo_n "(cached) " >&6
6240 else
6241 if test -n "$AR"; then
6242 ac_cv_prog_AR="$AR" # Let the user override the test.
6243 else
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6251 ac_cv_prog_AR="${ac_tool_prefix}ar"
6252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6255 done
6256 done
6257 IFS=$as_save_IFS
6261 AR=$ac_cv_prog_AR
6262 if test -n "$AR"; then
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6264 $as_echo "$AR" >&6; }
6265 else
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6267 $as_echo "no" >&6; }
6272 if test -z "$ac_cv_prog_AR"; then
6273 ac_ct_AR=$AR
6274 # Extract the first word of "ar", so it can be a program name with args.
6275 set dummy ar; ac_word=$2
6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6277 $as_echo_n "checking for $ac_word... " >&6; }
6278 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6279 $as_echo_n "(cached) " >&6
6280 else
6281 if test -n "$ac_ct_AR"; then
6282 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6283 else
6284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6285 for as_dir in $PATH
6287 IFS=$as_save_IFS
6288 test -z "$as_dir" && as_dir=.
6289 for ac_exec_ext in '' $ac_executable_extensions; do
6290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6291 ac_cv_prog_ac_ct_AR="ar"
6292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 break 2
6295 done
6296 done
6297 IFS=$as_save_IFS
6301 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6302 if test -n "$ac_ct_AR"; then
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6304 $as_echo "$ac_ct_AR" >&6; }
6305 else
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6307 $as_echo "no" >&6; }
6310 if test "x$ac_ct_AR" = x; then
6311 AR="false"
6312 else
6313 case $cross_compiling:$ac_tool_warned in
6314 yes:)
6315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6317 ac_tool_warned=yes ;;
6318 esac
6319 AR=$ac_ct_AR
6321 else
6322 AR="$ac_cv_prog_AR"
6325 test -z "$AR" && AR=ar
6326 test -z "$AR_FLAGS" && AR_FLAGS=cru
6338 if test -n "$ac_tool_prefix"; then
6339 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6340 set dummy ${ac_tool_prefix}strip; ac_word=$2
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6342 $as_echo_n "checking for $ac_word... " >&6; }
6343 if ${ac_cv_prog_STRIP+:} false; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 if test -n "$STRIP"; then
6347 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6348 else
6349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6350 for as_dir in $PATH
6352 IFS=$as_save_IFS
6353 test -z "$as_dir" && as_dir=.
6354 for ac_exec_ext in '' $ac_executable_extensions; do
6355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6356 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6358 break 2
6360 done
6361 done
6362 IFS=$as_save_IFS
6366 STRIP=$ac_cv_prog_STRIP
6367 if test -n "$STRIP"; then
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6369 $as_echo "$STRIP" >&6; }
6370 else
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6372 $as_echo "no" >&6; }
6377 if test -z "$ac_cv_prog_STRIP"; then
6378 ac_ct_STRIP=$STRIP
6379 # Extract the first word of "strip", so it can be a program name with args.
6380 set dummy strip; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$ac_ct_STRIP"; then
6387 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6396 ac_cv_prog_ac_ct_STRIP="strip"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6400 done
6401 done
6402 IFS=$as_save_IFS
6406 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6407 if test -n "$ac_ct_STRIP"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6409 $as_echo "$ac_ct_STRIP" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6415 if test "x$ac_ct_STRIP" = x; then
6416 STRIP=":"
6417 else
6418 case $cross_compiling:$ac_tool_warned in
6419 yes:)
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6422 ac_tool_warned=yes ;;
6423 esac
6424 STRIP=$ac_ct_STRIP
6426 else
6427 STRIP="$ac_cv_prog_STRIP"
6430 test -z "$STRIP" && STRIP=:
6437 if test -n "$ac_tool_prefix"; then
6438 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6439 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_RANLIB+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$RANLIB"; then
6446 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6459 done
6460 done
6461 IFS=$as_save_IFS
6465 RANLIB=$ac_cv_prog_RANLIB
6466 if test -n "$RANLIB"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6468 $as_echo "$RANLIB" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6476 if test -z "$ac_cv_prog_RANLIB"; then
6477 ac_ct_RANLIB=$RANLIB
6478 # Extract the first word of "ranlib", so it can be a program name with args.
6479 set dummy ranlib; ac_word=$2
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6481 $as_echo_n "checking for $ac_word... " >&6; }
6482 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6483 $as_echo_n "(cached) " >&6
6484 else
6485 if test -n "$ac_ct_RANLIB"; then
6486 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6487 else
6488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6489 for as_dir in $PATH
6491 IFS=$as_save_IFS
6492 test -z "$as_dir" && as_dir=.
6493 for ac_exec_ext in '' $ac_executable_extensions; do
6494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6495 ac_cv_prog_ac_ct_RANLIB="ranlib"
6496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6497 break 2
6499 done
6500 done
6501 IFS=$as_save_IFS
6505 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6506 if test -n "$ac_ct_RANLIB"; then
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6508 $as_echo "$ac_ct_RANLIB" >&6; }
6509 else
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6511 $as_echo "no" >&6; }
6514 if test "x$ac_ct_RANLIB" = x; then
6515 RANLIB=":"
6516 else
6517 case $cross_compiling:$ac_tool_warned in
6518 yes:)
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6521 ac_tool_warned=yes ;;
6522 esac
6523 RANLIB=$ac_ct_RANLIB
6525 else
6526 RANLIB="$ac_cv_prog_RANLIB"
6529 test -z "$RANLIB" && RANLIB=:
6536 # Determine commands to create old-style static archives.
6537 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6538 old_postinstall_cmds='chmod 644 $oldlib'
6539 old_postuninstall_cmds=
6541 if test -n "$RANLIB"; then
6542 case $host_os in
6543 openbsd*)
6544 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6547 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6549 esac
6550 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6553 case $host_os in
6554 darwin*)
6555 lock_old_archive_extraction=yes ;;
6557 lock_old_archive_extraction=no ;;
6558 esac
6598 # If no C compiler was specified, use CC.
6599 LTCC=${LTCC-"$CC"}
6601 # If no C compiler flags were specified, use CFLAGS.
6602 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6604 # Allow CC to be a program name with arguments.
6605 compiler=$CC
6608 # Check for command to grab the raw symbol name followed by C symbol from nm.
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6610 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6611 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6615 # These are sane defaults that work on at least a few old systems.
6616 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6618 # Character class describing NM global symbol codes.
6619 symcode='[BCDEGRST]'
6621 # Regexp to match symbols that can be accessed directly from C.
6622 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6624 # Define system-specific variables.
6625 case $host_os in
6626 aix*)
6627 symcode='[BCDT]'
6629 cygwin* | mingw* | pw32* | cegcc*)
6630 symcode='[ABCDGISTW]'
6632 hpux*)
6633 if test "$host_cpu" = ia64; then
6634 symcode='[ABCDEGRST]'
6637 irix* | nonstopux*)
6638 symcode='[BCDEGRST]'
6640 osf*)
6641 symcode='[BCDEGQRST]'
6643 solaris*)
6644 symcode='[BDRT]'
6646 sco3.2v5*)
6647 symcode='[DT]'
6649 sysv4.2uw2*)
6650 symcode='[DT]'
6652 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6653 symcode='[ABDT]'
6655 sysv4)
6656 symcode='[DFNSTU]'
6658 esac
6660 # If we're using GNU nm, then use its standard symbol codes.
6661 case `$NM -V 2>&1` in
6662 *GNU* | *'with BFD'*)
6663 symcode='[ABCDGIRSTW]' ;;
6664 esac
6666 # Transform an extracted symbol line into a proper C declaration.
6667 # Some systems (esp. on ia64) link data and code symbols differently,
6668 # so use this general approach.
6669 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6671 # Transform an extracted symbol line into symbol name and symbol address
6672 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6673 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'"
6675 # Handle CRLF in mingw tool chain
6676 opt_cr=
6677 case $build_os in
6678 mingw*)
6679 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6681 esac
6683 # Try without a prefix underscore, then with it.
6684 for ac_symprfx in "" "_"; do
6686 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6687 symxfrm="\\1 $ac_symprfx\\2 \\2"
6689 # Write the raw and C identifiers.
6690 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6691 # Fake it for dumpbin and say T for any non-static function
6692 # and D for any global variable.
6693 # Also find C++ and __fastcall symbols from MSVC++,
6694 # which start with @ or ?.
6695 lt_cv_sys_global_symbol_pipe="$AWK '"\
6696 " {last_section=section; section=\$ 3};"\
6697 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6698 " \$ 0!~/External *\|/{next};"\
6699 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6700 " {if(hide[section]) next};"\
6701 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6702 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6703 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6704 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6705 " ' prfx=^$ac_symprfx"
6706 else
6707 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6710 # Check to see that the pipe works correctly.
6711 pipe_works=no
6713 rm -f conftest*
6714 cat > conftest.$ac_ext <<_LT_EOF
6715 #ifdef __cplusplus
6716 extern "C" {
6717 #endif
6718 char nm_test_var;
6719 void nm_test_func(void);
6720 void nm_test_func(void){}
6721 #ifdef __cplusplus
6723 #endif
6724 int main(){nm_test_var='a';nm_test_func();return(0);}
6725 _LT_EOF
6727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6728 (eval $ac_compile) 2>&5
6729 ac_status=$?
6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731 test $ac_status = 0; }; then
6732 # Now try to grab the symbols.
6733 nlist=conftest.nm
6734 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6735 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6736 ac_status=$?
6737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6738 test $ac_status = 0; } && test -s "$nlist"; then
6739 # Try sorting and uniquifying the output.
6740 if sort "$nlist" | uniq > "$nlist"T; then
6741 mv -f "$nlist"T "$nlist"
6742 else
6743 rm -f "$nlist"T
6746 # Make sure that we snagged all the symbols we need.
6747 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6748 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6749 cat <<_LT_EOF > conftest.$ac_ext
6750 #ifdef __cplusplus
6751 extern "C" {
6752 #endif
6754 _LT_EOF
6755 # Now generate the symbol file.
6756 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6758 cat <<_LT_EOF >> conftest.$ac_ext
6760 /* The mapping between symbol names and symbols. */
6761 const struct {
6762 const char *name;
6763 void *address;
6765 lt__PROGRAM__LTX_preloaded_symbols[] =
6767 { "@PROGRAM@", (void *) 0 },
6768 _LT_EOF
6769 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6770 cat <<\_LT_EOF >> conftest.$ac_ext
6771 {0, (void *) 0}
6774 /* This works around a problem in FreeBSD linker */
6775 #ifdef FREEBSD_WORKAROUND
6776 static const void *lt_preloaded_setup() {
6777 return lt__PROGRAM__LTX_preloaded_symbols;
6779 #endif
6781 #ifdef __cplusplus
6783 #endif
6784 _LT_EOF
6785 # Now try linking the two files.
6786 mv conftest.$ac_objext conftstm.$ac_objext
6787 lt_save_LIBS="$LIBS"
6788 lt_save_CFLAGS="$CFLAGS"
6789 LIBS="conftstm.$ac_objext"
6790 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6791 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6792 (eval $ac_link) 2>&5
6793 ac_status=$?
6794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6795 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6796 pipe_works=yes
6798 LIBS="$lt_save_LIBS"
6799 CFLAGS="$lt_save_CFLAGS"
6800 else
6801 echo "cannot find nm_test_func in $nlist" >&5
6803 else
6804 echo "cannot find nm_test_var in $nlist" >&5
6806 else
6807 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6809 else
6810 echo "$progname: failed program was:" >&5
6811 cat conftest.$ac_ext >&5
6813 rm -rf conftest* conftst*
6815 # Do not use the global_symbol_pipe unless it works.
6816 if test "$pipe_works" = yes; then
6817 break
6818 else
6819 lt_cv_sys_global_symbol_pipe=
6821 done
6825 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6826 lt_cv_sys_global_symbol_to_cdecl=
6828 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6830 $as_echo "failed" >&6; }
6831 else
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6833 $as_echo "ok" >&6; }
6858 # Check whether --enable-libtool-lock was given.
6859 if test "${enable_libtool_lock+set}" = set; then :
6860 enableval=$enable_libtool_lock;
6863 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6865 # Some flags need to be propagated to the compiler or linker for good
6866 # libtool support.
6867 case $host in
6868 ia64-*-hpux*)
6869 # Find out which ABI we are using.
6870 echo 'int i;' > conftest.$ac_ext
6871 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6872 (eval $ac_compile) 2>&5
6873 ac_status=$?
6874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6875 test $ac_status = 0; }; then
6876 case `/usr/bin/file conftest.$ac_objext` in
6877 *ELF-32*)
6878 HPUX_IA64_MODE="32"
6880 *ELF-64*)
6881 HPUX_IA64_MODE="64"
6883 esac
6885 rm -rf conftest*
6887 *-*-irix6*)
6888 # Find out which ABI we are using.
6889 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6890 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6891 (eval $ac_compile) 2>&5
6892 ac_status=$?
6893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6894 test $ac_status = 0; }; then
6895 if test "$lt_cv_prog_gnu_ld" = yes; then
6896 case `/usr/bin/file conftest.$ac_objext` in
6897 *32-bit*)
6898 LD="${LD-ld} -melf32bsmip"
6900 *N32*)
6901 LD="${LD-ld} -melf32bmipn32"
6903 *64-bit*)
6904 LD="${LD-ld} -melf64bmip"
6906 esac
6907 else
6908 case `/usr/bin/file conftest.$ac_objext` in
6909 *32-bit*)
6910 LD="${LD-ld} -32"
6912 *N32*)
6913 LD="${LD-ld} -n32"
6915 *64-bit*)
6916 LD="${LD-ld} -64"
6918 esac
6921 rm -rf conftest*
6924 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6925 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6926 # Find out which ABI we are using.
6927 echo 'int i;' > conftest.$ac_ext
6928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6929 (eval $ac_compile) 2>&5
6930 ac_status=$?
6931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6932 test $ac_status = 0; }; then
6933 case `/usr/bin/file conftest.o` in
6934 *32-bit*)
6935 case $host in
6936 x86_64-*kfreebsd*-gnu)
6937 LD="${LD-ld} -m elf_i386_fbsd"
6939 x86_64-*linux*)
6940 case `/usr/bin/file conftest.o` in
6941 *x86-64*)
6942 LD="${LD-ld} -m elf32_x86_64"
6945 LD="${LD-ld} -m elf_i386"
6947 esac
6949 powerpc64le-*linux*)
6950 LD="${LD-ld} -m elf32lppclinux"
6952 powerpc64-*linux*)
6953 LD="${LD-ld} -m elf32ppclinux"
6955 s390x-*linux*)
6956 LD="${LD-ld} -m elf_s390"
6958 sparc64-*linux*)
6959 LD="${LD-ld} -m elf32_sparc"
6961 esac
6963 *64-bit*)
6964 case $host in
6965 x86_64-*kfreebsd*-gnu)
6966 LD="${LD-ld} -m elf_x86_64_fbsd"
6968 x86_64-*linux*)
6969 LD="${LD-ld} -m elf_x86_64"
6971 powerpcle-*linux*)
6972 LD="${LD-ld} -m elf64lppc"
6974 powerpc-*linux*)
6975 LD="${LD-ld} -m elf64ppc"
6977 s390*-*linux*|s390*-*tpf*)
6978 LD="${LD-ld} -m elf64_s390"
6980 sparc*-*linux*)
6981 LD="${LD-ld} -m elf64_sparc"
6983 esac
6985 esac
6987 rm -rf conftest*
6990 *-*-sco3.2v5*)
6991 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6992 SAVE_CFLAGS="$CFLAGS"
6993 CFLAGS="$CFLAGS -belf"
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6995 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6996 if ${lt_cv_cc_needs_belf+:} false; then :
6997 $as_echo_n "(cached) " >&6
6998 else
6999 ac_ext=c
7000 ac_cpp='$CPP $CPPFLAGS'
7001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7009 main ()
7013 return 0;
7015 _ACEOF
7016 if ac_fn_c_try_link "$LINENO"; then :
7017 lt_cv_cc_needs_belf=yes
7018 else
7019 lt_cv_cc_needs_belf=no
7021 rm -f core conftest.err conftest.$ac_objext \
7022 conftest$ac_exeext conftest.$ac_ext
7023 ac_ext=c
7024 ac_cpp='$CPP $CPPFLAGS'
7025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7031 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7032 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7033 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7034 CFLAGS="$SAVE_CFLAGS"
7037 sparc*-*solaris*)
7038 # Find out which ABI we are using.
7039 echo 'int i;' > conftest.$ac_ext
7040 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7041 (eval $ac_compile) 2>&5
7042 ac_status=$?
7043 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7044 test $ac_status = 0; }; then
7045 case `/usr/bin/file conftest.o` in
7046 *64-bit*)
7047 case $lt_cv_prog_gnu_ld in
7048 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7050 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7051 LD="${LD-ld} -64"
7054 esac
7056 esac
7058 rm -rf conftest*
7060 esac
7062 need_locks="$enable_libtool_lock"
7065 case $host_os in
7066 rhapsody* | darwin*)
7067 if test -n "$ac_tool_prefix"; then
7068 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7069 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$DSYMUTIL"; then
7076 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7089 done
7090 done
7091 IFS=$as_save_IFS
7095 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7096 if test -n "$DSYMUTIL"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7098 $as_echo "$DSYMUTIL" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7106 if test -z "$ac_cv_prog_DSYMUTIL"; then
7107 ac_ct_DSYMUTIL=$DSYMUTIL
7108 # Extract the first word of "dsymutil", so it can be a program name with args.
7109 set dummy dsymutil; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test -n "$ac_ct_DSYMUTIL"; then
7116 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7129 done
7130 done
7131 IFS=$as_save_IFS
7135 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7136 if test -n "$ac_ct_DSYMUTIL"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7138 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7144 if test "x$ac_ct_DSYMUTIL" = x; then
7145 DSYMUTIL=":"
7146 else
7147 case $cross_compiling:$ac_tool_warned in
7148 yes:)
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151 ac_tool_warned=yes ;;
7152 esac
7153 DSYMUTIL=$ac_ct_DSYMUTIL
7155 else
7156 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7159 if test -n "$ac_tool_prefix"; then
7160 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7161 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_NMEDIT+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 if test -n "$NMEDIT"; then
7168 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7181 done
7182 done
7183 IFS=$as_save_IFS
7187 NMEDIT=$ac_cv_prog_NMEDIT
7188 if test -n "$NMEDIT"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7190 $as_echo "$NMEDIT" >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7198 if test -z "$ac_cv_prog_NMEDIT"; then
7199 ac_ct_NMEDIT=$NMEDIT
7200 # Extract the first word of "nmedit", so it can be a program name with args.
7201 set dummy nmedit; ac_word=$2
7202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7203 $as_echo_n "checking for $ac_word... " >&6; }
7204 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7205 $as_echo_n "(cached) " >&6
7206 else
7207 if test -n "$ac_ct_NMEDIT"; then
7208 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7209 else
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7211 for as_dir in $PATH
7213 IFS=$as_save_IFS
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7217 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7219 break 2
7221 done
7222 done
7223 IFS=$as_save_IFS
7227 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7228 if test -n "$ac_ct_NMEDIT"; then
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7230 $as_echo "$ac_ct_NMEDIT" >&6; }
7231 else
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7233 $as_echo "no" >&6; }
7236 if test "x$ac_ct_NMEDIT" = x; then
7237 NMEDIT=":"
7238 else
7239 case $cross_compiling:$ac_tool_warned in
7240 yes:)
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7243 ac_tool_warned=yes ;;
7244 esac
7245 NMEDIT=$ac_ct_NMEDIT
7247 else
7248 NMEDIT="$ac_cv_prog_NMEDIT"
7251 if test -n "$ac_tool_prefix"; then
7252 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7253 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_LIPO+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 if test -n "$LIPO"; then
7260 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7273 done
7274 done
7275 IFS=$as_save_IFS
7279 LIPO=$ac_cv_prog_LIPO
7280 if test -n "$LIPO"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7282 $as_echo "$LIPO" >&6; }
7283 else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7290 if test -z "$ac_cv_prog_LIPO"; then
7291 ac_ct_LIPO=$LIPO
7292 # Extract the first word of "lipo", so it can be a program name with args.
7293 set dummy lipo; ac_word=$2
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7295 $as_echo_n "checking for $ac_word... " >&6; }
7296 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7297 $as_echo_n "(cached) " >&6
7298 else
7299 if test -n "$ac_ct_LIPO"; then
7300 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7301 else
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_prog_ac_ct_LIPO="lipo"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7313 done
7314 done
7315 IFS=$as_save_IFS
7319 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7320 if test -n "$ac_ct_LIPO"; then
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7322 $as_echo "$ac_ct_LIPO" >&6; }
7323 else
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }
7328 if test "x$ac_ct_LIPO" = x; then
7329 LIPO=":"
7330 else
7331 case $cross_compiling:$ac_tool_warned in
7332 yes:)
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7334 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7335 ac_tool_warned=yes ;;
7336 esac
7337 LIPO=$ac_ct_LIPO
7339 else
7340 LIPO="$ac_cv_prog_LIPO"
7343 if test -n "$ac_tool_prefix"; then
7344 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7345 set dummy ${ac_tool_prefix}otool; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_OTOOL+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 if test -n "$OTOOL"; then
7352 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7365 done
7366 done
7367 IFS=$as_save_IFS
7371 OTOOL=$ac_cv_prog_OTOOL
7372 if test -n "$OTOOL"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7374 $as_echo "$OTOOL" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7382 if test -z "$ac_cv_prog_OTOOL"; then
7383 ac_ct_OTOOL=$OTOOL
7384 # Extract the first word of "otool", so it can be a program name with args.
7385 set dummy otool; ac_word=$2
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7387 $as_echo_n "checking for $ac_word... " >&6; }
7388 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7389 $as_echo_n "(cached) " >&6
7390 else
7391 if test -n "$ac_ct_OTOOL"; then
7392 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7393 else
7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7395 for as_dir in $PATH
7397 IFS=$as_save_IFS
7398 test -z "$as_dir" && as_dir=.
7399 for ac_exec_ext in '' $ac_executable_extensions; do
7400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7401 ac_cv_prog_ac_ct_OTOOL="otool"
7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7403 break 2
7405 done
7406 done
7407 IFS=$as_save_IFS
7411 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7412 if test -n "$ac_ct_OTOOL"; then
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7414 $as_echo "$ac_ct_OTOOL" >&6; }
7415 else
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7417 $as_echo "no" >&6; }
7420 if test "x$ac_ct_OTOOL" = x; then
7421 OTOOL=":"
7422 else
7423 case $cross_compiling:$ac_tool_warned in
7424 yes:)
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7427 ac_tool_warned=yes ;;
7428 esac
7429 OTOOL=$ac_ct_OTOOL
7431 else
7432 OTOOL="$ac_cv_prog_OTOOL"
7435 if test -n "$ac_tool_prefix"; then
7436 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7437 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7439 $as_echo_n "checking for $ac_word... " >&6; }
7440 if ${ac_cv_prog_OTOOL64+:} false; then :
7441 $as_echo_n "(cached) " >&6
7442 else
7443 if test -n "$OTOOL64"; then
7444 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7445 else
7446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 for as_dir in $PATH
7449 IFS=$as_save_IFS
7450 test -z "$as_dir" && as_dir=.
7451 for ac_exec_ext in '' $ac_executable_extensions; do
7452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7453 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7455 break 2
7457 done
7458 done
7459 IFS=$as_save_IFS
7463 OTOOL64=$ac_cv_prog_OTOOL64
7464 if test -n "$OTOOL64"; then
7465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7466 $as_echo "$OTOOL64" >&6; }
7467 else
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7469 $as_echo "no" >&6; }
7474 if test -z "$ac_cv_prog_OTOOL64"; then
7475 ac_ct_OTOOL64=$OTOOL64
7476 # Extract the first word of "otool64", so it can be a program name with args.
7477 set dummy otool64; ac_word=$2
7478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479 $as_echo_n "checking for $ac_word... " >&6; }
7480 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7481 $as_echo_n "(cached) " >&6
7482 else
7483 if test -n "$ac_ct_OTOOL64"; then
7484 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7485 else
7486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487 for as_dir in $PATH
7489 IFS=$as_save_IFS
7490 test -z "$as_dir" && as_dir=.
7491 for ac_exec_ext in '' $ac_executable_extensions; do
7492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7493 ac_cv_prog_ac_ct_OTOOL64="otool64"
7494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495 break 2
7497 done
7498 done
7499 IFS=$as_save_IFS
7503 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7504 if test -n "$ac_ct_OTOOL64"; then
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7506 $as_echo "$ac_ct_OTOOL64" >&6; }
7507 else
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509 $as_echo "no" >&6; }
7512 if test "x$ac_ct_OTOOL64" = x; then
7513 OTOOL64=":"
7514 else
7515 case $cross_compiling:$ac_tool_warned in
7516 yes:)
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7518 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7519 ac_tool_warned=yes ;;
7520 esac
7521 OTOOL64=$ac_ct_OTOOL64
7523 else
7524 OTOOL64="$ac_cv_prog_OTOOL64"
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7554 $as_echo_n "checking for -single_module linker flag... " >&6; }
7555 if ${lt_cv_apple_cc_single_mod+:} false; then :
7556 $as_echo_n "(cached) " >&6
7557 else
7558 lt_cv_apple_cc_single_mod=no
7559 if test -z "${LT_MULTI_MODULE}"; then
7560 # By default we will add the -single_module flag. You can override
7561 # by either setting the environment variable LT_MULTI_MODULE
7562 # non-empty at configure time, or by adding -multi_module to the
7563 # link flags.
7564 rm -rf libconftest.dylib*
7565 echo "int foo(void){return 1;}" > conftest.c
7566 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7567 -dynamiclib -Wl,-single_module conftest.c" >&5
7568 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7569 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7570 _lt_result=$?
7571 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7572 lt_cv_apple_cc_single_mod=yes
7573 else
7574 cat conftest.err >&5
7576 rm -rf libconftest.dylib*
7577 rm -f conftest.*
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7581 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7583 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7584 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 lt_cv_ld_exported_symbols_list=no
7588 save_LDFLAGS=$LDFLAGS
7589 echo "_main" > conftest.sym
7590 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7592 /* end confdefs.h. */
7595 main ()
7599 return 0;
7601 _ACEOF
7602 if ac_fn_c_try_link "$LINENO"; then :
7603 lt_cv_ld_exported_symbols_list=yes
7604 else
7605 lt_cv_ld_exported_symbols_list=no
7607 rm -f core conftest.err conftest.$ac_objext \
7608 conftest$ac_exeext conftest.$ac_ext
7609 LDFLAGS="$save_LDFLAGS"
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7613 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7615 $as_echo_n "checking for -force_load linker flag... " >&6; }
7616 if ${lt_cv_ld_force_load+:} false; then :
7617 $as_echo_n "(cached) " >&6
7618 else
7619 lt_cv_ld_force_load=no
7620 cat > conftest.c << _LT_EOF
7621 int forced_loaded() { return 2;}
7622 _LT_EOF
7623 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7624 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7625 echo "$AR cru libconftest.a conftest.o" >&5
7626 $AR cru libconftest.a conftest.o 2>&5
7627 cat > conftest.c << _LT_EOF
7628 int main() { return 0;}
7629 _LT_EOF
7630 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7631 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7632 _lt_result=$?
7633 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7634 lt_cv_ld_force_load=yes
7635 else
7636 cat conftest.err >&5
7638 rm -f conftest.err libconftest.a conftest conftest.c
7639 rm -rf conftest.dSYM
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7643 $as_echo "$lt_cv_ld_force_load" >&6; }
7644 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7645 # build without first building modern cctools / linker.
7646 case $host_cpu-$host_os in
7647 *-rhapsody* | *-darwin1.[012])
7648 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7649 *-darwin1.*)
7650 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7651 *-darwin*)
7652 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7653 # deployment target is forced to an earlier version.
7654 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7655 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7657 10.[012][,.]*)
7658 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7662 esac
7664 esac
7665 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7666 _lt_dar_single_mod='$single_module'
7668 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7669 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7670 else
7671 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7673 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7674 _lt_dsymutil='~$DSYMUTIL $lib || :'
7675 else
7676 _lt_dsymutil=
7679 esac
7681 ac_ext=c
7682 ac_cpp='$CPP $CPPFLAGS'
7683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7687 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7688 # On Suns, sometimes $CPP names a directory.
7689 if test -n "$CPP" && test -d "$CPP"; then
7690 CPP=
7692 if test -z "$CPP"; then
7693 if ${ac_cv_prog_CPP+:} false; then :
7694 $as_echo_n "(cached) " >&6
7695 else
7696 # Double quotes because CPP needs to be expanded
7697 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7699 ac_preproc_ok=false
7700 for ac_c_preproc_warn_flag in '' yes
7702 # Use a header file that comes with gcc, so configuring glibc
7703 # with a fresh cross-compiler works.
7704 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7705 # <limits.h> exists even on freestanding compilers.
7706 # On the NeXT, cc -E runs the code through the compiler's parser,
7707 # not just through cpp. "Syntax error" is here to catch this case.
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709 /* end confdefs.h. */
7710 #ifdef __STDC__
7711 # include <limits.h>
7712 #else
7713 # include <assert.h>
7714 #endif
7715 Syntax error
7716 _ACEOF
7717 if ac_fn_c_try_cpp "$LINENO"; then :
7719 else
7720 # Broken: fails on valid input.
7721 continue
7723 rm -f conftest.err conftest.i conftest.$ac_ext
7725 # OK, works on sane cases. Now check whether nonexistent headers
7726 # can be detected and how.
7727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7728 /* end confdefs.h. */
7729 #include <ac_nonexistent.h>
7730 _ACEOF
7731 if ac_fn_c_try_cpp "$LINENO"; then :
7732 # Broken: success on invalid input.
7733 continue
7734 else
7735 # Passes both tests.
7736 ac_preproc_ok=:
7737 break
7739 rm -f conftest.err conftest.i conftest.$ac_ext
7741 done
7742 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7743 rm -f conftest.i conftest.err conftest.$ac_ext
7744 if $ac_preproc_ok; then :
7745 break
7748 done
7749 ac_cv_prog_CPP=$CPP
7752 CPP=$ac_cv_prog_CPP
7753 else
7754 ac_cv_prog_CPP=$CPP
7756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7757 $as_echo "$CPP" >&6; }
7758 ac_preproc_ok=false
7759 for ac_c_preproc_warn_flag in '' yes
7761 # Use a header file that comes with gcc, so configuring glibc
7762 # with a fresh cross-compiler works.
7763 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7764 # <limits.h> exists even on freestanding compilers.
7765 # On the NeXT, cc -E runs the code through the compiler's parser,
7766 # not just through cpp. "Syntax error" is here to catch this case.
7767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7768 /* end confdefs.h. */
7769 #ifdef __STDC__
7770 # include <limits.h>
7771 #else
7772 # include <assert.h>
7773 #endif
7774 Syntax error
7775 _ACEOF
7776 if ac_fn_c_try_cpp "$LINENO"; then :
7778 else
7779 # Broken: fails on valid input.
7780 continue
7782 rm -f conftest.err conftest.i conftest.$ac_ext
7784 # OK, works on sane cases. Now check whether nonexistent headers
7785 # can be detected and how.
7786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7787 /* end confdefs.h. */
7788 #include <ac_nonexistent.h>
7789 _ACEOF
7790 if ac_fn_c_try_cpp "$LINENO"; then :
7791 # Broken: success on invalid input.
7792 continue
7793 else
7794 # Passes both tests.
7795 ac_preproc_ok=:
7796 break
7798 rm -f conftest.err conftest.i conftest.$ac_ext
7800 done
7801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7802 rm -f conftest.i conftest.err conftest.$ac_ext
7803 if $ac_preproc_ok; then :
7805 else
7806 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7807 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7808 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7809 See \`config.log' for more details" "$LINENO" 5; }
7812 ac_ext=c
7813 ac_cpp='$CPP $CPPFLAGS'
7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7820 $as_echo_n "checking for ANSI C header files... " >&6; }
7821 if ${ac_cv_header_stdc+:} false; then :
7822 $as_echo_n "(cached) " >&6
7823 else
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825 /* end confdefs.h. */
7826 #include <stdlib.h>
7827 #include <stdarg.h>
7828 #include <string.h>
7829 #include <float.h>
7832 main ()
7836 return 0;
7838 _ACEOF
7839 if ac_fn_c_try_compile "$LINENO"; then :
7840 ac_cv_header_stdc=yes
7841 else
7842 ac_cv_header_stdc=no
7844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7846 if test $ac_cv_header_stdc = yes; then
7847 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7849 /* end confdefs.h. */
7850 #include <string.h>
7852 _ACEOF
7853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7854 $EGREP "memchr" >/dev/null 2>&1; then :
7856 else
7857 ac_cv_header_stdc=no
7859 rm -f conftest*
7863 if test $ac_cv_header_stdc = yes; then
7864 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866 /* end confdefs.h. */
7867 #include <stdlib.h>
7869 _ACEOF
7870 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7871 $EGREP "free" >/dev/null 2>&1; then :
7873 else
7874 ac_cv_header_stdc=no
7876 rm -f conftest*
7880 if test $ac_cv_header_stdc = yes; then
7881 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7882 if test "$cross_compiling" = yes; then :
7884 else
7885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7886 /* end confdefs.h. */
7887 #include <ctype.h>
7888 #include <stdlib.h>
7889 #if ((' ' & 0x0FF) == 0x020)
7890 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7891 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7892 #else
7893 # define ISLOWER(c) \
7894 (('a' <= (c) && (c) <= 'i') \
7895 || ('j' <= (c) && (c) <= 'r') \
7896 || ('s' <= (c) && (c) <= 'z'))
7897 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7898 #endif
7900 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7902 main ()
7904 int i;
7905 for (i = 0; i < 256; i++)
7906 if (XOR (islower (i), ISLOWER (i))
7907 || toupper (i) != TOUPPER (i))
7908 return 2;
7909 return 0;
7911 _ACEOF
7912 if ac_fn_c_try_run "$LINENO"; then :
7914 else
7915 ac_cv_header_stdc=no
7917 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7918 conftest.$ac_objext conftest.beam conftest.$ac_ext
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7924 $as_echo "$ac_cv_header_stdc" >&6; }
7925 if test $ac_cv_header_stdc = yes; then
7927 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7931 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7932 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7933 inttypes.h stdint.h unistd.h
7934 do :
7935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7936 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7938 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7939 cat >>confdefs.h <<_ACEOF
7940 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7941 _ACEOF
7945 done
7948 for ac_header in dlfcn.h
7949 do :
7950 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7952 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7953 cat >>confdefs.h <<_ACEOF
7954 #define HAVE_DLFCN_H 1
7955 _ACEOF
7959 done
7965 # Set options
7969 enable_dlopen=no
7972 enable_win32_dll=no
7975 # Check whether --enable-shared was given.
7976 if test "${enable_shared+set}" = set; then :
7977 enableval=$enable_shared; p=${PACKAGE-default}
7978 case $enableval in
7979 yes) enable_shared=yes ;;
7980 no) enable_shared=no ;;
7982 enable_shared=no
7983 # Look at the argument we got. We use all the common list separators.
7984 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7985 for pkg in $enableval; do
7986 IFS="$lt_save_ifs"
7987 if test "X$pkg" = "X$p"; then
7988 enable_shared=yes
7990 done
7991 IFS="$lt_save_ifs"
7993 esac
7994 else
7995 enable_shared=yes
8006 # Check whether --enable-static was given.
8007 if test "${enable_static+set}" = set; then :
8008 enableval=$enable_static; p=${PACKAGE-default}
8009 case $enableval in
8010 yes) enable_static=yes ;;
8011 no) enable_static=no ;;
8013 enable_static=no
8014 # Look at the argument we got. We use all the common list separators.
8015 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8016 for pkg in $enableval; do
8017 IFS="$lt_save_ifs"
8018 if test "X$pkg" = "X$p"; then
8019 enable_static=yes
8021 done
8022 IFS="$lt_save_ifs"
8024 esac
8025 else
8026 enable_static=yes
8038 # Check whether --with-pic was given.
8039 if test "${with_pic+set}" = set; then :
8040 withval=$with_pic; pic_mode="$withval"
8041 else
8042 pic_mode=default
8046 test -z "$pic_mode" && pic_mode=default
8054 # Check whether --enable-fast-install was given.
8055 if test "${enable_fast_install+set}" = set; then :
8056 enableval=$enable_fast_install; p=${PACKAGE-default}
8057 case $enableval in
8058 yes) enable_fast_install=yes ;;
8059 no) enable_fast_install=no ;;
8061 enable_fast_install=no
8062 # Look at the argument we got. We use all the common list separators.
8063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8064 for pkg in $enableval; do
8065 IFS="$lt_save_ifs"
8066 if test "X$pkg" = "X$p"; then
8067 enable_fast_install=yes
8069 done
8070 IFS="$lt_save_ifs"
8072 esac
8073 else
8074 enable_fast_install=yes
8087 # This can be used to rebuild libtool when needed
8088 LIBTOOL_DEPS="$ltmain"
8090 # Always use our own libtool.
8091 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8118 test -z "$LN_S" && LN_S="ln -s"
8133 if test -n "${ZSH_VERSION+set}" ; then
8134 setopt NO_GLOB_SUBST
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8138 $as_echo_n "checking for objdir... " >&6; }
8139 if ${lt_cv_objdir+:} false; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 rm -f .libs 2>/dev/null
8143 mkdir .libs 2>/dev/null
8144 if test -d .libs; then
8145 lt_cv_objdir=.libs
8146 else
8147 # MS-DOS does not allow filenames that begin with a dot.
8148 lt_cv_objdir=_libs
8150 rmdir .libs 2>/dev/null
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8153 $as_echo "$lt_cv_objdir" >&6; }
8154 objdir=$lt_cv_objdir
8160 cat >>confdefs.h <<_ACEOF
8161 #define LT_OBJDIR "$lt_cv_objdir/"
8162 _ACEOF
8167 case $host_os in
8168 aix3*)
8169 # AIX sometimes has problems with the GCC collect2 program. For some
8170 # reason, if we set the COLLECT_NAMES environment variable, the problems
8171 # vanish in a puff of smoke.
8172 if test "X${COLLECT_NAMES+set}" != Xset; then
8173 COLLECT_NAMES=
8174 export COLLECT_NAMES
8177 esac
8179 # Global variables:
8180 ofile=libtool
8181 can_build_shared=yes
8183 # All known linkers require a `.a' archive for static linking (except MSVC,
8184 # which needs '.lib').
8185 libext=a
8187 with_gnu_ld="$lt_cv_prog_gnu_ld"
8189 old_CC="$CC"
8190 old_CFLAGS="$CFLAGS"
8192 # Set sane defaults for various variables
8193 test -z "$CC" && CC=cc
8194 test -z "$LTCC" && LTCC=$CC
8195 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8196 test -z "$LD" && LD=ld
8197 test -z "$ac_objext" && ac_objext=o
8199 for cc_temp in $compiler""; do
8200 case $cc_temp in
8201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8203 \-*) ;;
8204 *) break;;
8205 esac
8206 done
8207 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8210 # Only perform the check for file, if the check method requires it
8211 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8212 case $deplibs_check_method in
8213 file_magic*)
8214 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8216 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8217 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8218 $as_echo_n "(cached) " >&6
8219 else
8220 case $MAGIC_CMD in
8221 [\\/*] | ?:[\\/]*)
8222 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8225 lt_save_MAGIC_CMD="$MAGIC_CMD"
8226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8227 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8228 for ac_dir in $ac_dummy; do
8229 IFS="$lt_save_ifs"
8230 test -z "$ac_dir" && ac_dir=.
8231 if test -f $ac_dir/${ac_tool_prefix}file; then
8232 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8233 if test -n "$file_magic_test_file"; then
8234 case $deplibs_check_method in
8235 "file_magic "*)
8236 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8237 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8238 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8239 $EGREP "$file_magic_regex" > /dev/null; then
8241 else
8242 cat <<_LT_EOF 1>&2
8244 *** Warning: the command libtool uses to detect shared libraries,
8245 *** $file_magic_cmd, produces output that libtool cannot recognize.
8246 *** The result is that libtool may fail to recognize shared libraries
8247 *** as such. This will affect the creation of libtool libraries that
8248 *** depend on shared libraries, but programs linked with such libtool
8249 *** libraries will work regardless of this problem. Nevertheless, you
8250 *** may want to report the problem to your system manager and/or to
8251 *** bug-libtool@gnu.org
8253 _LT_EOF
8254 fi ;;
8255 esac
8257 break
8259 done
8260 IFS="$lt_save_ifs"
8261 MAGIC_CMD="$lt_save_MAGIC_CMD"
8263 esac
8266 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8267 if test -n "$MAGIC_CMD"; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8269 $as_echo "$MAGIC_CMD" >&6; }
8270 else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8272 $as_echo "no" >&6; }
8279 if test -z "$lt_cv_path_MAGIC_CMD"; then
8280 if test -n "$ac_tool_prefix"; then
8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8282 $as_echo_n "checking for file... " >&6; }
8283 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8284 $as_echo_n "(cached) " >&6
8285 else
8286 case $MAGIC_CMD in
8287 [\\/*] | ?:[\\/]*)
8288 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8291 lt_save_MAGIC_CMD="$MAGIC_CMD"
8292 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8293 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8294 for ac_dir in $ac_dummy; do
8295 IFS="$lt_save_ifs"
8296 test -z "$ac_dir" && ac_dir=.
8297 if test -f $ac_dir/file; then
8298 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8299 if test -n "$file_magic_test_file"; then
8300 case $deplibs_check_method in
8301 "file_magic "*)
8302 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8303 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8304 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8305 $EGREP "$file_magic_regex" > /dev/null; then
8307 else
8308 cat <<_LT_EOF 1>&2
8310 *** Warning: the command libtool uses to detect shared libraries,
8311 *** $file_magic_cmd, produces output that libtool cannot recognize.
8312 *** The result is that libtool may fail to recognize shared libraries
8313 *** as such. This will affect the creation of libtool libraries that
8314 *** depend on shared libraries, but programs linked with such libtool
8315 *** libraries will work regardless of this problem. Nevertheless, you
8316 *** may want to report the problem to your system manager and/or to
8317 *** bug-libtool@gnu.org
8319 _LT_EOF
8320 fi ;;
8321 esac
8323 break
8325 done
8326 IFS="$lt_save_ifs"
8327 MAGIC_CMD="$lt_save_MAGIC_CMD"
8329 esac
8332 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8333 if test -n "$MAGIC_CMD"; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8335 $as_echo "$MAGIC_CMD" >&6; }
8336 else
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8338 $as_echo "no" >&6; }
8342 else
8343 MAGIC_CMD=:
8349 esac
8351 # Use C for the default configuration in the libtool script
8353 lt_save_CC="$CC"
8354 ac_ext=c
8355 ac_cpp='$CPP $CPPFLAGS'
8356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8361 # Source file extension for C test sources.
8362 ac_ext=c
8364 # Object file extension for compiled C test sources.
8365 objext=o
8366 objext=$objext
8368 # Code to be used in simple compile tests
8369 lt_simple_compile_test_code="int some_variable = 0;"
8371 # Code to be used in simple link tests
8372 lt_simple_link_test_code='int main(){return(0);}'
8380 # If no C compiler was specified, use CC.
8381 LTCC=${LTCC-"$CC"}
8383 # If no C compiler flags were specified, use CFLAGS.
8384 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8386 # Allow CC to be a program name with arguments.
8387 compiler=$CC
8389 # Save the default compiler, since it gets overwritten when the other
8390 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8391 compiler_DEFAULT=$CC
8393 # save warnings/boilerplate of simple test code
8394 ac_outfile=conftest.$ac_objext
8395 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8396 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8397 _lt_compiler_boilerplate=`cat conftest.err`
8398 $RM conftest*
8400 ac_outfile=conftest.$ac_objext
8401 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8402 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8403 _lt_linker_boilerplate=`cat conftest.err`
8404 $RM -r conftest*
8407 ## CAVEAT EMPTOR:
8408 ## There is no encapsulation within the following macros, do not change
8409 ## the running order or otherwise move them around unless you know exactly
8410 ## what you are doing...
8411 if test -n "$compiler"; then
8413 lt_prog_compiler_no_builtin_flag=
8415 if test "$GCC" = yes; then
8416 case $cc_basename in
8417 nvcc*)
8418 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8420 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8421 esac
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8424 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8425 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 lt_cv_prog_compiler_rtti_exceptions=no
8429 ac_outfile=conftest.$ac_objext
8430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8431 lt_compiler_flag="-fno-rtti -fno-exceptions"
8432 # Insert the option either (1) after the last *FLAGS variable, or
8433 # (2) before a word containing "conftest.", or (3) at the end.
8434 # Note that $ac_compile itself does not contain backslashes and begins
8435 # with a dollar sign (not a hyphen), so the echo should work correctly.
8436 # The option is referenced via a variable to avoid confusing sed.
8437 lt_compile=`echo "$ac_compile" | $SED \
8438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8440 -e 's:$: $lt_compiler_flag:'`
8441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8442 (eval "$lt_compile" 2>conftest.err)
8443 ac_status=$?
8444 cat conftest.err >&5
8445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8446 if (exit $ac_status) && test -s "$ac_outfile"; then
8447 # The compiler can only warn and ignore the option if not recognized
8448 # So say no if there are warnings other than the usual output.
8449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8451 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8452 lt_cv_prog_compiler_rtti_exceptions=yes
8455 $RM conftest*
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8459 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8461 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8462 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8463 else
8474 lt_prog_compiler_wl=
8475 lt_prog_compiler_pic=
8476 lt_prog_compiler_static=
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8479 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8481 if test "$GCC" = yes; then
8482 lt_prog_compiler_wl='-Wl,'
8483 lt_prog_compiler_static='-static'
8485 case $host_os in
8486 aix*)
8487 # All AIX code is PIC.
8488 if test "$host_cpu" = ia64; then
8489 # AIX 5 now supports IA64 processor
8490 lt_prog_compiler_static='-Bstatic'
8492 lt_prog_compiler_pic='-fPIC'
8495 amigaos*)
8496 case $host_cpu in
8497 powerpc)
8498 # see comment about AmigaOS4 .so support
8499 lt_prog_compiler_pic='-fPIC'
8501 m68k)
8502 # FIXME: we need at least 68020 code to build shared libraries, but
8503 # adding the `-m68020' flag to GCC prevents building anything better,
8504 # like `-m68040'.
8505 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8507 esac
8510 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8511 # PIC is the default for these OSes.
8514 mingw* | cygwin* | pw32* | os2* | cegcc*)
8515 # This hack is so that the source file can tell whether it is being
8516 # built for inclusion in a dll (and should export symbols for example).
8517 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8518 # (--disable-auto-import) libraries
8519 lt_prog_compiler_pic='-DDLL_EXPORT'
8522 darwin* | rhapsody*)
8523 # PIC is the default on this platform
8524 # Common symbols not allowed in MH_DYLIB files
8525 lt_prog_compiler_pic='-fno-common'
8528 haiku*)
8529 # PIC is the default for Haiku.
8530 # The "-static" flag exists, but is broken.
8531 lt_prog_compiler_static=
8534 hpux*)
8535 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8536 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8537 # sets the default TLS model and affects inlining.
8538 case $host_cpu in
8539 hppa*64*)
8540 # +Z the default
8543 lt_prog_compiler_pic='-fPIC'
8545 esac
8548 interix[3-9]*)
8549 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8550 # Instead, we relocate shared libraries at runtime.
8553 msdosdjgpp*)
8554 # Just because we use GCC doesn't mean we suddenly get shared libraries
8555 # on systems that don't support them.
8556 lt_prog_compiler_can_build_shared=no
8557 enable_shared=no
8560 *nto* | *qnx*)
8561 # QNX uses GNU C++, but need to define -shared option too, otherwise
8562 # it will coredump.
8563 lt_prog_compiler_pic='-fPIC -shared'
8566 sysv4*MP*)
8567 if test -d /usr/nec; then
8568 lt_prog_compiler_pic=-Kconform_pic
8573 lt_prog_compiler_pic='-fPIC'
8575 esac
8577 case $cc_basename in
8578 nvcc*) # Cuda Compiler Driver 2.2
8579 lt_prog_compiler_wl='-Xlinker '
8580 lt_prog_compiler_pic='-Xcompiler -fPIC'
8582 esac
8583 else
8584 # PORTME Check for flag to pass linker flags through the system compiler.
8585 case $host_os in
8586 aix*)
8587 lt_prog_compiler_wl='-Wl,'
8588 if test "$host_cpu" = ia64; then
8589 # AIX 5 now supports IA64 processor
8590 lt_prog_compiler_static='-Bstatic'
8591 else
8592 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8596 mingw* | cygwin* | pw32* | os2* | cegcc*)
8597 # This hack is so that the source file can tell whether it is being
8598 # built for inclusion in a dll (and should export symbols for example).
8599 lt_prog_compiler_pic='-DDLL_EXPORT'
8602 hpux9* | hpux10* | hpux11*)
8603 lt_prog_compiler_wl='-Wl,'
8604 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8605 # not for PA HP-UX.
8606 case $host_cpu in
8607 hppa*64*|ia64*)
8608 # +Z the default
8611 lt_prog_compiler_pic='+Z'
8613 esac
8614 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8615 lt_prog_compiler_static='${wl}-a ${wl}archive'
8618 irix5* | irix6* | nonstopux*)
8619 lt_prog_compiler_wl='-Wl,'
8620 # PIC (with -KPIC) is the default.
8621 lt_prog_compiler_static='-non_shared'
8624 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8625 case $cc_basename in
8626 # old Intel for x86_64 which still supported -KPIC.
8627 ecc*)
8628 lt_prog_compiler_wl='-Wl,'
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-static'
8632 # icc used to be incompatible with GCC.
8633 # ICC 10 doesn't accept -KPIC any more.
8634 icc* | ifort*)
8635 lt_prog_compiler_wl='-Wl,'
8636 lt_prog_compiler_pic='-fPIC'
8637 lt_prog_compiler_static='-static'
8639 # Lahey Fortran 8.1.
8640 lf95*)
8641 lt_prog_compiler_wl='-Wl,'
8642 lt_prog_compiler_pic='--shared'
8643 lt_prog_compiler_static='--static'
8645 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8646 # Portland Group compilers (*not* the Pentium gcc compiler,
8647 # which looks to be a dead project)
8648 lt_prog_compiler_wl='-Wl,'
8649 lt_prog_compiler_pic='-fpic'
8650 lt_prog_compiler_static='-Bstatic'
8652 ccc*)
8653 lt_prog_compiler_wl='-Wl,'
8654 # All Alpha code is PIC.
8655 lt_prog_compiler_static='-non_shared'
8657 xl* | bgxl* | bgf* | mpixl*)
8658 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8659 lt_prog_compiler_wl='-Wl,'
8660 lt_prog_compiler_pic='-qpic'
8661 lt_prog_compiler_static='-qstaticlink'
8664 case `$CC -V 2>&1 | sed 5q` in
8665 *Sun\ F* | *Sun*Fortran*)
8666 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8667 lt_prog_compiler_pic='-KPIC'
8668 lt_prog_compiler_static='-Bstatic'
8669 lt_prog_compiler_wl=''
8671 *Sun\ C*)
8672 # Sun C 5.9
8673 lt_prog_compiler_pic='-KPIC'
8674 lt_prog_compiler_static='-Bstatic'
8675 lt_prog_compiler_wl='-Wl,'
8677 esac
8679 esac
8682 newsos6)
8683 lt_prog_compiler_pic='-KPIC'
8684 lt_prog_compiler_static='-Bstatic'
8687 *nto* | *qnx*)
8688 # QNX uses GNU C++, but need to define -shared option too, otherwise
8689 # it will coredump.
8690 lt_prog_compiler_pic='-fPIC -shared'
8693 osf3* | osf4* | osf5*)
8694 lt_prog_compiler_wl='-Wl,'
8695 # All OSF/1 code is PIC.
8696 lt_prog_compiler_static='-non_shared'
8699 rdos*)
8700 lt_prog_compiler_static='-non_shared'
8703 solaris*)
8704 lt_prog_compiler_pic='-KPIC'
8705 lt_prog_compiler_static='-Bstatic'
8706 case $cc_basename in
8707 f77* | f90* | f95*)
8708 lt_prog_compiler_wl='-Qoption ld ';;
8710 lt_prog_compiler_wl='-Wl,';;
8711 esac
8714 sunos4*)
8715 lt_prog_compiler_wl='-Qoption ld '
8716 lt_prog_compiler_pic='-PIC'
8717 lt_prog_compiler_static='-Bstatic'
8720 sysv4 | sysv4.2uw2* | sysv4.3*)
8721 lt_prog_compiler_wl='-Wl,'
8722 lt_prog_compiler_pic='-KPIC'
8723 lt_prog_compiler_static='-Bstatic'
8726 sysv4*MP*)
8727 if test -d /usr/nec ;then
8728 lt_prog_compiler_pic='-Kconform_pic'
8729 lt_prog_compiler_static='-Bstatic'
8733 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-KPIC'
8736 lt_prog_compiler_static='-Bstatic'
8739 unicos*)
8740 lt_prog_compiler_wl='-Wl,'
8741 lt_prog_compiler_can_build_shared=no
8744 uts4*)
8745 lt_prog_compiler_pic='-pic'
8746 lt_prog_compiler_static='-Bstatic'
8750 lt_prog_compiler_can_build_shared=no
8752 esac
8755 case $host_os in
8756 # For platforms which do not support PIC, -DPIC is meaningless:
8757 *djgpp*)
8758 lt_prog_compiler_pic=
8761 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8763 esac
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8765 $as_echo "$lt_prog_compiler_pic" >&6; }
8773 # Check to make sure the PIC flag actually works.
8775 if test -n "$lt_prog_compiler_pic"; then
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8777 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8778 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8779 $as_echo_n "(cached) " >&6
8780 else
8781 lt_cv_prog_compiler_pic_works=no
8782 ac_outfile=conftest.$ac_objext
8783 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8784 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8785 # Insert the option either (1) after the last *FLAGS variable, or
8786 # (2) before a word containing "conftest.", or (3) at the end.
8787 # Note that $ac_compile itself does not contain backslashes and begins
8788 # with a dollar sign (not a hyphen), so the echo should work correctly.
8789 # The option is referenced via a variable to avoid confusing sed.
8790 lt_compile=`echo "$ac_compile" | $SED \
8791 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8792 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8793 -e 's:$: $lt_compiler_flag:'`
8794 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8795 (eval "$lt_compile" 2>conftest.err)
8796 ac_status=$?
8797 cat conftest.err >&5
8798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799 if (exit $ac_status) && test -s "$ac_outfile"; then
8800 # The compiler can only warn and ignore the option if not recognized
8801 # So say no if there are warnings other than the usual output.
8802 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8803 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8804 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8805 lt_cv_prog_compiler_pic_works=yes
8808 $RM conftest*
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8812 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8814 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8815 case $lt_prog_compiler_pic in
8816 "" | " "*) ;;
8817 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8818 esac
8819 else
8820 lt_prog_compiler_pic=
8821 lt_prog_compiler_can_build_shared=no
8832 # Check to make sure the static flag actually works.
8834 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8836 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8837 if ${lt_cv_prog_compiler_static_works+:} false; then :
8838 $as_echo_n "(cached) " >&6
8839 else
8840 lt_cv_prog_compiler_static_works=no
8841 save_LDFLAGS="$LDFLAGS"
8842 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8843 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8845 # The linker can only warn and ignore the option if not recognized
8846 # So say no if there are warnings
8847 if test -s conftest.err; then
8848 # Append any errors to the config.log.
8849 cat conftest.err 1>&5
8850 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8852 if diff conftest.exp conftest.er2 >/dev/null; then
8853 lt_cv_prog_compiler_static_works=yes
8855 else
8856 lt_cv_prog_compiler_static_works=yes
8859 $RM -r conftest*
8860 LDFLAGS="$save_LDFLAGS"
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8864 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8866 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8868 else
8869 lt_prog_compiler_static=
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8879 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8880 if ${lt_cv_prog_compiler_c_o+:} false; then :
8881 $as_echo_n "(cached) " >&6
8882 else
8883 lt_cv_prog_compiler_c_o=no
8884 $RM -r conftest 2>/dev/null
8885 mkdir conftest
8886 cd conftest
8887 mkdir out
8888 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8890 lt_compiler_flag="-o out/conftest2.$ac_objext"
8891 # Insert the option either (1) after the last *FLAGS variable, or
8892 # (2) before a word containing "conftest.", or (3) at the end.
8893 # Note that $ac_compile itself does not contain backslashes and begins
8894 # with a dollar sign (not a hyphen), so the echo should work correctly.
8895 lt_compile=`echo "$ac_compile" | $SED \
8896 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8897 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8898 -e 's:$: $lt_compiler_flag:'`
8899 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8900 (eval "$lt_compile" 2>out/conftest.err)
8901 ac_status=$?
8902 cat out/conftest.err >&5
8903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8904 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8905 then
8906 # The compiler can only warn and ignore the option if not recognized
8907 # So say no if there are warnings
8908 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8909 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8910 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8911 lt_cv_prog_compiler_c_o=yes
8914 chmod u+w . 2>&5
8915 $RM conftest*
8916 # SGI C++ compiler will create directory out/ii_files/ for
8917 # template instantiation
8918 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8919 $RM out/* && rmdir out
8920 cd ..
8921 $RM -r conftest
8922 $RM conftest*
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8926 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8934 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8935 if ${lt_cv_prog_compiler_c_o+:} false; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 lt_cv_prog_compiler_c_o=no
8939 $RM -r conftest 2>/dev/null
8940 mkdir conftest
8941 cd conftest
8942 mkdir out
8943 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8945 lt_compiler_flag="-o out/conftest2.$ac_objext"
8946 # Insert the option either (1) after the last *FLAGS variable, or
8947 # (2) before a word containing "conftest.", or (3) at the end.
8948 # Note that $ac_compile itself does not contain backslashes and begins
8949 # with a dollar sign (not a hyphen), so the echo should work correctly.
8950 lt_compile=`echo "$ac_compile" | $SED \
8951 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8952 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8953 -e 's:$: $lt_compiler_flag:'`
8954 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8955 (eval "$lt_compile" 2>out/conftest.err)
8956 ac_status=$?
8957 cat out/conftest.err >&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8960 then
8961 # The compiler can only warn and ignore the option if not recognized
8962 # So say no if there are warnings
8963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8964 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8965 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8966 lt_cv_prog_compiler_c_o=yes
8969 chmod u+w . 2>&5
8970 $RM conftest*
8971 # SGI C++ compiler will create directory out/ii_files/ for
8972 # template instantiation
8973 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8974 $RM out/* && rmdir out
8975 cd ..
8976 $RM -r conftest
8977 $RM conftest*
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8981 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8986 hard_links="nottested"
8987 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8988 # do not overwrite the value of need_locks provided by the user
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8990 $as_echo_n "checking if we can lock with hard links... " >&6; }
8991 hard_links=yes
8992 $RM conftest*
8993 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8994 touch conftest.a
8995 ln conftest.a conftest.b 2>&5 || hard_links=no
8996 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8998 $as_echo "$hard_links" >&6; }
8999 if test "$hard_links" = no; then
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9001 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9002 need_locks=warn
9004 else
9005 need_locks=no
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9014 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9016 runpath_var=
9017 allow_undefined_flag=
9018 always_export_symbols=no
9019 archive_cmds=
9020 archive_expsym_cmds=
9021 compiler_needs_object=no
9022 enable_shared_with_static_runtimes=no
9023 export_dynamic_flag_spec=
9024 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9025 hardcode_automatic=no
9026 hardcode_direct=no
9027 hardcode_direct_absolute=no
9028 hardcode_libdir_flag_spec=
9029 hardcode_libdir_flag_spec_ld=
9030 hardcode_libdir_separator=
9031 hardcode_minus_L=no
9032 hardcode_shlibpath_var=unsupported
9033 inherit_rpath=no
9034 link_all_deplibs=unknown
9035 module_cmds=
9036 module_expsym_cmds=
9037 old_archive_from_new_cmds=
9038 old_archive_from_expsyms_cmds=
9039 thread_safe_flag_spec=
9040 whole_archive_flag_spec=
9041 # include_expsyms should be a list of space-separated symbols to be *always*
9042 # included in the symbol list
9043 include_expsyms=
9044 # exclude_expsyms can be an extended regexp of symbols to exclude
9045 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9046 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9047 # as well as any symbol that contains `d'.
9048 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9049 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9050 # platforms (ab)use it in PIC code, but their linkers get confused if
9051 # the symbol is explicitly referenced. Since portable code cannot
9052 # rely on this symbol name, it's probably fine to never include it in
9053 # preloaded symbol tables.
9054 # Exclude shared library initialization/finalization symbols.
9055 extract_expsyms_cmds=
9057 case $host_os in
9058 cygwin* | mingw* | pw32* | cegcc*)
9059 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9060 # When not using gcc, we currently assume that we are using
9061 # Microsoft Visual C++.
9062 if test "$GCC" != yes; then
9063 with_gnu_ld=no
9066 interix*)
9067 # we just hope/assume this is gcc and not c89 (= MSVC++)
9068 with_gnu_ld=yes
9070 openbsd*)
9071 with_gnu_ld=no
9073 esac
9075 ld_shlibs=yes
9077 # On some targets, GNU ld is compatible enough with the native linker
9078 # that we're better off using the native interface for both.
9079 lt_use_gnu_ld_interface=no
9080 if test "$with_gnu_ld" = yes; then
9081 case $host_os in
9082 aix*)
9083 # The AIX port of GNU ld has always aspired to compatibility
9084 # with the native linker. However, as the warning in the GNU ld
9085 # block says, versions before 2.19.5* couldn't really create working
9086 # shared libraries, regardless of the interface used.
9087 case `$LD -v 2>&1` in
9088 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9089 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9090 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9092 lt_use_gnu_ld_interface=yes
9094 esac
9097 lt_use_gnu_ld_interface=yes
9099 esac
9102 if test "$lt_use_gnu_ld_interface" = yes; then
9103 # If archive_cmds runs LD, not CC, wlarc should be empty
9104 wlarc='${wl}'
9106 # Set some defaults for GNU ld with shared library support. These
9107 # are reset later if shared libraries are not supported. Putting them
9108 # here allows them to be overridden if necessary.
9109 runpath_var=LD_RUN_PATH
9110 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9111 export_dynamic_flag_spec='${wl}--export-dynamic'
9112 # ancient GNU ld didn't support --whole-archive et. al.
9113 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9114 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9115 else
9116 whole_archive_flag_spec=
9118 supports_anon_versioning=no
9119 case `$LD -v 2>&1` in
9120 *GNU\ gold*) supports_anon_versioning=yes ;;
9121 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9122 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9123 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9124 *\ 2.11.*) ;; # other 2.11 versions
9125 *) supports_anon_versioning=yes ;;
9126 esac
9128 # See if GNU ld supports shared libraries.
9129 case $host_os in
9130 aix[3-9]*)
9131 # On AIX/PPC, the GNU linker is very broken
9132 if test "$host_cpu" != ia64; then
9133 ld_shlibs=no
9134 cat <<_LT_EOF 1>&2
9136 *** Warning: the GNU linker, at least up to release 2.19, is reported
9137 *** to be unable to reliably create shared libraries on AIX.
9138 *** Therefore, libtool is disabling shared libraries support. If you
9139 *** really care for shared libraries, you may want to install binutils
9140 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9141 *** You will then need to restart the configuration process.
9143 _LT_EOF
9147 amigaos*)
9148 case $host_cpu in
9149 powerpc)
9150 # see comment about AmigaOS4 .so support
9151 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9152 archive_expsym_cmds=''
9154 m68k)
9155 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)'
9156 hardcode_libdir_flag_spec='-L$libdir'
9157 hardcode_minus_L=yes
9159 esac
9162 beos*)
9163 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9164 allow_undefined_flag=unsupported
9165 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9166 # support --undefined. This deserves some investigation. FIXME
9167 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9168 else
9169 ld_shlibs=no
9173 cygwin* | mingw* | pw32* | cegcc*)
9174 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9175 # as there is no search path for DLLs.
9176 hardcode_libdir_flag_spec='-L$libdir'
9177 export_dynamic_flag_spec='${wl}--export-all-symbols'
9178 allow_undefined_flag=unsupported
9179 always_export_symbols=no
9180 enable_shared_with_static_runtimes=yes
9181 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9183 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9184 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9185 # If the export-symbols file already is a .def file (1st line
9186 # is EXPORTS), use it as is; otherwise, prepend...
9187 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9188 cp $export_symbols $output_objdir/$soname.def;
9189 else
9190 echo EXPORTS > $output_objdir/$soname.def;
9191 cat $export_symbols >> $output_objdir/$soname.def;
9193 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9194 else
9195 ld_shlibs=no
9199 haiku*)
9200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9201 link_all_deplibs=yes
9204 interix[3-9]*)
9205 hardcode_direct=no
9206 hardcode_shlibpath_var=no
9207 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9208 export_dynamic_flag_spec='${wl}-E'
9209 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9210 # Instead, shared libraries are loaded at an image base (0x10000000 by
9211 # default) and relocated if they conflict, which is a slow very memory
9212 # consuming and fragmenting process. To avoid this, we pick a random,
9213 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9214 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9215 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9216 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'
9219 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9220 tmp_diet=no
9221 if test "$host_os" = linux-dietlibc; then
9222 case $cc_basename in
9223 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9224 esac
9226 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9227 && test "$tmp_diet" = no
9228 then
9229 tmp_addflag=' $pic_flag'
9230 tmp_sharedflag='-shared'
9231 case $cc_basename,$host_cpu in
9232 pgcc*) # Portland Group C compiler
9233 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'
9234 tmp_addflag=' $pic_flag'
9236 pgf77* | pgf90* | pgf95* | pgfortran*)
9237 # Portland Group f77 and f90 compilers
9238 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'
9239 tmp_addflag=' $pic_flag -Mnomain' ;;
9240 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9241 tmp_addflag=' -i_dynamic' ;;
9242 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9243 tmp_addflag=' -i_dynamic -nofor_main' ;;
9244 ifc* | ifort*) # Intel Fortran compiler
9245 tmp_addflag=' -nofor_main' ;;
9246 lf95*) # Lahey Fortran 8.1
9247 whole_archive_flag_spec=
9248 tmp_sharedflag='--shared' ;;
9249 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9250 tmp_sharedflag='-qmkshrobj'
9251 tmp_addflag= ;;
9252 nvcc*) # Cuda Compiler Driver 2.2
9253 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'
9254 compiler_needs_object=yes
9256 esac
9257 case `$CC -V 2>&1 | sed 5q` in
9258 *Sun\ C*) # Sun C 5.9
9259 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'
9260 compiler_needs_object=yes
9261 tmp_sharedflag='-G' ;;
9262 *Sun\ F*) # Sun Fortran 8.3
9263 tmp_sharedflag='-G' ;;
9264 esac
9265 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9267 if test "x$supports_anon_versioning" = xyes; then
9268 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9269 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9270 echo "local: *; };" >> $output_objdir/$libname.ver~
9271 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9274 case $cc_basename in
9275 xlf* | bgf* | bgxlf* | mpixlf*)
9276 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9277 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9278 hardcode_libdir_flag_spec=
9279 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9280 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9281 if test "x$supports_anon_versioning" = xyes; then
9282 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9283 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9284 echo "local: *; };" >> $output_objdir/$libname.ver~
9285 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9288 esac
9289 else
9290 ld_shlibs=no
9294 netbsd*)
9295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9296 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9297 wlarc=
9298 else
9299 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9304 solaris*)
9305 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9306 ld_shlibs=no
9307 cat <<_LT_EOF 1>&2
9309 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9310 *** create shared libraries on Solaris systems. Therefore, libtool
9311 *** is disabling shared libraries support. We urge you to upgrade GNU
9312 *** binutils to release 2.9.1 or newer. Another option is to modify
9313 *** your PATH or compiler configuration so that the native linker is
9314 *** used, and then restart.
9316 _LT_EOF
9317 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9319 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9320 else
9321 ld_shlibs=no
9325 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9326 case `$LD -v 2>&1` in
9327 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9328 ld_shlibs=no
9329 cat <<_LT_EOF 1>&2
9331 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9332 *** reliably create shared libraries on SCO systems. Therefore, libtool
9333 *** is disabling shared libraries support. We urge you to upgrade GNU
9334 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9335 *** your PATH or compiler configuration so that the native linker is
9336 *** used, and then restart.
9338 _LT_EOF
9341 # For security reasons, it is highly recommended that you always
9342 # use absolute paths for naming shared libraries, and exclude the
9343 # DT_RUNPATH tag from executables and libraries. But doing so
9344 # requires that you compile everything twice, which is a pain.
9345 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9346 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9347 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9348 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9349 else
9350 ld_shlibs=no
9353 esac
9356 sunos4*)
9357 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9358 wlarc=
9359 hardcode_direct=yes
9360 hardcode_shlibpath_var=no
9364 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9365 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9366 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9367 else
9368 ld_shlibs=no
9371 esac
9373 if test "$ld_shlibs" = no; then
9374 runpath_var=
9375 hardcode_libdir_flag_spec=
9376 export_dynamic_flag_spec=
9377 whole_archive_flag_spec=
9379 else
9380 # PORTME fill in a description of your system's linker (not GNU ld)
9381 case $host_os in
9382 aix3*)
9383 allow_undefined_flag=unsupported
9384 always_export_symbols=yes
9385 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'
9386 # Note: this linker hardcodes the directories in LIBPATH if there
9387 # are no directories specified by -L.
9388 hardcode_minus_L=yes
9389 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9390 # Neither direct hardcoding nor static linking is supported with a
9391 # broken collect2.
9392 hardcode_direct=unsupported
9396 aix[4-9]*)
9397 if test "$host_cpu" = ia64; then
9398 # On IA64, the linker does run time linking by default, so we don't
9399 # have to do anything special.
9400 aix_use_runtimelinking=no
9401 exp_sym_flag='-Bexport'
9402 no_entry_flag=""
9403 else
9404 # If we're using GNU nm, then we don't want the "-C" option.
9405 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9406 # Also, AIX nm treats weak defined symbols like other global
9407 # defined symbols, whereas GNU nm marks them as "W".
9408 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9409 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'
9410 else
9411 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'
9413 aix_use_runtimelinking=no
9415 # Test if we are trying to use run time linking or normal
9416 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9417 # need to do runtime linking.
9418 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9419 for ld_flag in $LDFLAGS; do
9420 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9421 aix_use_runtimelinking=yes
9422 break
9424 done
9426 esac
9428 exp_sym_flag='-bexport'
9429 no_entry_flag='-bnoentry'
9432 # When large executables or shared objects are built, AIX ld can
9433 # have problems creating the table of contents. If linking a library
9434 # or program results in "error TOC overflow" add -mminimal-toc to
9435 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9436 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9438 archive_cmds=''
9439 hardcode_direct=yes
9440 hardcode_direct_absolute=yes
9441 hardcode_libdir_separator=':'
9442 link_all_deplibs=yes
9443 file_list_spec='${wl}-f,'
9445 if test "$GCC" = yes; then
9446 case $host_os in aix4.[012]|aix4.[012].*)
9447 # We only want to do this on AIX 4.2 and lower, the check
9448 # below for broken collect2 doesn't work under 4.3+
9449 collect2name=`${CC} -print-prog-name=collect2`
9450 if test -f "$collect2name" &&
9451 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9452 then
9453 # We have reworked collect2
9455 else
9456 # We have old collect2
9457 hardcode_direct=unsupported
9458 # It fails to find uninstalled libraries when the uninstalled
9459 # path is not listed in the libpath. Setting hardcode_minus_L
9460 # to unsupported forces relinking
9461 hardcode_minus_L=yes
9462 hardcode_libdir_flag_spec='-L$libdir'
9463 hardcode_libdir_separator=
9466 esac
9467 shared_flag='-shared'
9468 if test "$aix_use_runtimelinking" = yes; then
9469 shared_flag="$shared_flag "'${wl}-G'
9471 else
9472 # not using gcc
9473 if test "$host_cpu" = ia64; then
9474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9475 # chokes on -Wl,-G. The following line is correct:
9476 shared_flag='-G'
9477 else
9478 if test "$aix_use_runtimelinking" = yes; then
9479 shared_flag='${wl}-G'
9480 else
9481 shared_flag='${wl}-bM:SRE'
9486 export_dynamic_flag_spec='${wl}-bexpall'
9487 # It seems that -bexpall does not export symbols beginning with
9488 # underscore (_), so it is better to generate a list of symbols to export.
9489 always_export_symbols=yes
9490 if test "$aix_use_runtimelinking" = yes; then
9491 # Warning - without using the other runtime loading flags (-brtl),
9492 # -berok will link without error, but may produce a broken library.
9493 allow_undefined_flag='-berok'
9494 # Determine the default libpath from the value encoded in an
9495 # empty executable.
9496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9497 /* end confdefs.h. */
9500 main ()
9504 return 0;
9506 _ACEOF
9507 if ac_fn_c_try_link "$LINENO"; then :
9509 lt_aix_libpath_sed='
9510 /Import File Strings/,/^$/ {
9511 /^0/ {
9512 s/^0 *\(.*\)$/\1/
9516 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9517 # Check for a 64-bit object if we didn't find anything.
9518 if test -z "$aix_libpath"; then
9519 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9522 rm -f core conftest.err conftest.$ac_objext \
9523 conftest$ac_exeext conftest.$ac_ext
9524 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9526 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9527 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"
9528 else
9529 if test "$host_cpu" = ia64; then
9530 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9531 allow_undefined_flag="-z nodefs"
9532 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"
9533 else
9534 # Determine the default libpath from the value encoded in an
9535 # empty executable.
9536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9537 /* end confdefs.h. */
9540 main ()
9544 return 0;
9546 _ACEOF
9547 if ac_fn_c_try_link "$LINENO"; then :
9549 lt_aix_libpath_sed='
9550 /Import File Strings/,/^$/ {
9551 /^0/ {
9552 s/^0 *\(.*\)$/\1/
9556 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9557 # Check for a 64-bit object if we didn't find anything.
9558 if test -z "$aix_libpath"; then
9559 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9562 rm -f core conftest.err conftest.$ac_objext \
9563 conftest$ac_exeext conftest.$ac_ext
9564 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9566 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9567 # Warning - without using the other run time loading flags,
9568 # -berok will link without error, but may produce a broken library.
9569 no_undefined_flag=' ${wl}-bernotok'
9570 allow_undefined_flag=' ${wl}-berok'
9571 if test "$with_gnu_ld" = yes; then
9572 # We only use this code for GNU lds that support --whole-archive.
9573 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9574 else
9575 # Exported symbols can be pulled into shared objects from archives
9576 whole_archive_flag_spec='$convenience'
9578 archive_cmds_need_lc=yes
9579 # This is similar to how AIX traditionally builds its shared libraries.
9580 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'
9585 amigaos*)
9586 case $host_cpu in
9587 powerpc)
9588 # see comment about AmigaOS4 .so support
9589 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9590 archive_expsym_cmds=''
9592 m68k)
9593 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)'
9594 hardcode_libdir_flag_spec='-L$libdir'
9595 hardcode_minus_L=yes
9597 esac
9600 bsdi[45]*)
9601 export_dynamic_flag_spec=-rdynamic
9604 cygwin* | mingw* | pw32* | cegcc*)
9605 # When not using gcc, we currently assume that we are using
9606 # Microsoft Visual C++.
9607 # hardcode_libdir_flag_spec is actually meaningless, as there is
9608 # no search path for DLLs.
9609 hardcode_libdir_flag_spec=' '
9610 allow_undefined_flag=unsupported
9611 # Tell ltmain to make .lib files, not .a files.
9612 libext=lib
9613 # Tell ltmain to make .dll files, not .so files.
9614 shrext_cmds=".dll"
9615 # FIXME: Setting linknames here is a bad hack.
9616 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9617 # The linker will automatically build a .lib file if we build a DLL.
9618 old_archive_from_new_cmds='true'
9619 # FIXME: Should let the user specify the lib program.
9620 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9621 fix_srcfile_path='`cygpath -w "$srcfile"`'
9622 enable_shared_with_static_runtimes=yes
9625 darwin* | rhapsody*)
9628 archive_cmds_need_lc=no
9629 hardcode_direct=no
9630 hardcode_automatic=yes
9631 hardcode_shlibpath_var=unsupported
9632 if test "$lt_cv_ld_force_load" = "yes"; then
9633 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\"`'
9634 else
9635 whole_archive_flag_spec=''
9637 link_all_deplibs=yes
9638 allow_undefined_flag="$_lt_dar_allow_undefined"
9639 case $cc_basename in
9640 ifort*) _lt_dar_can_shared=yes ;;
9641 *) _lt_dar_can_shared=$GCC ;;
9642 esac
9643 if test "$_lt_dar_can_shared" = "yes"; then
9644 output_verbose_link_cmd=func_echo_all
9645 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9646 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9647 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}"
9648 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}"
9650 else
9651 ld_shlibs=no
9656 dgux*)
9657 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9658 hardcode_libdir_flag_spec='-L$libdir'
9659 hardcode_shlibpath_var=no
9662 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9663 # support. Future versions do this automatically, but an explicit c++rt0.o
9664 # does not break anything, and helps significantly (at the cost of a little
9665 # extra space).
9666 freebsd2.2*)
9667 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9668 hardcode_libdir_flag_spec='-R$libdir'
9669 hardcode_direct=yes
9670 hardcode_shlibpath_var=no
9673 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9674 freebsd2.*)
9675 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9676 hardcode_direct=yes
9677 hardcode_minus_L=yes
9678 hardcode_shlibpath_var=no
9681 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9682 freebsd* | dragonfly*)
9683 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9684 hardcode_libdir_flag_spec='-R$libdir'
9685 hardcode_direct=yes
9686 hardcode_shlibpath_var=no
9689 hpux9*)
9690 if test "$GCC" = yes; then
9691 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'
9692 else
9693 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'
9695 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9696 hardcode_libdir_separator=:
9697 hardcode_direct=yes
9699 # hardcode_minus_L: Not really in the search PATH,
9700 # but as the default location of the library.
9701 hardcode_minus_L=yes
9702 export_dynamic_flag_spec='${wl}-E'
9705 hpux10*)
9706 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9707 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9708 else
9709 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9711 if test "$with_gnu_ld" = no; then
9712 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9713 hardcode_libdir_flag_spec_ld='+b $libdir'
9714 hardcode_libdir_separator=:
9715 hardcode_direct=yes
9716 hardcode_direct_absolute=yes
9717 export_dynamic_flag_spec='${wl}-E'
9718 # hardcode_minus_L: Not really in the search PATH,
9719 # but as the default location of the library.
9720 hardcode_minus_L=yes
9724 hpux11*)
9725 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9726 case $host_cpu in
9727 hppa*64*)
9728 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9730 ia64*)
9731 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9736 esac
9737 else
9738 case $host_cpu in
9739 hppa*64*)
9740 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9742 ia64*)
9743 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9747 # Older versions of the 11.00 compiler do not understand -b yet
9748 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9750 $as_echo_n "checking if $CC understands -b... " >&6; }
9751 if ${lt_cv_prog_compiler__b+:} false; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 lt_cv_prog_compiler__b=no
9755 save_LDFLAGS="$LDFLAGS"
9756 LDFLAGS="$LDFLAGS -b"
9757 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9758 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9759 # The linker can only warn and ignore the option if not recognized
9760 # So say no if there are warnings
9761 if test -s conftest.err; then
9762 # Append any errors to the config.log.
9763 cat conftest.err 1>&5
9764 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9765 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9766 if diff conftest.exp conftest.er2 >/dev/null; then
9767 lt_cv_prog_compiler__b=yes
9769 else
9770 lt_cv_prog_compiler__b=yes
9773 $RM -r conftest*
9774 LDFLAGS="$save_LDFLAGS"
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9778 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9780 if test x"$lt_cv_prog_compiler__b" = xyes; then
9781 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9782 else
9783 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9787 esac
9789 if test "$with_gnu_ld" = no; then
9790 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9791 hardcode_libdir_separator=:
9793 case $host_cpu in
9794 hppa*64*|ia64*)
9795 hardcode_direct=no
9796 hardcode_shlibpath_var=no
9799 hardcode_direct=yes
9800 hardcode_direct_absolute=yes
9801 export_dynamic_flag_spec='${wl}-E'
9803 # hardcode_minus_L: Not really in the search PATH,
9804 # but as the default location of the library.
9805 hardcode_minus_L=yes
9807 esac
9811 irix5* | irix6* | nonstopux*)
9812 if test "$GCC" = yes; then
9813 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'
9814 # Try to use the -exported_symbol ld option, if it does not
9815 # work, assume that -exports_file does not work either and
9816 # implicitly export all symbols.
9817 save_LDFLAGS="$LDFLAGS"
9818 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820 /* end confdefs.h. */
9821 int foo(void) {}
9822 _ACEOF
9823 if ac_fn_c_try_link "$LINENO"; then :
9824 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'
9827 rm -f core conftest.err conftest.$ac_objext \
9828 conftest$ac_exeext conftest.$ac_ext
9829 LDFLAGS="$save_LDFLAGS"
9830 else
9831 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'
9832 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'
9834 archive_cmds_need_lc='no'
9835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9836 hardcode_libdir_separator=:
9837 inherit_rpath=yes
9838 link_all_deplibs=yes
9841 netbsd*)
9842 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9843 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9844 else
9845 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9847 hardcode_libdir_flag_spec='-R$libdir'
9848 hardcode_direct=yes
9849 hardcode_shlibpath_var=no
9852 newsos6)
9853 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9854 hardcode_direct=yes
9855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9856 hardcode_libdir_separator=:
9857 hardcode_shlibpath_var=no
9860 *nto* | *qnx*)
9863 openbsd*)
9864 if test -f /usr/libexec/ld.so; then
9865 hardcode_direct=yes
9866 hardcode_shlibpath_var=no
9867 hardcode_direct_absolute=yes
9868 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9870 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9872 export_dynamic_flag_spec='${wl}-E'
9873 else
9874 case $host_os in
9875 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9877 hardcode_libdir_flag_spec='-R$libdir'
9880 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9881 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9883 esac
9885 else
9886 ld_shlibs=no
9890 os2*)
9891 hardcode_libdir_flag_spec='-L$libdir'
9892 hardcode_minus_L=yes
9893 allow_undefined_flag=unsupported
9894 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'
9895 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9898 osf3*)
9899 if test "$GCC" = yes; then
9900 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9901 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'
9902 else
9903 allow_undefined_flag=' -expect_unresolved \*'
9904 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'
9906 archive_cmds_need_lc='no'
9907 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9908 hardcode_libdir_separator=:
9911 osf4* | osf5*) # as osf3* with the addition of -msym flag
9912 if test "$GCC" = yes; then
9913 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9914 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'
9915 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9916 else
9917 allow_undefined_flag=' -expect_unresolved \*'
9918 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'
9919 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~
9920 $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'
9922 # Both c and cxx compiler support -rpath directly
9923 hardcode_libdir_flag_spec='-rpath $libdir'
9925 archive_cmds_need_lc='no'
9926 hardcode_libdir_separator=:
9929 solaris*)
9930 no_undefined_flag=' -z defs'
9931 if test "$GCC" = yes; then
9932 wlarc='${wl}'
9933 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9934 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9935 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9936 else
9937 case `$CC -V 2>&1` in
9938 *"Compilers 5.0"*)
9939 wlarc=''
9940 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9941 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9942 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9945 wlarc='${wl}'
9946 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9947 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9948 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9950 esac
9952 hardcode_libdir_flag_spec='-R$libdir'
9953 hardcode_shlibpath_var=no
9954 case $host_os in
9955 solaris2.[0-5] | solaris2.[0-5].*) ;;
9957 # The compiler driver will combine and reorder linker options,
9958 # but understands `-z linker_flag'. GCC discards it without `$wl',
9959 # but is careful enough not to reorder.
9960 # Supported since Solaris 2.6 (maybe 2.5.1?)
9961 if test "$GCC" = yes; then
9962 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9963 else
9964 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9967 esac
9968 link_all_deplibs=yes
9971 sunos4*)
9972 if test "x$host_vendor" = xsequent; then
9973 # Use $CC to link under sequent, because it throws in some extra .o
9974 # files that make .init and .fini sections work.
9975 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9976 else
9977 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9979 hardcode_libdir_flag_spec='-L$libdir'
9980 hardcode_direct=yes
9981 hardcode_minus_L=yes
9982 hardcode_shlibpath_var=no
9985 sysv4)
9986 case $host_vendor in
9987 sni)
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_direct=yes # is this really true???
9991 siemens)
9992 ## LD is ld it makes a PLAMLIB
9993 ## CC just makes a GrossModule.
9994 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9995 reload_cmds='$CC -r -o $output$reload_objs'
9996 hardcode_direct=no
9998 motorola)
9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10002 esac
10003 runpath_var='LD_RUN_PATH'
10004 hardcode_shlibpath_var=no
10007 sysv4.3*)
10008 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10009 hardcode_shlibpath_var=no
10010 export_dynamic_flag_spec='-Bexport'
10013 sysv4*MP*)
10014 if test -d /usr/nec; then
10015 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10016 hardcode_shlibpath_var=no
10017 runpath_var=LD_RUN_PATH
10018 hardcode_runpath_var=yes
10019 ld_shlibs=yes
10023 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10024 no_undefined_flag='${wl}-z,text'
10025 archive_cmds_need_lc=no
10026 hardcode_shlibpath_var=no
10027 runpath_var='LD_RUN_PATH'
10029 if test "$GCC" = yes; then
10030 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10031 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 else
10033 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10034 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 sysv5* | sco3.2v5* | sco5v6*)
10039 # Note: We can NOT use -z defs as we might desire, because we do not
10040 # link with -lc, and that would cause any symbols used from libc to
10041 # always be unresolved, which means just about no library would
10042 # ever link correctly. If we're not using GNU ld we use -z text
10043 # though, which does catch some bad symbols but isn't as heavy-handed
10044 # as -z defs.
10045 no_undefined_flag='${wl}-z,text'
10046 allow_undefined_flag='${wl}-z,nodefs'
10047 archive_cmds_need_lc=no
10048 hardcode_shlibpath_var=no
10049 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10050 hardcode_libdir_separator=':'
10051 link_all_deplibs=yes
10052 export_dynamic_flag_spec='${wl}-Bexport'
10053 runpath_var='LD_RUN_PATH'
10055 if test "$GCC" = yes; then
10056 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10057 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10058 else
10059 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10060 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 uts4*)
10065 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10066 hardcode_libdir_flag_spec='-L$libdir'
10067 hardcode_shlibpath_var=no
10071 ld_shlibs=no
10073 esac
10075 if test x$host_vendor = xsni; then
10076 case $host in
10077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10078 export_dynamic_flag_spec='${wl}-Blargedynsym'
10080 esac
10084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10085 $as_echo "$ld_shlibs" >&6; }
10086 test "$ld_shlibs" = no && can_build_shared=no
10088 with_gnu_ld=$with_gnu_ld
10105 # Do we need to explicitly link libc?
10107 case "x$archive_cmds_need_lc" in
10108 x|xyes)
10109 # Assume -lc should be added
10110 archive_cmds_need_lc=yes
10112 if test "$enable_shared" = yes && test "$GCC" = yes; then
10113 case $archive_cmds in
10114 *'~'*)
10115 # FIXME: we may have to deal with multi-command sequences.
10117 '$CC '*)
10118 # Test whether the compiler implicitly links with -lc since on some
10119 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10120 # to ld, don't add -lc before -lgcc.
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10122 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10123 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10124 $as_echo_n "(cached) " >&6
10125 else
10126 $RM conftest*
10127 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10129 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10130 (eval $ac_compile) 2>&5
10131 ac_status=$?
10132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10133 test $ac_status = 0; } 2>conftest.err; then
10134 soname=conftest
10135 lib=conftest
10136 libobjs=conftest.$ac_objext
10137 deplibs=
10138 wl=$lt_prog_compiler_wl
10139 pic_flag=$lt_prog_compiler_pic
10140 compiler_flags=-v
10141 linker_flags=-v
10142 verstring=
10143 output_objdir=.
10144 libname=conftest
10145 lt_save_allow_undefined_flag=$allow_undefined_flag
10146 allow_undefined_flag=
10147 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10148 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10149 ac_status=$?
10150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10151 test $ac_status = 0; }
10152 then
10153 lt_cv_archive_cmds_need_lc=no
10154 else
10155 lt_cv_archive_cmds_need_lc=yes
10157 allow_undefined_flag=$lt_save_allow_undefined_flag
10158 else
10159 cat conftest.err 1>&5
10161 $RM conftest*
10164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10165 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10166 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10168 esac
10171 esac
10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10330 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10332 if test "$GCC" = yes; then
10333 case $host_os in
10334 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10335 *) lt_awk_arg="/^libraries:/" ;;
10336 esac
10337 case $host_os in
10338 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10339 *) lt_sed_strip_eq="s,=/,/,g" ;;
10340 esac
10341 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10342 case $lt_search_path_spec in
10343 *\;*)
10344 # if the path contains ";" then we assume it to be the separator
10345 # otherwise default to the standard path separator (i.e. ":") - it is
10346 # assumed that no part of a normal pathname contains ";" but that should
10347 # okay in the real world where ";" in dirpaths is itself problematic.
10348 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10351 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10353 esac
10354 # Ok, now we have the path, separated by spaces, we can step through it
10355 # and add multilib dir if necessary.
10356 lt_tmp_lt_search_path_spec=
10357 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10358 for lt_sys_path in $lt_search_path_spec; do
10359 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10360 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10361 else
10362 test -d "$lt_sys_path" && \
10363 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10365 done
10366 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10367 BEGIN {RS=" "; FS="/|\n";} {
10368 lt_foo="";
10369 lt_count=0;
10370 for (lt_i = NF; lt_i > 0; lt_i--) {
10371 if ($lt_i != "" && $lt_i != ".") {
10372 if ($lt_i == "..") {
10373 lt_count++;
10374 } else {
10375 if (lt_count == 0) {
10376 lt_foo="/" $lt_i lt_foo;
10377 } else {
10378 lt_count--;
10383 if (lt_foo != "") { lt_freq[lt_foo]++; }
10384 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10386 # AWK program above erroneously prepends '/' to C:/dos/paths
10387 # for these hosts.
10388 case $host_os in
10389 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10390 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10391 esac
10392 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10393 else
10394 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10396 library_names_spec=
10397 libname_spec='lib$name'
10398 soname_spec=
10399 shrext_cmds=".so"
10400 postinstall_cmds=
10401 postuninstall_cmds=
10402 finish_cmds=
10403 finish_eval=
10404 shlibpath_var=
10405 shlibpath_overrides_runpath=unknown
10406 version_type=none
10407 dynamic_linker="$host_os ld.so"
10408 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10409 need_lib_prefix=unknown
10410 hardcode_into_libs=no
10412 # when you set need_version to no, make sure it does not cause -set_version
10413 # flags to be left without arguments
10414 need_version=unknown
10416 case $host_os in
10417 aix3*)
10418 version_type=linux
10419 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10420 shlibpath_var=LIBPATH
10422 # AIX 3 has no versioning support, so we append a major version to the name.
10423 soname_spec='${libname}${release}${shared_ext}$major'
10426 aix[4-9]*)
10427 version_type=linux
10428 need_lib_prefix=no
10429 need_version=no
10430 hardcode_into_libs=yes
10431 if test "$host_cpu" = ia64; then
10432 # AIX 5 supports IA64
10433 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10434 shlibpath_var=LD_LIBRARY_PATH
10435 else
10436 # With GCC up to 2.95.x, collect2 would create an import file
10437 # for dependence libraries. The import file would start with
10438 # the line `#! .'. This would cause the generated library to
10439 # depend on `.', always an invalid library. This was fixed in
10440 # development snapshots of GCC prior to 3.0.
10441 case $host_os in
10442 aix4 | aix4.[01] | aix4.[01].*)
10443 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10444 echo ' yes '
10445 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10447 else
10448 can_build_shared=no
10451 esac
10452 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10453 # soname into executable. Probably we can add versioning support to
10454 # collect2, so additional links can be useful in future.
10455 if test "$aix_use_runtimelinking" = yes; then
10456 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10457 # instead of lib<name>.a to let people know that these are not
10458 # typical AIX shared libraries.
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460 else
10461 # We preserve .a as extension for shared libraries through AIX4.2
10462 # and later when we are not doing run time linking.
10463 library_names_spec='${libname}${release}.a $libname.a'
10464 soname_spec='${libname}${release}${shared_ext}$major'
10466 shlibpath_var=LIBPATH
10470 amigaos*)
10471 case $host_cpu in
10472 powerpc)
10473 # Since July 2007 AmigaOS4 officially supports .so libraries.
10474 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10477 m68k)
10478 library_names_spec='$libname.ixlibrary $libname.a'
10479 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10480 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'
10482 esac
10485 beos*)
10486 library_names_spec='${libname}${shared_ext}'
10487 dynamic_linker="$host_os ld.so"
10488 shlibpath_var=LIBRARY_PATH
10491 bsdi[45]*)
10492 version_type=linux
10493 need_version=no
10494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10495 soname_spec='${libname}${release}${shared_ext}$major'
10496 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10497 shlibpath_var=LD_LIBRARY_PATH
10498 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10499 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10500 # the default ld.so.conf also contains /usr/contrib/lib and
10501 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10502 # libtool to hard-code these into programs
10505 cygwin* | mingw* | pw32* | cegcc*)
10506 version_type=windows
10507 shrext_cmds=".dll"
10508 need_version=no
10509 need_lib_prefix=no
10511 case $GCC,$host_os in
10512 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10513 library_names_spec='$libname.dll.a'
10514 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10515 postinstall_cmds='base_file=`basename \${file}`~
10516 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10517 dldir=$destdir/`dirname \$dlpath`~
10518 test -d \$dldir || mkdir -p \$dldir~
10519 $install_prog $dir/$dlname \$dldir/$dlname~
10520 chmod a+x \$dldir/$dlname~
10521 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10522 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10524 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10525 dlpath=$dir/\$dldll~
10526 $RM \$dlpath'
10527 shlibpath_overrides_runpath=yes
10529 case $host_os in
10530 cygwin*)
10531 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10532 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10534 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10536 mingw* | cegcc*)
10537 # MinGW DLLs use traditional 'lib' prefix
10538 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10540 pw32*)
10541 # pw32 DLLs use 'pw' prefix rather than 'lib'
10542 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10544 esac
10548 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10550 esac
10551 dynamic_linker='Win32 ld.exe'
10552 # FIXME: first we should search . and the directory the executable is in
10553 shlibpath_var=PATH
10556 darwin* | rhapsody*)
10557 dynamic_linker="$host_os dyld"
10558 version_type=darwin
10559 need_lib_prefix=no
10560 need_version=no
10561 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10562 soname_spec='${libname}${release}${major}$shared_ext'
10563 shlibpath_overrides_runpath=yes
10564 shlibpath_var=DYLD_LIBRARY_PATH
10565 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10567 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10568 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10571 dgux*)
10572 version_type=linux
10573 need_lib_prefix=no
10574 need_version=no
10575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10576 soname_spec='${libname}${release}${shared_ext}$major'
10577 shlibpath_var=LD_LIBRARY_PATH
10580 freebsd* | dragonfly*)
10581 # DragonFly does not have aout. When/if they implement a new
10582 # versioning mechanism, adjust this.
10583 if test -x /usr/bin/objformat; then
10584 objformat=`/usr/bin/objformat`
10585 else
10586 case $host_os in
10587 freebsd[23].*) objformat=aout ;;
10588 *) objformat=elf ;;
10589 esac
10591 version_type=freebsd-$objformat
10592 case $version_type in
10593 freebsd-elf*)
10594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10595 need_version=no
10596 need_lib_prefix=no
10598 freebsd-*)
10599 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10600 need_version=yes
10602 esac
10603 shlibpath_var=LD_LIBRARY_PATH
10604 case $host_os in
10605 freebsd2.*)
10606 shlibpath_overrides_runpath=yes
10608 freebsd3.[01]* | freebsdelf3.[01]*)
10609 shlibpath_overrides_runpath=yes
10610 hardcode_into_libs=yes
10612 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10613 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10614 shlibpath_overrides_runpath=no
10615 hardcode_into_libs=yes
10617 *) # from 4.6 on, and DragonFly
10618 shlibpath_overrides_runpath=yes
10619 hardcode_into_libs=yes
10621 esac
10624 haiku*)
10625 version_type=linux
10626 need_lib_prefix=no
10627 need_version=no
10628 dynamic_linker="$host_os runtime_loader"
10629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10630 soname_spec='${libname}${release}${shared_ext}$major'
10631 shlibpath_var=LIBRARY_PATH
10632 shlibpath_overrides_runpath=yes
10633 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10634 hardcode_into_libs=yes
10637 hpux9* | hpux10* | hpux11*)
10638 # Give a soname corresponding to the major version so that dld.sl refuses to
10639 # link against other versions.
10640 version_type=sunos
10641 need_lib_prefix=no
10642 need_version=no
10643 case $host_cpu in
10644 ia64*)
10645 shrext_cmds='.so'
10646 hardcode_into_libs=yes
10647 dynamic_linker="$host_os dld.so"
10648 shlibpath_var=LD_LIBRARY_PATH
10649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10651 soname_spec='${libname}${release}${shared_ext}$major'
10652 if test "X$HPUX_IA64_MODE" = X32; then
10653 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10654 else
10655 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10657 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10659 hppa*64*)
10660 shrext_cmds='.sl'
10661 hardcode_into_libs=yes
10662 dynamic_linker="$host_os dld.sl"
10663 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10664 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10666 soname_spec='${libname}${release}${shared_ext}$major'
10667 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10668 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10671 shrext_cmds='.sl'
10672 dynamic_linker="$host_os dld.sl"
10673 shlibpath_var=SHLIB_PATH
10674 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10676 soname_spec='${libname}${release}${shared_ext}$major'
10678 esac
10679 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10680 postinstall_cmds='chmod 555 $lib'
10681 # or fails outright, so override atomically:
10682 install_override_mode=555
10685 interix[3-9]*)
10686 version_type=linux
10687 need_lib_prefix=no
10688 need_version=no
10689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10690 soname_spec='${libname}${release}${shared_ext}$major'
10691 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10692 shlibpath_var=LD_LIBRARY_PATH
10693 shlibpath_overrides_runpath=no
10694 hardcode_into_libs=yes
10697 irix5* | irix6* | nonstopux*)
10698 case $host_os in
10699 nonstopux*) version_type=nonstopux ;;
10701 if test "$lt_cv_prog_gnu_ld" = yes; then
10702 version_type=linux
10703 else
10704 version_type=irix
10705 fi ;;
10706 esac
10707 need_lib_prefix=no
10708 need_version=no
10709 soname_spec='${libname}${release}${shared_ext}$major'
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10711 case $host_os in
10712 irix5* | nonstopux*)
10713 libsuff= shlibsuff=
10716 case $LD in # libtool.m4 will add one of these switches to LD
10717 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10718 libsuff= shlibsuff= libmagic=32-bit;;
10719 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10720 libsuff=32 shlibsuff=N32 libmagic=N32;;
10721 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10722 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10723 *) libsuff= shlibsuff= libmagic=never-match;;
10724 esac
10726 esac
10727 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10728 shlibpath_overrides_runpath=no
10729 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10730 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10731 hardcode_into_libs=yes
10734 # No shared lib support for Linux oldld, aout, or coff.
10735 linux*oldld* | linux*aout* | linux*coff*)
10736 dynamic_linker=no
10739 # This must be Linux ELF.
10741 # uclinux* changes (here and below) have been submitted to the libtool
10742 # project, but have not yet been accepted: they are GCC-local changes
10743 # for the time being. (See
10744 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10745 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10746 version_type=linux
10747 need_lib_prefix=no
10748 need_version=no
10749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10750 soname_spec='${libname}${release}${shared_ext}$major'
10751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10752 shlibpath_var=LD_LIBRARY_PATH
10753 shlibpath_overrides_runpath=no
10755 # Some binutils ld are patched to set DT_RUNPATH
10756 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10757 $as_echo_n "(cached) " >&6
10758 else
10759 lt_cv_shlibpath_overrides_runpath=no
10760 save_LDFLAGS=$LDFLAGS
10761 save_libdir=$libdir
10762 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10763 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10768 main ()
10772 return 0;
10774 _ACEOF
10775 if ac_fn_c_try_link "$LINENO"; then :
10776 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10777 lt_cv_shlibpath_overrides_runpath=yes
10780 rm -f core conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
10782 LDFLAGS=$save_LDFLAGS
10783 libdir=$save_libdir
10787 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10789 # This implies no fast_install, which is unacceptable.
10790 # Some rework will be needed to allow for fast_install
10791 # before this can be enabled.
10792 hardcode_into_libs=yes
10794 # Append ld.so.conf contents to the search path
10795 if test -f /etc/ld.so.conf; then
10796 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' ' '`
10797 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10800 # We used to test for /lib/ld.so.1 and disable shared libraries on
10801 # powerpc, because MkLinux only supported shared libraries with the
10802 # GNU dynamic linker. Since this was broken with cross compilers,
10803 # most powerpc-linux boxes support dynamic linking these days and
10804 # people can always --disable-shared, the test was removed, and we
10805 # assume the GNU/Linux dynamic linker is in use.
10806 dynamic_linker='GNU/Linux ld.so'
10809 netbsd*)
10810 version_type=sunos
10811 need_lib_prefix=no
10812 need_version=no
10813 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10815 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10816 dynamic_linker='NetBSD (a.out) ld.so'
10817 else
10818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10819 soname_spec='${libname}${release}${shared_ext}$major'
10820 dynamic_linker='NetBSD ld.elf_so'
10822 shlibpath_var=LD_LIBRARY_PATH
10823 shlibpath_overrides_runpath=yes
10824 hardcode_into_libs=yes
10827 newsos6)
10828 version_type=linux
10829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10830 shlibpath_var=LD_LIBRARY_PATH
10831 shlibpath_overrides_runpath=yes
10834 *nto* | *qnx*)
10835 version_type=qnx
10836 need_lib_prefix=no
10837 need_version=no
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 shlibpath_var=LD_LIBRARY_PATH
10841 shlibpath_overrides_runpath=no
10842 hardcode_into_libs=yes
10843 dynamic_linker='ldqnx.so'
10846 openbsd*)
10847 version_type=sunos
10848 sys_lib_dlsearch_path_spec="/usr/lib"
10849 need_lib_prefix=no
10850 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10851 case $host_os in
10852 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10853 *) need_version=no ;;
10854 esac
10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10857 shlibpath_var=LD_LIBRARY_PATH
10858 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10859 case $host_os in
10860 openbsd2.[89] | openbsd2.[89].*)
10861 shlibpath_overrides_runpath=no
10864 shlibpath_overrides_runpath=yes
10866 esac
10867 else
10868 shlibpath_overrides_runpath=yes
10872 os2*)
10873 libname_spec='$name'
10874 shrext_cmds=".dll"
10875 need_lib_prefix=no
10876 library_names_spec='$libname${shared_ext} $libname.a'
10877 dynamic_linker='OS/2 ld.exe'
10878 shlibpath_var=LIBPATH
10881 osf3* | osf4* | osf5*)
10882 version_type=osf
10883 need_lib_prefix=no
10884 need_version=no
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10887 shlibpath_var=LD_LIBRARY_PATH
10888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10889 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10892 rdos*)
10893 dynamic_linker=no
10896 solaris*)
10897 version_type=linux
10898 need_lib_prefix=no
10899 need_version=no
10900 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10901 soname_spec='${libname}${release}${shared_ext}$major'
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=yes
10904 hardcode_into_libs=yes
10905 # ldd complains unless libraries are executable
10906 postinstall_cmds='chmod +x $lib'
10909 sunos4*)
10910 version_type=sunos
10911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10912 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10913 shlibpath_var=LD_LIBRARY_PATH
10914 shlibpath_overrides_runpath=yes
10915 if test "$with_gnu_ld" = yes; then
10916 need_lib_prefix=no
10918 need_version=yes
10921 sysv4 | sysv4.3*)
10922 version_type=linux
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 shlibpath_var=LD_LIBRARY_PATH
10926 case $host_vendor in
10927 sni)
10928 shlibpath_overrides_runpath=no
10929 need_lib_prefix=no
10930 runpath_var=LD_RUN_PATH
10932 siemens)
10933 need_lib_prefix=no
10935 motorola)
10936 need_lib_prefix=no
10937 need_version=no
10938 shlibpath_overrides_runpath=no
10939 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10941 esac
10944 sysv4*MP*)
10945 if test -d /usr/nec ;then
10946 version_type=linux
10947 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10948 soname_spec='$libname${shared_ext}.$major'
10949 shlibpath_var=LD_LIBRARY_PATH
10953 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10954 version_type=freebsd-elf
10955 need_lib_prefix=no
10956 need_version=no
10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10958 soname_spec='${libname}${release}${shared_ext}$major'
10959 shlibpath_var=LD_LIBRARY_PATH
10960 shlibpath_overrides_runpath=yes
10961 hardcode_into_libs=yes
10962 if test "$with_gnu_ld" = yes; then
10963 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10964 else
10965 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10966 case $host_os in
10967 sco3.2v5*)
10968 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10970 esac
10972 sys_lib_dlsearch_path_spec='/usr/lib'
10975 tpf*)
10976 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10977 version_type=linux
10978 need_lib_prefix=no
10979 need_version=no
10980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10981 shlibpath_var=LD_LIBRARY_PATH
10982 shlibpath_overrides_runpath=no
10983 hardcode_into_libs=yes
10986 uts4*)
10987 version_type=linux
10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10989 soname_spec='${libname}${release}${shared_ext}$major'
10990 shlibpath_var=LD_LIBRARY_PATH
10994 dynamic_linker=no
10996 esac
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10998 $as_echo "$dynamic_linker" >&6; }
10999 test "$dynamic_linker" = no && can_build_shared=no
11001 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11002 if test "$GCC" = yes; then
11003 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11006 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11007 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11009 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11010 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11105 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11106 hardcode_action=
11107 if test -n "$hardcode_libdir_flag_spec" ||
11108 test -n "$runpath_var" ||
11109 test "X$hardcode_automatic" = "Xyes" ; then
11111 # We can hardcode non-existent directories.
11112 if test "$hardcode_direct" != no &&
11113 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11114 # have to relink, otherwise we might link with an installed library
11115 # when we should be linking with a yet-to-be-installed one
11116 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11117 test "$hardcode_minus_L" != no; then
11118 # Linking always hardcodes the temporary library directory.
11119 hardcode_action=relink
11120 else
11121 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11122 hardcode_action=immediate
11124 else
11125 # We cannot hardcode anything, or else we can only hardcode existing
11126 # directories.
11127 hardcode_action=unsupported
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11130 $as_echo "$hardcode_action" >&6; }
11132 if test "$hardcode_action" = relink ||
11133 test "$inherit_rpath" = yes; then
11134 # Fast installation is not supported
11135 enable_fast_install=no
11136 elif test "$shlibpath_overrides_runpath" = yes ||
11137 test "$enable_shared" = no; then
11138 # Fast installation is not necessary
11139 enable_fast_install=needless
11147 if test "x$enable_dlopen" != xyes; then
11148 enable_dlopen=unknown
11149 enable_dlopen_self=unknown
11150 enable_dlopen_self_static=unknown
11151 else
11152 lt_cv_dlopen=no
11153 lt_cv_dlopen_libs=
11155 case $host_os in
11156 beos*)
11157 lt_cv_dlopen="load_add_on"
11158 lt_cv_dlopen_libs=
11159 lt_cv_dlopen_self=yes
11162 mingw* | pw32* | cegcc*)
11163 lt_cv_dlopen="LoadLibrary"
11164 lt_cv_dlopen_libs=
11167 cygwin*)
11168 lt_cv_dlopen="dlopen"
11169 lt_cv_dlopen_libs=
11172 darwin*)
11173 # if libdl is installed we need to link against it
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11175 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11176 if ${ac_cv_lib_dl_dlopen+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 ac_check_lib_save_LIBS=$LIBS
11180 LIBS="-ldl $LIBS"
11181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11182 /* end confdefs.h. */
11184 /* Override any GCC internal prototype to avoid an error.
11185 Use char because int might match the return type of a GCC
11186 builtin and then its argument prototype would still apply. */
11187 #ifdef __cplusplus
11188 extern "C"
11189 #endif
11190 char dlopen ();
11192 main ()
11194 return dlopen ();
11196 return 0;
11198 _ACEOF
11199 if ac_fn_c_try_link "$LINENO"; then :
11200 ac_cv_lib_dl_dlopen=yes
11201 else
11202 ac_cv_lib_dl_dlopen=no
11204 rm -f core conftest.err conftest.$ac_objext \
11205 conftest$ac_exeext conftest.$ac_ext
11206 LIBS=$ac_check_lib_save_LIBS
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11209 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11210 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11211 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11212 else
11214 lt_cv_dlopen="dyld"
11215 lt_cv_dlopen_libs=
11216 lt_cv_dlopen_self=yes
11223 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11224 if test "x$ac_cv_func_shl_load" = xyes; then :
11225 lt_cv_dlopen="shl_load"
11226 else
11227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11228 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11229 if ${ac_cv_lib_dld_shl_load+:} false; then :
11230 $as_echo_n "(cached) " >&6
11231 else
11232 ac_check_lib_save_LIBS=$LIBS
11233 LIBS="-ldld $LIBS"
11234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11235 /* end confdefs.h. */
11237 /* Override any GCC internal prototype to avoid an error.
11238 Use char because int might match the return type of a GCC
11239 builtin and then its argument prototype would still apply. */
11240 #ifdef __cplusplus
11241 extern "C"
11242 #endif
11243 char shl_load ();
11245 main ()
11247 return shl_load ();
11249 return 0;
11251 _ACEOF
11252 if ac_fn_c_try_link "$LINENO"; then :
11253 ac_cv_lib_dld_shl_load=yes
11254 else
11255 ac_cv_lib_dld_shl_load=no
11257 rm -f core conftest.err conftest.$ac_objext \
11258 conftest$ac_exeext conftest.$ac_ext
11259 LIBS=$ac_check_lib_save_LIBS
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11262 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11263 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11264 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11265 else
11266 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11267 if test "x$ac_cv_func_dlopen" = xyes; then :
11268 lt_cv_dlopen="dlopen"
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11271 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11272 if ${ac_cv_lib_dl_dlopen+:} false; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-ldl $LIBS"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 char dlopen ();
11288 main ()
11290 return dlopen ();
11292 return 0;
11294 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"; then :
11296 ac_cv_lib_dl_dlopen=yes
11297 else
11298 ac_cv_lib_dl_dlopen=no
11300 rm -f core conftest.err conftest.$ac_objext \
11301 conftest$ac_exeext conftest.$ac_ext
11302 LIBS=$ac_check_lib_save_LIBS
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11305 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11306 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11308 else
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11310 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11311 if ${ac_cv_lib_svld_dlopen+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314 ac_check_lib_save_LIBS=$LIBS
11315 LIBS="-lsvld $LIBS"
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11319 /* Override any GCC internal prototype to avoid an error.
11320 Use char because int might match the return type of a GCC
11321 builtin and then its argument prototype would still apply. */
11322 #ifdef __cplusplus
11323 extern "C"
11324 #endif
11325 char dlopen ();
11327 main ()
11329 return dlopen ();
11331 return 0;
11333 _ACEOF
11334 if ac_fn_c_try_link "$LINENO"; then :
11335 ac_cv_lib_svld_dlopen=yes
11336 else
11337 ac_cv_lib_svld_dlopen=no
11339 rm -f core conftest.err conftest.$ac_objext \
11340 conftest$ac_exeext conftest.$ac_ext
11341 LIBS=$ac_check_lib_save_LIBS
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11344 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11345 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11346 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11347 else
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11349 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11350 if ${ac_cv_lib_dld_dld_link+:} false; then :
11351 $as_echo_n "(cached) " >&6
11352 else
11353 ac_check_lib_save_LIBS=$LIBS
11354 LIBS="-ldld $LIBS"
11355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11356 /* end confdefs.h. */
11358 /* Override any GCC internal prototype to avoid an error.
11359 Use char because int might match the return type of a GCC
11360 builtin and then its argument prototype would still apply. */
11361 #ifdef __cplusplus
11362 extern "C"
11363 #endif
11364 char dld_link ();
11366 main ()
11368 return dld_link ();
11370 return 0;
11372 _ACEOF
11373 if ac_fn_c_try_link "$LINENO"; then :
11374 ac_cv_lib_dld_dld_link=yes
11375 else
11376 ac_cv_lib_dld_dld_link=no
11378 rm -f core conftest.err conftest.$ac_objext \
11379 conftest$ac_exeext conftest.$ac_ext
11380 LIBS=$ac_check_lib_save_LIBS
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11383 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11384 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11385 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11404 esac
11406 if test "x$lt_cv_dlopen" != xno; then
11407 enable_dlopen=yes
11408 else
11409 enable_dlopen=no
11412 case $lt_cv_dlopen in
11413 dlopen)
11414 save_CPPFLAGS="$CPPFLAGS"
11415 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11417 save_LDFLAGS="$LDFLAGS"
11418 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11420 save_LIBS="$LIBS"
11421 LIBS="$lt_cv_dlopen_libs $LIBS"
11423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11424 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11425 if ${lt_cv_dlopen_self+:} false; then :
11426 $as_echo_n "(cached) " >&6
11427 else
11428 if test "$cross_compiling" = yes; then :
11429 lt_cv_dlopen_self=cross
11430 else
11431 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11432 lt_status=$lt_dlunknown
11433 cat > conftest.$ac_ext <<_LT_EOF
11434 #line 11434 "configure"
11435 #include "confdefs.h"
11437 #if HAVE_DLFCN_H
11438 #include <dlfcn.h>
11439 #endif
11441 #include <stdio.h>
11443 #ifdef RTLD_GLOBAL
11444 # define LT_DLGLOBAL RTLD_GLOBAL
11445 #else
11446 # ifdef DL_GLOBAL
11447 # define LT_DLGLOBAL DL_GLOBAL
11448 # else
11449 # define LT_DLGLOBAL 0
11450 # endif
11451 #endif
11453 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11454 find out it does not work in some platform. */
11455 #ifndef LT_DLLAZY_OR_NOW
11456 # ifdef RTLD_LAZY
11457 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11458 # else
11459 # ifdef DL_LAZY
11460 # define LT_DLLAZY_OR_NOW DL_LAZY
11461 # else
11462 # ifdef RTLD_NOW
11463 # define LT_DLLAZY_OR_NOW RTLD_NOW
11464 # else
11465 # ifdef DL_NOW
11466 # define LT_DLLAZY_OR_NOW DL_NOW
11467 # else
11468 # define LT_DLLAZY_OR_NOW 0
11469 # endif
11470 # endif
11471 # endif
11472 # endif
11473 #endif
11475 /* When -fvisbility=hidden is used, assume the code has been annotated
11476 correspondingly for the symbols needed. */
11477 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11478 void fnord () __attribute__((visibility("default")));
11479 #endif
11481 void fnord () { int i=42; }
11482 int main ()
11484 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11485 int status = $lt_dlunknown;
11487 if (self)
11489 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11490 else
11492 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11493 else puts (dlerror ());
11495 /* dlclose (self); */
11497 else
11498 puts (dlerror ());
11500 return status;
11502 _LT_EOF
11503 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11504 (eval $ac_link) 2>&5
11505 ac_status=$?
11506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11507 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11508 (./conftest; exit; ) >&5 2>/dev/null
11509 lt_status=$?
11510 case x$lt_status in
11511 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11512 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11513 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11514 esac
11515 else :
11516 # compilation failed
11517 lt_cv_dlopen_self=no
11520 rm -fr conftest*
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11525 $as_echo "$lt_cv_dlopen_self" >&6; }
11527 if test "x$lt_cv_dlopen_self" = xyes; then
11528 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11530 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11531 if ${lt_cv_dlopen_self_static+:} false; then :
11532 $as_echo_n "(cached) " >&6
11533 else
11534 if test "$cross_compiling" = yes; then :
11535 lt_cv_dlopen_self_static=cross
11536 else
11537 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11538 lt_status=$lt_dlunknown
11539 cat > conftest.$ac_ext <<_LT_EOF
11540 #line 11540 "configure"
11541 #include "confdefs.h"
11543 #if HAVE_DLFCN_H
11544 #include <dlfcn.h>
11545 #endif
11547 #include <stdio.h>
11549 #ifdef RTLD_GLOBAL
11550 # define LT_DLGLOBAL RTLD_GLOBAL
11551 #else
11552 # ifdef DL_GLOBAL
11553 # define LT_DLGLOBAL DL_GLOBAL
11554 # else
11555 # define LT_DLGLOBAL 0
11556 # endif
11557 #endif
11559 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11560 find out it does not work in some platform. */
11561 #ifndef LT_DLLAZY_OR_NOW
11562 # ifdef RTLD_LAZY
11563 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11564 # else
11565 # ifdef DL_LAZY
11566 # define LT_DLLAZY_OR_NOW DL_LAZY
11567 # else
11568 # ifdef RTLD_NOW
11569 # define LT_DLLAZY_OR_NOW RTLD_NOW
11570 # else
11571 # ifdef DL_NOW
11572 # define LT_DLLAZY_OR_NOW DL_NOW
11573 # else
11574 # define LT_DLLAZY_OR_NOW 0
11575 # endif
11576 # endif
11577 # endif
11578 # endif
11579 #endif
11581 /* When -fvisbility=hidden is used, assume the code has been annotated
11582 correspondingly for the symbols needed. */
11583 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11584 void fnord () __attribute__((visibility("default")));
11585 #endif
11587 void fnord () { int i=42; }
11588 int main ()
11590 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11591 int status = $lt_dlunknown;
11593 if (self)
11595 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11596 else
11598 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11599 else puts (dlerror ());
11601 /* dlclose (self); */
11603 else
11604 puts (dlerror ());
11606 return status;
11608 _LT_EOF
11609 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11610 (eval $ac_link) 2>&5
11611 ac_status=$?
11612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11613 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11614 (./conftest; exit; ) >&5 2>/dev/null
11615 lt_status=$?
11616 case x$lt_status in
11617 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11618 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11619 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11620 esac
11621 else :
11622 # compilation failed
11623 lt_cv_dlopen_self_static=no
11626 rm -fr conftest*
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11631 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11634 CPPFLAGS="$save_CPPFLAGS"
11635 LDFLAGS="$save_LDFLAGS"
11636 LIBS="$save_LIBS"
11638 esac
11640 case $lt_cv_dlopen_self in
11641 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11642 *) enable_dlopen_self=unknown ;;
11643 esac
11645 case $lt_cv_dlopen_self_static in
11646 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11647 *) enable_dlopen_self_static=unknown ;;
11648 esac
11667 striplib=
11668 old_striplib=
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11670 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11671 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11672 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11673 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11675 $as_echo "yes" >&6; }
11676 else
11677 # FIXME - insert some real tests, host_os isn't really good enough
11678 case $host_os in
11679 darwin*)
11680 if test -n "$STRIP" ; then
11681 striplib="$STRIP -x"
11682 old_striplib="$STRIP -S"
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11684 $as_echo "yes" >&6; }
11685 else
11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11687 $as_echo "no" >&6; }
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11692 $as_echo "no" >&6; }
11694 esac
11708 # Report which library types will actually be built
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11710 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11712 $as_echo "$can_build_shared" >&6; }
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11715 $as_echo_n "checking whether to build shared libraries... " >&6; }
11716 test "$can_build_shared" = "no" && enable_shared=no
11718 # On AIX, shared libraries and static libraries use the same namespace, and
11719 # are all built from PIC.
11720 case $host_os in
11721 aix3*)
11722 test "$enable_shared" = yes && enable_static=no
11723 if test -n "$RANLIB"; then
11724 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11725 postinstall_cmds='$RANLIB $lib'
11729 aix[4-9]*)
11730 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11731 test "$enable_shared" = yes && enable_static=no
11734 esac
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11736 $as_echo "$enable_shared" >&6; }
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11739 $as_echo_n "checking whether to build static libraries... " >&6; }
11740 # Make sure either enable_shared or enable_static is yes.
11741 test "$enable_shared" = yes || enable_static=yes
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11743 $as_echo "$enable_static" >&6; }
11749 ac_ext=c
11750 ac_cpp='$CPP $CPPFLAGS'
11751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11755 CC="$lt_save_CC"
11769 ac_config_commands="$ac_config_commands libtool"
11774 # Only expand once:
11780 case $host in
11781 *-cygwin* | *-mingw*)
11782 # 'host' will be top-level target in the case of a target lib,
11783 # we must compare to with_cross_host to decide if this is a native
11784 # or cross-compiler and select where to install dlls appropriately.
11785 if test -n "$with_cross_host" &&
11786 test x"$with_cross_host" != x"no"; then
11787 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11788 else
11789 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11793 lt_host_flags=
11795 esac
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11804 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11805 # Check whether --enable-maintainer-mode was given.
11806 if test "${enable_maintainer_mode+set}" = set; then :
11807 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11808 else
11809 USE_MAINTAINER_MODE=no
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11813 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11814 if test $USE_MAINTAINER_MODE = yes; then
11815 MAINTAINER_MODE_TRUE=
11816 MAINTAINER_MODE_FALSE='#'
11817 else
11818 MAINTAINER_MODE_TRUE='#'
11819 MAINTAINER_MODE_FALSE=
11822 MAINT=$MAINTAINER_MODE_TRUE
11826 # Create a spec file, so that compile/link tests don't fail
11827 test -f libgfortran.spec || touch libgfortran.spec
11828 FCFLAGS="$FCFLAGS -L."
11830 # We need gfortran to compile parts of the library
11831 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11832 #AC_PROG_FC(gfortran)
11833 case `echo $GFORTRAN` in
11834 -* | no* )
11835 FC=no ;;
11837 set dummy $GFORTRAN; ac_word=$2
11838 if test -x "$ac_word"; then
11839 FC="$GFORTRAN"
11840 else
11841 FC=no
11842 fi ;;
11843 esac
11844 ac_ext=${ac_fc_srcext-f}
11845 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11846 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11847 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11848 if test -n "$ac_tool_prefix"; then
11849 for ac_prog in gfortran
11851 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11852 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11854 $as_echo_n "checking for $ac_word... " >&6; }
11855 if ${ac_cv_prog_FC+:} false; then :
11856 $as_echo_n "(cached) " >&6
11857 else
11858 if test -n "$FC"; then
11859 ac_cv_prog_FC="$FC" # Let the user override the test.
11860 else
11861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11862 for as_dir in $PATH
11864 IFS=$as_save_IFS
11865 test -z "$as_dir" && as_dir=.
11866 for ac_exec_ext in '' $ac_executable_extensions; do
11867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11868 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11870 break 2
11872 done
11873 done
11874 IFS=$as_save_IFS
11878 FC=$ac_cv_prog_FC
11879 if test -n "$FC"; then
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11881 $as_echo "$FC" >&6; }
11882 else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11884 $as_echo "no" >&6; }
11888 test -n "$FC" && break
11889 done
11891 if test -z "$FC"; then
11892 ac_ct_FC=$FC
11893 for ac_prog in gfortran
11895 # Extract the first word of "$ac_prog", so it can be a program name with args.
11896 set dummy $ac_prog; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11898 $as_echo_n "checking for $ac_word... " >&6; }
11899 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 if test -n "$ac_ct_FC"; then
11903 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11904 else
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_ac_ct_FC="$ac_prog"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11914 break 2
11916 done
11917 done
11918 IFS=$as_save_IFS
11922 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11923 if test -n "$ac_ct_FC"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11925 $as_echo "$ac_ct_FC" >&6; }
11926 else
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928 $as_echo "no" >&6; }
11932 test -n "$ac_ct_FC" && break
11933 done
11935 if test "x$ac_ct_FC" = x; then
11936 FC=""
11937 else
11938 case $cross_compiling:$ac_tool_warned in
11939 yes:)
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11942 ac_tool_warned=yes ;;
11943 esac
11944 FC=$ac_ct_FC
11949 # Provide some information about the compiler.
11950 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11951 set X $ac_compile
11952 ac_compiler=$2
11953 for ac_option in --version -v -V -qversion; do
11954 { { ac_try="$ac_compiler $ac_option >&5"
11955 case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958 esac
11959 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11960 $as_echo "$ac_try_echo"; } >&5
11961 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11962 ac_status=$?
11963 if test -s conftest.err; then
11964 sed '10a\
11965 ... rest of stderr output deleted ...
11966 10q' conftest.err >conftest.er1
11967 cat conftest.er1 >&5
11969 rm -f conftest.er1 conftest.err
11970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11971 test $ac_status = 0; }
11972 done
11973 rm -f a.out
11975 # If we don't use `.F' as extension, the preprocessor is not run on the
11976 # input file. (Note that this only needs to work for GNU compilers.)
11977 ac_save_ext=$ac_ext
11978 ac_ext=F
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11980 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11981 if ${ac_cv_fc_compiler_gnu+:} false; then :
11982 $as_echo_n "(cached) " >&6
11983 else
11984 cat > conftest.$ac_ext <<_ACEOF
11985 program main
11986 #ifndef __GNUC__
11987 choke me
11988 #endif
11991 _ACEOF
11992 if ac_fn_fc_try_compile "$LINENO"; then :
11993 ac_compiler_gnu=yes
11994 else
11995 ac_compiler_gnu=no
11997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11998 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12002 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12003 ac_ext=$ac_save_ext
12004 ac_test_FCFLAGS=${FCFLAGS+set}
12005 ac_save_FCFLAGS=$FCFLAGS
12006 FCFLAGS=
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12008 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12009 if ${ac_cv_prog_fc_g+:} false; then :
12010 $as_echo_n "(cached) " >&6
12011 else
12012 FCFLAGS=-g
12013 cat > conftest.$ac_ext <<_ACEOF
12014 program main
12017 _ACEOF
12018 if ac_fn_fc_try_compile "$LINENO"; then :
12019 ac_cv_prog_fc_g=yes
12020 else
12021 ac_cv_prog_fc_g=no
12023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12027 $as_echo "$ac_cv_prog_fc_g" >&6; }
12028 if test "$ac_test_FCFLAGS" = set; then
12029 FCFLAGS=$ac_save_FCFLAGS
12030 elif test $ac_cv_prog_fc_g = yes; then
12031 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12032 FCFLAGS="-g -O2"
12033 else
12034 FCFLAGS="-g"
12036 else
12037 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12038 FCFLAGS="-O2"
12039 else
12040 FCFLAGS=
12044 if test $ac_compiler_gnu = yes; then
12045 GFC=yes
12046 else
12047 GFC=
12049 ac_ext=c
12050 ac_cpp='$CPP $CPPFLAGS'
12051 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12052 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12053 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12055 ac_ext=${ac_fc_srcext-f}
12056 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12057 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12058 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12061 if test -z "$FC" || test "X$FC" = "Xno"; then
12062 _lt_disable_FC=yes
12065 archive_cmds_need_lc_FC=no
12066 allow_undefined_flag_FC=
12067 always_export_symbols_FC=no
12068 archive_expsym_cmds_FC=
12069 export_dynamic_flag_spec_FC=
12070 hardcode_direct_FC=no
12071 hardcode_direct_absolute_FC=no
12072 hardcode_libdir_flag_spec_FC=
12073 hardcode_libdir_flag_spec_ld_FC=
12074 hardcode_libdir_separator_FC=
12075 hardcode_minus_L_FC=no
12076 hardcode_automatic_FC=no
12077 inherit_rpath_FC=no
12078 module_cmds_FC=
12079 module_expsym_cmds_FC=
12080 link_all_deplibs_FC=unknown
12081 old_archive_cmds_FC=$old_archive_cmds
12082 reload_flag_FC=$reload_flag
12083 reload_cmds_FC=$reload_cmds
12084 no_undefined_flag_FC=
12085 whole_archive_flag_spec_FC=
12086 enable_shared_with_static_runtimes_FC=no
12088 # Source file extension for fc test sources.
12089 ac_ext=${ac_fc_srcext-f}
12091 # Object file extension for compiled fc test sources.
12092 objext=o
12093 objext_FC=$objext
12095 # No sense in running all these tests if we already determined that
12096 # the FC compiler isn't working. Some variables (like enable_shared)
12097 # are currently assumed to apply to all compilers on this platform,
12098 # and will be corrupted by setting them based on a non-working compiler.
12099 if test "$_lt_disable_FC" != yes; then
12100 # Code to be used in simple compile tests
12101 lt_simple_compile_test_code="\
12102 subroutine t
12103 return
12107 # Code to be used in simple link tests
12108 lt_simple_link_test_code="\
12109 program t
12113 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12120 # If no C compiler was specified, use CC.
12121 LTCC=${LTCC-"$CC"}
12123 # If no C compiler flags were specified, use CFLAGS.
12124 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12126 # Allow CC to be a program name with arguments.
12127 compiler=$CC
12130 # save warnings/boilerplate of simple test code
12131 ac_outfile=conftest.$ac_objext
12132 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12133 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12134 _lt_compiler_boilerplate=`cat conftest.err`
12135 $RM conftest*
12137 ac_outfile=conftest.$ac_objext
12138 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12139 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12140 _lt_linker_boilerplate=`cat conftest.err`
12141 $RM -r conftest*
12144 # Allow CC to be a program name with arguments.
12145 lt_save_CC="$CC"
12146 lt_save_GCC=$GCC
12147 CC=${FC-"f95"}
12148 compiler=$CC
12149 GCC=$ac_cv_fc_compiler_gnu
12151 compiler_FC=$CC
12152 for cc_temp in $compiler""; do
12153 case $cc_temp in
12154 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12155 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12156 \-*) ;;
12157 *) break;;
12158 esac
12159 done
12160 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12163 if test -n "$compiler"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12165 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12167 $as_echo "$can_build_shared" >&6; }
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12170 $as_echo_n "checking whether to build shared libraries... " >&6; }
12171 test "$can_build_shared" = "no" && enable_shared=no
12173 # On AIX, shared libraries and static libraries use the same namespace, and
12174 # are all built from PIC.
12175 case $host_os in
12176 aix3*)
12177 test "$enable_shared" = yes && enable_static=no
12178 if test -n "$RANLIB"; then
12179 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12180 postinstall_cmds='$RANLIB $lib'
12183 aix[4-9]*)
12184 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12185 test "$enable_shared" = yes && enable_static=no
12188 esac
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12190 $as_echo "$enable_shared" >&6; }
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12193 $as_echo_n "checking whether to build static libraries... " >&6; }
12194 # Make sure either enable_shared or enable_static is yes.
12195 test "$enable_shared" = yes || enable_static=yes
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12197 $as_echo "$enable_static" >&6; }
12199 GCC_FC="$ac_cv_fc_compiler_gnu"
12200 LD_FC="$LD"
12202 ## CAVEAT EMPTOR:
12203 ## There is no encapsulation within the following macros, do not change
12204 ## the running order or otherwise move them around unless you know exactly
12205 ## what you are doing...
12206 # Dependencies to place before and after the object being linked:
12207 predep_objects_FC=
12208 postdep_objects_FC=
12209 predeps_FC=
12210 postdeps_FC=
12211 compiler_lib_search_path_FC=
12213 cat > conftest.$ac_ext <<_LT_EOF
12214 subroutine foo
12215 implicit none
12216 integer a
12218 return
12220 _LT_EOF
12222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12223 (eval $ac_compile) 2>&5
12224 ac_status=$?
12225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12226 test $ac_status = 0; }; then
12227 # Parse the compiler output and extract the necessary
12228 # objects, libraries and library flags.
12230 # Sentinel used to keep track of whether or not we are before
12231 # the conftest object file.
12232 pre_test_object_deps_done=no
12234 for p in `eval "$output_verbose_link_cmd"`; do
12235 case $p in
12237 -L* | -R* | -l*)
12238 # Some compilers place space between "-{L,R}" and the path.
12239 # Remove the space.
12240 if test $p = "-L" ||
12241 test $p = "-R"; then
12242 prev=$p
12243 continue
12244 else
12245 prev=
12248 if test "$pre_test_object_deps_done" = no; then
12249 case $p in
12250 -L* | -R*)
12251 # Internal compiler library paths should come after those
12252 # provided the user. The postdeps already come after the
12253 # user supplied libs so there is no need to process them.
12254 if test -z "$compiler_lib_search_path_FC"; then
12255 compiler_lib_search_path_FC="${prev}${p}"
12256 else
12257 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12260 # The "-l" case would never come before the object being
12261 # linked, so don't bother handling this case.
12262 esac
12263 else
12264 if test -z "$postdeps_FC"; then
12265 postdeps_FC="${prev}${p}"
12266 else
12267 postdeps_FC="${postdeps_FC} ${prev}${p}"
12272 *.$objext)
12273 # This assumes that the test object file only shows up
12274 # once in the compiler output.
12275 if test "$p" = "conftest.$objext"; then
12276 pre_test_object_deps_done=yes
12277 continue
12280 if test "$pre_test_object_deps_done" = no; then
12281 if test -z "$predep_objects_FC"; then
12282 predep_objects_FC="$p"
12283 else
12284 predep_objects_FC="$predep_objects_FC $p"
12286 else
12287 if test -z "$postdep_objects_FC"; then
12288 postdep_objects_FC="$p"
12289 else
12290 postdep_objects_FC="$postdep_objects_FC $p"
12295 *) ;; # Ignore the rest.
12297 esac
12298 done
12300 # Clean up.
12301 rm -f a.out a.exe
12302 else
12303 echo "libtool.m4: error: problem compiling FC test program"
12306 $RM -f confest.$objext
12308 # PORTME: override above test on systems where it is broken
12311 case " $postdeps_FC " in
12312 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12313 esac
12314 compiler_lib_search_dirs_FC=
12315 if test -n "${compiler_lib_search_path_FC}"; then
12316 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12349 lt_prog_compiler_wl_FC=
12350 lt_prog_compiler_pic_FC=
12351 lt_prog_compiler_static_FC=
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12354 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12356 if test "$GCC" = yes; then
12357 lt_prog_compiler_wl_FC='-Wl,'
12358 lt_prog_compiler_static_FC='-static'
12360 case $host_os in
12361 aix*)
12362 # All AIX code is PIC.
12363 if test "$host_cpu" = ia64; then
12364 # AIX 5 now supports IA64 processor
12365 lt_prog_compiler_static_FC='-Bstatic'
12367 lt_prog_compiler_pic_FC='-fPIC'
12370 amigaos*)
12371 case $host_cpu in
12372 powerpc)
12373 # see comment about AmigaOS4 .so support
12374 lt_prog_compiler_pic_FC='-fPIC'
12376 m68k)
12377 # FIXME: we need at least 68020 code to build shared libraries, but
12378 # adding the `-m68020' flag to GCC prevents building anything better,
12379 # like `-m68040'.
12380 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12382 esac
12385 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12386 # PIC is the default for these OSes.
12389 mingw* | cygwin* | pw32* | os2* | cegcc*)
12390 # This hack is so that the source file can tell whether it is being
12391 # built for inclusion in a dll (and should export symbols for example).
12392 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12393 # (--disable-auto-import) libraries
12394 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12397 darwin* | rhapsody*)
12398 # PIC is the default on this platform
12399 # Common symbols not allowed in MH_DYLIB files
12400 lt_prog_compiler_pic_FC='-fno-common'
12403 haiku*)
12404 # PIC is the default for Haiku.
12405 # The "-static" flag exists, but is broken.
12406 lt_prog_compiler_static_FC=
12409 hpux*)
12410 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12411 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12412 # sets the default TLS model and affects inlining.
12413 case $host_cpu in
12414 hppa*64*)
12415 # +Z the default
12418 lt_prog_compiler_pic_FC='-fPIC'
12420 esac
12423 interix[3-9]*)
12424 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12425 # Instead, we relocate shared libraries at runtime.
12428 msdosdjgpp*)
12429 # Just because we use GCC doesn't mean we suddenly get shared libraries
12430 # on systems that don't support them.
12431 lt_prog_compiler_can_build_shared_FC=no
12432 enable_shared=no
12435 *nto* | *qnx*)
12436 # QNX uses GNU C++, but need to define -shared option too, otherwise
12437 # it will coredump.
12438 lt_prog_compiler_pic_FC='-fPIC -shared'
12441 sysv4*MP*)
12442 if test -d /usr/nec; then
12443 lt_prog_compiler_pic_FC=-Kconform_pic
12448 lt_prog_compiler_pic_FC='-fPIC'
12450 esac
12452 case $cc_basename in
12453 nvcc*) # Cuda Compiler Driver 2.2
12454 lt_prog_compiler_wl_FC='-Xlinker '
12455 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12457 esac
12458 else
12459 # PORTME Check for flag to pass linker flags through the system compiler.
12460 case $host_os in
12461 aix*)
12462 lt_prog_compiler_wl_FC='-Wl,'
12463 if test "$host_cpu" = ia64; then
12464 # AIX 5 now supports IA64 processor
12465 lt_prog_compiler_static_FC='-Bstatic'
12466 else
12467 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12471 mingw* | cygwin* | pw32* | os2* | cegcc*)
12472 # This hack is so that the source file can tell whether it is being
12473 # built for inclusion in a dll (and should export symbols for example).
12474 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12477 hpux9* | hpux10* | hpux11*)
12478 lt_prog_compiler_wl_FC='-Wl,'
12479 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12480 # not for PA HP-UX.
12481 case $host_cpu in
12482 hppa*64*|ia64*)
12483 # +Z the default
12486 lt_prog_compiler_pic_FC='+Z'
12488 esac
12489 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12490 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12493 irix5* | irix6* | nonstopux*)
12494 lt_prog_compiler_wl_FC='-Wl,'
12495 # PIC (with -KPIC) is the default.
12496 lt_prog_compiler_static_FC='-non_shared'
12499 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12500 case $cc_basename in
12501 # old Intel for x86_64 which still supported -KPIC.
12502 ecc*)
12503 lt_prog_compiler_wl_FC='-Wl,'
12504 lt_prog_compiler_pic_FC='-KPIC'
12505 lt_prog_compiler_static_FC='-static'
12507 # icc used to be incompatible with GCC.
12508 # ICC 10 doesn't accept -KPIC any more.
12509 icc* | ifort*)
12510 lt_prog_compiler_wl_FC='-Wl,'
12511 lt_prog_compiler_pic_FC='-fPIC'
12512 lt_prog_compiler_static_FC='-static'
12514 # Lahey Fortran 8.1.
12515 lf95*)
12516 lt_prog_compiler_wl_FC='-Wl,'
12517 lt_prog_compiler_pic_FC='--shared'
12518 lt_prog_compiler_static_FC='--static'
12520 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12521 # Portland Group compilers (*not* the Pentium gcc compiler,
12522 # which looks to be a dead project)
12523 lt_prog_compiler_wl_FC='-Wl,'
12524 lt_prog_compiler_pic_FC='-fpic'
12525 lt_prog_compiler_static_FC='-Bstatic'
12527 ccc*)
12528 lt_prog_compiler_wl_FC='-Wl,'
12529 # All Alpha code is PIC.
12530 lt_prog_compiler_static_FC='-non_shared'
12532 xl* | bgxl* | bgf* | mpixl*)
12533 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12534 lt_prog_compiler_wl_FC='-Wl,'
12535 lt_prog_compiler_pic_FC='-qpic'
12536 lt_prog_compiler_static_FC='-qstaticlink'
12539 case `$CC -V 2>&1 | sed 5q` in
12540 *Sun\ F* | *Sun*Fortran*)
12541 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12542 lt_prog_compiler_pic_FC='-KPIC'
12543 lt_prog_compiler_static_FC='-Bstatic'
12544 lt_prog_compiler_wl_FC=''
12546 *Sun\ C*)
12547 # Sun C 5.9
12548 lt_prog_compiler_pic_FC='-KPIC'
12549 lt_prog_compiler_static_FC='-Bstatic'
12550 lt_prog_compiler_wl_FC='-Wl,'
12552 esac
12554 esac
12557 newsos6)
12558 lt_prog_compiler_pic_FC='-KPIC'
12559 lt_prog_compiler_static_FC='-Bstatic'
12562 *nto* | *qnx*)
12563 # QNX uses GNU C++, but need to define -shared option too, otherwise
12564 # it will coredump.
12565 lt_prog_compiler_pic_FC='-fPIC -shared'
12568 osf3* | osf4* | osf5*)
12569 lt_prog_compiler_wl_FC='-Wl,'
12570 # All OSF/1 code is PIC.
12571 lt_prog_compiler_static_FC='-non_shared'
12574 rdos*)
12575 lt_prog_compiler_static_FC='-non_shared'
12578 solaris*)
12579 lt_prog_compiler_pic_FC='-KPIC'
12580 lt_prog_compiler_static_FC='-Bstatic'
12581 case $cc_basename in
12582 f77* | f90* | f95*)
12583 lt_prog_compiler_wl_FC='-Qoption ld ';;
12585 lt_prog_compiler_wl_FC='-Wl,';;
12586 esac
12589 sunos4*)
12590 lt_prog_compiler_wl_FC='-Qoption ld '
12591 lt_prog_compiler_pic_FC='-PIC'
12592 lt_prog_compiler_static_FC='-Bstatic'
12595 sysv4 | sysv4.2uw2* | sysv4.3*)
12596 lt_prog_compiler_wl_FC='-Wl,'
12597 lt_prog_compiler_pic_FC='-KPIC'
12598 lt_prog_compiler_static_FC='-Bstatic'
12601 sysv4*MP*)
12602 if test -d /usr/nec ;then
12603 lt_prog_compiler_pic_FC='-Kconform_pic'
12604 lt_prog_compiler_static_FC='-Bstatic'
12608 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12609 lt_prog_compiler_wl_FC='-Wl,'
12610 lt_prog_compiler_pic_FC='-KPIC'
12611 lt_prog_compiler_static_FC='-Bstatic'
12614 unicos*)
12615 lt_prog_compiler_wl_FC='-Wl,'
12616 lt_prog_compiler_can_build_shared_FC=no
12619 uts4*)
12620 lt_prog_compiler_pic_FC='-pic'
12621 lt_prog_compiler_static_FC='-Bstatic'
12625 lt_prog_compiler_can_build_shared_FC=no
12627 esac
12630 case $host_os in
12631 # For platforms which do not support PIC, -DPIC is meaningless:
12632 *djgpp*)
12633 lt_prog_compiler_pic_FC=
12636 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12638 esac
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12640 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12645 # Check to make sure the PIC flag actually works.
12647 if test -n "$lt_prog_compiler_pic_FC"; then
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12649 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12650 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12651 $as_echo_n "(cached) " >&6
12652 else
12653 lt_cv_prog_compiler_pic_works_FC=no
12654 ac_outfile=conftest.$ac_objext
12655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12656 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12657 # Insert the option either (1) after the last *FLAGS variable, or
12658 # (2) before a word containing "conftest.", or (3) at the end.
12659 # Note that $ac_compile itself does not contain backslashes and begins
12660 # with a dollar sign (not a hyphen), so the echo should work correctly.
12661 # The option is referenced via a variable to avoid confusing sed.
12662 lt_compile=`echo "$ac_compile" | $SED \
12663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12665 -e 's:$: $lt_compiler_flag:'`
12666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12667 (eval "$lt_compile" 2>conftest.err)
12668 ac_status=$?
12669 cat conftest.err >&5
12670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12671 if (exit $ac_status) && test -s "$ac_outfile"; then
12672 # The compiler can only warn and ignore the option if not recognized
12673 # So say no if there are warnings other than the usual output.
12674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12676 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12677 lt_cv_prog_compiler_pic_works_FC=yes
12680 $RM conftest*
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12684 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12686 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12687 case $lt_prog_compiler_pic_FC in
12688 "" | " "*) ;;
12689 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12690 esac
12691 else
12692 lt_prog_compiler_pic_FC=
12693 lt_prog_compiler_can_build_shared_FC=no
12701 # Check to make sure the static flag actually works.
12703 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12705 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12706 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12707 $as_echo_n "(cached) " >&6
12708 else
12709 lt_cv_prog_compiler_static_works_FC=no
12710 save_LDFLAGS="$LDFLAGS"
12711 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12712 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12713 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12714 # The linker can only warn and ignore the option if not recognized
12715 # So say no if there are warnings
12716 if test -s conftest.err; then
12717 # Append any errors to the config.log.
12718 cat conftest.err 1>&5
12719 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12720 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12721 if diff conftest.exp conftest.er2 >/dev/null; then
12722 lt_cv_prog_compiler_static_works_FC=yes
12724 else
12725 lt_cv_prog_compiler_static_works_FC=yes
12728 $RM -r conftest*
12729 LDFLAGS="$save_LDFLAGS"
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12733 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12735 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12737 else
12738 lt_prog_compiler_static_FC=
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12745 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12746 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12747 $as_echo_n "(cached) " >&6
12748 else
12749 lt_cv_prog_compiler_c_o_FC=no
12750 $RM -r conftest 2>/dev/null
12751 mkdir conftest
12752 cd conftest
12753 mkdir out
12754 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12756 lt_compiler_flag="-o out/conftest2.$ac_objext"
12757 # Insert the option either (1) after the last *FLAGS variable, or
12758 # (2) before a word containing "conftest.", or (3) at the end.
12759 # Note that $ac_compile itself does not contain backslashes and begins
12760 # with a dollar sign (not a hyphen), so the echo should work correctly.
12761 lt_compile=`echo "$ac_compile" | $SED \
12762 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12763 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12764 -e 's:$: $lt_compiler_flag:'`
12765 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12766 (eval "$lt_compile" 2>out/conftest.err)
12767 ac_status=$?
12768 cat out/conftest.err >&5
12769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12770 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12771 then
12772 # The compiler can only warn and ignore the option if not recognized
12773 # So say no if there are warnings
12774 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12775 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12776 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12777 lt_cv_prog_compiler_c_o_FC=yes
12780 chmod u+w . 2>&5
12781 $RM conftest*
12782 # SGI C++ compiler will create directory out/ii_files/ for
12783 # template instantiation
12784 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12785 $RM out/* && rmdir out
12786 cd ..
12787 $RM -r conftest
12788 $RM conftest*
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12792 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12797 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12798 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12799 $as_echo_n "(cached) " >&6
12800 else
12801 lt_cv_prog_compiler_c_o_FC=no
12802 $RM -r conftest 2>/dev/null
12803 mkdir conftest
12804 cd conftest
12805 mkdir out
12806 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12808 lt_compiler_flag="-o out/conftest2.$ac_objext"
12809 # Insert the option either (1) after the last *FLAGS variable, or
12810 # (2) before a word containing "conftest.", or (3) at the end.
12811 # Note that $ac_compile itself does not contain backslashes and begins
12812 # with a dollar sign (not a hyphen), so the echo should work correctly.
12813 lt_compile=`echo "$ac_compile" | $SED \
12814 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12815 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12816 -e 's:$: $lt_compiler_flag:'`
12817 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12818 (eval "$lt_compile" 2>out/conftest.err)
12819 ac_status=$?
12820 cat out/conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12823 then
12824 # The compiler can only warn and ignore the option if not recognized
12825 # So say no if there are warnings
12826 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12827 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12828 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12829 lt_cv_prog_compiler_c_o_FC=yes
12832 chmod u+w . 2>&5
12833 $RM conftest*
12834 # SGI C++ compiler will create directory out/ii_files/ for
12835 # template instantiation
12836 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12837 $RM out/* && rmdir out
12838 cd ..
12839 $RM -r conftest
12840 $RM conftest*
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12844 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12849 hard_links="nottested"
12850 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12851 # do not overwrite the value of need_locks provided by the user
12852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12853 $as_echo_n "checking if we can lock with hard links... " >&6; }
12854 hard_links=yes
12855 $RM conftest*
12856 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12857 touch conftest.a
12858 ln conftest.a conftest.b 2>&5 || hard_links=no
12859 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12861 $as_echo "$hard_links" >&6; }
12862 if test "$hard_links" = no; then
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12864 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12865 need_locks=warn
12867 else
12868 need_locks=no
12873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12874 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12876 runpath_var=
12877 allow_undefined_flag_FC=
12878 always_export_symbols_FC=no
12879 archive_cmds_FC=
12880 archive_expsym_cmds_FC=
12881 compiler_needs_object_FC=no
12882 enable_shared_with_static_runtimes_FC=no
12883 export_dynamic_flag_spec_FC=
12884 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12885 hardcode_automatic_FC=no
12886 hardcode_direct_FC=no
12887 hardcode_direct_absolute_FC=no
12888 hardcode_libdir_flag_spec_FC=
12889 hardcode_libdir_flag_spec_ld_FC=
12890 hardcode_libdir_separator_FC=
12891 hardcode_minus_L_FC=no
12892 hardcode_shlibpath_var_FC=unsupported
12893 inherit_rpath_FC=no
12894 link_all_deplibs_FC=unknown
12895 module_cmds_FC=
12896 module_expsym_cmds_FC=
12897 old_archive_from_new_cmds_FC=
12898 old_archive_from_expsyms_cmds_FC=
12899 thread_safe_flag_spec_FC=
12900 whole_archive_flag_spec_FC=
12901 # include_expsyms should be a list of space-separated symbols to be *always*
12902 # included in the symbol list
12903 include_expsyms_FC=
12904 # exclude_expsyms can be an extended regexp of symbols to exclude
12905 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12906 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12907 # as well as any symbol that contains `d'.
12908 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12909 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12910 # platforms (ab)use it in PIC code, but their linkers get confused if
12911 # the symbol is explicitly referenced. Since portable code cannot
12912 # rely on this symbol name, it's probably fine to never include it in
12913 # preloaded symbol tables.
12914 # Exclude shared library initialization/finalization symbols.
12915 extract_expsyms_cmds=
12917 case $host_os in
12918 cygwin* | mingw* | pw32* | cegcc*)
12919 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12920 # When not using gcc, we currently assume that we are using
12921 # Microsoft Visual C++.
12922 if test "$GCC" != yes; then
12923 with_gnu_ld=no
12926 interix*)
12927 # we just hope/assume this is gcc and not c89 (= MSVC++)
12928 with_gnu_ld=yes
12930 openbsd*)
12931 with_gnu_ld=no
12933 esac
12935 ld_shlibs_FC=yes
12937 # On some targets, GNU ld is compatible enough with the native linker
12938 # that we're better off using the native interface for both.
12939 lt_use_gnu_ld_interface=no
12940 if test "$with_gnu_ld" = yes; then
12941 case $host_os in
12942 aix*)
12943 # The AIX port of GNU ld has always aspired to compatibility
12944 # with the native linker. However, as the warning in the GNU ld
12945 # block says, versions before 2.19.5* couldn't really create working
12946 # shared libraries, regardless of the interface used.
12947 case `$LD -v 2>&1` in
12948 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12949 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12950 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12952 lt_use_gnu_ld_interface=yes
12954 esac
12957 lt_use_gnu_ld_interface=yes
12959 esac
12962 if test "$lt_use_gnu_ld_interface" = yes; then
12963 # If archive_cmds runs LD, not CC, wlarc should be empty
12964 wlarc='${wl}'
12966 # Set some defaults for GNU ld with shared library support. These
12967 # are reset later if shared libraries are not supported. Putting them
12968 # here allows them to be overridden if necessary.
12969 runpath_var=LD_RUN_PATH
12970 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12971 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12972 # ancient GNU ld didn't support --whole-archive et. al.
12973 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12974 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12975 else
12976 whole_archive_flag_spec_FC=
12978 supports_anon_versioning=no
12979 case `$LD -v 2>&1` in
12980 *GNU\ gold*) supports_anon_versioning=yes ;;
12981 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12982 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12983 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12984 *\ 2.11.*) ;; # other 2.11 versions
12985 *) supports_anon_versioning=yes ;;
12986 esac
12988 # See if GNU ld supports shared libraries.
12989 case $host_os in
12990 aix[3-9]*)
12991 # On AIX/PPC, the GNU linker is very broken
12992 if test "$host_cpu" != ia64; then
12993 ld_shlibs_FC=no
12994 cat <<_LT_EOF 1>&2
12996 *** Warning: the GNU linker, at least up to release 2.19, is reported
12997 *** to be unable to reliably create shared libraries on AIX.
12998 *** Therefore, libtool is disabling shared libraries support. If you
12999 *** really care for shared libraries, you may want to install binutils
13000 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13001 *** You will then need to restart the configuration process.
13003 _LT_EOF
13007 amigaos*)
13008 case $host_cpu in
13009 powerpc)
13010 # see comment about AmigaOS4 .so support
13011 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13012 archive_expsym_cmds_FC=''
13014 m68k)
13015 archive_cmds_FC='$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)'
13016 hardcode_libdir_flag_spec_FC='-L$libdir'
13017 hardcode_minus_L_FC=yes
13019 esac
13022 beos*)
13023 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13024 allow_undefined_flag_FC=unsupported
13025 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13026 # support --undefined. This deserves some investigation. FIXME
13027 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13028 else
13029 ld_shlibs_FC=no
13033 cygwin* | mingw* | pw32* | cegcc*)
13034 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13035 # as there is no search path for DLLs.
13036 hardcode_libdir_flag_spec_FC='-L$libdir'
13037 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13038 allow_undefined_flag_FC=unsupported
13039 always_export_symbols_FC=no
13040 enable_shared_with_static_runtimes_FC=yes
13041 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13043 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13044 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13045 # If the export-symbols file already is a .def file (1st line
13046 # is EXPORTS), use it as is; otherwise, prepend...
13047 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13048 cp $export_symbols $output_objdir/$soname.def;
13049 else
13050 echo EXPORTS > $output_objdir/$soname.def;
13051 cat $export_symbols >> $output_objdir/$soname.def;
13053 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13054 else
13055 ld_shlibs_FC=no
13059 haiku*)
13060 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13061 link_all_deplibs_FC=yes
13064 interix[3-9]*)
13065 hardcode_direct_FC=no
13066 hardcode_shlibpath_var_FC=no
13067 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13068 export_dynamic_flag_spec_FC='${wl}-E'
13069 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13070 # Instead, shared libraries are loaded at an image base (0x10000000 by
13071 # default) and relocated if they conflict, which is a slow very memory
13072 # consuming and fragmenting process. To avoid this, we pick a random,
13073 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13074 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13075 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13076 archive_expsym_cmds_FC='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'
13079 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13080 tmp_diet=no
13081 if test "$host_os" = linux-dietlibc; then
13082 case $cc_basename in
13083 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13084 esac
13086 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13087 && test "$tmp_diet" = no
13088 then
13089 tmp_addflag=' $pic_flag'
13090 tmp_sharedflag='-shared'
13091 case $cc_basename,$host_cpu in
13092 pgcc*) # Portland Group C compiler
13093 whole_archive_flag_spec_FC='${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'
13094 tmp_addflag=' $pic_flag'
13096 pgf77* | pgf90* | pgf95* | pgfortran*)
13097 # Portland Group f77 and f90 compilers
13098 whole_archive_flag_spec_FC='${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'
13099 tmp_addflag=' $pic_flag -Mnomain' ;;
13100 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13101 tmp_addflag=' -i_dynamic' ;;
13102 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13103 tmp_addflag=' -i_dynamic -nofor_main' ;;
13104 ifc* | ifort*) # Intel Fortran compiler
13105 tmp_addflag=' -nofor_main' ;;
13106 lf95*) # Lahey Fortran 8.1
13107 whole_archive_flag_spec_FC=
13108 tmp_sharedflag='--shared' ;;
13109 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13110 tmp_sharedflag='-qmkshrobj'
13111 tmp_addflag= ;;
13112 nvcc*) # Cuda Compiler Driver 2.2
13113 whole_archive_flag_spec_FC='${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'
13114 compiler_needs_object_FC=yes
13116 esac
13117 case `$CC -V 2>&1 | sed 5q` in
13118 *Sun\ C*) # Sun C 5.9
13119 whole_archive_flag_spec_FC='${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'
13120 compiler_needs_object_FC=yes
13121 tmp_sharedflag='-G' ;;
13122 *Sun\ F*) # Sun Fortran 8.3
13123 tmp_sharedflag='-G' ;;
13124 esac
13125 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13127 if test "x$supports_anon_versioning" = xyes; then
13128 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13129 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13130 echo "local: *; };" >> $output_objdir/$libname.ver~
13131 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13134 case $cc_basename in
13135 xlf* | bgf* | bgxlf* | mpixlf*)
13136 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13137 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13138 hardcode_libdir_flag_spec_FC=
13139 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13140 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13141 if test "x$supports_anon_versioning" = xyes; then
13142 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13143 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13144 echo "local: *; };" >> $output_objdir/$libname.ver~
13145 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13148 esac
13149 else
13150 ld_shlibs_FC=no
13154 netbsd*)
13155 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13156 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13157 wlarc=
13158 else
13159 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13160 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13164 solaris*)
13165 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13166 ld_shlibs_FC=no
13167 cat <<_LT_EOF 1>&2
13169 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13170 *** create shared libraries on Solaris systems. Therefore, libtool
13171 *** is disabling shared libraries support. We urge you to upgrade GNU
13172 *** binutils to release 2.9.1 or newer. Another option is to modify
13173 *** your PATH or compiler configuration so that the native linker is
13174 *** used, and then restart.
13176 _LT_EOF
13177 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13178 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13179 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13180 else
13181 ld_shlibs_FC=no
13185 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13186 case `$LD -v 2>&1` in
13187 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13188 ld_shlibs_FC=no
13189 cat <<_LT_EOF 1>&2
13191 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13192 *** reliably create shared libraries on SCO systems. Therefore, libtool
13193 *** is disabling shared libraries support. We urge you to upgrade GNU
13194 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13195 *** your PATH or compiler configuration so that the native linker is
13196 *** used, and then restart.
13198 _LT_EOF
13201 # For security reasons, it is highly recommended that you always
13202 # use absolute paths for naming shared libraries, and exclude the
13203 # DT_RUNPATH tag from executables and libraries. But doing so
13204 # requires that you compile everything twice, which is a pain.
13205 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13206 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13207 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13208 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13209 else
13210 ld_shlibs_FC=no
13213 esac
13216 sunos4*)
13217 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13218 wlarc=
13219 hardcode_direct_FC=yes
13220 hardcode_shlibpath_var_FC=no
13224 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13225 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13226 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13227 else
13228 ld_shlibs_FC=no
13231 esac
13233 if test "$ld_shlibs_FC" = no; then
13234 runpath_var=
13235 hardcode_libdir_flag_spec_FC=
13236 export_dynamic_flag_spec_FC=
13237 whole_archive_flag_spec_FC=
13239 else
13240 # PORTME fill in a description of your system's linker (not GNU ld)
13241 case $host_os in
13242 aix3*)
13243 allow_undefined_flag_FC=unsupported
13244 always_export_symbols_FC=yes
13245 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13246 # Note: this linker hardcodes the directories in LIBPATH if there
13247 # are no directories specified by -L.
13248 hardcode_minus_L_FC=yes
13249 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13250 # Neither direct hardcoding nor static linking is supported with a
13251 # broken collect2.
13252 hardcode_direct_FC=unsupported
13256 aix[4-9]*)
13257 if test "$host_cpu" = ia64; then
13258 # On IA64, the linker does run time linking by default, so we don't
13259 # have to do anything special.
13260 aix_use_runtimelinking=no
13261 exp_sym_flag='-Bexport'
13262 no_entry_flag=""
13263 else
13264 # If we're using GNU nm, then we don't want the "-C" option.
13265 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13266 # Also, AIX nm treats weak defined symbols like other global
13267 # defined symbols, whereas GNU nm marks them as "W".
13268 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13269 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13270 else
13271 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13273 aix_use_runtimelinking=no
13275 # Test if we are trying to use run time linking or normal
13276 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13277 # need to do runtime linking.
13278 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13279 for ld_flag in $LDFLAGS; do
13280 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13281 aix_use_runtimelinking=yes
13282 break
13284 done
13286 esac
13288 exp_sym_flag='-bexport'
13289 no_entry_flag='-bnoentry'
13292 # When large executables or shared objects are built, AIX ld can
13293 # have problems creating the table of contents. If linking a library
13294 # or program results in "error TOC overflow" add -mminimal-toc to
13295 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13296 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13298 archive_cmds_FC=''
13299 hardcode_direct_FC=yes
13300 hardcode_direct_absolute_FC=yes
13301 hardcode_libdir_separator_FC=':'
13302 link_all_deplibs_FC=yes
13303 file_list_spec_FC='${wl}-f,'
13305 if test "$GCC" = yes; then
13306 case $host_os in aix4.[012]|aix4.[012].*)
13307 # We only want to do this on AIX 4.2 and lower, the check
13308 # below for broken collect2 doesn't work under 4.3+
13309 collect2name=`${CC} -print-prog-name=collect2`
13310 if test -f "$collect2name" &&
13311 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13312 then
13313 # We have reworked collect2
13315 else
13316 # We have old collect2
13317 hardcode_direct_FC=unsupported
13318 # It fails to find uninstalled libraries when the uninstalled
13319 # path is not listed in the libpath. Setting hardcode_minus_L
13320 # to unsupported forces relinking
13321 hardcode_minus_L_FC=yes
13322 hardcode_libdir_flag_spec_FC='-L$libdir'
13323 hardcode_libdir_separator_FC=
13326 esac
13327 shared_flag='-shared'
13328 if test "$aix_use_runtimelinking" = yes; then
13329 shared_flag="$shared_flag "'${wl}-G'
13331 else
13332 # not using gcc
13333 if test "$host_cpu" = ia64; then
13334 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13335 # chokes on -Wl,-G. The following line is correct:
13336 shared_flag='-G'
13337 else
13338 if test "$aix_use_runtimelinking" = yes; then
13339 shared_flag='${wl}-G'
13340 else
13341 shared_flag='${wl}-bM:SRE'
13346 export_dynamic_flag_spec_FC='${wl}-bexpall'
13347 # It seems that -bexpall does not export symbols beginning with
13348 # underscore (_), so it is better to generate a list of symbols to export.
13349 always_export_symbols_FC=yes
13350 if test "$aix_use_runtimelinking" = yes; then
13351 # Warning - without using the other runtime loading flags (-brtl),
13352 # -berok will link without error, but may produce a broken library.
13353 allow_undefined_flag_FC='-berok'
13354 # Determine the default libpath from the value encoded in an
13355 # empty executable.
13356 cat > conftest.$ac_ext <<_ACEOF
13357 program main
13360 _ACEOF
13361 if ac_fn_fc_try_link "$LINENO"; then :
13363 lt_aix_libpath_sed='
13364 /Import File Strings/,/^$/ {
13365 /^0/ {
13366 s/^0 *\(.*\)$/\1/
13370 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13371 # Check for a 64-bit object if we didn't find anything.
13372 if test -z "$aix_libpath"; then
13373 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13376 rm -f core conftest.err conftest.$ac_objext \
13377 conftest$ac_exeext conftest.$ac_ext
13378 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13380 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13381 archive_expsym_cmds_FC='$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"
13382 else
13383 if test "$host_cpu" = ia64; then
13384 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13385 allow_undefined_flag_FC="-z nodefs"
13386 archive_expsym_cmds_FC="\$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"
13387 else
13388 # Determine the default libpath from the value encoded in an
13389 # empty executable.
13390 cat > conftest.$ac_ext <<_ACEOF
13391 program main
13394 _ACEOF
13395 if ac_fn_fc_try_link "$LINENO"; then :
13397 lt_aix_libpath_sed='
13398 /Import File Strings/,/^$/ {
13399 /^0/ {
13400 s/^0 *\(.*\)$/\1/
13404 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13405 # Check for a 64-bit object if we didn't find anything.
13406 if test -z "$aix_libpath"; then
13407 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13410 rm -f core conftest.err conftest.$ac_objext \
13411 conftest$ac_exeext conftest.$ac_ext
13412 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13414 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13415 # Warning - without using the other run time loading flags,
13416 # -berok will link without error, but may produce a broken library.
13417 no_undefined_flag_FC=' ${wl}-bernotok'
13418 allow_undefined_flag_FC=' ${wl}-berok'
13419 if test "$with_gnu_ld" = yes; then
13420 # We only use this code for GNU lds that support --whole-archive.
13421 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13422 else
13423 # Exported symbols can be pulled into shared objects from archives
13424 whole_archive_flag_spec_FC='$convenience'
13426 archive_cmds_need_lc_FC=yes
13427 # This is similar to how AIX traditionally builds its shared libraries.
13428 archive_expsym_cmds_FC="\$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'
13433 amigaos*)
13434 case $host_cpu in
13435 powerpc)
13436 # see comment about AmigaOS4 .so support
13437 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13438 archive_expsym_cmds_FC=''
13440 m68k)
13441 archive_cmds_FC='$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)'
13442 hardcode_libdir_flag_spec_FC='-L$libdir'
13443 hardcode_minus_L_FC=yes
13445 esac
13448 bsdi[45]*)
13449 export_dynamic_flag_spec_FC=-rdynamic
13452 cygwin* | mingw* | pw32* | cegcc*)
13453 # When not using gcc, we currently assume that we are using
13454 # Microsoft Visual C++.
13455 # hardcode_libdir_flag_spec is actually meaningless, as there is
13456 # no search path for DLLs.
13457 hardcode_libdir_flag_spec_FC=' '
13458 allow_undefined_flag_FC=unsupported
13459 # Tell ltmain to make .lib files, not .a files.
13460 libext=lib
13461 # Tell ltmain to make .dll files, not .so files.
13462 shrext_cmds=".dll"
13463 # FIXME: Setting linknames here is a bad hack.
13464 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13465 # The linker will automatically build a .lib file if we build a DLL.
13466 old_archive_from_new_cmds_FC='true'
13467 # FIXME: Should let the user specify the lib program.
13468 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13469 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13470 enable_shared_with_static_runtimes_FC=yes
13473 darwin* | rhapsody*)
13476 archive_cmds_need_lc_FC=no
13477 hardcode_direct_FC=no
13478 hardcode_automatic_FC=yes
13479 hardcode_shlibpath_var_FC=unsupported
13480 if test "$lt_cv_ld_force_load" = "yes"; then
13481 whole_archive_flag_spec_FC='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13482 else
13483 whole_archive_flag_spec_FC=''
13485 link_all_deplibs_FC=yes
13486 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13487 case $cc_basename in
13488 ifort*) _lt_dar_can_shared=yes ;;
13489 *) _lt_dar_can_shared=$GCC ;;
13490 esac
13491 if test "$_lt_dar_can_shared" = "yes"; then
13492 output_verbose_link_cmd=func_echo_all
13493 archive_cmds_FC="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13494 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13495 archive_expsym_cmds_FC="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}"
13496 module_expsym_cmds_FC="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}"
13498 else
13499 ld_shlibs_FC=no
13504 dgux*)
13505 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13506 hardcode_libdir_flag_spec_FC='-L$libdir'
13507 hardcode_shlibpath_var_FC=no
13510 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13511 # support. Future versions do this automatically, but an explicit c++rt0.o
13512 # does not break anything, and helps significantly (at the cost of a little
13513 # extra space).
13514 freebsd2.2*)
13515 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13516 hardcode_libdir_flag_spec_FC='-R$libdir'
13517 hardcode_direct_FC=yes
13518 hardcode_shlibpath_var_FC=no
13521 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13522 freebsd2.*)
13523 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13524 hardcode_direct_FC=yes
13525 hardcode_minus_L_FC=yes
13526 hardcode_shlibpath_var_FC=no
13529 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13530 freebsd* | dragonfly*)
13531 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13532 hardcode_libdir_flag_spec_FC='-R$libdir'
13533 hardcode_direct_FC=yes
13534 hardcode_shlibpath_var_FC=no
13537 hpux9*)
13538 if test "$GCC" = yes; then
13539 archive_cmds_FC='$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'
13540 else
13541 archive_cmds_FC='$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'
13543 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13544 hardcode_libdir_separator_FC=:
13545 hardcode_direct_FC=yes
13547 # hardcode_minus_L: Not really in the search PATH,
13548 # but as the default location of the library.
13549 hardcode_minus_L_FC=yes
13550 export_dynamic_flag_spec_FC='${wl}-E'
13553 hpux10*)
13554 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13555 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13556 else
13557 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13559 if test "$with_gnu_ld" = no; then
13560 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13561 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13562 hardcode_libdir_separator_FC=:
13563 hardcode_direct_FC=yes
13564 hardcode_direct_absolute_FC=yes
13565 export_dynamic_flag_spec_FC='${wl}-E'
13566 # hardcode_minus_L: Not really in the search PATH,
13567 # but as the default location of the library.
13568 hardcode_minus_L_FC=yes
13572 hpux11*)
13573 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13574 case $host_cpu in
13575 hppa*64*)
13576 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13578 ia64*)
13579 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13582 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13584 esac
13585 else
13586 case $host_cpu in
13587 hppa*64*)
13588 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13590 ia64*)
13591 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13594 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13596 esac
13598 if test "$with_gnu_ld" = no; then
13599 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13600 hardcode_libdir_separator_FC=:
13602 case $host_cpu in
13603 hppa*64*|ia64*)
13604 hardcode_direct_FC=no
13605 hardcode_shlibpath_var_FC=no
13608 hardcode_direct_FC=yes
13609 hardcode_direct_absolute_FC=yes
13610 export_dynamic_flag_spec_FC='${wl}-E'
13612 # hardcode_minus_L: Not really in the search PATH,
13613 # but as the default location of the library.
13614 hardcode_minus_L_FC=yes
13616 esac
13620 irix5* | irix6* | nonstopux*)
13621 if test "$GCC" = yes; then
13622 archive_cmds_FC='$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'
13623 # Try to use the -exported_symbol ld option, if it does not
13624 # work, assume that -exports_file does not work either and
13625 # implicitly export all symbols.
13626 save_LDFLAGS="$LDFLAGS"
13627 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13628 cat > conftest.$ac_ext <<_ACEOF
13629 int foo(void) {}
13630 _ACEOF
13631 if ac_fn_fc_try_link "$LINENO"; then :
13632 archive_expsym_cmds_FC='$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'
13635 rm -f core conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
13637 LDFLAGS="$save_LDFLAGS"
13638 else
13639 archive_cmds_FC='$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'
13640 archive_expsym_cmds_FC='$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'
13642 archive_cmds_need_lc_FC='no'
13643 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13644 hardcode_libdir_separator_FC=:
13645 inherit_rpath_FC=yes
13646 link_all_deplibs_FC=yes
13649 netbsd*)
13650 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13651 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13652 else
13653 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13655 hardcode_libdir_flag_spec_FC='-R$libdir'
13656 hardcode_direct_FC=yes
13657 hardcode_shlibpath_var_FC=no
13660 newsos6)
13661 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13662 hardcode_direct_FC=yes
13663 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13664 hardcode_libdir_separator_FC=:
13665 hardcode_shlibpath_var_FC=no
13668 *nto* | *qnx*)
13671 openbsd*)
13672 if test -f /usr/libexec/ld.so; then
13673 hardcode_direct_FC=yes
13674 hardcode_shlibpath_var_FC=no
13675 hardcode_direct_absolute_FC=yes
13676 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13677 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13678 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13679 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13680 export_dynamic_flag_spec_FC='${wl}-E'
13681 else
13682 case $host_os in
13683 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13684 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13685 hardcode_libdir_flag_spec_FC='-R$libdir'
13688 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13689 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13691 esac
13693 else
13694 ld_shlibs_FC=no
13698 os2*)
13699 hardcode_libdir_flag_spec_FC='-L$libdir'
13700 hardcode_minus_L_FC=yes
13701 allow_undefined_flag_FC=unsupported
13702 archive_cmds_FC='$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'
13703 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13706 osf3*)
13707 if test "$GCC" = yes; then
13708 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13709 archive_cmds_FC='$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'
13710 else
13711 allow_undefined_flag_FC=' -expect_unresolved \*'
13712 archive_cmds_FC='$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'
13714 archive_cmds_need_lc_FC='no'
13715 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13716 hardcode_libdir_separator_FC=:
13719 osf4* | osf5*) # as osf3* with the addition of -msym flag
13720 if test "$GCC" = yes; then
13721 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13722 archive_cmds_FC='$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'
13723 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13724 else
13725 allow_undefined_flag_FC=' -expect_unresolved \*'
13726 archive_cmds_FC='$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'
13727 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
13728 $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'
13730 # Both c and cxx compiler support -rpath directly
13731 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13733 archive_cmds_need_lc_FC='no'
13734 hardcode_libdir_separator_FC=:
13737 solaris*)
13738 no_undefined_flag_FC=' -z defs'
13739 if test "$GCC" = yes; then
13740 wlarc='${wl}'
13741 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13742 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13743 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13744 else
13745 case `$CC -V 2>&1` in
13746 *"Compilers 5.0"*)
13747 wlarc=''
13748 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13749 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13750 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13753 wlarc='${wl}'
13754 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13755 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13756 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13758 esac
13760 hardcode_libdir_flag_spec_FC='-R$libdir'
13761 hardcode_shlibpath_var_FC=no
13762 case $host_os in
13763 solaris2.[0-5] | solaris2.[0-5].*) ;;
13765 # The compiler driver will combine and reorder linker options,
13766 # but understands `-z linker_flag'. GCC discards it without `$wl',
13767 # but is careful enough not to reorder.
13768 # Supported since Solaris 2.6 (maybe 2.5.1?)
13769 if test "$GCC" = yes; then
13770 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13771 else
13772 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13775 esac
13776 link_all_deplibs_FC=yes
13779 sunos4*)
13780 if test "x$host_vendor" = xsequent; then
13781 # Use $CC to link under sequent, because it throws in some extra .o
13782 # files that make .init and .fini sections work.
13783 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13784 else
13785 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13787 hardcode_libdir_flag_spec_FC='-L$libdir'
13788 hardcode_direct_FC=yes
13789 hardcode_minus_L_FC=yes
13790 hardcode_shlibpath_var_FC=no
13793 sysv4)
13794 case $host_vendor in
13795 sni)
13796 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13797 hardcode_direct_FC=yes # is this really true???
13799 siemens)
13800 ## LD is ld it makes a PLAMLIB
13801 ## CC just makes a GrossModule.
13802 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13803 reload_cmds_FC='$CC -r -o $output$reload_objs'
13804 hardcode_direct_FC=no
13806 motorola)
13807 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13808 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13810 esac
13811 runpath_var='LD_RUN_PATH'
13812 hardcode_shlibpath_var_FC=no
13815 sysv4.3*)
13816 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13817 hardcode_shlibpath_var_FC=no
13818 export_dynamic_flag_spec_FC='-Bexport'
13821 sysv4*MP*)
13822 if test -d /usr/nec; then
13823 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13824 hardcode_shlibpath_var_FC=no
13825 runpath_var=LD_RUN_PATH
13826 hardcode_runpath_var=yes
13827 ld_shlibs_FC=yes
13831 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13832 no_undefined_flag_FC='${wl}-z,text'
13833 archive_cmds_need_lc_FC=no
13834 hardcode_shlibpath_var_FC=no
13835 runpath_var='LD_RUN_PATH'
13837 if test "$GCC" = yes; then
13838 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13839 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 else
13841 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13842 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13846 sysv5* | sco3.2v5* | sco5v6*)
13847 # Note: We can NOT use -z defs as we might desire, because we do not
13848 # link with -lc, and that would cause any symbols used from libc to
13849 # always be unresolved, which means just about no library would
13850 # ever link correctly. If we're not using GNU ld we use -z text
13851 # though, which does catch some bad symbols but isn't as heavy-handed
13852 # as -z defs.
13853 no_undefined_flag_FC='${wl}-z,text'
13854 allow_undefined_flag_FC='${wl}-z,nodefs'
13855 archive_cmds_need_lc_FC=no
13856 hardcode_shlibpath_var_FC=no
13857 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13858 hardcode_libdir_separator_FC=':'
13859 link_all_deplibs_FC=yes
13860 export_dynamic_flag_spec_FC='${wl}-Bexport'
13861 runpath_var='LD_RUN_PATH'
13863 if test "$GCC" = yes; then
13864 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13865 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13866 else
13867 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13868 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13872 uts4*)
13873 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13874 hardcode_libdir_flag_spec_FC='-L$libdir'
13875 hardcode_shlibpath_var_FC=no
13879 ld_shlibs_FC=no
13881 esac
13883 if test x$host_vendor = xsni; then
13884 case $host in
13885 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13886 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13888 esac
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13893 $as_echo "$ld_shlibs_FC" >&6; }
13894 test "$ld_shlibs_FC" = no && can_build_shared=no
13896 with_gnu_ld_FC=$with_gnu_ld
13904 # Do we need to explicitly link libc?
13906 case "x$archive_cmds_need_lc_FC" in
13907 x|xyes)
13908 # Assume -lc should be added
13909 archive_cmds_need_lc_FC=yes
13911 if test "$enable_shared" = yes && test "$GCC" = yes; then
13912 case $archive_cmds_FC in
13913 *'~'*)
13914 # FIXME: we may have to deal with multi-command sequences.
13916 '$CC '*)
13917 # Test whether the compiler implicitly links with -lc since on some
13918 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13919 # to ld, don't add -lc before -lgcc.
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13921 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13922 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 $RM conftest*
13926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13928 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13929 (eval $ac_compile) 2>&5
13930 ac_status=$?
13931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13932 test $ac_status = 0; } 2>conftest.err; then
13933 soname=conftest
13934 lib=conftest
13935 libobjs=conftest.$ac_objext
13936 deplibs=
13937 wl=$lt_prog_compiler_wl_FC
13938 pic_flag=$lt_prog_compiler_pic_FC
13939 compiler_flags=-v
13940 linker_flags=-v
13941 verstring=
13942 output_objdir=.
13943 libname=conftest
13944 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13945 allow_undefined_flag_FC=
13946 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13947 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13948 ac_status=$?
13949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13950 test $ac_status = 0; }
13951 then
13952 lt_cv_archive_cmds_need_lc_FC=no
13953 else
13954 lt_cv_archive_cmds_need_lc_FC=yes
13956 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13957 else
13958 cat conftest.err 1>&5
13960 $RM conftest*
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13964 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13965 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13967 esac
13970 esac
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14036 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14038 library_names_spec=
14039 libname_spec='lib$name'
14040 soname_spec=
14041 shrext_cmds=".so"
14042 postinstall_cmds=
14043 postuninstall_cmds=
14044 finish_cmds=
14045 finish_eval=
14046 shlibpath_var=
14047 shlibpath_overrides_runpath=unknown
14048 version_type=none
14049 dynamic_linker="$host_os ld.so"
14050 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14051 need_lib_prefix=unknown
14052 hardcode_into_libs=no
14054 # when you set need_version to no, make sure it does not cause -set_version
14055 # flags to be left without arguments
14056 need_version=unknown
14058 case $host_os in
14059 aix3*)
14060 version_type=linux
14061 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14062 shlibpath_var=LIBPATH
14064 # AIX 3 has no versioning support, so we append a major version to the name.
14065 soname_spec='${libname}${release}${shared_ext}$major'
14068 aix[4-9]*)
14069 version_type=linux
14070 need_lib_prefix=no
14071 need_version=no
14072 hardcode_into_libs=yes
14073 if test "$host_cpu" = ia64; then
14074 # AIX 5 supports IA64
14075 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 else
14078 # With GCC up to 2.95.x, collect2 would create an import file
14079 # for dependence libraries. The import file would start with
14080 # the line `#! .'. This would cause the generated library to
14081 # depend on `.', always an invalid library. This was fixed in
14082 # development snapshots of GCC prior to 3.0.
14083 case $host_os in
14084 aix4 | aix4.[01] | aix4.[01].*)
14085 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14086 echo ' yes '
14087 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14089 else
14090 can_build_shared=no
14093 esac
14094 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14095 # soname into executable. Probably we can add versioning support to
14096 # collect2, so additional links can be useful in future.
14097 if test "$aix_use_runtimelinking" = yes; then
14098 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14099 # instead of lib<name>.a to let people know that these are not
14100 # typical AIX shared libraries.
14101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14102 else
14103 # We preserve .a as extension for shared libraries through AIX4.2
14104 # and later when we are not doing run time linking.
14105 library_names_spec='${libname}${release}.a $libname.a'
14106 soname_spec='${libname}${release}${shared_ext}$major'
14108 shlibpath_var=LIBPATH
14112 amigaos*)
14113 case $host_cpu in
14114 powerpc)
14115 # Since July 2007 AmigaOS4 officially supports .so libraries.
14116 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 m68k)
14120 library_names_spec='$libname.ixlibrary $libname.a'
14121 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14122 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'
14124 esac
14127 beos*)
14128 library_names_spec='${libname}${shared_ext}'
14129 dynamic_linker="$host_os ld.so"
14130 shlibpath_var=LIBRARY_PATH
14133 bsdi[45]*)
14134 version_type=linux
14135 need_version=no
14136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14137 soname_spec='${libname}${release}${shared_ext}$major'
14138 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14139 shlibpath_var=LD_LIBRARY_PATH
14140 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14141 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14142 # the default ld.so.conf also contains /usr/contrib/lib and
14143 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14144 # libtool to hard-code these into programs
14147 cygwin* | mingw* | pw32* | cegcc*)
14148 version_type=windows
14149 shrext_cmds=".dll"
14150 need_version=no
14151 need_lib_prefix=no
14153 case $GCC,$host_os in
14154 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14155 library_names_spec='$libname.dll.a'
14156 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14157 postinstall_cmds='base_file=`basename \${file}`~
14158 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14159 dldir=$destdir/`dirname \$dlpath`~
14160 test -d \$dldir || mkdir -p \$dldir~
14161 $install_prog $dir/$dlname \$dldir/$dlname~
14162 chmod a+x \$dldir/$dlname~
14163 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14164 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14166 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14167 dlpath=$dir/\$dldll~
14168 $RM \$dlpath'
14169 shlibpath_overrides_runpath=yes
14171 case $host_os in
14172 cygwin*)
14173 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14174 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14177 mingw* | cegcc*)
14178 # MinGW DLLs use traditional 'lib' prefix
14179 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14181 pw32*)
14182 # pw32 DLLs use 'pw' prefix rather than 'lib'
14183 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14185 esac
14189 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14191 esac
14192 dynamic_linker='Win32 ld.exe'
14193 # FIXME: first we should search . and the directory the executable is in
14194 shlibpath_var=PATH
14197 darwin* | rhapsody*)
14198 dynamic_linker="$host_os dyld"
14199 version_type=darwin
14200 need_lib_prefix=no
14201 need_version=no
14202 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14203 soname_spec='${libname}${release}${major}$shared_ext'
14204 shlibpath_overrides_runpath=yes
14205 shlibpath_var=DYLD_LIBRARY_PATH
14206 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14208 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14211 dgux*)
14212 version_type=linux
14213 need_lib_prefix=no
14214 need_version=no
14215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14216 soname_spec='${libname}${release}${shared_ext}$major'
14217 shlibpath_var=LD_LIBRARY_PATH
14220 freebsd* | dragonfly*)
14221 # DragonFly does not have aout. When/if they implement a new
14222 # versioning mechanism, adjust this.
14223 if test -x /usr/bin/objformat; then
14224 objformat=`/usr/bin/objformat`
14225 else
14226 case $host_os in
14227 freebsd[23].*) objformat=aout ;;
14228 *) objformat=elf ;;
14229 esac
14231 version_type=freebsd-$objformat
14232 case $version_type in
14233 freebsd-elf*)
14234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14235 need_version=no
14236 need_lib_prefix=no
14238 freebsd-*)
14239 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14240 need_version=yes
14242 esac
14243 shlibpath_var=LD_LIBRARY_PATH
14244 case $host_os in
14245 freebsd2.*)
14246 shlibpath_overrides_runpath=yes
14248 freebsd3.[01]* | freebsdelf3.[01]*)
14249 shlibpath_overrides_runpath=yes
14250 hardcode_into_libs=yes
14252 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14253 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14254 shlibpath_overrides_runpath=no
14255 hardcode_into_libs=yes
14257 *) # from 4.6 on, and DragonFly
14258 shlibpath_overrides_runpath=yes
14259 hardcode_into_libs=yes
14261 esac
14264 haiku*)
14265 version_type=linux
14266 need_lib_prefix=no
14267 need_version=no
14268 dynamic_linker="$host_os runtime_loader"
14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14270 soname_spec='${libname}${release}${shared_ext}$major'
14271 shlibpath_var=LIBRARY_PATH
14272 shlibpath_overrides_runpath=yes
14273 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14274 hardcode_into_libs=yes
14277 hpux9* | hpux10* | hpux11*)
14278 # Give a soname corresponding to the major version so that dld.sl refuses to
14279 # link against other versions.
14280 version_type=sunos
14281 need_lib_prefix=no
14282 need_version=no
14283 case $host_cpu in
14284 ia64*)
14285 shrext_cmds='.so'
14286 hardcode_into_libs=yes
14287 dynamic_linker="$host_os dld.so"
14288 shlibpath_var=LD_LIBRARY_PATH
14289 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14291 soname_spec='${libname}${release}${shared_ext}$major'
14292 if test "X$HPUX_IA64_MODE" = X32; then
14293 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14294 else
14295 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14297 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14299 hppa*64*)
14300 shrext_cmds='.sl'
14301 hardcode_into_libs=yes
14302 dynamic_linker="$host_os dld.sl"
14303 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306 soname_spec='${libname}${release}${shared_ext}$major'
14307 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14311 shrext_cmds='.sl'
14312 dynamic_linker="$host_os dld.sl"
14313 shlibpath_var=SHLIB_PATH
14314 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14316 soname_spec='${libname}${release}${shared_ext}$major'
14318 esac
14319 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14320 postinstall_cmds='chmod 555 $lib'
14321 # or fails outright, so override atomically:
14322 install_override_mode=555
14325 interix[3-9]*)
14326 version_type=linux
14327 need_lib_prefix=no
14328 need_version=no
14329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14330 soname_spec='${libname}${release}${shared_ext}$major'
14331 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14332 shlibpath_var=LD_LIBRARY_PATH
14333 shlibpath_overrides_runpath=no
14334 hardcode_into_libs=yes
14337 irix5* | irix6* | nonstopux*)
14338 case $host_os in
14339 nonstopux*) version_type=nonstopux ;;
14341 if test "$lt_cv_prog_gnu_ld" = yes; then
14342 version_type=linux
14343 else
14344 version_type=irix
14345 fi ;;
14346 esac
14347 need_lib_prefix=no
14348 need_version=no
14349 soname_spec='${libname}${release}${shared_ext}$major'
14350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14351 case $host_os in
14352 irix5* | nonstopux*)
14353 libsuff= shlibsuff=
14356 case $LD in # libtool.m4 will add one of these switches to LD
14357 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14358 libsuff= shlibsuff= libmagic=32-bit;;
14359 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14360 libsuff=32 shlibsuff=N32 libmagic=N32;;
14361 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14362 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14363 *) libsuff= shlibsuff= libmagic=never-match;;
14364 esac
14366 esac
14367 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14368 shlibpath_overrides_runpath=no
14369 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14370 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14371 hardcode_into_libs=yes
14374 # No shared lib support for Linux oldld, aout, or coff.
14375 linux*oldld* | linux*aout* | linux*coff*)
14376 dynamic_linker=no
14379 # This must be Linux ELF.
14381 # uclinux* changes (here and below) have been submitted to the libtool
14382 # project, but have not yet been accepted: they are GCC-local changes
14383 # for the time being. (See
14384 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14385 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14386 version_type=linux
14387 need_lib_prefix=no
14388 need_version=no
14389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14390 soname_spec='${libname}${release}${shared_ext}$major'
14391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14392 shlibpath_var=LD_LIBRARY_PATH
14393 shlibpath_overrides_runpath=no
14395 # Some binutils ld are patched to set DT_RUNPATH
14396 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14397 $as_echo_n "(cached) " >&6
14398 else
14399 lt_cv_shlibpath_overrides_runpath=no
14400 save_LDFLAGS=$LDFLAGS
14401 save_libdir=$libdir
14402 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14403 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14404 cat > conftest.$ac_ext <<_ACEOF
14405 program main
14408 _ACEOF
14409 if ac_fn_fc_try_link "$LINENO"; then :
14410 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14411 lt_cv_shlibpath_overrides_runpath=yes
14414 rm -f core conftest.err conftest.$ac_objext \
14415 conftest$ac_exeext conftest.$ac_ext
14416 LDFLAGS=$save_LDFLAGS
14417 libdir=$save_libdir
14421 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14423 # This implies no fast_install, which is unacceptable.
14424 # Some rework will be needed to allow for fast_install
14425 # before this can be enabled.
14426 hardcode_into_libs=yes
14428 # Append ld.so.conf contents to the search path
14429 if test -f /etc/ld.so.conf; then
14430 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' ' '`
14431 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14434 # We used to test for /lib/ld.so.1 and disable shared libraries on
14435 # powerpc, because MkLinux only supported shared libraries with the
14436 # GNU dynamic linker. Since this was broken with cross compilers,
14437 # most powerpc-linux boxes support dynamic linking these days and
14438 # people can always --disable-shared, the test was removed, and we
14439 # assume the GNU/Linux dynamic linker is in use.
14440 dynamic_linker='GNU/Linux ld.so'
14443 netbsd*)
14444 version_type=sunos
14445 need_lib_prefix=no
14446 need_version=no
14447 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14450 dynamic_linker='NetBSD (a.out) ld.so'
14451 else
14452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14453 soname_spec='${libname}${release}${shared_ext}$major'
14454 dynamic_linker='NetBSD ld.elf_so'
14456 shlibpath_var=LD_LIBRARY_PATH
14457 shlibpath_overrides_runpath=yes
14458 hardcode_into_libs=yes
14461 newsos6)
14462 version_type=linux
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14464 shlibpath_var=LD_LIBRARY_PATH
14465 shlibpath_overrides_runpath=yes
14468 *nto* | *qnx*)
14469 version_type=qnx
14470 need_lib_prefix=no
14471 need_version=no
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14474 shlibpath_var=LD_LIBRARY_PATH
14475 shlibpath_overrides_runpath=no
14476 hardcode_into_libs=yes
14477 dynamic_linker='ldqnx.so'
14480 openbsd*)
14481 version_type=sunos
14482 sys_lib_dlsearch_path_spec="/usr/lib"
14483 need_lib_prefix=no
14484 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14485 case $host_os in
14486 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14487 *) need_version=no ;;
14488 esac
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14490 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14491 shlibpath_var=LD_LIBRARY_PATH
14492 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14493 case $host_os in
14494 openbsd2.[89] | openbsd2.[89].*)
14495 shlibpath_overrides_runpath=no
14498 shlibpath_overrides_runpath=yes
14500 esac
14501 else
14502 shlibpath_overrides_runpath=yes
14506 os2*)
14507 libname_spec='$name'
14508 shrext_cmds=".dll"
14509 need_lib_prefix=no
14510 library_names_spec='$libname${shared_ext} $libname.a'
14511 dynamic_linker='OS/2 ld.exe'
14512 shlibpath_var=LIBPATH
14515 osf3* | osf4* | osf5*)
14516 version_type=osf
14517 need_lib_prefix=no
14518 need_version=no
14519 soname_spec='${libname}${release}${shared_ext}$major'
14520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14521 shlibpath_var=LD_LIBRARY_PATH
14522 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14523 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14526 rdos*)
14527 dynamic_linker=no
14530 solaris*)
14531 version_type=linux
14532 need_lib_prefix=no
14533 need_version=no
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535 soname_spec='${libname}${release}${shared_ext}$major'
14536 shlibpath_var=LD_LIBRARY_PATH
14537 shlibpath_overrides_runpath=yes
14538 hardcode_into_libs=yes
14539 # ldd complains unless libraries are executable
14540 postinstall_cmds='chmod +x $lib'
14543 sunos4*)
14544 version_type=sunos
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14546 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=yes
14549 if test "$with_gnu_ld" = yes; then
14550 need_lib_prefix=no
14552 need_version=yes
14555 sysv4 | sysv4.3*)
14556 version_type=linux
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 case $host_vendor in
14561 sni)
14562 shlibpath_overrides_runpath=no
14563 need_lib_prefix=no
14564 runpath_var=LD_RUN_PATH
14566 siemens)
14567 need_lib_prefix=no
14569 motorola)
14570 need_lib_prefix=no
14571 need_version=no
14572 shlibpath_overrides_runpath=no
14573 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14575 esac
14578 sysv4*MP*)
14579 if test -d /usr/nec ;then
14580 version_type=linux
14581 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14582 soname_spec='$libname${shared_ext}.$major'
14583 shlibpath_var=LD_LIBRARY_PATH
14587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14588 version_type=freebsd-elf
14589 need_lib_prefix=no
14590 need_version=no
14591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14592 soname_spec='${libname}${release}${shared_ext}$major'
14593 shlibpath_var=LD_LIBRARY_PATH
14594 shlibpath_overrides_runpath=yes
14595 hardcode_into_libs=yes
14596 if test "$with_gnu_ld" = yes; then
14597 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14598 else
14599 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14600 case $host_os in
14601 sco3.2v5*)
14602 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14604 esac
14606 sys_lib_dlsearch_path_spec='/usr/lib'
14609 tpf*)
14610 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14611 version_type=linux
14612 need_lib_prefix=no
14613 need_version=no
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14615 shlibpath_var=LD_LIBRARY_PATH
14616 shlibpath_overrides_runpath=no
14617 hardcode_into_libs=yes
14620 uts4*)
14621 version_type=linux
14622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14623 soname_spec='${libname}${release}${shared_ext}$major'
14624 shlibpath_var=LD_LIBRARY_PATH
14628 dynamic_linker=no
14630 esac
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14632 $as_echo "$dynamic_linker" >&6; }
14633 test "$dynamic_linker" = no && can_build_shared=no
14635 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14636 if test "$GCC" = yes; then
14637 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14640 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14641 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14643 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14644 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14685 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14686 hardcode_action_FC=
14687 if test -n "$hardcode_libdir_flag_spec_FC" ||
14688 test -n "$runpath_var_FC" ||
14689 test "X$hardcode_automatic_FC" = "Xyes" ; then
14691 # We can hardcode non-existent directories.
14692 if test "$hardcode_direct_FC" != no &&
14693 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14694 # have to relink, otherwise we might link with an installed library
14695 # when we should be linking with a yet-to-be-installed one
14696 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14697 test "$hardcode_minus_L_FC" != no; then
14698 # Linking always hardcodes the temporary library directory.
14699 hardcode_action_FC=relink
14700 else
14701 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14702 hardcode_action_FC=immediate
14704 else
14705 # We cannot hardcode anything, or else we can only hardcode existing
14706 # directories.
14707 hardcode_action_FC=unsupported
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14710 $as_echo "$hardcode_action_FC" >&6; }
14712 if test "$hardcode_action_FC" = relink ||
14713 test "$inherit_rpath_FC" = yes; then
14714 # Fast installation is not supported
14715 enable_fast_install=no
14716 elif test "$shlibpath_overrides_runpath" = yes ||
14717 test "$enable_shared" = no; then
14718 # Fast installation is not necessary
14719 enable_fast_install=needless
14728 fi # test -n "$compiler"
14730 GCC=$lt_save_GCC
14731 CC="$lt_save_CC"
14732 fi # test "$_lt_disable_FC" != yes
14734 ac_ext=c
14735 ac_cpp='$CPP $CPPFLAGS'
14736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14741 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14743 # For libtool versioning info, format is CURRENT:REVISION:AGE
14744 libtool_VERSION=1:0:0
14747 # Check header files.
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14749 $as_echo_n "checking for ANSI C header files... " >&6; }
14750 if ${ac_cv_header_stdc+:} false; then :
14751 $as_echo_n "(cached) " >&6
14752 else
14753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14754 /* end confdefs.h. */
14755 #include <stdlib.h>
14756 #include <stdarg.h>
14757 #include <string.h>
14758 #include <float.h>
14761 main ()
14765 return 0;
14767 _ACEOF
14768 if ac_fn_c_try_compile "$LINENO"; then :
14769 ac_cv_header_stdc=yes
14770 else
14771 ac_cv_header_stdc=no
14773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14775 if test $ac_cv_header_stdc = yes; then
14776 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14779 #include <string.h>
14781 _ACEOF
14782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14783 $EGREP "memchr" >/dev/null 2>&1; then :
14785 else
14786 ac_cv_header_stdc=no
14788 rm -f conftest*
14792 if test $ac_cv_header_stdc = yes; then
14793 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h. */
14796 #include <stdlib.h>
14798 _ACEOF
14799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14800 $EGREP "free" >/dev/null 2>&1; then :
14802 else
14803 ac_cv_header_stdc=no
14805 rm -f conftest*
14809 if test $ac_cv_header_stdc = yes; then
14810 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14811 if test "$cross_compiling" = yes; then :
14813 else
14814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14815 /* end confdefs.h. */
14816 #include <ctype.h>
14817 #include <stdlib.h>
14818 #if ((' ' & 0x0FF) == 0x020)
14819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14821 #else
14822 # define ISLOWER(c) \
14823 (('a' <= (c) && (c) <= 'i') \
14824 || ('j' <= (c) && (c) <= 'r') \
14825 || ('s' <= (c) && (c) <= 'z'))
14826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14827 #endif
14829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14831 main ()
14833 int i;
14834 for (i = 0; i < 256; i++)
14835 if (XOR (islower (i), ISLOWER (i))
14836 || toupper (i) != TOUPPER (i))
14837 return 2;
14838 return 0;
14840 _ACEOF
14841 if ac_fn_c_try_run "$LINENO"; then :
14843 else
14844 ac_cv_header_stdc=no
14846 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14847 conftest.$ac_objext conftest.beam conftest.$ac_ext
14852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14853 $as_echo "$ac_cv_header_stdc" >&6; }
14854 if test $ac_cv_header_stdc = yes; then
14856 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14861 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14862 if ${ac_cv_header_time+:} false; then :
14863 $as_echo_n "(cached) " >&6
14864 else
14865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14866 /* end confdefs.h. */
14867 #include <sys/types.h>
14868 #include <sys/time.h>
14869 #include <time.h>
14872 main ()
14874 if ((struct tm *) 0)
14875 return 0;
14877 return 0;
14879 _ACEOF
14880 if ac_fn_c_try_compile "$LINENO"; then :
14881 ac_cv_header_time=yes
14882 else
14883 ac_cv_header_time=no
14885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14888 $as_echo "$ac_cv_header_time" >&6; }
14889 if test $ac_cv_header_time = yes; then
14891 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14896 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14897 if ${gcc_cv_header_string+:} false; then :
14898 $as_echo_n "(cached) " >&6
14899 else
14900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14901 /* end confdefs.h. */
14902 #include <string.h>
14903 #include <strings.h>
14905 main ()
14909 return 0;
14911 _ACEOF
14912 if ac_fn_c_try_compile "$LINENO"; then :
14913 gcc_cv_header_string=yes
14914 else
14915 gcc_cv_header_string=no
14917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14920 $as_echo "$gcc_cv_header_string" >&6; }
14921 if test $gcc_cv_header_string = yes; then
14923 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14927 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14928 do :
14929 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14930 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14931 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14932 cat >>confdefs.h <<_ACEOF
14933 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14934 _ACEOF
14938 done
14941 XPCFLAGS=""
14942 case "$host" in
14943 *-*-rtems*)
14944 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14946 nvptx*-*-* | amdgcn*-*-*)
14947 # NVPTX does not support Pthreads, has its own code replacement.
14948 libgomp_use_pthreads=no
14949 # NVPTX is an accelerator-only target
14950 libgomp_offloaded_only=yes
14953 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14954 # In case the pthread.h system header is not found, this test will fail.
14955 CFLAGS="$CFLAGS -pthread"
14956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14957 /* end confdefs.h. */
14958 #include <pthread.h>
14959 void *g(void *d) { return NULL; }
14961 main ()
14963 pthread_t t; pthread_create(&t,NULL,g,NULL);
14965 return 0;
14967 _ACEOF
14968 if ac_fn_c_try_link "$LINENO"; then :
14969 XPCFLAGS=" -Wc,-pthread"
14970 else
14971 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14974 #include <pthread.h>
14975 void *g(void *d) { return NULL; }
14977 main ()
14979 pthread_t t; pthread_create(&t,NULL,g,NULL);
14981 return 0;
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14986 else
14987 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14992 rm -f core conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994 esac
14996 if test x$libgomp_use_pthreads != xno; then
14998 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15002 if test x$libgomp_offloaded_only = xyes; then
15004 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15008 if test "x$enable_offload_defaulted" = xyes; then
15010 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
15014 # The cast to long int works around a bug in the HP C Compiler
15015 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15016 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15017 # This bug is HP SR number 8606223364.
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15019 $as_echo_n "checking size of void *... " >&6; }
15020 if ${ac_cv_sizeof_void_p+:} false; then :
15021 $as_echo_n "(cached) " >&6
15022 else
15023 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15025 else
15026 if test "$ac_cv_type_void_p" = yes; then
15027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15029 as_fn_error 77 "cannot compute sizeof (void *)
15030 See \`config.log' for more details" "$LINENO" 5; }
15031 else
15032 ac_cv_sizeof_void_p=0
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15038 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15042 cat >>confdefs.h <<_ACEOF
15043 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15044 _ACEOF
15048 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15050 # Copyright (C) 2014-2022 Free Software Foundation, Inc.
15052 # Contributed by Mentor Embedded.
15054 # This file is part of the GNU Offloading and Multi Processing Library
15055 # (libgomp).
15057 # Libgomp is free software; you can redistribute it and/or modify it
15058 # under the terms of the GNU General Public License as published by
15059 # the Free Software Foundation; either version 3, or (at your option)
15060 # any later version.
15062 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15063 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15064 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15065 # more details.
15067 # Under Section 7 of GPL version 3, you are granted additional
15068 # permissions described in the GCC Runtime Library Exception, version
15069 # 3.1, as published by the Free Software Foundation.
15071 # You should have received a copy of the GNU General Public License and
15072 # a copy of the GCC Runtime Library Exception along with this program;
15073 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15074 # <http://www.gnu.org/licenses/>.
15076 plugin_support=yes
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15078 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15079 if ${ac_cv_lib_dl_dlsym+:} false; then :
15080 $as_echo_n "(cached) " >&6
15081 else
15082 ac_check_lib_save_LIBS=$LIBS
15083 LIBS="-ldl $LIBS"
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15087 /* Override any GCC internal prototype to avoid an error.
15088 Use char because int might match the return type of a GCC
15089 builtin and then its argument prototype would still apply. */
15090 #ifdef __cplusplus
15091 extern "C"
15092 #endif
15093 char dlsym ();
15095 main ()
15097 return dlsym ();
15099 return 0;
15101 _ACEOF
15102 if ac_fn_c_try_link "$LINENO"; then :
15103 ac_cv_lib_dl_dlsym=yes
15104 else
15105 ac_cv_lib_dl_dlsym=no
15107 rm -f core conftest.err conftest.$ac_objext \
15108 conftest$ac_exeext conftest.$ac_ext
15109 LIBS=$ac_check_lib_save_LIBS
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15112 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15113 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15114 cat >>confdefs.h <<_ACEOF
15115 #define HAVE_LIBDL 1
15116 _ACEOF
15118 LIBS="-ldl $LIBS"
15120 else
15121 plugin_support=no
15124 if test x"$plugin_support" = xyes; then
15126 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15128 elif test "x${enable_offload_targets-no}" != xno; then
15129 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15134 for ac_header in $ac_header_list
15135 do :
15136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15140 cat >>confdefs.h <<_ACEOF
15141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15142 _ACEOF
15146 done
15154 for ac_func in $ac_func_list
15155 do :
15156 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15157 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15158 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15159 cat >>confdefs.h <<_ACEOF
15160 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15161 _ACEOF
15164 done
15181 # Look for the CUDA driver package.
15182 CUDA_DRIVER_INCLUDE=
15183 CUDA_DRIVER_LIB=
15186 CUDA_DRIVER_CPPFLAGS=
15187 CUDA_DRIVER_LDFLAGS=
15189 # Check whether --with-cuda-driver was given.
15190 if test "${with_cuda_driver+set}" = set; then :
15191 withval=$with_cuda_driver;
15195 # Check whether --with-cuda-driver-include was given.
15196 if test "${with_cuda_driver_include+set}" = set; then :
15197 withval=$with_cuda_driver_include;
15201 # Check whether --with-cuda-driver-lib was given.
15202 if test "${with_cuda_driver_lib+set}" = set; then :
15203 withval=$with_cuda_driver_lib;
15206 case "x$with_cuda_driver" in
15207 x) ;;
15208 xno)
15209 CUDA_DRIVER_INCLUDE=no
15210 CUDA_DRIVER_LIB=no
15212 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15213 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15215 esac
15216 if test "x$with_cuda_driver_include" != x; then
15217 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15219 if test "x$with_cuda_driver_lib" != x; then
15220 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15222 if test "x$CUDA_DRIVER_INCLUDE" != x \
15223 && test "x$CUDA_DRIVER_INCLUDE" != xno; then
15224 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15226 if test "x$CUDA_DRIVER_LIB" != x \
15227 && test "x$CUDA_DRIVER_LIB" != xno; then
15228 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15231 PLUGIN_NVPTX=0
15232 PLUGIN_NVPTX_CPPFLAGS=
15233 PLUGIN_NVPTX_LDFLAGS=
15234 PLUGIN_NVPTX_LIBS=
15235 PLUGIN_NVPTX_DYNAMIC=0
15241 # Look for HSA run-time, its includes and libraries
15243 HSA_RUNTIME_INCLUDE=
15244 HSA_RUNTIME_LIB=
15247 HSA_RUNTIME_CPPFLAGS=
15248 HSA_RUNTIME_LDFLAGS=
15251 # Check whether --with-hsa-runtime was given.
15252 if test "${with_hsa_runtime+set}" = set; then :
15253 withval=$with_hsa_runtime;
15257 # Check whether --with-hsa-runtime-include was given.
15258 if test "${with_hsa_runtime_include+set}" = set; then :
15259 withval=$with_hsa_runtime_include;
15263 # Check whether --with-hsa-runtime-lib was given.
15264 if test "${with_hsa_runtime_lib+set}" = set; then :
15265 withval=$with_hsa_runtime_lib;
15268 if test "x$with_hsa_runtime" != x; then
15269 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15270 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15272 if test "x$with_hsa_runtime_include" != x; then
15273 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15275 if test "x$with_hsa_runtime_lib" != x; then
15276 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15278 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15279 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15281 if test "x$HSA_RUNTIME_LIB" != x; then
15282 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15285 PLUGIN_GCN=0
15286 PLUGIN_GCN_CPPFLAGS=
15287 PLUGIN_GCN_LDFLAGS=
15288 PLUGIN_GCN_LIBS=
15294 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15295 # plugins, and configure to find the corresponding offload compilers.
15296 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15297 offload_plugins=
15298 offload_targets=
15301 offload_additional_options=
15302 offload_additional_lib_paths=
15305 if test x"$enable_offload_targets" != x; then
15306 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15307 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15308 tgt=`echo $tgt | sed 's/=.*//'`
15309 tgt_plugin=
15310 case $tgt in
15311 *-intelmic-* | *-intelmicemul-*)
15312 tgt_plugin=intelmic
15314 nvptx*)
15315 case "${target}" in
15316 aarch64*-*-* | powerpc64le-*-* | x86_64-*-*)
15317 case "$ac_cv_sizeof_void_p" in
15319 # PR libgomp/65099: Currently, we only support offloading in
15320 # 64-bit configurations.
15321 PLUGIN_NVPTX=0
15324 tgt_plugin=nvptx
15325 PLUGIN_NVPTX=$tgt
15326 if test "x$CUDA_DRIVER_LIB" != xno \
15327 && test "x$CUDA_DRIVER_LIB" != xno; then
15328 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15329 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15330 PLUGIN_NVPTX_LIBS='-lcuda'
15332 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15333 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15334 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15335 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15336 PLUGIN_NVPTX_save_LIBS=$LIBS
15337 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 #include "cuda.h"
15342 main ()
15344 CUresult r = cuCtxPushCurrent (NULL);
15346 return 0;
15348 _ACEOF
15349 if ac_fn_c_try_link "$LINENO"; then :
15350 PLUGIN_NVPTX=1
15352 rm -f core conftest.err conftest.$ac_objext \
15353 conftest$ac_exeext conftest.$ac_ext
15354 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15355 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15356 LIBS=$PLUGIN_NVPTX_save_LIBS
15358 case $PLUGIN_NVPTX in
15359 nvptx*)
15360 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15361 || test "x$CUDA_DRIVER_INCLUDE" = xno) \
15362 && (test "x$CUDA_DRIVER_LIB" = x \
15363 || test "x$CUDA_DRIVER_LIB" = xno); then
15364 PLUGIN_NVPTX=1
15365 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15366 PLUGIN_NVPTX_LIBS='-ldl'
15367 PLUGIN_NVPTX_DYNAMIC=1
15368 else
15369 PLUGIN_NVPTX=0
15370 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
15373 esac
15375 esac
15377 *-*-*)
15378 # Target architecture not supported.
15379 PLUGIN_NVPTX=0
15381 esac
15383 amdgcn*)
15384 case "${target}" in
15385 x86_64-*-*)
15386 case "$ac_cv_sizeof_void_p" in
15388 PLUGIN_GCN=0
15391 tgt_plugin=gcn
15392 PLUGIN_GCN=$tgt
15393 PLUGIN_GCN_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15394 PLUGIN_GCN_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15395 PLUGIN_GCN_LIBS="-ldl"
15396 PLUGIN_GCN=1
15398 esac
15400 *-*-*)
15401 PLUGIN_GCN=0
15403 esac
15406 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15408 esac
15409 if test x"$tgt_plugin" = x; then
15410 # Not configuring libgomp for this offload target if we're not building
15411 # the corresponding offload plugin.
15412 continue
15413 elif test x"$offload_plugins" = x; then
15414 offload_plugins=$tgt_plugin
15415 offload_targets=$tgt
15416 else
15417 offload_plugins=$offload_plugins,$tgt_plugin
15418 offload_targets=$offload_targets,$tgt
15420 # Configure additional search paths.
15421 if test x"$tgt_dir" != x; then
15422 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15423 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15424 else
15425 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15426 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15428 done
15431 cat >>confdefs.h <<_ACEOF
15432 #define OFFLOAD_PLUGINS "$offload_plugins"
15433 _ACEOF
15435 if test $PLUGIN_NVPTX = 1; then
15436 PLUGIN_NVPTX_TRUE=
15437 PLUGIN_NVPTX_FALSE='#'
15438 else
15439 PLUGIN_NVPTX_TRUE='#'
15440 PLUGIN_NVPTX_FALSE=
15444 cat >>confdefs.h <<_ACEOF
15445 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15446 _ACEOF
15449 cat >>confdefs.h <<_ACEOF
15450 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15451 _ACEOF
15453 if test $PLUGIN_GCN = 1; then
15454 PLUGIN_GCN_TRUE=
15455 PLUGIN_GCN_FALSE='#'
15456 else
15457 PLUGIN_GCN_TRUE='#'
15458 PLUGIN_GCN_FALSE=
15462 cat >>confdefs.h <<_ACEOF
15463 #define PLUGIN_GCN $PLUGIN_GCN
15464 _ACEOF
15468 # Check for functions needed.
15469 for ac_func in getloadavg clock_gettime strtoull
15470 do :
15471 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15472 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15473 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15474 cat >>confdefs.h <<_ACEOF
15475 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15476 _ACEOF
15479 done
15481 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15482 do :
15483 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15484 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15485 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15486 cat >>confdefs.h <<_ACEOF
15487 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15488 _ACEOF
15491 done
15494 # Check for broken semaphore implementation on darwin.
15495 # sem_init returns: sem_init error: Function not implemented.
15496 case "$host" in
15497 *-darwin*)
15499 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15502 esac
15504 # RTEMS specific checks
15505 case "$host" in
15506 *-*-rtems*)
15507 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15509 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15511 cat >>confdefs.h <<_ACEOF
15512 #define HAVE_STRUCT__MUTEX_CONTROL 1
15513 _ACEOF
15519 esac
15521 # Check whether --enable-linux-futex was given.
15522 if test "${enable_linux_futex+set}" = set; then :
15523 enableval=$enable_linux_futex;
15524 case "$enableval" in
15525 yes|no|default) ;;
15526 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15527 esac
15529 else
15530 enable_linux_futex=default
15534 case "$target" in
15535 *-linux* | *-uclinux*)
15536 case "$enable_linux_futex" in
15537 default)
15538 # If headers don't have gettid/futex syscalls definition, then
15539 # default to no, otherwise there will be compile time failures.
15540 # Otherwise, default to yes. If we don't detect we are
15541 # compiled/linked against NPTL and not cross-compiling, check
15542 # if programs are run by default against NPTL and if not, issue
15543 # a warning.
15544 enable_linux_futex=no
15545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15546 /* end confdefs.h. */
15547 #include <sys/syscall.h>
15548 #include <unistd.h>
15549 int lk;
15551 main ()
15553 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15555 return 0;
15557 _ACEOF
15558 if ac_fn_c_try_link "$LINENO"; then :
15559 save_LIBS="$LIBS"
15560 LIBS="-lpthread $LIBS"
15561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15562 /* end confdefs.h. */
15563 #ifndef _GNU_SOURCE
15564 #define _GNU_SOURCE 1
15565 #endif
15566 #include <pthread.h>
15567 pthread_t th; void *status;
15569 main ()
15571 pthread_tryjoin_np (th, &status);
15573 return 0;
15575 _ACEOF
15576 if ac_fn_c_try_link "$LINENO"; then :
15577 enable_linux_futex=yes
15578 else
15579 if test x$cross_compiling = xno; then
15580 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15581 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15583 If so, please configure with --disable-linux-futex" >&5
15584 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15585 If so, please configure with --disable-linux-futex" >&2;}
15588 enable_linux_futex=yes
15590 rm -f core conftest.err conftest.$ac_objext \
15591 conftest$ac_exeext conftest.$ac_ext
15592 LIBS="$save_LIBS"
15594 rm -f core conftest.err conftest.$ac_objext \
15595 conftest$ac_exeext conftest.$ac_ext
15597 yes)
15598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15599 /* end confdefs.h. */
15600 #include <sys/syscall.h>
15601 #include <unistd.h>
15602 int lk;
15604 main ()
15606 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15608 return 0;
15610 _ACEOF
15611 if ac_fn_c_try_link "$LINENO"; then :
15613 else
15614 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15616 rm -f core conftest.err conftest.$ac_objext \
15617 conftest$ac_exeext conftest.$ac_ext
15619 esac
15622 enable_linux_futex=no
15624 esac
15625 if test x$enable_linux_futex = xyes; then
15630 # Check for pthread_{,attr_}[sg]etaffinity_np.
15631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15632 /* end confdefs.h. */
15633 #define _GNU_SOURCE
15634 #include <pthread.h>
15636 main ()
15638 cpu_set_t cpuset;
15639 pthread_attr_t attr;
15640 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15641 if (CPU_ISSET (0, &cpuset))
15642 CPU_SET (1, &cpuset);
15643 else
15644 CPU_ZERO (&cpuset);
15645 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15646 pthread_attr_init (&attr);
15647 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15648 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15650 return 0;
15652 _ACEOF
15653 if ac_fn_c_try_link "$LINENO"; then :
15655 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15658 rm -f core conftest.err conftest.$ac_objext \
15659 conftest$ac_exeext conftest.$ac_ext
15661 # At least for glibc, clock_gettime is in librt. But don't pull that
15662 # in if it still doesn't give us the function we want.
15663 if test $ac_cv_func_clock_gettime = no; then
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15665 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15666 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15667 $as_echo_n "(cached) " >&6
15668 else
15669 ac_check_lib_save_LIBS=$LIBS
15670 LIBS="-lrt $LIBS"
15671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15672 /* end confdefs.h. */
15674 /* Override any GCC internal prototype to avoid an error.
15675 Use char because int might match the return type of a GCC
15676 builtin and then its argument prototype would still apply. */
15677 #ifdef __cplusplus
15678 extern "C"
15679 #endif
15680 char clock_gettime ();
15682 main ()
15684 return clock_gettime ();
15686 return 0;
15688 _ACEOF
15689 if ac_fn_c_try_link "$LINENO"; then :
15690 ac_cv_lib_rt_clock_gettime=yes
15691 else
15692 ac_cv_lib_rt_clock_gettime=no
15694 rm -f core conftest.err conftest.$ac_objext \
15695 conftest$ac_exeext conftest.$ac_ext
15696 LIBS=$ac_check_lib_save_LIBS
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15699 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15700 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15701 LIBS="-lrt $LIBS"
15703 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15709 # Check for uname.
15710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15711 /* end confdefs.h. */
15712 #include <string.h>
15713 #include <stdlib.h>
15714 #include <sys/utsname.h>
15716 main ()
15718 struct utsname buf;
15719 volatile size_t len = 0;
15720 if (!uname (buf))
15721 len = strlen (buf.nodename);
15723 return 0;
15725 _ACEOF
15726 if ac_fn_c_try_compile "$LINENO"; then :
15728 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15733 # Check for gethostname.
15734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15735 /* end confdefs.h. */
15736 #include <unistd.h>
15738 main ()
15741 char buf[256];
15742 if (gethostname (buf, sizeof (buf) - 1) == 0)
15743 buf[255] = '\0';
15746 return 0;
15748 _ACEOF
15749 if ac_fn_c_try_compile "$LINENO"; then :
15751 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15756 # Check for getpid.
15757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15758 /* end confdefs.h. */
15759 #include <unistd.h>
15761 main ()
15763 int pid = getpid ();
15765 return 0;
15767 _ACEOF
15768 if ac_fn_c_try_compile "$LINENO"; then :
15770 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15775 # See if we support thread-local storage.
15778 # Check whether --enable-tls was given.
15779 if test "${enable_tls+set}" = set; then :
15780 enableval=$enable_tls;
15781 case "$enableval" in
15782 yes|no) ;;
15783 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15784 esac
15786 else
15787 enable_tls=yes
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15792 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15793 if ${gcc_cv_have_tls+:} false; then :
15794 $as_echo_n "(cached) " >&6
15795 else
15797 if test "$cross_compiling" = yes; then :
15798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15799 /* end confdefs.h. */
15800 __thread int a; int b; int main() { return a = b; }
15801 _ACEOF
15802 if ac_fn_c_try_link "$LINENO"; then :
15803 chktls_save_LDFLAGS="$LDFLAGS"
15804 case $host in
15805 *-*-linux* | -*-uclinuxfdpic*)
15806 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15808 esac
15809 chktls_save_CFLAGS="$CFLAGS"
15810 CFLAGS="-fPIC $CFLAGS"
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813 int f() { return 0; }
15814 _ACEOF
15815 if ac_fn_c_try_link "$LINENO"; then :
15816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h. */
15818 __thread int a; int b; int f() { return a = b; }
15819 _ACEOF
15820 if ac_fn_c_try_link "$LINENO"; then :
15821 gcc_cv_have_tls=yes
15822 else
15823 gcc_cv_have_tls=no
15825 rm -f core conftest.err conftest.$ac_objext \
15826 conftest$ac_exeext conftest.$ac_ext
15827 else
15828 gcc_cv_have_tls=yes
15830 rm -f core conftest.err conftest.$ac_objext \
15831 conftest$ac_exeext conftest.$ac_ext
15832 CFLAGS="$chktls_save_CFLAGS"
15833 LDFLAGS="$chktls_save_LDFLAGS"
15834 else
15835 gcc_cv_have_tls=no
15837 rm -f core conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15841 else
15842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15843 /* end confdefs.h. */
15844 __thread int a; int b; int main() { return a = b; }
15845 _ACEOF
15846 if ac_fn_c_try_run "$LINENO"; then :
15847 chktls_save_LDFLAGS="$LDFLAGS"
15848 LDFLAGS="-static $LDFLAGS"
15849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15850 /* end confdefs.h. */
15851 int main() { return 0; }
15852 _ACEOF
15853 if ac_fn_c_try_link "$LINENO"; then :
15854 if test "$cross_compiling" = yes; then :
15855 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15856 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15857 as_fn_error $? "cannot run test program while cross compiling
15858 See \`config.log' for more details" "$LINENO" 5; }
15859 else
15860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15861 /* end confdefs.h. */
15862 __thread int a; int b; int main() { return a = b; }
15863 _ACEOF
15864 if ac_fn_c_try_run "$LINENO"; then :
15865 gcc_cv_have_tls=yes
15866 else
15867 gcc_cv_have_tls=no
15869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15870 conftest.$ac_objext conftest.beam conftest.$ac_ext
15873 else
15874 gcc_cv_have_tls=yes
15876 rm -f core conftest.err conftest.$ac_objext \
15877 conftest$ac_exeext conftest.$ac_ext
15878 LDFLAGS="$chktls_save_LDFLAGS"
15879 if test $gcc_cv_have_tls = yes; then
15880 chktls_save_CFLAGS="$CFLAGS"
15881 thread_CFLAGS=failed
15882 for flag in '' '-pthread' '-lpthread'; do
15883 CFLAGS="$flag $chktls_save_CFLAGS"
15884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15885 /* end confdefs.h. */
15886 #include <pthread.h>
15887 void *g(void *d) { return NULL; }
15889 main ()
15891 pthread_t t; pthread_create(&t,NULL,g,NULL);
15893 return 0;
15895 _ACEOF
15896 if ac_fn_c_try_link "$LINENO"; then :
15897 thread_CFLAGS="$flag"
15899 rm -f core conftest.err conftest.$ac_objext \
15900 conftest$ac_exeext conftest.$ac_ext
15901 if test "X$thread_CFLAGS" != Xfailed; then
15902 break
15904 done
15905 CFLAGS="$chktls_save_CFLAGS"
15906 if test "X$thread_CFLAGS" != Xfailed; then
15907 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15908 if test "$cross_compiling" = yes; then :
15909 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15910 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15911 as_fn_error $? "cannot run test program while cross compiling
15912 See \`config.log' for more details" "$LINENO" 5; }
15913 else
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916 #include <pthread.h>
15917 __thread int a;
15918 static int *volatile a_in_other_thread;
15919 static void *
15920 thread_func (void *arg)
15922 a_in_other_thread = &a;
15923 return (void *)0;
15926 main ()
15928 pthread_t thread;
15929 void *thread_retval;
15930 int *volatile a_in_main_thread;
15931 a_in_main_thread = &a;
15932 if (pthread_create (&thread, (pthread_attr_t *)0,
15933 thread_func, (void *)0))
15934 return 0;
15935 if (pthread_join (thread, &thread_retval))
15936 return 0;
15937 return (a_in_other_thread == a_in_main_thread);
15939 return 0;
15941 _ACEOF
15942 if ac_fn_c_try_run "$LINENO"; then :
15943 gcc_cv_have_tls=yes
15944 else
15945 gcc_cv_have_tls=no
15947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15948 conftest.$ac_objext conftest.beam conftest.$ac_ext
15951 CFLAGS="$chktls_save_CFLAGS"
15954 else
15955 gcc_cv_have_tls=no
15957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15958 conftest.$ac_objext conftest.beam conftest.$ac_ext
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15963 $as_echo "$gcc_cv_have_tls" >&6; }
15964 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15966 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15970 # See if we have emulated thread-local storage.
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15973 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15974 if ${gcc_cv_use_emutls+:} false; then :
15975 $as_echo_n "(cached) " >&6
15976 else
15978 gcc_cv_use_emutls=no
15979 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15980 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15981 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15982 (eval $ac_try) 2>&5
15983 ac_status=$?
15984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15985 test $ac_status = 0; }; }; then
15986 if grep __emutls_get_address conftest.s > /dev/null; then
15987 gcc_cv_use_emutls=yes
15990 rm -f conftest.*
15993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15994 $as_echo "$gcc_cv_use_emutls" >&6; }
15995 if test "$gcc_cv_use_emutls" = "yes" ; then
15997 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16001 # See what sort of export controls are available.
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16004 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16005 if ${libgomp_cv_have_attribute_visibility+:} false; then :
16006 $as_echo_n "(cached) " >&6
16007 else
16009 save_CFLAGS="$CFLAGS"
16010 CFLAGS="$CFLAGS -Werror"
16011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16012 /* end confdefs.h. */
16013 void __attribute__((visibility("hidden"))) foo(void) { }
16015 main ()
16019 return 0;
16021 _ACEOF
16022 if ac_fn_c_try_compile "$LINENO"; then :
16023 libgomp_cv_have_attribute_visibility=yes
16024 else
16025 libgomp_cv_have_attribute_visibility=no
16027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16028 CFLAGS="$save_CFLAGS"
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16031 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16032 if test $libgomp_cv_have_attribute_visibility = yes; then
16034 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16039 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16040 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
16041 $as_echo_n "(cached) " >&6
16042 else
16044 save_CFLAGS="$CFLAGS"
16045 CFLAGS="$CFLAGS -Werror"
16046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16047 /* end confdefs.h. */
16048 void __attribute__((dllexport)) foo(void) { }
16050 main ()
16054 return 0;
16056 _ACEOF
16057 if ac_fn_c_try_compile "$LINENO"; then :
16058 libgomp_cv_have_attribute_dllexport=yes
16059 else
16060 libgomp_cv_have_attribute_dllexport=no
16062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16063 CFLAGS="$save_CFLAGS"
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16066 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16067 if test $libgomp_cv_have_attribute_dllexport = yes; then
16069 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16074 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16075 if ${libgomp_cv_have_attribute_alias+:} false; then :
16076 $as_echo_n "(cached) " >&6
16077 else
16079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16080 /* end confdefs.h. */
16082 void foo(void) { }
16083 extern void bar(void) __attribute__((alias("foo")));
16085 main ()
16087 bar();
16089 return 0;
16091 _ACEOF
16092 if ac_fn_c_try_link "$LINENO"; then :
16093 libgomp_cv_have_attribute_alias=yes
16094 else
16095 libgomp_cv_have_attribute_alias=no
16097 rm -f core conftest.err conftest.$ac_objext \
16098 conftest$ac_exeext conftest.$ac_ext
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16101 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16102 if test $libgomp_cv_have_attribute_alias = yes; then
16104 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16109 # Check whether --with-gnu-ld was given.
16110 if test "${with_gnu_ld+set}" = set; then :
16111 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16112 else
16113 with_gnu_ld=no
16116 ac_prog=ld
16117 if test "$GCC" = yes; then
16118 # Check if gcc -print-prog-name=ld gives a path.
16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16120 $as_echo_n "checking for ld used by $CC... " >&6; }
16121 case $host in
16122 *-*-mingw*)
16123 # gcc leaves a trailing carriage return which upsets mingw
16124 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16126 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16127 esac
16128 case $ac_prog in
16129 # Accept absolute paths.
16130 [\\/]* | ?:[\\/]*)
16131 re_direlt='/[^/][^/]*/\.\./'
16132 # Canonicalize the pathname of ld
16133 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16134 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16135 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16136 done
16137 test -z "$LD" && LD="$ac_prog"
16140 # If it fails, then pretend we aren't using GCC.
16141 ac_prog=ld
16144 # If it is relative, then search for the first ld in PATH.
16145 with_gnu_ld=unknown
16147 esac
16148 elif test "$with_gnu_ld" = yes; then
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16150 $as_echo_n "checking for GNU ld... " >&6; }
16151 else
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16153 $as_echo_n "checking for non-GNU ld... " >&6; }
16155 if ${lt_cv_path_LD+:} false; then :
16156 $as_echo_n "(cached) " >&6
16157 else
16158 if test -z "$LD"; then
16159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16160 for ac_dir in $PATH; do
16161 IFS="$lt_save_ifs"
16162 test -z "$ac_dir" && ac_dir=.
16163 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16164 lt_cv_path_LD="$ac_dir/$ac_prog"
16165 # Check to see if the program is GNU ld. I'd rather use --version,
16166 # but apparently some variants of GNU ld only accept -v.
16167 # Break only if it was the GNU/non-GNU ld that we prefer.
16168 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16169 *GNU* | *'with BFD'*)
16170 test "$with_gnu_ld" != no && break
16173 test "$with_gnu_ld" != yes && break
16175 esac
16177 done
16178 IFS="$lt_save_ifs"
16179 else
16180 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16184 LD="$lt_cv_path_LD"
16185 if test -n "$LD"; then
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16187 $as_echo "$LD" >&6; }
16188 else
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16190 $as_echo "no" >&6; }
16192 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16194 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16195 if ${lt_cv_prog_gnu_ld+:} false; then :
16196 $as_echo_n "(cached) " >&6
16197 else
16198 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16199 case `$LD -v 2>&1 </dev/null` in
16200 *GNU* | *'with BFD'*)
16201 lt_cv_prog_gnu_ld=yes
16204 lt_cv_prog_gnu_ld=no
16206 esac
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16209 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16210 with_gnu_ld=$lt_cv_prog_gnu_ld
16218 # If we're not using GNU ld, then there's no point in even trying these
16219 # tests. Check for that first. We should have already tested for gld
16220 # by now (in libtool), but require it now just to be safe...
16221 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16222 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16226 # The name set by libtool depends on the version of libtool. Shame on us
16227 # for depending on an impl detail, but c'est la vie. Older versions used
16228 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16229 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16230 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16231 # set (hence we're using an older libtool), then set it.
16232 if test x${with_gnu_ld+set} != xset; then
16233 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16234 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16235 with_gnu_ld=no
16236 else
16237 with_gnu_ld=$ac_cv_prog_gnu_ld
16241 # Start by getting the version number. I think the libtool test already
16242 # does some of this, but throws away the result.
16243 libgomp_ld_is_gold=no
16244 libgomp_ld_is_mold=no
16245 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16246 libgomp_ld_is_gold=yes
16247 elif $LD --version 2>/dev/null | grep 'mold'> /dev/null 2>&1; then
16248 libat_ld_is_mold=yes
16251 ldver=`$LD --version 2>/dev/null |
16252 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16254 libgomp_gnu_ld_version=`echo $ldver | \
16255 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16257 # Set --gc-sections.
16258 if test "$with_gnu_ld" = "notbroken"; then
16259 # GNU ld it is! Joy and bunny rabbits!
16261 # All these tests are for C++; save the language and the compiler flags.
16262 # Need to do this so that g++ won't try to link in libstdc++
16263 ac_test_CFLAGS="${CFLAGS+set}"
16264 ac_save_CFLAGS="$CFLAGS"
16265 CFLAGS='-x c++ -Wl,--gc-sections'
16267 # Check for -Wl,--gc-sections
16268 # XXX This test is broken at the moment, as symbols required for linking
16269 # are now in libsupc++ (not built yet). In addition, this test has
16270 # cored on solaris in the past. In addition, --gc-sections doesn't
16271 # really work at the moment (keeps on discarding used sections, first
16272 # .eh_frame and now some of the glibc sections for iconv).
16273 # Bzzzzt. Thanks for playing, maybe next time.
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16275 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16276 if test "$cross_compiling" = yes; then :
16277 ac_sectionLDflags=yes
16278 else
16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16282 int main(void)
16284 try { throw 1; }
16285 catch (...) { };
16286 return 0;
16289 _ACEOF
16290 if ac_fn_c_try_run "$LINENO"; then :
16291 ac_sectionLDflags=yes
16292 else
16293 ac_sectionLDflags=no
16295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16296 conftest.$ac_objext conftest.beam conftest.$ac_ext
16299 if test "$ac_test_CFLAGS" = set; then
16300 CFLAGS="$ac_save_CFLAGS"
16301 else
16302 # this is the suspicious part
16303 CFLAGS=''
16305 if test "$ac_sectionLDflags" = "yes"; then
16306 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16309 $as_echo "$ac_sectionLDflags" >&6; }
16312 # Set linker optimization flags.
16313 if test x"$with_gnu_ld" = x"yes"; then
16314 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16322 # Check whether --enable-symvers was given.
16323 if test "${enable_symvers+set}" = set; then :
16324 enableval=$enable_symvers;
16325 case "$enableval" in
16326 yes|no|gnu*|sun) ;;
16327 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16328 esac
16330 else
16331 enable_symvers=yes
16336 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16337 # don't know enough about $LD to do tricks...
16340 # Turn a 'yes' into a suitable default.
16341 if test x$enable_symvers = xyes ; then
16342 # FIXME The following test is too strict, in theory.
16343 if test $enable_shared = no || test "x$LD" = x; then
16344 enable_symvers=no
16345 else
16346 if test $with_gnu_ld = yes ; then
16347 enable_symvers=gnu
16348 else
16349 case ${target_os} in
16350 # Sun symbol versioning exists since Solaris 2.5.
16351 solaris2.[5-9]* | solaris2.1[0-9]*)
16352 enable_symvers=sun ;;
16354 enable_symvers=no ;;
16355 esac
16360 # Check if 'sun' was requested on non-Solaris 2 platforms.
16361 if test x$enable_symvers = xsun ; then
16362 case ${target_os} in
16363 solaris2*)
16364 # All fine.
16367 # Unlikely to work.
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16369 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16371 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16373 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16374 enable_symvers=no
16376 esac
16379 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16380 if test $enable_symvers != no; then
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16382 $as_echo_n "checking for shared libgcc... " >&6; }
16383 ac_save_CFLAGS="$CFLAGS"
16384 CFLAGS=' -lgcc_s'
16385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16386 /* end confdefs.h. */
16389 main ()
16391 return 0;
16393 return 0;
16395 _ACEOF
16396 if ac_fn_c_try_link "$LINENO"; then :
16397 libgomp_shared_libgcc=yes
16398 else
16399 libgomp_shared_libgcc=no
16401 rm -f core conftest.err conftest.$ac_objext \
16402 conftest$ac_exeext conftest.$ac_ext
16403 CFLAGS="$ac_save_CFLAGS"
16404 if test $libgomp_shared_libgcc = no; then
16405 cat > conftest.c <<EOF
16406 int main (void) { return 0; }
16408 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16409 -shared -shared-libgcc -o conftest.so \
16410 conftest.c -v 2>&1 >/dev/null \
16411 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16412 rm -f conftest.c conftest.so
16413 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16414 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16416 /* end confdefs.h. */
16419 main ()
16421 return 0;
16423 return 0;
16425 _ACEOF
16426 if ac_fn_c_try_link "$LINENO"; then :
16427 libgomp_shared_libgcc=yes
16429 rm -f core conftest.err conftest.$ac_objext \
16430 conftest$ac_exeext conftest.$ac_ext
16431 CFLAGS="$ac_save_CFLAGS"
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16435 $as_echo "$libgomp_shared_libgcc" >&6; }
16438 # For GNU ld, we need at least this version. The format is described in
16439 # LIBGOMP_CHECK_LINKER_FEATURES above.
16440 libgomp_min_gnu_ld_version=21400
16441 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16443 # Check to see if unspecified "yes" value can win, given results above.
16444 # Change "yes" into either "no" or a style name.
16445 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16446 if test $with_gnu_ld = yes; then
16447 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16448 enable_symvers=gnu
16449 elif test $libgomp_ld_is_gold = yes ; then
16450 enable_symvers=gnu
16451 elif test $libgomp_ld_is_mold = yes ; then
16452 enable_symvers=gnu
16453 else
16454 # The right tools, the right setup, but too old. Fallbacks?
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16456 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16458 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16460 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16462 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16463 if test $libgomp_gnu_ld_version -ge 21200 ; then
16464 # Globbing fix is present, proper block support is not.
16465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16466 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16467 enable_symvers=no
16468 else
16469 # 2.11 or older.
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16471 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16472 enable_symvers=no
16475 elif test $enable_symvers = sun; then
16476 : All interesting versions of Sun ld support sun style symbol versioning.
16477 else
16478 # just fail for now
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16480 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16482 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16484 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16486 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16487 enable_symvers=no
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16492 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16493 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16494 $as_echo_n "(cached) " >&6
16495 else
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16499 void foo (void); __asm (".symver foo, bar@SYMVER");
16501 main ()
16505 return 0;
16507 _ACEOF
16508 if ac_fn_c_try_compile "$LINENO"; then :
16509 libgomp_cv_have_as_symver_directive=yes
16510 else
16511 libgomp_cv_have_as_symver_directive=no
16513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16516 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16517 if test $libgomp_cv_have_as_symver_directive = yes; then
16519 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16523 if test $enable_symvers != no; then
16524 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16525 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16526 else
16527 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16528 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16531 if test $enable_symvers = gnu; then
16532 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16533 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16534 else
16535 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16536 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16539 if test $enable_symvers = sun; then
16540 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16541 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16542 else
16543 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16544 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16547 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16548 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16550 if test $enable_symvers != no ; then
16551 case ${target_os} in
16552 # The Solaris 2 runtime linker doesn't support the GNU extension of
16553 # binding the same symbol to different versions
16554 solaris2*)
16556 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16559 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16562 esac
16566 if test $enable_symvers = gnu; then
16568 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16572 # Determine cpu count to limit testsuite parallelism.
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16574 $as_echo_n "checking the number of available CPUs... " >&6; }
16575 CPU_COUNT="0"
16577 # Try generic methods
16579 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16580 # 'NPROCESSORS_ONLN' are platform-specific
16581 command -v getconf >/dev/null 2>&1 && \
16582 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
16583 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
16584 : # empty
16585 else
16586 # 'nproc' is part of GNU Coreutils and is widely available
16587 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
16590 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16591 : # empty
16592 else
16593 # Try platform-specific preferred methods
16594 case $host_os in #(
16595 *linux*) :
16596 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
16597 *darwin*) :
16598 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
16599 freebsd*) :
16600 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
16601 netbsd*) :
16602 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
16603 solaris*) :
16604 command -v psrinfo >/dev/null 2>&1 && CPU_COUNT=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT="0" ;; #(
16605 mingw*) :
16606 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16607 msys*) :
16608 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16609 cygwin*) :
16610 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16611 *) :
16613 esac
16615 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
16616 : # empty
16617 else
16618 # Try less preferred generic method
16619 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16620 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
16623 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16624 : # empty
16625 else
16626 # Try platform-specific fallback methods
16627 # They can be less accurate and slower then preferred methods
16628 case $host_os in #(
16629 *linux*) :
16630 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
16631 *darwin*) :
16632 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
16633 freebsd*) :
16634 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16635 netbsd*) :
16636 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16637 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16638 solaris*) :
16639 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16640 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
16641 mingw*) :
16642 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16643 : # empty
16644 else
16645 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
16646 fi ;; #(
16647 msys*) :
16648 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16649 cygwin*) :
16650 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16651 *) :
16653 esac
16655 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16657 $as_echo "$CPU_COUNT" >&6; }
16659 else
16660 CPU_COUNT="1"
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16662 $as_echo "unable to detect (assuming 1)" >&6; }
16667 # Get target configury.
16668 . ${srcdir}/configure.tgt
16669 CFLAGS="$save_CFLAGS $XCFLAGS"
16671 # Check for __sync_val_compare_and_swap, but only after the target has
16672 # had a chance to set XCFLAGS.
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16675 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16676 if ${libgomp_cv_have_sync_builtins+:} false; then :
16677 $as_echo_n "(cached) " >&6
16678 else
16680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16681 /* end confdefs.h. */
16684 main ()
16686 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16688 return 0;
16690 _ACEOF
16691 if ac_fn_c_try_link "$LINENO"; then :
16692 libgomp_cv_have_sync_builtins=yes
16693 else
16694 libgomp_cv_have_sync_builtins=no
16696 rm -f core conftest.err conftest.$ac_objext \
16697 conftest$ac_exeext conftest.$ac_ext
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16700 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16701 if test $libgomp_cv_have_sync_builtins = yes; then
16703 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16707 XCFLAGS="$XCFLAGS$XPCFLAGS"
16709 # Add CET specific flags if CET is enabled
16710 # Check whether --enable-cet was given.
16711 if test "${enable_cet+set}" = set; then :
16712 enableval=$enable_cet;
16713 case "$enableval" in
16714 yes|no|auto) ;;
16715 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16716 esac
16718 else
16719 enable_cet=auto
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16724 $as_echo_n "checking for CET support... " >&6; }
16726 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16727 case "$host" in
16728 i[34567]86-*-linux* | x86_64-*-linux*)
16729 case "$enable_cet" in
16730 auto)
16731 # Check if target supports multi-byte NOPs
16732 # and if compiler and assembler support CET insn.
16733 cet_save_CFLAGS="$CFLAGS"
16734 CFLAGS="$CFLAGS -fcf-protection"
16735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16736 /* end confdefs.h. */
16739 main ()
16742 #if !defined(__SSE2__)
16743 #error target does not support multi-byte NOPs
16744 #else
16745 asm ("setssbsy");
16746 #endif
16749 return 0;
16751 _ACEOF
16752 if ac_fn_c_try_compile "$LINENO"; then :
16753 enable_cet=yes
16754 else
16755 enable_cet=no
16757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16758 CFLAGS="$cet_save_CFLAGS"
16760 yes)
16761 # Check if assembler supports CET.
16762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16763 /* end confdefs.h. */
16766 main ()
16768 asm ("setssbsy");
16770 return 0;
16772 _ACEOF
16773 if ac_fn_c_try_compile "$LINENO"; then :
16775 else
16776 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16780 esac
16783 enable_cet=no
16785 esac
16786 if test x$enable_cet = xyes; then
16787 CET_FLAGS="-fcf-protection -mshstk"
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16789 $as_echo "yes" >&6; }
16790 else
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16792 $as_echo "no" >&6; }
16795 XCFLAGS="$XCFLAGS $CET_FLAGS"
16796 FCFLAGS="$FCFLAGS $CET_FLAGS"
16802 # Conditionalize the makefile for this target machine.
16803 tmake_file_=
16804 for f in ${tmake_file}
16806 if test -f ${srcdir}/config/$f
16807 then
16808 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
16810 done
16811 tmake_file="${tmake_file_}"
16814 # Cleanup and exit.
16815 CFLAGS="$save_CFLAGS"
16816 cat >confcache <<\_ACEOF
16817 # This file is a shell script that caches the results of configure
16818 # tests run on this system so they can be shared between configure
16819 # scripts and configure runs, see configure's option --config-cache.
16820 # It is not useful on other systems. If it contains results you don't
16821 # want to keep, you may remove or edit it.
16823 # config.status only pays attention to the cache file if you give it
16824 # the --recheck option to rerun configure.
16826 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16827 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16828 # following values.
16830 _ACEOF
16832 # The following way of writing the cache mishandles newlines in values,
16833 # but we know of no workaround that is simple, portable, and efficient.
16834 # So, we kill variables containing newlines.
16835 # Ultrix sh set writes to stderr and can't be redirected directly,
16836 # and sets the high bit in the cache file unless we assign to the vars.
16838 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16839 eval ac_val=\$$ac_var
16840 case $ac_val in #(
16841 *${as_nl}*)
16842 case $ac_var in #(
16843 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16844 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16845 esac
16846 case $ac_var in #(
16847 _ | IFS | as_nl) ;; #(
16848 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16849 *) { eval $ac_var=; unset $ac_var;} ;;
16850 esac ;;
16851 esac
16852 done
16854 (set) 2>&1 |
16855 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16856 *${as_nl}ac_space=\ *)
16857 # `set' does not quote correctly, so add quotes: double-quote
16858 # substitution turns \\\\ into \\, and sed turns \\ into \.
16859 sed -n \
16860 "s/'/'\\\\''/g;
16861 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16862 ;; #(
16864 # `set' quotes correctly as required by POSIX, so do not add quotes.
16865 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16867 esac |
16868 sort
16870 sed '
16871 /^ac_cv_env_/b end
16872 t clear
16873 :clear
16874 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16875 t end
16876 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16877 :end' >>confcache
16878 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16879 if test -w "$cache_file"; then
16880 if test "x$cache_file" != "x/dev/null"; then
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16882 $as_echo "$as_me: updating cache $cache_file" >&6;}
16883 if test ! -f "$cache_file" || test -h "$cache_file"; then
16884 cat confcache >"$cache_file"
16885 else
16886 case $cache_file in #(
16887 */* | ?:*)
16888 mv -f confcache "$cache_file"$$ &&
16889 mv -f "$cache_file"$$ "$cache_file" ;; #(
16891 mv -f confcache "$cache_file" ;;
16892 esac
16895 else
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16897 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16900 rm -f confcache
16902 if test ${multilib} = yes; then
16903 multilib_arg="--enable-multilib"
16904 else
16905 multilib_arg=
16908 # Set up the set of libraries that we need to link against for libgomp.
16909 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16910 # which will force linkage against -lpthread (or equivalent for the system).
16911 # That's not 100% ideal, but about the best we can do easily.
16912 if test $enable_shared = yes; then
16913 link_gomp="-lgomp %{static: $LIBS}"
16914 else
16915 link_gomp="-lgomp $LIBS"
16919 if test "$ac_cv_fc_compiler_gnu" = yes; then
16920 USE_FORTRAN_TRUE=
16921 USE_FORTRAN_FALSE='#'
16922 else
16923 USE_FORTRAN_TRUE='#'
16924 USE_FORTRAN_FALSE=
16928 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16929 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16930 # the underscore here and update the PREREQ. If it doesn't, then we'll
16931 # need to copy this macro to our acinclude.m4.
16932 save_CFLAGS="$CFLAGS"
16933 for i in $config_path; do
16934 if test -f $srcdir/config/$i/omp-lock.h; then
16935 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16936 break
16938 done
16940 if ac_fn_c_compute_int "$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16945 if ac_fn_c_compute_int "$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16947 else
16948 OMP_INT128_SIZE=0
16952 if ac_fn_c_compute_int "$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16954 else
16955 OMP_DEPEND_KIND=0
16959 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16961 else
16962 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16966 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16971 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16976 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16981 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16983 else
16984 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16988 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16993 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16998 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
17004 # If the lock fits in an integer, then arrange for Fortran to use that
17005 # integer. If it doesn't, then arrange for Fortran to use a pointer.
17006 # Except that we don't have a way at present to multi-lib the installed
17007 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
17008 # actual target.
17009 OMP_LOCK_KIND=$OMP_LOCK_SIZE
17010 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
17011 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17012 OMP_LOCK_KIND=8
17014 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17015 OMP_NEST_LOCK_KIND=8
17017 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
17018 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
17019 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17020 OMP_LOCK_25_KIND=8
17022 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17023 OMP_NEST_LOCK_25_KIND=8
17025 if test "$ac_cv_fc_compiler_gnu" = yes; then
17026 if test $OMP_DEPEND_KIND -eq 16; then
17027 if test $OMP_INT128_SIZE -ne 16; then
17028 as_fn_error $? "unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
17030 else
17031 if test $OMP_DEPEND_KIND -ne 8; then
17032 as_fn_error $? "unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
17051 CFLAGS="$save_CFLAGS"
17053 # Determine what GCC version number to use in filesystem paths.
17055 get_gcc_base_ver="cat"
17057 # Check whether --with-gcc-major-version-only was given.
17058 if test "${with_gcc_major_version_only+set}" = set; then :
17059 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17060 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17068 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17070 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17072 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17074 ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp"
17076 cat >confcache <<\_ACEOF
17077 # This file is a shell script that caches the results of configure
17078 # tests run on this system so they can be shared between configure
17079 # scripts and configure runs, see configure's option --config-cache.
17080 # It is not useful on other systems. If it contains results you don't
17081 # want to keep, you may remove or edit it.
17083 # config.status only pays attention to the cache file if you give it
17084 # the --recheck option to rerun configure.
17086 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17087 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17088 # following values.
17090 _ACEOF
17092 # The following way of writing the cache mishandles newlines in values,
17093 # but we know of no workaround that is simple, portable, and efficient.
17094 # So, we kill variables containing newlines.
17095 # Ultrix sh set writes to stderr and can't be redirected directly,
17096 # and sets the high bit in the cache file unless we assign to the vars.
17098 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17099 eval ac_val=\$$ac_var
17100 case $ac_val in #(
17101 *${as_nl}*)
17102 case $ac_var in #(
17103 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17104 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17105 esac
17106 case $ac_var in #(
17107 _ | IFS | as_nl) ;; #(
17108 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17109 *) { eval $ac_var=; unset $ac_var;} ;;
17110 esac ;;
17111 esac
17112 done
17114 (set) 2>&1 |
17115 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17116 *${as_nl}ac_space=\ *)
17117 # `set' does not quote correctly, so add quotes: double-quote
17118 # substitution turns \\\\ into \\, and sed turns \\ into \.
17119 sed -n \
17120 "s/'/'\\\\''/g;
17121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17122 ;; #(
17124 # `set' quotes correctly as required by POSIX, so do not add quotes.
17125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17127 esac |
17128 sort
17130 sed '
17131 /^ac_cv_env_/b end
17132 t clear
17133 :clear
17134 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17135 t end
17136 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17137 :end' >>confcache
17138 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17139 if test -w "$cache_file"; then
17140 if test "x$cache_file" != "x/dev/null"; then
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17142 $as_echo "$as_me: updating cache $cache_file" >&6;}
17143 if test ! -f "$cache_file" || test -h "$cache_file"; then
17144 cat confcache >"$cache_file"
17145 else
17146 case $cache_file in #(
17147 */* | ?:*)
17148 mv -f confcache "$cache_file"$$ &&
17149 mv -f "$cache_file"$$ "$cache_file" ;; #(
17151 mv -f confcache "$cache_file" ;;
17152 esac
17155 else
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17157 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17160 rm -f confcache
17162 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17163 # Let make expand exec_prefix.
17164 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17166 DEFS=-DHAVE_CONFIG_H
17168 ac_libobjs=
17169 ac_ltlibobjs=
17171 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17172 # 1. Remove the extension, and $U if already installed.
17173 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17174 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17175 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17176 # will be set to the directory where LIBOBJS objects are built.
17177 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17178 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17179 done
17180 LIBOBJS=$ac_libobjs
17182 LTLIBOBJS=$ac_ltlibobjs
17185 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17186 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17190 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17191 if test -n "$am_sleep_pid"; then
17192 # Hide warnings about reused PIDs.
17193 wait $am_sleep_pid 2>/dev/null
17195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17196 $as_echo "done" >&6; }
17197 if test -n "$EXEEXT"; then
17198 am__EXEEXT_TRUE=
17199 am__EXEEXT_FALSE='#'
17200 else
17201 am__EXEEXT_TRUE='#'
17202 am__EXEEXT_FALSE=
17205 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17206 as_fn_error $? "conditional \"AMDEP\" was never defined.
17207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17209 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17210 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17213 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17214 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17217 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17218 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17221 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17222 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17225 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17226 as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined.
17227 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17229 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17230 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17231 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17233 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17234 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17237 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17238 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17241 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17242 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17246 : "${CONFIG_STATUS=./config.status}"
17247 ac_write_fail=0
17248 ac_clean_files_save=$ac_clean_files
17249 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17251 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17252 as_write_fail=0
17253 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17254 #! $SHELL
17255 # Generated by $as_me.
17256 # Run this file to recreate the current configuration.
17257 # Compiler output produced by configure, useful for debugging
17258 # configure, is in config.log if it exists.
17260 debug=false
17261 ac_cs_recheck=false
17262 ac_cs_silent=false
17264 SHELL=\${CONFIG_SHELL-$SHELL}
17265 export SHELL
17266 _ASEOF
17267 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17268 ## -------------------- ##
17269 ## M4sh Initialization. ##
17270 ## -------------------- ##
17272 # Be more Bourne compatible
17273 DUALCASE=1; export DUALCASE # for MKS sh
17274 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17275 emulate sh
17276 NULLCMD=:
17277 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17278 # is contrary to our usage. Disable this feature.
17279 alias -g '${1+"$@"}'='"$@"'
17280 setopt NO_GLOB_SUBST
17281 else
17282 case `(set -o) 2>/dev/null` in #(
17283 *posix*) :
17284 set -o posix ;; #(
17285 *) :
17287 esac
17291 as_nl='
17293 export as_nl
17294 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17295 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17296 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17297 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17298 # Prefer a ksh shell builtin over an external printf program on Solaris,
17299 # but without wasting forks for bash or zsh.
17300 if test -z "$BASH_VERSION$ZSH_VERSION" \
17301 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17302 as_echo='print -r --'
17303 as_echo_n='print -rn --'
17304 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17305 as_echo='printf %s\n'
17306 as_echo_n='printf %s'
17307 else
17308 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17309 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17310 as_echo_n='/usr/ucb/echo -n'
17311 else
17312 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17313 as_echo_n_body='eval
17314 arg=$1;
17315 case $arg in #(
17316 *"$as_nl"*)
17317 expr "X$arg" : "X\\(.*\\)$as_nl";
17318 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17319 esac;
17320 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17322 export as_echo_n_body
17323 as_echo_n='sh -c $as_echo_n_body as_echo'
17325 export as_echo_body
17326 as_echo='sh -c $as_echo_body as_echo'
17329 # The user is always right.
17330 if test "${PATH_SEPARATOR+set}" != set; then
17331 PATH_SEPARATOR=:
17332 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17333 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17334 PATH_SEPARATOR=';'
17339 # IFS
17340 # We need space, tab and new line, in precisely that order. Quoting is
17341 # there to prevent editors from complaining about space-tab.
17342 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17343 # splitting by setting IFS to empty value.)
17344 IFS=" "" $as_nl"
17346 # Find who we are. Look in the path if we contain no directory separator.
17347 as_myself=
17348 case $0 in #((
17349 *[\\/]* ) as_myself=$0 ;;
17350 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17351 for as_dir in $PATH
17353 IFS=$as_save_IFS
17354 test -z "$as_dir" && as_dir=.
17355 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17356 done
17357 IFS=$as_save_IFS
17360 esac
17361 # We did not find ourselves, most probably we were run as `sh COMMAND'
17362 # in which case we are not to be found in the path.
17363 if test "x$as_myself" = x; then
17364 as_myself=$0
17366 if test ! -f "$as_myself"; then
17367 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17368 exit 1
17371 # Unset variables that we do not need and which cause bugs (e.g. in
17372 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17373 # suppresses any "Segmentation fault" message there. '((' could
17374 # trigger a bug in pdksh 5.2.14.
17375 for as_var in BASH_ENV ENV MAIL MAILPATH
17376 do eval test x\${$as_var+set} = xset \
17377 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17378 done
17379 PS1='$ '
17380 PS2='> '
17381 PS4='+ '
17383 # NLS nuisances.
17384 LC_ALL=C
17385 export LC_ALL
17386 LANGUAGE=C
17387 export LANGUAGE
17389 # CDPATH.
17390 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17393 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17394 # ----------------------------------------
17395 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17396 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17397 # script with STATUS, using 1 if that was 0.
17398 as_fn_error ()
17400 as_status=$1; test $as_status -eq 0 && as_status=1
17401 if test "$4"; then
17402 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17403 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17405 $as_echo "$as_me: error: $2" >&2
17406 as_fn_exit $as_status
17407 } # as_fn_error
17410 # as_fn_set_status STATUS
17411 # -----------------------
17412 # Set $? to STATUS, without forking.
17413 as_fn_set_status ()
17415 return $1
17416 } # as_fn_set_status
17418 # as_fn_exit STATUS
17419 # -----------------
17420 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17421 as_fn_exit ()
17423 set +e
17424 as_fn_set_status $1
17425 exit $1
17426 } # as_fn_exit
17428 # as_fn_unset VAR
17429 # ---------------
17430 # Portably unset VAR.
17431 as_fn_unset ()
17433 { eval $1=; unset $1;}
17435 as_unset=as_fn_unset
17436 # as_fn_append VAR VALUE
17437 # ----------------------
17438 # Append the text in VALUE to the end of the definition contained in VAR. Take
17439 # advantage of any shell optimizations that allow amortized linear growth over
17440 # repeated appends, instead of the typical quadratic growth present in naive
17441 # implementations.
17442 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17443 eval 'as_fn_append ()
17445 eval $1+=\$2
17447 else
17448 as_fn_append ()
17450 eval $1=\$$1\$2
17452 fi # as_fn_append
17454 # as_fn_arith ARG...
17455 # ------------------
17456 # Perform arithmetic evaluation on the ARGs, and store the result in the
17457 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17458 # must be portable across $(()) and expr.
17459 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17460 eval 'as_fn_arith ()
17462 as_val=$(( $* ))
17464 else
17465 as_fn_arith ()
17467 as_val=`expr "$@" || test $? -eq 1`
17469 fi # as_fn_arith
17472 if expr a : '\(a\)' >/dev/null 2>&1 &&
17473 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17474 as_expr=expr
17475 else
17476 as_expr=false
17479 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17480 as_basename=basename
17481 else
17482 as_basename=false
17485 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17486 as_dirname=dirname
17487 else
17488 as_dirname=false
17491 as_me=`$as_basename -- "$0" ||
17492 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17493 X"$0" : 'X\(//\)$' \| \
17494 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17495 $as_echo X/"$0" |
17496 sed '/^.*\/\([^/][^/]*\)\/*$/{
17497 s//\1/
17500 /^X\/\(\/\/\)$/{
17501 s//\1/
17504 /^X\/\(\/\).*/{
17505 s//\1/
17508 s/.*/./; q'`
17510 # Avoid depending upon Character Ranges.
17511 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17512 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17513 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17514 as_cr_digits='0123456789'
17515 as_cr_alnum=$as_cr_Letters$as_cr_digits
17517 ECHO_C= ECHO_N= ECHO_T=
17518 case `echo -n x` in #(((((
17519 -n*)
17520 case `echo 'xy\c'` in
17521 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17522 xy) ECHO_C='\c';;
17523 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17524 ECHO_T=' ';;
17525 esac;;
17527 ECHO_N='-n';;
17528 esac
17530 rm -f conf$$ conf$$.exe conf$$.file
17531 if test -d conf$$.dir; then
17532 rm -f conf$$.dir/conf$$.file
17533 else
17534 rm -f conf$$.dir
17535 mkdir conf$$.dir 2>/dev/null
17537 if (echo >conf$$.file) 2>/dev/null; then
17538 if ln -s conf$$.file conf$$ 2>/dev/null; then
17539 as_ln_s='ln -s'
17540 # ... but there are two gotchas:
17541 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17542 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17543 # In both cases, we have to default to `cp -pR'.
17544 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17545 as_ln_s='cp -pR'
17546 elif ln conf$$.file conf$$ 2>/dev/null; then
17547 as_ln_s=ln
17548 else
17549 as_ln_s='cp -pR'
17551 else
17552 as_ln_s='cp -pR'
17554 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17555 rmdir conf$$.dir 2>/dev/null
17558 # as_fn_mkdir_p
17559 # -------------
17560 # Create "$as_dir" as a directory, including parents if necessary.
17561 as_fn_mkdir_p ()
17564 case $as_dir in #(
17565 -*) as_dir=./$as_dir;;
17566 esac
17567 test -d "$as_dir" || eval $as_mkdir_p || {
17568 as_dirs=
17569 while :; do
17570 case $as_dir in #(
17571 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17572 *) as_qdir=$as_dir;;
17573 esac
17574 as_dirs="'$as_qdir' $as_dirs"
17575 as_dir=`$as_dirname -- "$as_dir" ||
17576 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17577 X"$as_dir" : 'X\(//\)[^/]' \| \
17578 X"$as_dir" : 'X\(//\)$' \| \
17579 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17580 $as_echo X"$as_dir" |
17581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17582 s//\1/
17585 /^X\(\/\/\)[^/].*/{
17586 s//\1/
17589 /^X\(\/\/\)$/{
17590 s//\1/
17593 /^X\(\/\).*/{
17594 s//\1/
17597 s/.*/./; q'`
17598 test -d "$as_dir" && break
17599 done
17600 test -z "$as_dirs" || eval "mkdir $as_dirs"
17601 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17604 } # as_fn_mkdir_p
17605 if mkdir -p . 2>/dev/null; then
17606 as_mkdir_p='mkdir -p "$as_dir"'
17607 else
17608 test -d ./-p && rmdir ./-p
17609 as_mkdir_p=false
17613 # as_fn_executable_p FILE
17614 # -----------------------
17615 # Test if FILE is an executable regular file.
17616 as_fn_executable_p ()
17618 test -f "$1" && test -x "$1"
17619 } # as_fn_executable_p
17620 as_test_x='test -x'
17621 as_executable_p=as_fn_executable_p
17623 # Sed expression to map a string onto a valid CPP name.
17624 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17626 # Sed expression to map a string onto a valid variable name.
17627 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17630 exec 6>&1
17631 ## ----------------------------------- ##
17632 ## Main body of $CONFIG_STATUS script. ##
17633 ## ----------------------------------- ##
17634 _ASEOF
17635 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17637 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17638 # Save the log message, to keep $0 and so on meaningful, and to
17639 # report actual input values of CONFIG_FILES etc. instead of their
17640 # values after options handling.
17641 ac_log="
17642 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17643 generated by GNU Autoconf 2.69. Invocation command line was
17645 CONFIG_FILES = $CONFIG_FILES
17646 CONFIG_HEADERS = $CONFIG_HEADERS
17647 CONFIG_LINKS = $CONFIG_LINKS
17648 CONFIG_COMMANDS = $CONFIG_COMMANDS
17649 $ $0 $@
17651 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17654 _ACEOF
17656 case $ac_config_files in *"
17657 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17658 esac
17660 case $ac_config_headers in *"
17661 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17662 esac
17665 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17666 # Files that config.status was made for.
17667 config_files="$ac_config_files"
17668 config_headers="$ac_config_headers"
17669 config_commands="$ac_config_commands"
17671 _ACEOF
17673 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17674 ac_cs_usage="\
17675 \`$as_me' instantiates files and other configuration actions
17676 from templates according to the current configuration. Unless the files
17677 and actions are specified as TAGs, all are instantiated by default.
17679 Usage: $0 [OPTION]... [TAG]...
17681 -h, --help print this help, then exit
17682 -V, --version print version number and configuration settings, then exit
17683 --config print configuration, then exit
17684 -q, --quiet, --silent
17685 do not print progress messages
17686 -d, --debug don't remove temporary files
17687 --recheck update $as_me by reconfiguring in the same conditions
17688 --file=FILE[:TEMPLATE]
17689 instantiate the configuration file FILE
17690 --header=FILE[:TEMPLATE]
17691 instantiate the configuration header FILE
17693 Configuration files:
17694 $config_files
17696 Configuration headers:
17697 $config_headers
17699 Configuration commands:
17700 $config_commands
17702 Report bugs to the package provider.
17703 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17704 General help using GNU software: <http://www.gnu.org/gethelp/>."
17706 _ACEOF
17707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17708 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17709 ac_cs_version="\\
17710 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17711 configured by $0, generated by GNU Autoconf 2.69,
17712 with options \\"\$ac_cs_config\\"
17714 Copyright (C) 2012 Free Software Foundation, Inc.
17715 This config.status script is free software; the Free Software Foundation
17716 gives unlimited permission to copy, distribute and modify it."
17718 ac_pwd='$ac_pwd'
17719 srcdir='$srcdir'
17720 INSTALL='$INSTALL'
17721 MKDIR_P='$MKDIR_P'
17722 AWK='$AWK'
17723 test -n "\$AWK" || AWK=awk
17724 _ACEOF
17726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17727 # The default lists apply if the user does not specify any file.
17728 ac_need_defaults=:
17729 while test $# != 0
17731 case $1 in
17732 --*=?*)
17733 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17734 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17735 ac_shift=:
17737 --*=)
17738 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17739 ac_optarg=
17740 ac_shift=:
17743 ac_option=$1
17744 ac_optarg=$2
17745 ac_shift=shift
17747 esac
17749 case $ac_option in
17750 # Handling of the options.
17751 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17752 ac_cs_recheck=: ;;
17753 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17754 $as_echo "$ac_cs_version"; exit ;;
17755 --config | --confi | --conf | --con | --co | --c )
17756 $as_echo "$ac_cs_config"; exit ;;
17757 --debug | --debu | --deb | --de | --d | -d )
17758 debug=: ;;
17759 --file | --fil | --fi | --f )
17760 $ac_shift
17761 case $ac_optarg in
17762 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17763 '') as_fn_error $? "missing file argument" ;;
17764 esac
17765 as_fn_append CONFIG_FILES " '$ac_optarg'"
17766 ac_need_defaults=false;;
17767 --header | --heade | --head | --hea )
17768 $ac_shift
17769 case $ac_optarg in
17770 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17771 esac
17772 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17773 ac_need_defaults=false;;
17774 --he | --h)
17775 # Conflict between --help and --header
17776 as_fn_error $? "ambiguous option: \`$1'
17777 Try \`$0 --help' for more information.";;
17778 --help | --hel | -h )
17779 $as_echo "$ac_cs_usage"; exit ;;
17780 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17781 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17782 ac_cs_silent=: ;;
17784 # This is an error.
17785 -*) as_fn_error $? "unrecognized option: \`$1'
17786 Try \`$0 --help' for more information." ;;
17788 *) as_fn_append ac_config_targets " $1"
17789 ac_need_defaults=false ;;
17791 esac
17792 shift
17793 done
17795 ac_configure_extra_args=
17797 if $ac_cs_silent; then
17798 exec 6>/dev/null
17799 ac_configure_extra_args="$ac_configure_extra_args --silent"
17802 _ACEOF
17803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17804 if \$ac_cs_recheck; then
17805 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17806 shift
17807 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17808 CONFIG_SHELL='$SHELL'
17809 export CONFIG_SHELL
17810 exec "\$@"
17813 _ACEOF
17814 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17815 exec 5>>config.log
17817 echo
17818 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17819 ## Running $as_me. ##
17820 _ASBOX
17821 $as_echo "$ac_log"
17822 } >&5
17824 _ACEOF
17825 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17827 # INIT-COMMANDS
17830 srcdir="$srcdir"
17831 host="$host"
17832 target="$target"
17833 with_multisubdir="$with_multisubdir"
17834 with_multisrctop="$with_multisrctop"
17835 with_target_subdir="$with_target_subdir"
17836 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17837 multi_basedir="$multi_basedir"
17838 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17839 CC="$CC"
17840 CXX="$CXX"
17841 GFORTRAN="$GFORTRAN"
17842 GDC="$GDC"
17843 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17846 # The HP-UX ksh and POSIX shell print the target directory to stdout
17847 # if CDPATH is set.
17848 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17850 sed_quote_subst='$sed_quote_subst'
17851 double_quote_subst='$double_quote_subst'
17852 delay_variable_subst='$delay_variable_subst'
17853 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17854 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17855 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17856 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17857 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17858 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17859 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17860 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17861 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17862 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17863 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17864 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17865 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17866 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17867 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17868 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17869 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17870 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17871 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17872 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17873 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17874 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17875 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17876 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17877 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17878 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17879 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17880 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17881 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17882 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17883 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17884 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17885 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17886 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17887 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17888 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17889 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17890 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17891 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17892 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17893 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17894 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17895 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17896 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17897 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17898 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17899 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17900 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17901 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"`'
17902 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17903 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17904 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17905 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17906 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17907 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17908 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17909 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17910 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17911 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17912 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17913 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17914 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17915 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17916 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17917 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17918 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17919 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17920 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17921 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17922 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17923 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17924 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17925 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17926 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17927 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17928 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17929 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17930 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17931 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17932 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17933 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17934 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17935 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17936 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17937 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17938 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17939 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17940 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17941 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17942 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17943 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17944 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17945 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17946 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17947 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17948 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17949 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17950 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17951 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17952 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17953 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17954 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17955 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17956 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17957 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17958 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17959 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17960 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17961 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17962 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17963 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17964 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17965 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17966 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17967 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17968 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17969 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17970 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17971 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17972 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17973 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17974 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17975 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17976 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17977 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17978 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17979 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17980 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17981 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17982 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17983 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17984 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17985 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17986 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17987 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17988 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17989 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17990 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17991 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17992 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17993 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17994 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17995 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17996 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17997 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17998 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17999 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
18000 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18001 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
18002 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18003 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18004 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18005 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
18006 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
18007 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
18008 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
18009 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
18010 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
18011 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
18012 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
18013 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
18014 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
18015 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
18016 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
18017 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18018 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18019 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18020 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18021 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18022 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18023 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18024 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18025 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18026 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18027 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
18029 LTCC='$LTCC'
18030 LTCFLAGS='$LTCFLAGS'
18031 compiler='$compiler_DEFAULT'
18033 # A function that is used when there is no print builtin or printf.
18034 func_fallback_echo ()
18036 eval 'cat <<_LTECHO_EOF
18038 _LTECHO_EOF'
18041 # Quote evaled strings.
18042 for var in SHELL \
18043 ECHO \
18044 SED \
18045 GREP \
18046 EGREP \
18047 FGREP \
18048 LD \
18049 NM \
18050 LN_S \
18051 lt_SP2NL \
18052 lt_NL2SP \
18053 reload_flag \
18054 OBJDUMP \
18055 deplibs_check_method \
18056 file_magic_cmd \
18057 AR \
18058 AR_FLAGS \
18059 STRIP \
18060 RANLIB \
18061 CC \
18062 CFLAGS \
18063 compiler \
18064 lt_cv_sys_global_symbol_pipe \
18065 lt_cv_sys_global_symbol_to_cdecl \
18066 lt_cv_sys_global_symbol_to_c_name_address \
18067 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18068 lt_prog_compiler_no_builtin_flag \
18069 lt_prog_compiler_wl \
18070 lt_prog_compiler_pic \
18071 lt_prog_compiler_static \
18072 lt_cv_prog_compiler_c_o \
18073 need_locks \
18074 DSYMUTIL \
18075 NMEDIT \
18076 LIPO \
18077 OTOOL \
18078 OTOOL64 \
18079 shrext_cmds \
18080 export_dynamic_flag_spec \
18081 whole_archive_flag_spec \
18082 compiler_needs_object \
18083 with_gnu_ld \
18084 allow_undefined_flag \
18085 no_undefined_flag \
18086 hardcode_libdir_flag_spec \
18087 hardcode_libdir_flag_spec_ld \
18088 hardcode_libdir_separator \
18089 fix_srcfile_path \
18090 exclude_expsyms \
18091 include_expsyms \
18092 file_list_spec \
18093 variables_saved_for_relink \
18094 libname_spec \
18095 library_names_spec \
18096 soname_spec \
18097 install_override_mode \
18098 finish_eval \
18099 old_striplib \
18100 striplib \
18101 compiler_lib_search_dirs \
18102 predep_objects \
18103 postdep_objects \
18104 predeps \
18105 postdeps \
18106 compiler_lib_search_path \
18107 LD_FC \
18108 reload_flag_FC \
18109 compiler_FC \
18110 lt_prog_compiler_no_builtin_flag_FC \
18111 lt_prog_compiler_wl_FC \
18112 lt_prog_compiler_pic_FC \
18113 lt_prog_compiler_static_FC \
18114 lt_cv_prog_compiler_c_o_FC \
18115 export_dynamic_flag_spec_FC \
18116 whole_archive_flag_spec_FC \
18117 compiler_needs_object_FC \
18118 with_gnu_ld_FC \
18119 allow_undefined_flag_FC \
18120 no_undefined_flag_FC \
18121 hardcode_libdir_flag_spec_FC \
18122 hardcode_libdir_flag_spec_ld_FC \
18123 hardcode_libdir_separator_FC \
18124 fix_srcfile_path_FC \
18125 exclude_expsyms_FC \
18126 include_expsyms_FC \
18127 file_list_spec_FC \
18128 compiler_lib_search_dirs_FC \
18129 predep_objects_FC \
18130 postdep_objects_FC \
18131 predeps_FC \
18132 postdeps_FC \
18133 compiler_lib_search_path_FC; do
18134 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18135 *[\\\\\\\`\\"\\\$]*)
18136 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18139 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18141 esac
18142 done
18144 # Double-quote double-evaled strings.
18145 for var in reload_cmds \
18146 old_postinstall_cmds \
18147 old_postuninstall_cmds \
18148 old_archive_cmds \
18149 extract_expsyms_cmds \
18150 old_archive_from_new_cmds \
18151 old_archive_from_expsyms_cmds \
18152 archive_cmds \
18153 archive_expsym_cmds \
18154 module_cmds \
18155 module_expsym_cmds \
18156 export_symbols_cmds \
18157 prelink_cmds \
18158 postinstall_cmds \
18159 postuninstall_cmds \
18160 finish_cmds \
18161 sys_lib_search_path_spec \
18162 sys_lib_dlsearch_path_spec \
18163 reload_cmds_FC \
18164 old_archive_cmds_FC \
18165 old_archive_from_new_cmds_FC \
18166 old_archive_from_expsyms_cmds_FC \
18167 archive_cmds_FC \
18168 archive_expsym_cmds_FC \
18169 module_cmds_FC \
18170 module_expsym_cmds_FC \
18171 export_symbols_cmds_FC \
18172 prelink_cmds_FC; do
18173 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18174 *[\\\\\\\`\\"\\\$]*)
18175 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18178 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18180 esac
18181 done
18183 ac_aux_dir='$ac_aux_dir'
18184 xsi_shell='$xsi_shell'
18185 lt_shell_append='$lt_shell_append'
18187 # See if we are running on zsh, and set the options which allow our
18188 # commands through without removal of \ escapes INIT.
18189 if test -n "\${ZSH_VERSION+set}" ; then
18190 setopt NO_GLOB_SUBST
18194 PACKAGE='$PACKAGE'
18195 VERSION='$VERSION'
18196 TIMESTAMP='$TIMESTAMP'
18197 RM='$RM'
18198 ofile='$ofile'
18205 _ACEOF
18207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18209 # Handling of arguments.
18210 for ac_config_target in $ac_config_targets
18212 case $ac_config_target in
18213 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18214 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18215 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18216 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18217 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18218 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18219 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18220 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18221 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18222 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18223 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18224 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18225 "testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18227 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18228 esac
18229 done
18232 # If the user did not use the arguments to specify the items to instantiate,
18233 # then the envvar interface is used. Set only those that are not.
18234 # We use the long form for the default assignment because of an extremely
18235 # bizarre bug on SunOS 4.1.3.
18236 if $ac_need_defaults; then
18237 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18238 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18239 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18242 # Have a temporary directory for convenience. Make it in the build tree
18243 # simply because there is no reason against having it here, and in addition,
18244 # creating and moving files from /tmp can sometimes cause problems.
18245 # Hook for its removal unless debugging.
18246 # Note that there is a small window in which the directory will not be cleaned:
18247 # after its creation but before its name has been assigned to `$tmp'.
18248 $debug ||
18250 tmp= ac_tmp=
18251 trap 'exit_status=$?
18252 : "${ac_tmp:=$tmp}"
18253 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18255 trap 'as_fn_exit 1' 1 2 13 15
18257 # Create a (secure) tmp directory for tmp files.
18260 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18261 test -d "$tmp"
18262 } ||
18264 tmp=./conf$$-$RANDOM
18265 (umask 077 && mkdir "$tmp")
18266 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18267 ac_tmp=$tmp
18269 # Set up the scripts for CONFIG_FILES section.
18270 # No need to generate them if there are no CONFIG_FILES.
18271 # This happens for instance with `./config.status config.h'.
18272 if test -n "$CONFIG_FILES"; then
18275 ac_cr=`echo X | tr X '\015'`
18276 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18277 # But we know of no other shell where ac_cr would be empty at this
18278 # point, so we can use a bashism as a fallback.
18279 if test "x$ac_cr" = x; then
18280 eval ac_cr=\$\'\\r\'
18282 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18283 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18284 ac_cs_awk_cr='\\r'
18285 else
18286 ac_cs_awk_cr=$ac_cr
18289 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18290 _ACEOF
18294 echo "cat >conf$$subs.awk <<_ACEOF" &&
18295 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18296 echo "_ACEOF"
18297 } >conf$$subs.sh ||
18298 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18299 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18300 ac_delim='%!_!# '
18301 for ac_last_try in false false false false false :; do
18302 . ./conf$$subs.sh ||
18303 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18305 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18306 if test $ac_delim_n = $ac_delim_num; then
18307 break
18308 elif $ac_last_try; then
18309 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18310 else
18311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18313 done
18314 rm -f conf$$subs.sh
18316 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18317 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18318 _ACEOF
18319 sed -n '
18321 s/^/S["/; s/!.*/"]=/
18324 s/^[^!]*!//
18325 :repl
18326 t repl
18327 s/'"$ac_delim"'$//
18328 t delim
18331 s/\(.\{148\}\)..*/\1/
18332 t more1
18333 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18336 b repl
18337 :more1
18338 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18341 s/.\{148\}//
18342 t nl
18343 :delim
18345 s/\(.\{148\}\)..*/\1/
18346 t more2
18347 s/["\\]/\\&/g; s/^/"/; s/$/"/
18350 :more2
18351 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18354 s/.\{148\}//
18355 t delim
18356 ' <conf$$subs.awk | sed '
18357 /^[^""]/{
18359 s/\n//
18361 ' >>$CONFIG_STATUS || ac_write_fail=1
18362 rm -f conf$$subs.awk
18363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18364 _ACAWK
18365 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18366 for (key in S) S_is_set[key] = 1
18367 FS = "\a"
18371 line = $ 0
18372 nfields = split(line, field, "@")
18373 substed = 0
18374 len = length(field[1])
18375 for (i = 2; i < nfields; i++) {
18376 key = field[i]
18377 keylen = length(key)
18378 if (S_is_set[key]) {
18379 value = S[key]
18380 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18381 len += length(value) + length(field[++i])
18382 substed = 1
18383 } else
18384 len += 1 + keylen
18387 print line
18390 _ACAWK
18391 _ACEOF
18392 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18393 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18394 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18395 else
18397 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18398 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18399 _ACEOF
18401 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18402 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18403 # trailing colons and then remove the whole line if VPATH becomes empty
18404 # (actually we leave an empty line to preserve line numbers).
18405 if test "x$srcdir" = x.; then
18406 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18408 s///
18409 s/^/:/
18410 s/[ ]*$/:/
18411 s/:\$(srcdir):/:/g
18412 s/:\${srcdir}:/:/g
18413 s/:@srcdir@:/:/g
18414 s/^:*//
18415 s/:*$//
18417 s/\(=[ ]*\).*/\1/
18419 s/\n//
18420 s/^[^=]*=[ ]*$//
18424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18425 fi # test -n "$CONFIG_FILES"
18427 # Set up the scripts for CONFIG_HEADERS section.
18428 # No need to generate them if there are no CONFIG_HEADERS.
18429 # This happens for instance with `./config.status Makefile'.
18430 if test -n "$CONFIG_HEADERS"; then
18431 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18432 BEGIN {
18433 _ACEOF
18435 # Transform confdefs.h into an awk script `defines.awk', embedded as
18436 # here-document in config.status, that substitutes the proper values into
18437 # config.h.in to produce config.h.
18439 # Create a delimiter string that does not exist in confdefs.h, to ease
18440 # handling of long lines.
18441 ac_delim='%!_!# '
18442 for ac_last_try in false false :; do
18443 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18444 if test -z "$ac_tt"; then
18445 break
18446 elif $ac_last_try; then
18447 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18448 else
18449 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18451 done
18453 # For the awk script, D is an array of macro values keyed by name,
18454 # likewise P contains macro parameters if any. Preserve backslash
18455 # newline sequences.
18457 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18458 sed -n '
18459 s/.\{148\}/&'"$ac_delim"'/g
18460 t rset
18461 :rset
18462 s/^[ ]*#[ ]*define[ ][ ]*/ /
18463 t def
18465 :def
18466 s/\\$//
18467 t bsnl
18468 s/["\\]/\\&/g
18469 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18470 D["\1"]=" \3"/p
18471 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18473 :bsnl
18474 s/["\\]/\\&/g
18475 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18476 D["\1"]=" \3\\\\\\n"\\/p
18477 t cont
18478 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18479 t cont
18481 :cont
18483 s/.\{148\}/&'"$ac_delim"'/g
18484 t clear
18485 :clear
18486 s/\\$//
18487 t bsnlc
18488 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18490 :bsnlc
18491 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18492 b cont
18493 ' <confdefs.h | sed '
18494 s/'"$ac_delim"'/"\\\
18495 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18498 for (key in D) D_is_set[key] = 1
18499 FS = "\a"
18501 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18502 line = \$ 0
18503 split(line, arg, " ")
18504 if (arg[1] == "#") {
18505 defundef = arg[2]
18506 mac1 = arg[3]
18507 } else {
18508 defundef = substr(arg[1], 2)
18509 mac1 = arg[2]
18511 split(mac1, mac2, "(") #)
18512 macro = mac2[1]
18513 prefix = substr(line, 1, index(line, defundef) - 1)
18514 if (D_is_set[macro]) {
18515 # Preserve the white space surrounding the "#".
18516 print prefix "define", macro P[macro] D[macro]
18517 next
18518 } else {
18519 # Replace #undef with comments. This is necessary, for example,
18520 # in the case of _POSIX_SOURCE, which is predefined and required
18521 # on some systems where configure will not decide to define it.
18522 if (defundef == "undef") {
18523 print "/*", prefix defundef, macro, "*/"
18524 next
18528 { print }
18529 _ACAWK
18530 _ACEOF
18531 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18532 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18533 fi # test -n "$CONFIG_HEADERS"
18536 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18537 shift
18538 for ac_tag
18540 case $ac_tag in
18541 :[FHLC]) ac_mode=$ac_tag; continue;;
18542 esac
18543 case $ac_mode$ac_tag in
18544 :[FHL]*:*);;
18545 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18546 :[FH]-) ac_tag=-:-;;
18547 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18548 esac
18549 ac_save_IFS=$IFS
18550 IFS=:
18551 set x $ac_tag
18552 IFS=$ac_save_IFS
18553 shift
18554 ac_file=$1
18555 shift
18557 case $ac_mode in
18558 :L) ac_source=$1;;
18559 :[FH])
18560 ac_file_inputs=
18561 for ac_f
18563 case $ac_f in
18564 -) ac_f="$ac_tmp/stdin";;
18565 *) # Look for the file first in the build tree, then in the source tree
18566 # (if the path is not absolute). The absolute path cannot be DOS-style,
18567 # because $ac_f cannot contain `:'.
18568 test -f "$ac_f" ||
18569 case $ac_f in
18570 [\\/$]*) false;;
18571 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18572 esac ||
18573 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18574 esac
18575 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18576 as_fn_append ac_file_inputs " '$ac_f'"
18577 done
18579 # Let's still pretend it is `configure' which instantiates (i.e., don't
18580 # use $as_me), people would be surprised to read:
18581 # /* config.h. Generated by config.status. */
18582 configure_input='Generated from '`
18583 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18584 `' by configure.'
18585 if test x"$ac_file" != x-; then
18586 configure_input="$ac_file. $configure_input"
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18588 $as_echo "$as_me: creating $ac_file" >&6;}
18590 # Neutralize special characters interpreted by sed in replacement strings.
18591 case $configure_input in #(
18592 *\&* | *\|* | *\\* )
18593 ac_sed_conf_input=`$as_echo "$configure_input" |
18594 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18595 *) ac_sed_conf_input=$configure_input;;
18596 esac
18598 case $ac_tag in
18599 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18600 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18601 esac
18603 esac
18605 ac_dir=`$as_dirname -- "$ac_file" ||
18606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18607 X"$ac_file" : 'X\(//\)[^/]' \| \
18608 X"$ac_file" : 'X\(//\)$' \| \
18609 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18610 $as_echo X"$ac_file" |
18611 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18612 s//\1/
18615 /^X\(\/\/\)[^/].*/{
18616 s//\1/
18619 /^X\(\/\/\)$/{
18620 s//\1/
18623 /^X\(\/\).*/{
18624 s//\1/
18627 s/.*/./; q'`
18628 as_dir="$ac_dir"; as_fn_mkdir_p
18629 ac_builddir=.
18631 case "$ac_dir" in
18632 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18634 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18635 # A ".." for each directory in $ac_dir_suffix.
18636 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18637 case $ac_top_builddir_sub in
18638 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18639 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18640 esac ;;
18641 esac
18642 ac_abs_top_builddir=$ac_pwd
18643 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18644 # for backward compatibility:
18645 ac_top_builddir=$ac_top_build_prefix
18647 case $srcdir in
18648 .) # We are building in place.
18649 ac_srcdir=.
18650 ac_top_srcdir=$ac_top_builddir_sub
18651 ac_abs_top_srcdir=$ac_pwd ;;
18652 [\\/]* | ?:[\\/]* ) # Absolute name.
18653 ac_srcdir=$srcdir$ac_dir_suffix;
18654 ac_top_srcdir=$srcdir
18655 ac_abs_top_srcdir=$srcdir ;;
18656 *) # Relative name.
18657 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18658 ac_top_srcdir=$ac_top_build_prefix$srcdir
18659 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18660 esac
18661 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18664 case $ac_mode in
18667 # CONFIG_FILE
18670 case $INSTALL in
18671 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18672 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18673 esac
18674 ac_MKDIR_P=$MKDIR_P
18675 case $MKDIR_P in
18676 [\\/$]* | ?:[\\/]* ) ;;
18677 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18678 esac
18679 _ACEOF
18681 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18682 # If the template does not know about datarootdir, expand it.
18683 # FIXME: This hack should be removed a few years after 2.60.
18684 ac_datarootdir_hack=; ac_datarootdir_seen=
18685 ac_sed_dataroot='
18686 /datarootdir/ {
18690 /@datadir@/p
18691 /@docdir@/p
18692 /@infodir@/p
18693 /@localedir@/p
18694 /@mandir@/p'
18695 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18696 *datarootdir*) ac_datarootdir_seen=yes;;
18697 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18699 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18700 _ACEOF
18701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18702 ac_datarootdir_hack='
18703 s&@datadir@&$datadir&g
18704 s&@docdir@&$docdir&g
18705 s&@infodir@&$infodir&g
18706 s&@localedir@&$localedir&g
18707 s&@mandir@&$mandir&g
18708 s&\\\${datarootdir}&$datarootdir&g' ;;
18709 esac
18710 _ACEOF
18712 # Neutralize VPATH when `$srcdir' = `.'.
18713 # Shell code in configure.ac might set extrasub.
18714 # FIXME: do we really want to maintain this feature?
18715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18716 ac_sed_extra="$ac_vpsub
18717 $extrasub
18718 _ACEOF
18719 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18721 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18722 s|@configure_input@|$ac_sed_conf_input|;t t
18723 s&@top_builddir@&$ac_top_builddir_sub&;t t
18724 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18725 s&@srcdir@&$ac_srcdir&;t t
18726 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18727 s&@top_srcdir@&$ac_top_srcdir&;t t
18728 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18729 s&@builddir@&$ac_builddir&;t t
18730 s&@abs_builddir@&$ac_abs_builddir&;t t
18731 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18732 s&@INSTALL@&$ac_INSTALL&;t t
18733 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18734 $ac_datarootdir_hack
18736 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18737 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18739 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18740 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18741 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18742 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18744 which seems to be undefined. Please make sure it is defined" >&5
18745 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18746 which seems to be undefined. Please make sure it is defined" >&2;}
18748 rm -f "$ac_tmp/stdin"
18749 case $ac_file in
18750 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18751 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18752 esac \
18753 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18757 # CONFIG_HEADER
18759 if test x"$ac_file" != x-; then
18761 $as_echo "/* $configure_input */" \
18762 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18763 } >"$ac_tmp/config.h" \
18764 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18765 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18767 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18768 else
18769 rm -f "$ac_file"
18770 mv "$ac_tmp/config.h" "$ac_file" \
18771 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18773 else
18774 $as_echo "/* $configure_input */" \
18775 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18776 || as_fn_error $? "could not create -" "$LINENO" 5
18778 # Compute "$ac_file"'s index in $config_headers.
18779 _am_arg="$ac_file"
18780 _am_stamp_count=1
18781 for _am_header in $config_headers :; do
18782 case $_am_header in
18783 $_am_arg | $_am_arg:* )
18784 break ;;
18786 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18787 esac
18788 done
18789 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18790 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18791 X"$_am_arg" : 'X\(//\)[^/]' \| \
18792 X"$_am_arg" : 'X\(//\)$' \| \
18793 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18794 $as_echo X"$_am_arg" |
18795 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18796 s//\1/
18799 /^X\(\/\/\)[^/].*/{
18800 s//\1/
18803 /^X\(\/\/\)$/{
18804 s//\1/
18807 /^X\(\/\).*/{
18808 s//\1/
18811 s/.*/./; q'`/stamp-h$_am_stamp_count
18814 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18815 $as_echo "$as_me: executing $ac_file commands" >&6;}
18817 esac
18820 case $ac_file$ac_mode in
18821 "default-1":C)
18822 # Only add multilib support code if we just rebuilt the top-level
18823 # Makefile.
18824 case " $CONFIG_FILES " in
18825 *" Makefile "*)
18826 ac_file=Makefile . ${multi_basedir}/config-ml.in
18828 esac ;;
18829 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18830 # Older Autoconf quotes --file arguments for eval, but not when files
18831 # are listed without --file. Let's play safe and only enable the eval
18832 # if we detect the quoting.
18833 case $CONFIG_FILES in
18834 *\'*) eval set x "$CONFIG_FILES" ;;
18835 *) set x $CONFIG_FILES ;;
18836 esac
18837 shift
18838 for mf
18840 # Strip MF so we end up with the name of the file.
18841 mf=`echo "$mf" | sed -e 's/:.*$//'`
18842 # Check whether this is an Automake generated Makefile or not.
18843 # We used to match only the files named 'Makefile.in', but
18844 # some people rename them; so instead we look at the file content.
18845 # Grep'ing the first line is not enough: some people post-process
18846 # each Makefile.in and add a new line on top of each file to say so.
18847 # Grep'ing the whole file is not good either: AIX grep has a line
18848 # limit of 2048, but all sed's we know have understand at least 4000.
18849 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18850 dirpart=`$as_dirname -- "$mf" ||
18851 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18852 X"$mf" : 'X\(//\)[^/]' \| \
18853 X"$mf" : 'X\(//\)$' \| \
18854 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18855 $as_echo X"$mf" |
18856 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18857 s//\1/
18860 /^X\(\/\/\)[^/].*/{
18861 s//\1/
18864 /^X\(\/\/\)$/{
18865 s//\1/
18868 /^X\(\/\).*/{
18869 s//\1/
18872 s/.*/./; q'`
18873 else
18874 continue
18876 # Extract the definition of DEPDIR, am__include, and am__quote
18877 # from the Makefile without running 'make'.
18878 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18879 test -z "$DEPDIR" && continue
18880 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18881 test -z "$am__include" && continue
18882 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18883 # Find all dependency output files, they are included files with
18884 # $(DEPDIR) in their names. We invoke sed twice because it is the
18885 # simplest approach to changing $(DEPDIR) to its actual value in the
18886 # expansion.
18887 for file in `sed -n "
18888 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18889 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18890 # Make sure the directory exists.
18891 test -f "$dirpart/$file" && continue
18892 fdir=`$as_dirname -- "$file" ||
18893 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18894 X"$file" : 'X\(//\)[^/]' \| \
18895 X"$file" : 'X\(//\)$' \| \
18896 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18897 $as_echo X"$file" |
18898 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18899 s//\1/
18902 /^X\(\/\/\)[^/].*/{
18903 s//\1/
18906 /^X\(\/\/\)$/{
18907 s//\1/
18910 /^X\(\/\).*/{
18911 s//\1/
18914 s/.*/./; q'`
18915 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18916 # echo "creating $dirpart/$file"
18917 echo '# dummy' > "$dirpart/$file"
18918 done
18919 done
18922 "libtool":C)
18924 # See if we are running on zsh, and set the options which allow our
18925 # commands through without removal of \ escapes.
18926 if test -n "${ZSH_VERSION+set}" ; then
18927 setopt NO_GLOB_SUBST
18930 cfgfile="${ofile}T"
18931 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18932 $RM "$cfgfile"
18934 cat <<_LT_EOF >> "$cfgfile"
18935 #! $SHELL
18937 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18938 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18939 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18940 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18942 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18943 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18944 # Written by Gordon Matzigkeit, 1996
18946 # This file is part of GNU Libtool.
18948 # GNU Libtool is free software; you can redistribute it and/or
18949 # modify it under the terms of the GNU General Public License as
18950 # published by the Free Software Foundation; either version 2 of
18951 # the License, or (at your option) any later version.
18953 # As a special exception to the GNU General Public License,
18954 # if you distribute this file as part of a program or library that
18955 # is built using GNU Libtool, you may include this file under the
18956 # same distribution terms that you use for the rest of that program.
18958 # GNU Libtool is distributed in the hope that it will be useful,
18959 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18960 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18961 # GNU General Public License for more details.
18963 # You should have received a copy of the GNU General Public License
18964 # along with GNU Libtool; see the file COPYING. If not, a copy
18965 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18966 # obtained by writing to the Free Software Foundation, Inc.,
18967 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18970 # The names of the tagged configurations supported by this script.
18971 available_tags="FC "
18973 # ### BEGIN LIBTOOL CONFIG
18975 # Which release of libtool.m4 was used?
18976 macro_version=$macro_version
18977 macro_revision=$macro_revision
18979 # Whether or not to build shared libraries.
18980 build_libtool_libs=$enable_shared
18982 # Whether or not to build static libraries.
18983 build_old_libs=$enable_static
18985 # What type of objects to build.
18986 pic_mode=$pic_mode
18988 # Whether or not to optimize for fast installation.
18989 fast_install=$enable_fast_install
18991 # Shell to use when invoking shell scripts.
18992 SHELL=$lt_SHELL
18994 # An echo program that protects backslashes.
18995 ECHO=$lt_ECHO
18997 # The host system.
18998 host_alias=$host_alias
18999 host=$host
19000 host_os=$host_os
19002 # The build system.
19003 build_alias=$build_alias
19004 build=$build
19005 build_os=$build_os
19007 # A sed program that does not truncate output.
19008 SED=$lt_SED
19010 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19011 Xsed="\$SED -e 1s/^X//"
19013 # A grep program that handles long lines.
19014 GREP=$lt_GREP
19016 # An ERE matcher.
19017 EGREP=$lt_EGREP
19019 # A literal string matcher.
19020 FGREP=$lt_FGREP
19022 # A BSD- or MS-compatible name lister.
19023 NM=$lt_NM
19025 # Whether we need soft or hard links.
19026 LN_S=$lt_LN_S
19028 # What is the maximum length of a command?
19029 max_cmd_len=$max_cmd_len
19031 # Object file suffix (normally "o").
19032 objext=$ac_objext
19034 # Executable file suffix (normally "").
19035 exeext=$exeext
19037 # whether the shell understands "unset".
19038 lt_unset=$lt_unset
19040 # turn spaces into newlines.
19041 SP2NL=$lt_lt_SP2NL
19043 # turn newlines into spaces.
19044 NL2SP=$lt_lt_NL2SP
19046 # An object symbol dumper.
19047 OBJDUMP=$lt_OBJDUMP
19049 # Method to check whether dependent libraries are shared objects.
19050 deplibs_check_method=$lt_deplibs_check_method
19052 # Command to use when deplibs_check_method == "file_magic".
19053 file_magic_cmd=$lt_file_magic_cmd
19055 # The archiver.
19056 AR=$lt_AR
19057 AR_FLAGS=$lt_AR_FLAGS
19059 # A symbol stripping program.
19060 STRIP=$lt_STRIP
19062 # Commands used to install an old-style archive.
19063 RANLIB=$lt_RANLIB
19064 old_postinstall_cmds=$lt_old_postinstall_cmds
19065 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19067 # Whether to use a lock for old archive extraction.
19068 lock_old_archive_extraction=$lock_old_archive_extraction
19070 # A C compiler.
19071 LTCC=$lt_CC
19073 # LTCC compiler flags.
19074 LTCFLAGS=$lt_CFLAGS
19076 # Take the output of nm and produce a listing of raw symbols and C names.
19077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19079 # Transform the output of nm in a proper C declaration.
19080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19082 # Transform the output of nm in a C name address pair.
19083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19085 # Transform the output of nm in a C name address pair when lib prefix is needed.
19086 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19088 # The name of the directory that contains temporary libtool files.
19089 objdir=$objdir
19091 # Used to examine libraries when file_magic_cmd begins with "file".
19092 MAGIC_CMD=$MAGIC_CMD
19094 # Must we lock files when doing compilation?
19095 need_locks=$lt_need_locks
19097 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19098 DSYMUTIL=$lt_DSYMUTIL
19100 # Tool to change global to local symbols on Mac OS X.
19101 NMEDIT=$lt_NMEDIT
19103 # Tool to manipulate fat objects and archives on Mac OS X.
19104 LIPO=$lt_LIPO
19106 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19107 OTOOL=$lt_OTOOL
19109 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19110 OTOOL64=$lt_OTOOL64
19112 # Old archive suffix (normally "a").
19113 libext=$libext
19115 # Shared library suffix (normally ".so").
19116 shrext_cmds=$lt_shrext_cmds
19118 # The commands to extract the exported symbol list from a shared archive.
19119 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19121 # Variables whose values should be saved in libtool wrapper scripts and
19122 # restored at link time.
19123 variables_saved_for_relink=$lt_variables_saved_for_relink
19125 # Do we need the "lib" prefix for modules?
19126 need_lib_prefix=$need_lib_prefix
19128 # Do we need a version for libraries?
19129 need_version=$need_version
19131 # Library versioning type.
19132 version_type=$version_type
19134 # Shared library runtime path variable.
19135 runpath_var=$runpath_var
19137 # Shared library path variable.
19138 shlibpath_var=$shlibpath_var
19140 # Is shlibpath searched before the hard-coded library search path?
19141 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19143 # Format of library name prefix.
19144 libname_spec=$lt_libname_spec
19146 # List of archive names. First name is the real one, the rest are links.
19147 # The last name is the one that the linker finds with -lNAME
19148 library_names_spec=$lt_library_names_spec
19150 # The coded name of the library, if different from the real name.
19151 soname_spec=$lt_soname_spec
19153 # Permission mode override for installation of shared libraries.
19154 install_override_mode=$lt_install_override_mode
19156 # Command to use after installation of a shared archive.
19157 postinstall_cmds=$lt_postinstall_cmds
19159 # Command to use after uninstallation of a shared archive.
19160 postuninstall_cmds=$lt_postuninstall_cmds
19162 # Commands used to finish a libtool library installation in a directory.
19163 finish_cmds=$lt_finish_cmds
19165 # As "finish_cmds", except a single script fragment to be evaled but
19166 # not shown.
19167 finish_eval=$lt_finish_eval
19169 # Whether we should hardcode library paths into libraries.
19170 hardcode_into_libs=$hardcode_into_libs
19172 # Compile-time system search path for libraries.
19173 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19175 # Run-time system search path for libraries.
19176 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19178 # Whether dlopen is supported.
19179 dlopen_support=$enable_dlopen
19181 # Whether dlopen of programs is supported.
19182 dlopen_self=$enable_dlopen_self
19184 # Whether dlopen of statically linked programs is supported.
19185 dlopen_self_static=$enable_dlopen_self_static
19187 # Commands to strip libraries.
19188 old_striplib=$lt_old_striplib
19189 striplib=$lt_striplib
19192 # The linker used to build libraries.
19193 LD=$lt_LD
19195 # How to create reloadable object files.
19196 reload_flag=$lt_reload_flag
19197 reload_cmds=$lt_reload_cmds
19199 # Commands used to build an old-style archive.
19200 old_archive_cmds=$lt_old_archive_cmds
19202 # A language specific compiler.
19203 CC=$lt_compiler
19205 # Is the compiler the GNU compiler?
19206 with_gcc=$GCC
19208 # Compiler flag to turn off builtin functions.
19209 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19211 # How to pass a linker flag through the compiler.
19212 wl=$lt_lt_prog_compiler_wl
19214 # Additional compiler flags for building library objects.
19215 pic_flag=$lt_lt_prog_compiler_pic
19217 # Compiler flag to prevent dynamic linking.
19218 link_static_flag=$lt_lt_prog_compiler_static
19220 # Does compiler simultaneously support -c and -o options?
19221 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19223 # Whether or not to add -lc for building shared libraries.
19224 build_libtool_need_lc=$archive_cmds_need_lc
19226 # Whether or not to disallow shared libs when runtime libs are static.
19227 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19229 # Compiler flag to allow reflexive dlopens.
19230 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19232 # Compiler flag to generate shared objects directly from archives.
19233 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19235 # Whether the compiler copes with passing no objects directly.
19236 compiler_needs_object=$lt_compiler_needs_object
19238 # Create an old-style archive from a shared archive.
19239 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19241 # Create a temporary old-style archive to link instead of a shared archive.
19242 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19244 # Commands used to build a shared archive.
19245 archive_cmds=$lt_archive_cmds
19246 archive_expsym_cmds=$lt_archive_expsym_cmds
19248 # Commands used to build a loadable module if different from building
19249 # a shared archive.
19250 module_cmds=$lt_module_cmds
19251 module_expsym_cmds=$lt_module_expsym_cmds
19253 # Whether we are building with GNU ld or not.
19254 with_gnu_ld=$lt_with_gnu_ld
19256 # Flag that allows shared libraries with undefined symbols to be built.
19257 allow_undefined_flag=$lt_allow_undefined_flag
19259 # Flag that enforces no undefined symbols.
19260 no_undefined_flag=$lt_no_undefined_flag
19262 # Flag to hardcode \$libdir into a binary during linking.
19263 # This must work even if \$libdir does not exist
19264 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19266 # If ld is used when linking, flag to hardcode \$libdir into a binary
19267 # during linking. This must work even if \$libdir does not exist.
19268 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19270 # Whether we need a single "-rpath" flag with a separated argument.
19271 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19273 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19274 # DIR into the resulting binary.
19275 hardcode_direct=$hardcode_direct
19277 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19278 # DIR into the resulting binary and the resulting library dependency is
19279 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19280 # library is relocated.
19281 hardcode_direct_absolute=$hardcode_direct_absolute
19283 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19284 # into the resulting binary.
19285 hardcode_minus_L=$hardcode_minus_L
19287 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19288 # into the resulting binary.
19289 hardcode_shlibpath_var=$hardcode_shlibpath_var
19291 # Set to "yes" if building a shared library automatically hardcodes DIR
19292 # into the library and all subsequent libraries and executables linked
19293 # against it.
19294 hardcode_automatic=$hardcode_automatic
19296 # Set to yes if linker adds runtime paths of dependent libraries
19297 # to runtime path list.
19298 inherit_rpath=$inherit_rpath
19300 # Whether libtool must link a program against all its dependency libraries.
19301 link_all_deplibs=$link_all_deplibs
19303 # Fix the shell variable \$srcfile for the compiler.
19304 fix_srcfile_path=$lt_fix_srcfile_path
19306 # Set to "yes" if exported symbols are required.
19307 always_export_symbols=$always_export_symbols
19309 # The commands to list exported symbols.
19310 export_symbols_cmds=$lt_export_symbols_cmds
19312 # Symbols that should not be listed in the preloaded symbols.
19313 exclude_expsyms=$lt_exclude_expsyms
19315 # Symbols that must always be exported.
19316 include_expsyms=$lt_include_expsyms
19318 # Commands necessary for linking programs (against libraries) with templates.
19319 prelink_cmds=$lt_prelink_cmds
19321 # Specify filename containing input files.
19322 file_list_spec=$lt_file_list_spec
19324 # How to hardcode a shared library path into an executable.
19325 hardcode_action=$hardcode_action
19327 # The directories searched by this compiler when creating a shared library.
19328 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19330 # Dependencies to place before and after the objects being linked to
19331 # create a shared library.
19332 predep_objects=$lt_predep_objects
19333 postdep_objects=$lt_postdep_objects
19334 predeps=$lt_predeps
19335 postdeps=$lt_postdeps
19337 # The library search path used internally by the compiler when linking
19338 # a shared library.
19339 compiler_lib_search_path=$lt_compiler_lib_search_path
19341 # ### END LIBTOOL CONFIG
19343 _LT_EOF
19345 case $host_os in
19346 aix3*)
19347 cat <<\_LT_EOF >> "$cfgfile"
19348 # AIX sometimes has problems with the GCC collect2 program. For some
19349 # reason, if we set the COLLECT_NAMES environment variable, the problems
19350 # vanish in a puff of smoke.
19351 if test "X${COLLECT_NAMES+set}" != Xset; then
19352 COLLECT_NAMES=
19353 export COLLECT_NAMES
19355 _LT_EOF
19357 esac
19360 ltmain="$ac_aux_dir/ltmain.sh"
19363 # We use sed instead of cat because bash on DJGPP gets confused if
19364 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19365 # text mode, it properly converts lines to CR/LF. This bash problem
19366 # is reportedly fixed, but why not run on old versions too?
19367 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19368 || (rm -f "$cfgfile"; exit 1)
19370 case $xsi_shell in
19371 yes)
19372 cat << \_LT_EOF >> "$cfgfile"
19374 # func_dirname file append nondir_replacement
19375 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19376 # otherwise set result to NONDIR_REPLACEMENT.
19377 func_dirname ()
19379 case ${1} in
19380 */*) func_dirname_result="${1%/*}${2}" ;;
19381 * ) func_dirname_result="${3}" ;;
19382 esac
19385 # func_basename file
19386 func_basename ()
19388 func_basename_result="${1##*/}"
19391 # func_dirname_and_basename file append nondir_replacement
19392 # perform func_basename and func_dirname in a single function
19393 # call:
19394 # dirname: Compute the dirname of FILE. If nonempty,
19395 # add APPEND to the result, otherwise set result
19396 # to NONDIR_REPLACEMENT.
19397 # value returned in "$func_dirname_result"
19398 # basename: Compute filename of FILE.
19399 # value retuned in "$func_basename_result"
19400 # Implementation must be kept synchronized with func_dirname
19401 # and func_basename. For efficiency, we do not delegate to
19402 # those functions but instead duplicate the functionality here.
19403 func_dirname_and_basename ()
19405 case ${1} in
19406 */*) func_dirname_result="${1%/*}${2}" ;;
19407 * ) func_dirname_result="${3}" ;;
19408 esac
19409 func_basename_result="${1##*/}"
19412 # func_stripname prefix suffix name
19413 # strip PREFIX and SUFFIX off of NAME.
19414 # PREFIX and SUFFIX must not contain globbing or regex special
19415 # characters, hashes, percent signs, but SUFFIX may contain a leading
19416 # dot (in which case that matches only a dot).
19417 func_stripname ()
19419 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19420 # positional parameters, so assign one to ordinary parameter first.
19421 func_stripname_result=${3}
19422 func_stripname_result=${func_stripname_result#"${1}"}
19423 func_stripname_result=${func_stripname_result%"${2}"}
19426 # func_opt_split
19427 func_opt_split ()
19429 func_opt_split_opt=${1%%=*}
19430 func_opt_split_arg=${1#*=}
19433 # func_lo2o object
19434 func_lo2o ()
19436 case ${1} in
19437 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19438 *) func_lo2o_result=${1} ;;
19439 esac
19442 # func_xform libobj-or-source
19443 func_xform ()
19445 func_xform_result=${1%.*}.lo
19448 # func_arith arithmetic-term...
19449 func_arith ()
19451 func_arith_result=$(( $* ))
19454 # func_len string
19455 # STRING may not start with a hyphen.
19456 func_len ()
19458 func_len_result=${#1}
19461 _LT_EOF
19463 *) # Bourne compatible functions.
19464 cat << \_LT_EOF >> "$cfgfile"
19466 # func_dirname file append nondir_replacement
19467 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19468 # otherwise set result to NONDIR_REPLACEMENT.
19469 func_dirname ()
19471 # Extract subdirectory from the argument.
19472 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19473 if test "X$func_dirname_result" = "X${1}"; then
19474 func_dirname_result="${3}"
19475 else
19476 func_dirname_result="$func_dirname_result${2}"
19480 # func_basename file
19481 func_basename ()
19483 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19487 # func_stripname prefix suffix name
19488 # strip PREFIX and SUFFIX off of NAME.
19489 # PREFIX and SUFFIX must not contain globbing or regex special
19490 # characters, hashes, percent signs, but SUFFIX may contain a leading
19491 # dot (in which case that matches only a dot).
19492 # func_strip_suffix prefix name
19493 func_stripname ()
19495 case ${2} in
19496 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19497 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19498 esac
19501 # sed scripts:
19502 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19503 my_sed_long_arg='1s/^-[^=]*=//'
19505 # func_opt_split
19506 func_opt_split ()
19508 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19509 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19512 # func_lo2o object
19513 func_lo2o ()
19515 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19518 # func_xform libobj-or-source
19519 func_xform ()
19521 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19524 # func_arith arithmetic-term...
19525 func_arith ()
19527 func_arith_result=`expr "$@"`
19530 # func_len string
19531 # STRING may not start with a hyphen.
19532 func_len ()
19534 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19537 _LT_EOF
19538 esac
19540 case $lt_shell_append in
19541 yes)
19542 cat << \_LT_EOF >> "$cfgfile"
19544 # func_append var value
19545 # Append VALUE to the end of shell variable VAR.
19546 func_append ()
19548 eval "$1+=\$2"
19550 _LT_EOF
19553 cat << \_LT_EOF >> "$cfgfile"
19555 # func_append var value
19556 # Append VALUE to the end of shell variable VAR.
19557 func_append ()
19559 eval "$1=\$$1\$2"
19562 _LT_EOF
19564 esac
19567 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19568 || (rm -f "$cfgfile"; exit 1)
19570 mv -f "$cfgfile" "$ofile" ||
19571 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19572 chmod +x "$ofile"
19575 cat <<_LT_EOF >> "$ofile"
19577 # ### BEGIN LIBTOOL TAG CONFIG: FC
19579 # The linker used to build libraries.
19580 LD=$lt_LD_FC
19582 # How to create reloadable object files.
19583 reload_flag=$lt_reload_flag_FC
19584 reload_cmds=$lt_reload_cmds_FC
19586 # Commands used to build an old-style archive.
19587 old_archive_cmds=$lt_old_archive_cmds_FC
19589 # A language specific compiler.
19590 CC=$lt_compiler_FC
19592 # Is the compiler the GNU compiler?
19593 with_gcc=$GCC_FC
19595 # Compiler flag to turn off builtin functions.
19596 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19598 # How to pass a linker flag through the compiler.
19599 wl=$lt_lt_prog_compiler_wl_FC
19601 # Additional compiler flags for building library objects.
19602 pic_flag=$lt_lt_prog_compiler_pic_FC
19604 # Compiler flag to prevent dynamic linking.
19605 link_static_flag=$lt_lt_prog_compiler_static_FC
19607 # Does compiler simultaneously support -c and -o options?
19608 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19610 # Whether or not to add -lc for building shared libraries.
19611 build_libtool_need_lc=$archive_cmds_need_lc_FC
19613 # Whether or not to disallow shared libs when runtime libs are static.
19614 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19616 # Compiler flag to allow reflexive dlopens.
19617 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19619 # Compiler flag to generate shared objects directly from archives.
19620 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19622 # Whether the compiler copes with passing no objects directly.
19623 compiler_needs_object=$lt_compiler_needs_object_FC
19625 # Create an old-style archive from a shared archive.
19626 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19628 # Create a temporary old-style archive to link instead of a shared archive.
19629 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19631 # Commands used to build a shared archive.
19632 archive_cmds=$lt_archive_cmds_FC
19633 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19635 # Commands used to build a loadable module if different from building
19636 # a shared archive.
19637 module_cmds=$lt_module_cmds_FC
19638 module_expsym_cmds=$lt_module_expsym_cmds_FC
19640 # Whether we are building with GNU ld or not.
19641 with_gnu_ld=$lt_with_gnu_ld_FC
19643 # Flag that allows shared libraries with undefined symbols to be built.
19644 allow_undefined_flag=$lt_allow_undefined_flag_FC
19646 # Flag that enforces no undefined symbols.
19647 no_undefined_flag=$lt_no_undefined_flag_FC
19649 # Flag to hardcode \$libdir into a binary during linking.
19650 # This must work even if \$libdir does not exist
19651 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19653 # If ld is used when linking, flag to hardcode \$libdir into a binary
19654 # during linking. This must work even if \$libdir does not exist.
19655 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19657 # Whether we need a single "-rpath" flag with a separated argument.
19658 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19660 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19661 # DIR into the resulting binary.
19662 hardcode_direct=$hardcode_direct_FC
19664 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19665 # DIR into the resulting binary and the resulting library dependency is
19666 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19667 # library is relocated.
19668 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19670 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19671 # into the resulting binary.
19672 hardcode_minus_L=$hardcode_minus_L_FC
19674 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19675 # into the resulting binary.
19676 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19678 # Set to "yes" if building a shared library automatically hardcodes DIR
19679 # into the library and all subsequent libraries and executables linked
19680 # against it.
19681 hardcode_automatic=$hardcode_automatic_FC
19683 # Set to yes if linker adds runtime paths of dependent libraries
19684 # to runtime path list.
19685 inherit_rpath=$inherit_rpath_FC
19687 # Whether libtool must link a program against all its dependency libraries.
19688 link_all_deplibs=$link_all_deplibs_FC
19690 # Fix the shell variable \$srcfile for the compiler.
19691 fix_srcfile_path=$lt_fix_srcfile_path_FC
19693 # Set to "yes" if exported symbols are required.
19694 always_export_symbols=$always_export_symbols_FC
19696 # The commands to list exported symbols.
19697 export_symbols_cmds=$lt_export_symbols_cmds_FC
19699 # Symbols that should not be listed in the preloaded symbols.
19700 exclude_expsyms=$lt_exclude_expsyms_FC
19702 # Symbols that must always be exported.
19703 include_expsyms=$lt_include_expsyms_FC
19705 # Commands necessary for linking programs (against libraries) with templates.
19706 prelink_cmds=$lt_prelink_cmds_FC
19708 # Specify filename containing input files.
19709 file_list_spec=$lt_file_list_spec_FC
19711 # How to hardcode a shared library path into an executable.
19712 hardcode_action=$hardcode_action_FC
19714 # The directories searched by this compiler when creating a shared library.
19715 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19717 # Dependencies to place before and after the objects being linked to
19718 # create a shared library.
19719 predep_objects=$lt_predep_objects_FC
19720 postdep_objects=$lt_postdep_objects_FC
19721 predeps=$lt_predeps_FC
19722 postdeps=$lt_postdeps_FC
19724 # The library search path used internally by the compiler when linking
19725 # a shared library.
19726 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19728 # ### END LIBTOOL TAG CONFIG: FC
19729 _LT_EOF
19733 esac
19734 done # for ac_tag
19737 as_fn_exit 0
19738 _ACEOF
19739 ac_clean_files=$ac_clean_files_save
19741 test $ac_write_fail = 0 ||
19742 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19745 # configure is writing to config.log, and then calls config.status.
19746 # config.status does its own redirection, appending to config.log.
19747 # Unfortunately, on DOS this fails, as config.log is still kept open
19748 # by configure, so config.status won't be able to write to it; its
19749 # output is simply discarded. So we exec the FD to /dev/null,
19750 # effectively closing config.log, so it can be properly (re)opened and
19751 # appended to by config.status. When coming back to configure, we
19752 # need to make the FD available again.
19753 if test "$no_create" != yes; then
19754 ac_cs_success=:
19755 ac_config_status_args=
19756 test "$silent" = yes &&
19757 ac_config_status_args="$ac_config_status_args --quiet"
19758 exec 5>/dev/null
19759 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19760 exec 5>>config.log
19761 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19762 # would make configure fail if this is the last instruction.
19763 $ac_cs_success || as_fn_exit 1
19765 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19767 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}