Require target lra in gcc.c-torture/compile/asmgoto-6.c
[official-gcc.git] / libgomp / configure
blobe4e79c5199a4816d7e4a4ed35a92bed681b1a722
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 FLOCK
660 CPU_COUNT
661 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
663 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
664 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
665 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
666 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
667 OPT_LDFLAGS
668 SECTION_LDFLAGS
669 PLUGIN_GCN_FALSE
670 PLUGIN_GCN_TRUE
671 PLUGIN_NVPTX_FALSE
672 PLUGIN_NVPTX_TRUE
673 offload_additional_lib_paths
674 offload_additional_options
675 offload_targets
676 offload_plugins
677 DL_LIBS
678 libtool_VERSION
679 ac_ct_FC
680 FCFLAGS
683 MAINT
684 MAINTAINER_MODE_FALSE
685 MAINTAINER_MODE_TRUE
686 enable_static
687 enable_shared
688 lt_host_flags
690 OTOOL64
691 OTOOL
692 LIPO
693 NMEDIT
694 DSYMUTIL
695 OBJDUMP
696 LN_S
698 ac_ct_DUMPBIN
699 DUMPBIN
701 FGREP
702 EGREP
703 GREP
705 LIBTOOL
706 BUILD_INFO_FALSE
707 BUILD_INFO_TRUE
708 RANLIB
710 am__fastdepCC_FALSE
711 am__fastdepCC_TRUE
712 CCDEPMODE
713 am__nodep
714 AMDEPBACKSLASH
715 AMDEP_FALSE
716 AMDEP_TRUE
717 am__quote
718 am__include
719 DEPDIR
720 OBJEXT
721 EXEEXT
722 ac_ct_CC
723 CPPFLAGS
724 LDFLAGS
725 CFLAGS
727 toolexeclibdir
728 toolexecdir
729 multi_basedir
730 AM_BACKSLASH
731 AM_DEFAULT_VERBOSITY
732 AM_DEFAULT_V
733 AM_V
734 am__untar
735 am__tar
736 AMTAR
737 am__leading_dot
738 SET_MAKE
740 mkdir_p
741 MKDIR_P
742 INSTALL_STRIP_PROGRAM
743 STRIP
744 install_sh
745 MAKEINFO
746 AUTOHEADER
747 AUTOMAKE
748 AUTOCONF
749 ACLOCAL
750 VERSION
751 PACKAGE
752 CYGPATH_W
753 am__isrc
754 INSTALL_DATA
755 INSTALL_SCRIPT
756 INSTALL_PROGRAM
757 target_os
758 target_vendor
759 target_cpu
760 target
761 host_os
762 host_vendor
763 host_cpu
764 host
765 build_os
766 build_vendor
767 build_cpu
768 build
769 GENINSRC_FALSE
770 GENINSRC_TRUE
771 target_alias
772 host_alias
773 build_alias
774 LIBS
775 ECHO_T
776 ECHO_N
777 ECHO_C
778 DEFS
779 mandir
780 localedir
781 libdir
782 psdir
783 pdfdir
784 dvidir
785 htmldir
786 infodir
787 docdir
788 oldincludedir
789 includedir
790 localstatedir
791 sharedstatedir
792 sysconfdir
793 datadir
794 datarootdir
795 libexecdir
796 sbindir
797 bindir
798 program_transform_name
799 prefix
800 exec_prefix
801 PACKAGE_URL
802 PACKAGE_BUGREPORT
803 PACKAGE_STRING
804 PACKAGE_VERSION
805 PACKAGE_TARNAME
806 PACKAGE_NAME
807 PATH_SEPARATOR
808 SHELL'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_version_specific_runtime_libs
813 enable_generated_files_in_srcdir
814 enable_silent_rules
815 enable_multilib
816 with_toolexeclibdir
817 enable_dependency_tracking
818 enable_werror
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 with_gnu_ld
824 enable_libtool_lock
825 enable_maintainer_mode
826 enable_linux_futex
827 enable_tls
828 enable_symvers
829 enable_cet
830 with_gcc_major_version_only
832 ac_precious_vars='build_alias
833 host_alias
834 target_alias
836 CPPFLAGS
838 FCFLAGS
839 LDFLAGS
840 LIBS'
843 # Initialize some variables set by options.
844 ac_init_help=
845 ac_init_version=false
846 ac_unrecognized_opts=
847 ac_unrecognized_sep=
848 # The variables have the same names as the options, with
849 # dashes changed to underlines.
850 cache_file=/dev/null
851 exec_prefix=NONE
852 no_create=
853 no_recursion=
854 prefix=NONE
855 program_prefix=NONE
856 program_suffix=NONE
857 program_transform_name=s,x,x,
858 silent=
859 site=
860 srcdir=
861 verbose=
862 x_includes=NONE
863 x_libraries=NONE
865 # Installation directory options.
866 # These are left unexpanded so users can "make install exec_prefix=/foo"
867 # and all the variables that are supposed to be based on exec_prefix
868 # by default will actually change.
869 # Use braces instead of parens because sh, perl, etc. also accept them.
870 # (The list follows the same order as the GNU Coding Standards.)
871 bindir='${exec_prefix}/bin'
872 sbindir='${exec_prefix}/sbin'
873 libexecdir='${exec_prefix}/libexec'
874 datarootdir='${prefix}/share'
875 datadir='${datarootdir}'
876 sysconfdir='${prefix}/etc'
877 sharedstatedir='${prefix}/com'
878 localstatedir='${prefix}/var'
879 includedir='${prefix}/include'
880 oldincludedir='/usr/include'
881 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
882 infodir='${datarootdir}/info'
883 htmldir='${docdir}'
884 dvidir='${docdir}'
885 pdfdir='${docdir}'
886 psdir='${docdir}'
887 libdir='${exec_prefix}/lib'
888 localedir='${datarootdir}/locale'
889 mandir='${datarootdir}/man'
891 ac_prev=
892 ac_dashdash=
893 for ac_option
895 # If the previous option needs an argument, assign it.
896 if test -n "$ac_prev"; then
897 eval $ac_prev=\$ac_option
898 ac_prev=
899 continue
902 case $ac_option in
903 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
904 *=) ac_optarg= ;;
905 *) ac_optarg=yes ;;
906 esac
908 # Accept the important Cygnus configure options, so we can diagnose typos.
910 case $ac_dashdash$ac_option in
912 ac_dashdash=yes ;;
914 -bindir | --bindir | --bindi | --bind | --bin | --bi)
915 ac_prev=bindir ;;
916 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
917 bindir=$ac_optarg ;;
919 -build | --build | --buil | --bui | --bu)
920 ac_prev=build_alias ;;
921 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
922 build_alias=$ac_optarg ;;
924 -cache-file | --cache-file | --cache-fil | --cache-fi \
925 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
926 ac_prev=cache_file ;;
927 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
928 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
929 cache_file=$ac_optarg ;;
931 --config-cache | -C)
932 cache_file=config.cache ;;
934 -datadir | --datadir | --datadi | --datad)
935 ac_prev=datadir ;;
936 -datadir=* | --datadir=* | --datadi=* | --datad=*)
937 datadir=$ac_optarg ;;
939 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
940 | --dataroo | --dataro | --datar)
941 ac_prev=datarootdir ;;
942 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
943 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
944 datarootdir=$ac_optarg ;;
946 -disable-* | --disable-*)
947 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
948 # Reject names that are not valid shell variable names.
949 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
950 as_fn_error $? "invalid feature name: $ac_useropt"
951 ac_useropt_orig=$ac_useropt
952 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
953 case $ac_user_opts in
955 "enable_$ac_useropt"
956 "*) ;;
957 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
958 ac_unrecognized_sep=', ';;
959 esac
960 eval enable_$ac_useropt=no ;;
962 -docdir | --docdir | --docdi | --doc | --do)
963 ac_prev=docdir ;;
964 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
965 docdir=$ac_optarg ;;
967 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
968 ac_prev=dvidir ;;
969 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
970 dvidir=$ac_optarg ;;
972 -enable-* | --enable-*)
973 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
974 # Reject names that are not valid shell variable names.
975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
976 as_fn_error $? "invalid feature name: $ac_useropt"
977 ac_useropt_orig=$ac_useropt
978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
979 case $ac_user_opts in
981 "enable_$ac_useropt"
982 "*) ;;
983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
984 ac_unrecognized_sep=', ';;
985 esac
986 eval enable_$ac_useropt=\$ac_optarg ;;
988 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
989 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
990 | --exec | --exe | --ex)
991 ac_prev=exec_prefix ;;
992 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
993 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
994 | --exec=* | --exe=* | --ex=*)
995 exec_prefix=$ac_optarg ;;
997 -gas | --gas | --ga | --g)
998 # Obsolete; use --with-gas.
999 with_gas=yes ;;
1001 -help | --help | --hel | --he | -h)
1002 ac_init_help=long ;;
1003 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1004 ac_init_help=recursive ;;
1005 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1006 ac_init_help=short ;;
1008 -host | --host | --hos | --ho)
1009 ac_prev=host_alias ;;
1010 -host=* | --host=* | --hos=* | --ho=*)
1011 host_alias=$ac_optarg ;;
1013 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1014 ac_prev=htmldir ;;
1015 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1016 | --ht=*)
1017 htmldir=$ac_optarg ;;
1019 -includedir | --includedir | --includedi | --included | --include \
1020 | --includ | --inclu | --incl | --inc)
1021 ac_prev=includedir ;;
1022 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1023 | --includ=* | --inclu=* | --incl=* | --inc=*)
1024 includedir=$ac_optarg ;;
1026 -infodir | --infodir | --infodi | --infod | --info | --inf)
1027 ac_prev=infodir ;;
1028 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1029 infodir=$ac_optarg ;;
1031 -libdir | --libdir | --libdi | --libd)
1032 ac_prev=libdir ;;
1033 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1034 libdir=$ac_optarg ;;
1036 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1037 | --libexe | --libex | --libe)
1038 ac_prev=libexecdir ;;
1039 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1040 | --libexe=* | --libex=* | --libe=*)
1041 libexecdir=$ac_optarg ;;
1043 -localedir | --localedir | --localedi | --localed | --locale)
1044 ac_prev=localedir ;;
1045 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1046 localedir=$ac_optarg ;;
1048 -localstatedir | --localstatedir | --localstatedi | --localstated \
1049 | --localstate | --localstat | --localsta | --localst | --locals)
1050 ac_prev=localstatedir ;;
1051 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1052 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1053 localstatedir=$ac_optarg ;;
1055 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1056 ac_prev=mandir ;;
1057 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1058 mandir=$ac_optarg ;;
1060 -nfp | --nfp | --nf)
1061 # Obsolete; use --without-fp.
1062 with_fp=no ;;
1064 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1065 | --no-cr | --no-c | -n)
1066 no_create=yes ;;
1068 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1069 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1070 no_recursion=yes ;;
1072 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1073 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1074 | --oldin | --oldi | --old | --ol | --o)
1075 ac_prev=oldincludedir ;;
1076 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1077 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1078 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1079 oldincludedir=$ac_optarg ;;
1081 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1082 ac_prev=prefix ;;
1083 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1084 prefix=$ac_optarg ;;
1086 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1087 | --program-pre | --program-pr | --program-p)
1088 ac_prev=program_prefix ;;
1089 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1090 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1091 program_prefix=$ac_optarg ;;
1093 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1094 | --program-suf | --program-su | --program-s)
1095 ac_prev=program_suffix ;;
1096 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1097 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1098 program_suffix=$ac_optarg ;;
1100 -program-transform-name | --program-transform-name \
1101 | --program-transform-nam | --program-transform-na \
1102 | --program-transform-n | --program-transform- \
1103 | --program-transform | --program-transfor \
1104 | --program-transfo | --program-transf \
1105 | --program-trans | --program-tran \
1106 | --progr-tra | --program-tr | --program-t)
1107 ac_prev=program_transform_name ;;
1108 -program-transform-name=* | --program-transform-name=* \
1109 | --program-transform-nam=* | --program-transform-na=* \
1110 | --program-transform-n=* | --program-transform-=* \
1111 | --program-transform=* | --program-transfor=* \
1112 | --program-transfo=* | --program-transf=* \
1113 | --program-trans=* | --program-tran=* \
1114 | --progr-tra=* | --program-tr=* | --program-t=*)
1115 program_transform_name=$ac_optarg ;;
1117 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1118 ac_prev=pdfdir ;;
1119 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1120 pdfdir=$ac_optarg ;;
1122 -psdir | --psdir | --psdi | --psd | --ps)
1123 ac_prev=psdir ;;
1124 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1125 psdir=$ac_optarg ;;
1127 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1128 | -silent | --silent | --silen | --sile | --sil)
1129 silent=yes ;;
1131 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1132 ac_prev=sbindir ;;
1133 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1134 | --sbi=* | --sb=*)
1135 sbindir=$ac_optarg ;;
1137 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1138 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1139 | --sharedst | --shareds | --shared | --share | --shar \
1140 | --sha | --sh)
1141 ac_prev=sharedstatedir ;;
1142 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1143 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1144 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1145 | --sha=* | --sh=*)
1146 sharedstatedir=$ac_optarg ;;
1148 -site | --site | --sit)
1149 ac_prev=site ;;
1150 -site=* | --site=* | --sit=*)
1151 site=$ac_optarg ;;
1153 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1154 ac_prev=srcdir ;;
1155 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1156 srcdir=$ac_optarg ;;
1158 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1159 | --syscon | --sysco | --sysc | --sys | --sy)
1160 ac_prev=sysconfdir ;;
1161 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1162 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1163 sysconfdir=$ac_optarg ;;
1165 -target | --target | --targe | --targ | --tar | --ta | --t)
1166 ac_prev=target_alias ;;
1167 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1168 target_alias=$ac_optarg ;;
1170 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1171 verbose=yes ;;
1173 -version | --version | --versio | --versi | --vers | -V)
1174 ac_init_version=: ;;
1176 -with-* | --with-*)
1177 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error $? "invalid package name: $ac_useropt"
1181 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in
1185 "with_$ac_useropt"
1186 "*) ;;
1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1188 ac_unrecognized_sep=', ';;
1189 esac
1190 eval with_$ac_useropt=\$ac_optarg ;;
1192 -without-* | --without-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
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--without-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=no ;;
1208 --x)
1209 # Obsolete; use --with-x.
1210 with_x=yes ;;
1212 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1213 | --x-incl | --x-inc | --x-in | --x-i)
1214 ac_prev=x_includes ;;
1215 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1216 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1217 x_includes=$ac_optarg ;;
1219 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1220 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1221 ac_prev=x_libraries ;;
1222 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1223 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1224 x_libraries=$ac_optarg ;;
1226 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1227 Try \`$0 --help' for more information"
1230 *=*)
1231 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1232 # Reject names that are not valid shell variable names.
1233 case $ac_envvar in #(
1234 '' | [0-9]* | *[!_$as_cr_alnum]* )
1235 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1236 esac
1237 eval $ac_envvar=\$ac_optarg
1238 export $ac_envvar ;;
1241 # FIXME: should be removed in autoconf 3.0.
1242 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1243 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1244 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1245 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1248 esac
1249 done
1251 if test -n "$ac_prev"; then
1252 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1253 as_fn_error $? "missing argument to $ac_option"
1256 if test -n "$ac_unrecognized_opts"; then
1257 case $enable_option_checking in
1258 no) ;;
1259 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1260 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1261 esac
1264 # Check all directory arguments for consistency.
1265 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1266 datadir sysconfdir sharedstatedir localstatedir includedir \
1267 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1268 libdir localedir mandir
1270 eval ac_val=\$$ac_var
1271 # Remove trailing slashes.
1272 case $ac_val in
1273 */ )
1274 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1275 eval $ac_var=\$ac_val;;
1276 esac
1277 # Be sure to have absolute directory names.
1278 case $ac_val in
1279 [\\/$]* | ?:[\\/]* ) continue;;
1280 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1281 esac
1282 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1283 done
1285 # There might be people who depend on the old broken behavior: `$host'
1286 # used to hold the argument of --host etc.
1287 # FIXME: To remove some day.
1288 build=$build_alias
1289 host=$host_alias
1290 target=$target_alias
1292 # FIXME: To remove some day.
1293 if test "x$host_alias" != x; then
1294 if test "x$build_alias" = x; then
1295 cross_compiling=maybe
1296 elif test "x$build_alias" != "x$host_alias"; then
1297 cross_compiling=yes
1301 ac_tool_prefix=
1302 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1304 test "$silent" = yes && exec 6>/dev/null
1307 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1308 ac_ls_di=`ls -di .` &&
1309 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1310 as_fn_error $? "working directory cannot be determined"
1311 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1312 as_fn_error $? "pwd does not report name of working directory"
1315 # Find the source files, if location was not specified.
1316 if test -z "$srcdir"; then
1317 ac_srcdir_defaulted=yes
1318 # Try the directory containing this script, then the parent directory.
1319 ac_confdir=`$as_dirname -- "$as_myself" ||
1320 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1321 X"$as_myself" : 'X\(//\)[^/]' \| \
1322 X"$as_myself" : 'X\(//\)$' \| \
1323 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1324 $as_echo X"$as_myself" |
1325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1326 s//\1/
1329 /^X\(\/\/\)[^/].*/{
1330 s//\1/
1333 /^X\(\/\/\)$/{
1334 s//\1/
1337 /^X\(\/\).*/{
1338 s//\1/
1341 s/.*/./; q'`
1342 srcdir=$ac_confdir
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 srcdir=..
1346 else
1347 ac_srcdir_defaulted=no
1349 if test ! -r "$srcdir/$ac_unique_file"; then
1350 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1351 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1353 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1354 ac_abs_confdir=`(
1355 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1356 pwd)`
1357 # When building in place, set srcdir=.
1358 if test "$ac_abs_confdir" = "$ac_pwd"; then
1359 srcdir=.
1361 # Remove unnecessary trailing slashes from srcdir.
1362 # Double slashes in file names in object file debugging info
1363 # mess up M-x gdb in Emacs.
1364 case $srcdir in
1365 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1366 esac
1367 for ac_var in $ac_precious_vars; do
1368 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1369 eval ac_env_${ac_var}_value=\$${ac_var}
1370 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1371 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1372 done
1375 # Report the --help message.
1377 if test "$ac_init_help" = "long"; then
1378 # Omit some internal or obsolete options to make the list less imposing.
1379 # This message is too long to be a string in the A/UX 3.1 sh.
1380 cat <<_ACEOF
1381 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1383 Usage: $0 [OPTION]... [VAR=VALUE]...
1385 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1386 VAR=VALUE. See below for descriptions of some of the useful variables.
1388 Defaults for the options are specified in brackets.
1390 Configuration:
1391 -h, --help display this help and exit
1392 --help=short display options specific to this package
1393 --help=recursive display the short help of all the included packages
1394 -V, --version display version information and exit
1395 -q, --quiet, --silent do not print \`checking ...' messages
1396 --cache-file=FILE cache test results in FILE [disabled]
1397 -C, --config-cache alias for \`--cache-file=config.cache'
1398 -n, --no-create do not create output files
1399 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1401 Installation directories:
1402 --prefix=PREFIX install architecture-independent files in PREFIX
1403 [$ac_default_prefix]
1404 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1405 [PREFIX]
1407 By default, \`make install' will install all the files in
1408 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1409 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1410 for instance \`--prefix=\$HOME'.
1412 For better control, use the options below.
1414 Fine tuning of the installation directories:
1415 --bindir=DIR user executables [EPREFIX/bin]
1416 --sbindir=DIR system admin executables [EPREFIX/sbin]
1417 --libexecdir=DIR program executables [EPREFIX/libexec]
1418 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1419 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1420 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1421 --libdir=DIR object code libraries [EPREFIX/lib]
1422 --includedir=DIR C header files [PREFIX/include]
1423 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1424 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1425 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1426 --infodir=DIR info documentation [DATAROOTDIR/info]
1427 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1428 --mandir=DIR man documentation [DATAROOTDIR/man]
1429 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1430 --htmldir=DIR html documentation [DOCDIR]
1431 --dvidir=DIR dvi documentation [DOCDIR]
1432 --pdfdir=DIR pdf documentation [DOCDIR]
1433 --psdir=DIR ps documentation [DOCDIR]
1434 _ACEOF
1436 cat <<\_ACEOF
1438 Program names:
1439 --program-prefix=PREFIX prepend PREFIX to installed program names
1440 --program-suffix=SUFFIX append SUFFIX to installed program names
1441 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1443 System types:
1444 --build=BUILD configure for building on BUILD [guessed]
1445 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1446 --target=TARGET configure for building compilers for TARGET [HOST]
1447 _ACEOF
1450 if test -n "$ac_init_help"; then
1451 case $ac_init_help in
1452 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1453 esac
1454 cat <<\_ACEOF
1456 Optional Features:
1457 --disable-option-checking ignore unrecognized --enable/--with options
1458 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1459 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1460 --enable-version-specific-runtime-libs
1461 Specify that runtime libraries should be installed
1462 in a compiler-specific directory [default=no]
1463 --enable-generated-files-in-srcdir
1464 put copies of generated files in source dir intended
1465 for creating source tarballs for users without
1466 texinfo bison or flex. [default=no]
1467 --enable-silent-rules less verbose build output (undo: "make V=1")
1468 --disable-silent-rules verbose build output (undo: "make V=0")
1469 --enable-multilib build many library versions (default)
1470 --enable-dependency-tracking
1471 do not reject slow dependency extractors
1472 --disable-dependency-tracking
1473 speeds up one-time build
1474 --disable-werror disable building with -Werror
1475 --enable-shared[=PKGS] build shared libraries [default=yes]
1476 --enable-static[=PKGS] build static libraries [default=yes]
1477 --enable-fast-install[=PKGS]
1478 optimize for fast installation [default=yes]
1479 --disable-libtool-lock avoid locking (might break parallel builds)
1480 --enable-maintainer-mode
1481 enable make rules and dependencies not useful (and
1482 sometimes confusing) to the casual installer
1483 --enable-linux-futex use the Linux futex system call [default=default]
1484 --enable-tls Use thread-local storage [default=yes]
1485 --enable-symvers=STYLE enables symbol versioning of the shared library
1486 [default=yes]
1487 --enable-cet enable Intel CET in target libraries [default=auto]
1489 Optional Packages:
1490 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1491 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1492 --with-toolexeclibdir=DIR
1493 install libraries built with a cross compiler within
1495 --with-pic try to use only PIC/non-PIC objects [default=use
1496 both]
1497 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1498 --with-gcc-major-version-only
1499 use only GCC major number in filesystem paths
1501 Some influential environment variables:
1502 CC C compiler command
1503 CFLAGS C compiler flags
1504 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1505 nonstandard directory <lib dir>
1506 LIBS libraries to pass to the linker, e.g. -l<library>
1507 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1508 you have headers in a nonstandard directory <include dir>
1509 CPP C preprocessor
1510 FC Fortran compiler command
1511 FCFLAGS Fortran compiler flags
1513 Use these variables to override the choices made by `configure' or to help
1514 it to find libraries and programs with nonstandard names/locations.
1516 Report bugs to the package provider.
1517 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1518 General help using GNU software: <http://www.gnu.org/gethelp/>.
1519 _ACEOF
1520 ac_status=$?
1523 if test "$ac_init_help" = "recursive"; then
1524 # If there are subdirs, report their specific --help.
1525 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1526 test -d "$ac_dir" ||
1527 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1528 continue
1529 ac_builddir=.
1531 case "$ac_dir" in
1532 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1535 # A ".." for each directory in $ac_dir_suffix.
1536 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1537 case $ac_top_builddir_sub in
1538 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1539 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1540 esac ;;
1541 esac
1542 ac_abs_top_builddir=$ac_pwd
1543 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1544 # for backward compatibility:
1545 ac_top_builddir=$ac_top_build_prefix
1547 case $srcdir in
1548 .) # We are building in place.
1549 ac_srcdir=.
1550 ac_top_srcdir=$ac_top_builddir_sub
1551 ac_abs_top_srcdir=$ac_pwd ;;
1552 [\\/]* | ?:[\\/]* ) # Absolute name.
1553 ac_srcdir=$srcdir$ac_dir_suffix;
1554 ac_top_srcdir=$srcdir
1555 ac_abs_top_srcdir=$srcdir ;;
1556 *) # Relative name.
1557 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1558 ac_top_srcdir=$ac_top_build_prefix$srcdir
1559 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1560 esac
1561 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1563 cd "$ac_dir" || { ac_status=$?; continue; }
1564 # Check for guested configure.
1565 if test -f "$ac_srcdir/configure.gnu"; then
1566 echo &&
1567 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1568 elif test -f "$ac_srcdir/configure"; then
1569 echo &&
1570 $SHELL "$ac_srcdir/configure" --help=recursive
1571 else
1572 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1573 fi || ac_status=$?
1574 cd "$ac_pwd" || { ac_status=$?; break; }
1575 done
1578 test -n "$ac_init_help" && exit $ac_status
1579 if $ac_init_version; then
1580 cat <<\_ACEOF
1581 GNU Offloading and Multi Processing Runtime Library configure 1.0
1582 generated by GNU Autoconf 2.69
1584 Copyright (C) 2012 Free Software Foundation, Inc.
1585 This configure script is free software; the Free Software Foundation
1586 gives unlimited permission to copy, distribute and modify it.
1587 _ACEOF
1588 exit
1591 ## ------------------------ ##
1592 ## Autoconf initialization. ##
1593 ## ------------------------ ##
1595 # ac_fn_c_try_compile LINENO
1596 # --------------------------
1597 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1598 ac_fn_c_try_compile ()
1600 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1601 rm -f conftest.$ac_objext
1602 if { { ac_try="$ac_compile"
1603 case "(($ac_try" in
1604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1605 *) ac_try_echo=$ac_try;;
1606 esac
1607 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1608 $as_echo "$ac_try_echo"; } >&5
1609 (eval "$ac_compile") 2>conftest.err
1610 ac_status=$?
1611 if test -s conftest.err; then
1612 grep -v '^ *+' conftest.err >conftest.er1
1613 cat conftest.er1 >&5
1614 mv -f conftest.er1 conftest.err
1616 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1617 test $ac_status = 0; } && {
1618 test -z "$ac_c_werror_flag" ||
1619 test ! -s conftest.err
1620 } && test -s conftest.$ac_objext; then :
1621 ac_retval=0
1622 else
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.$ac_ext >&5
1626 ac_retval=1
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1631 } # ac_fn_c_try_compile
1633 # ac_fn_c_try_link LINENO
1634 # -----------------------
1635 # Try to link conftest.$ac_ext, and return whether this succeeded.
1636 ac_fn_c_try_link ()
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 rm -f conftest.$ac_objext conftest$ac_exeext
1640 if { { ac_try="$ac_link"
1641 case "(($ac_try" in
1642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1643 *) ac_try_echo=$ac_try;;
1644 esac
1645 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1646 $as_echo "$ac_try_echo"; } >&5
1647 (eval "$ac_link") 2>conftest.err
1648 ac_status=$?
1649 if test -s conftest.err; then
1650 grep -v '^ *+' conftest.err >conftest.er1
1651 cat conftest.er1 >&5
1652 mv -f conftest.er1 conftest.err
1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1655 test $ac_status = 0; } && {
1656 test -z "$ac_c_werror_flag" ||
1657 test ! -s conftest.err
1658 } && test -s conftest$ac_exeext && {
1659 test "$cross_compiling" = yes ||
1660 test -x conftest$ac_exeext
1661 }; then :
1662 ac_retval=0
1663 else
1664 $as_echo "$as_me: failed program was:" >&5
1665 sed 's/^/| /' conftest.$ac_ext >&5
1667 ac_retval=1
1669 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1670 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1671 # interfere with the next link command; also delete a directory that is
1672 # left behind by Apple's compiler. We do this before executing the actions.
1673 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1674 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_link
1679 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1680 # -------------------------------------------------------
1681 # Tests whether HEADER exists and can be compiled using the include files in
1682 # INCLUDES, setting the cache variable VAR accordingly.
1683 ac_fn_c_check_header_compile ()
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1687 $as_echo_n "checking for $2... " >&6; }
1688 if eval \${$3+:} false; then :
1689 $as_echo_n "(cached) " >&6
1690 else
1691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692 /* end confdefs.h. */
1694 #include <$2>
1695 _ACEOF
1696 if ac_fn_c_try_compile "$LINENO"; then :
1697 eval "$3=yes"
1698 else
1699 eval "$3=no"
1701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1703 eval ac_res=\$$3
1704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1705 $as_echo "$ac_res" >&6; }
1706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 } # ac_fn_c_check_header_compile
1710 # ac_fn_c_try_cpp LINENO
1711 # ----------------------
1712 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_cpp ()
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 if { { ac_try="$ac_cpp conftest.$ac_ext"
1717 case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720 esac
1721 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722 $as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } > conftest.i && {
1732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 }; then :
1735 ac_retval=0
1736 else
1737 $as_echo "$as_me: failed program was:" >&5
1738 sed 's/^/| /' conftest.$ac_ext >&5
1740 ac_retval=1
1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1743 as_fn_set_status $ac_retval
1745 } # ac_fn_c_try_cpp
1747 # ac_fn_c_try_run LINENO
1748 # ----------------------
1749 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1750 # that executables *can* be run.
1751 ac_fn_c_try_run ()
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_link"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>&5
1762 ac_status=$?
1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1764 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1765 { { case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_try") 2>&5
1772 ac_status=$?
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; }; }; then :
1775 ac_retval=0
1776 else
1777 $as_echo "$as_me: program exited with status $ac_status" >&5
1778 $as_echo "$as_me: failed program was:" >&5
1779 sed 's/^/| /' conftest.$ac_ext >&5
1781 ac_retval=$ac_status
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1787 } # ac_fn_c_try_run
1789 # ac_fn_c_check_func LINENO FUNC VAR
1790 # ----------------------------------
1791 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1792 ac_fn_c_check_func ()
1794 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796 $as_echo_n "checking for $2... " >&6; }
1797 if eval \${$3+:} false; then :
1798 $as_echo_n "(cached) " >&6
1799 else
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1802 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1803 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1804 #define $2 innocuous_$2
1806 /* System header to define __stub macros and hopefully few prototypes,
1807 which can conflict with char $2 (); below.
1808 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1809 <limits.h> exists even on freestanding compilers. */
1811 #ifdef __STDC__
1812 # include <limits.h>
1813 #else
1814 # include <assert.h>
1815 #endif
1817 #undef $2
1819 /* Override any GCC internal prototype to avoid an error.
1820 Use char because int might match the return type of a GCC
1821 builtin and then its argument prototype would still apply. */
1822 #ifdef __cplusplus
1823 extern "C"
1824 #endif
1825 char $2 ();
1826 /* The GNU C library defines this for functions which it implements
1827 to always fail with ENOSYS. Some functions are actually named
1828 something starting with __ and the normal name is an alias. */
1829 #if defined __stub_$2 || defined __stub___$2
1830 choke me
1831 #endif
1834 main ()
1836 return $2 ();
1838 return 0;
1840 _ACEOF
1841 if ac_fn_c_try_link "$LINENO"; then :
1842 eval "$3=yes"
1843 else
1844 eval "$3=no"
1846 rm -f core conftest.err conftest.$ac_objext \
1847 conftest$ac_exeext conftest.$ac_ext
1849 eval ac_res=\$$3
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1851 $as_echo "$ac_res" >&6; }
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1854 } # ac_fn_c_check_func
1856 # ac_fn_fc_try_compile LINENO
1857 # ---------------------------
1858 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1859 ac_fn_fc_try_compile ()
1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862 rm -f conftest.$ac_objext
1863 if { { ac_try="$ac_compile"
1864 case "(($ac_try" in
1865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1866 *) ac_try_echo=$ac_try;;
1867 esac
1868 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1869 $as_echo "$ac_try_echo"; } >&5
1870 (eval "$ac_compile") 2>conftest.err
1871 ac_status=$?
1872 if test -s conftest.err; then
1873 grep -v '^ *+' conftest.err >conftest.er1
1874 cat conftest.er1 >&5
1875 mv -f conftest.er1 conftest.err
1877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1878 test $ac_status = 0; } && {
1879 test -z "$ac_fc_werror_flag" ||
1880 test ! -s conftest.err
1881 } && test -s conftest.$ac_objext; then :
1882 ac_retval=0
1883 else
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1887 ac_retval=1
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890 as_fn_set_status $ac_retval
1892 } # ac_fn_fc_try_compile
1894 # ac_fn_fc_try_link LINENO
1895 # ------------------------
1896 # Try to link conftest.$ac_ext, and return whether this succeeded.
1897 ac_fn_fc_try_link ()
1899 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1900 rm -f conftest.$ac_objext conftest$ac_exeext
1901 if { { ac_try="$ac_link"
1902 case "(($ac_try" in
1903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1904 *) ac_try_echo=$ac_try;;
1905 esac
1906 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1907 $as_echo "$ac_try_echo"; } >&5
1908 (eval "$ac_link") 2>conftest.err
1909 ac_status=$?
1910 if test -s conftest.err; then
1911 grep -v '^ *+' conftest.err >conftest.er1
1912 cat conftest.er1 >&5
1913 mv -f conftest.er1 conftest.err
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; } && {
1917 test -z "$ac_fc_werror_flag" ||
1918 test ! -s conftest.err
1919 } && test -s conftest$ac_exeext && {
1920 test "$cross_compiling" = yes ||
1921 test -x conftest$ac_exeext
1922 }; then :
1923 ac_retval=0
1924 else
1925 $as_echo "$as_me: failed program was:" >&5
1926 sed 's/^/| /' conftest.$ac_ext >&5
1928 ac_retval=1
1930 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1931 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1932 # interfere with the next link command; also delete a directory that is
1933 # left behind by Apple's compiler. We do this before executing the actions.
1934 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1938 } # ac_fn_fc_try_link
1940 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1941 # -------------------------------------------------------
1942 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943 # the include files in INCLUDES and setting the cache variable VAR
1944 # accordingly.
1945 ac_fn_c_check_header_mongrel ()
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if eval \${$3+:} false; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950 $as_echo_n "checking for $2... " >&6; }
1951 if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 else
1958 # Is the header compilable?
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960 $as_echo_n "checking $2 usability... " >&6; }
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1964 #include <$2>
1965 _ACEOF
1966 if ac_fn_c_try_compile "$LINENO"; then :
1967 ac_header_compiler=yes
1968 else
1969 ac_header_compiler=no
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973 $as_echo "$ac_header_compiler" >&6; }
1975 # Is the header present?
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977 $as_echo_n "checking $2 presence... " >&6; }
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979 /* end confdefs.h. */
1980 #include <$2>
1981 _ACEOF
1982 if ac_fn_c_try_cpp "$LINENO"; then :
1983 ac_header_preproc=yes
1984 else
1985 ac_header_preproc=no
1987 rm -f conftest.err conftest.i conftest.$ac_ext
1988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989 $as_echo "$ac_header_preproc" >&6; }
1991 # So? What about this header?
1992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1993 yes:no: )
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999 no:yes:* )
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 esac
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013 $as_echo_n "checking for $2... " >&6; }
2014 if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016 else
2017 eval "$3=\$ac_header_compiler"
2019 eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021 $as_echo "$ac_res" >&6; }
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2025 } # ac_fn_c_check_header_mongrel
2027 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2028 # --------------------------------------------
2029 # Tries to find the compile-time value of EXPR in a program that includes
2030 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2031 # computed
2032 ac_fn_c_compute_int ()
2034 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2035 if test "$cross_compiling" = yes; then
2036 # Depending upon the size, compute the lo and hi bounds.
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2041 main ()
2043 static int test_array [1 - 2 * !(($2) >= 0)];
2044 test_array [0] = 0;
2045 return test_array [0];
2048 return 0;
2050 _ACEOF
2051 if ac_fn_c_try_compile "$LINENO"; then :
2052 ac_lo=0 ac_mid=0
2053 while :; do
2054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2055 /* end confdefs.h. */
2058 main ()
2060 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2061 test_array [0] = 0;
2062 return test_array [0];
2065 return 0;
2067 _ACEOF
2068 if ac_fn_c_try_compile "$LINENO"; then :
2069 ac_hi=$ac_mid; break
2070 else
2071 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2072 if test $ac_lo -le $ac_mid; then
2073 ac_lo= ac_hi=
2074 break
2076 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2079 done
2080 else
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2085 main ()
2087 static int test_array [1 - 2 * !(($2) < 0)];
2088 test_array [0] = 0;
2089 return test_array [0];
2092 return 0;
2094 _ACEOF
2095 if ac_fn_c_try_compile "$LINENO"; then :
2096 ac_hi=-1 ac_mid=-1
2097 while :; do
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099 /* end confdefs.h. */
2102 main ()
2104 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2105 test_array [0] = 0;
2106 return test_array [0];
2109 return 0;
2111 _ACEOF
2112 if ac_fn_c_try_compile "$LINENO"; then :
2113 ac_lo=$ac_mid; break
2114 else
2115 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2116 if test $ac_mid -le $ac_hi; then
2117 ac_lo= ac_hi=
2118 break
2120 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123 done
2124 else
2125 ac_lo= ac_hi=
2127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2130 # Binary search between lo and hi bounds.
2131 while test "x$ac_lo" != "x$ac_hi"; do
2132 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2137 main ()
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 test_array [0] = 0;
2141 return test_array [0];
2144 return 0;
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid
2149 else
2150 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2153 done
2154 case $ac_lo in #((
2155 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2156 '') ac_retval=1 ;;
2157 esac
2158 else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160 /* end confdefs.h. */
2162 static long int longval () { return $2; }
2163 static unsigned long int ulongval () { return $2; }
2164 #include <stdio.h>
2165 #include <stdlib.h>
2167 main ()
2170 FILE *f = fopen ("conftest.val", "w");
2171 if (! f)
2172 return 1;
2173 if (($2) < 0)
2175 long int i = longval ();
2176 if (i != ($2))
2177 return 1;
2178 fprintf (f, "%ld", i);
2180 else
2182 unsigned long int i = ulongval ();
2183 if (i != ($2))
2184 return 1;
2185 fprintf (f, "%lu", i);
2187 /* Do not output a trailing newline, as this causes \r\n confusion
2188 on some platforms. */
2189 return ferror (f) || fclose (f) != 0;
2192 return 0;
2194 _ACEOF
2195 if ac_fn_c_try_run "$LINENO"; then :
2196 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2197 else
2198 ac_retval=1
2200 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2201 conftest.$ac_objext conftest.beam conftest.$ac_ext
2202 rm -f conftest.val
2205 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2206 as_fn_set_status $ac_retval
2208 } # ac_fn_c_compute_int
2210 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2211 # -------------------------------------------
2212 # Tests whether TYPE exists after having included INCLUDES, setting cache
2213 # variable VAR accordingly.
2214 ac_fn_c_check_type ()
2216 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2218 $as_echo_n "checking for $2... " >&6; }
2219 if eval \${$3+:} false; then :
2220 $as_echo_n "(cached) " >&6
2221 else
2222 eval "$3=no"
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2227 main ()
2229 if (sizeof ($2))
2230 return 0;
2232 return 0;
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2237 /* end confdefs.h. */
2240 main ()
2242 if (sizeof (($2)))
2243 return 0;
2245 return 0;
2247 _ACEOF
2248 if ac_fn_c_try_compile "$LINENO"; then :
2250 else
2251 eval "$3=yes"
2253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2257 eval ac_res=\$$3
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2259 $as_echo "$ac_res" >&6; }
2260 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2262 } # ac_fn_c_check_type
2263 cat >config.log <<_ACEOF
2264 This file contains any messages produced by compilers while
2265 running configure, to aid debugging if configure makes a mistake.
2267 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2268 generated by GNU Autoconf 2.69. Invocation command line was
2270 $ $0 $@
2272 _ACEOF
2273 exec 5>>config.log
2275 cat <<_ASUNAME
2276 ## --------- ##
2277 ## Platform. ##
2278 ## --------- ##
2280 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2281 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2282 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2283 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2284 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2286 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2287 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2289 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2290 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2291 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2292 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2293 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2294 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2295 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2297 _ASUNAME
2299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2300 for as_dir in $PATH
2302 IFS=$as_save_IFS
2303 test -z "$as_dir" && as_dir=.
2304 $as_echo "PATH: $as_dir"
2305 done
2306 IFS=$as_save_IFS
2308 } >&5
2310 cat >&5 <<_ACEOF
2313 ## ----------- ##
2314 ## Core tests. ##
2315 ## ----------- ##
2317 _ACEOF
2320 # Keep a trace of the command line.
2321 # Strip out --no-create and --no-recursion so they do not pile up.
2322 # Strip out --silent because we don't want to record it for future runs.
2323 # Also quote any args containing shell meta-characters.
2324 # Make two passes to allow for proper duplicate-argument suppression.
2325 ac_configure_args=
2326 ac_configure_args0=
2327 ac_configure_args1=
2328 ac_must_keep_next=false
2329 for ac_pass in 1 2
2331 for ac_arg
2333 case $ac_arg in
2334 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2335 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2336 | -silent | --silent | --silen | --sile | --sil)
2337 continue ;;
2338 *\'*)
2339 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2340 esac
2341 case $ac_pass in
2342 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2344 as_fn_append ac_configure_args1 " '$ac_arg'"
2345 if test $ac_must_keep_next = true; then
2346 ac_must_keep_next=false # Got value, back to normal.
2347 else
2348 case $ac_arg in
2349 *=* | --config-cache | -C | -disable-* | --disable-* \
2350 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2351 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2352 | -with-* | --with-* | -without-* | --without-* | --x)
2353 case "$ac_configure_args0 " in
2354 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2355 esac
2357 -* ) ac_must_keep_next=true ;;
2358 esac
2360 as_fn_append ac_configure_args " '$ac_arg'"
2362 esac
2363 done
2364 done
2365 { ac_configure_args0=; unset ac_configure_args0;}
2366 { ac_configure_args1=; unset ac_configure_args1;}
2368 # When interrupted or exit'd, cleanup temporary files, and complete
2369 # config.log. We remove comments because anyway the quotes in there
2370 # would cause problems or look ugly.
2371 # WARNING: Use '\'' to represent an apostrophe within the trap.
2372 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2373 trap 'exit_status=$?
2374 # Save into config.log some information that might help in debugging.
2376 echo
2378 $as_echo "## ---------------- ##
2379 ## Cache variables. ##
2380 ## ---------------- ##"
2381 echo
2382 # The following way of writing the cache mishandles newlines in values,
2384 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2385 eval ac_val=\$$ac_var
2386 case $ac_val in #(
2387 *${as_nl}*)
2388 case $ac_var in #(
2389 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2390 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2391 esac
2392 case $ac_var in #(
2393 _ | IFS | as_nl) ;; #(
2394 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2395 *) { eval $ac_var=; unset $ac_var;} ;;
2396 esac ;;
2397 esac
2398 done
2399 (set) 2>&1 |
2400 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2401 *${as_nl}ac_space=\ *)
2402 sed -n \
2403 "s/'\''/'\''\\\\'\'''\''/g;
2404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2405 ;; #(
2407 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2409 esac |
2410 sort
2412 echo
2414 $as_echo "## ----------------- ##
2415 ## Output variables. ##
2416 ## ----------------- ##"
2417 echo
2418 for ac_var in $ac_subst_vars
2420 eval ac_val=\$$ac_var
2421 case $ac_val in
2422 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423 esac
2424 $as_echo "$ac_var='\''$ac_val'\''"
2425 done | sort
2426 echo
2428 if test -n "$ac_subst_files"; then
2429 $as_echo "## ------------------- ##
2430 ## File substitutions. ##
2431 ## ------------------- ##"
2432 echo
2433 for ac_var in $ac_subst_files
2435 eval ac_val=\$$ac_var
2436 case $ac_val in
2437 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2438 esac
2439 $as_echo "$ac_var='\''$ac_val'\''"
2440 done | sort
2441 echo
2444 if test -s confdefs.h; then
2445 $as_echo "## ----------- ##
2446 ## confdefs.h. ##
2447 ## ----------- ##"
2448 echo
2449 cat confdefs.h
2450 echo
2452 test "$ac_signal" != 0 &&
2453 $as_echo "$as_me: caught signal $ac_signal"
2454 $as_echo "$as_me: exit $exit_status"
2455 } >&5
2456 rm -f core *.core core.conftest.* &&
2457 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 exit $exit_status
2460 for ac_signal in 1 2 13 15; do
2461 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462 done
2463 ac_signal=0
2465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2466 rm -f -r conftest* confdefs.h
2468 $as_echo "/* confdefs.h */" > confdefs.h
2470 # Predefined preprocessor variables.
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 _ACEOF
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_URL "$PACKAGE_URL"
2494 _ACEOF
2497 # Let the site file select an alternate cache file if it wants to.
2498 # Prefer an explicitly selected file to automatically selected ones.
2499 ac_site_file1=NONE
2500 ac_site_file2=NONE
2501 if test -n "$CONFIG_SITE"; then
2502 # We do not want a PATH search for config.site.
2503 case $CONFIG_SITE in #((
2504 -*) ac_site_file1=./$CONFIG_SITE;;
2505 */*) ac_site_file1=$CONFIG_SITE;;
2506 *) ac_site_file1=./$CONFIG_SITE;;
2507 esac
2508 elif test "x$prefix" != xNONE; then
2509 ac_site_file1=$prefix/share/config.site
2510 ac_site_file2=$prefix/etc/config.site
2511 else
2512 ac_site_file1=$ac_default_prefix/share/config.site
2513 ac_site_file2=$ac_default_prefix/etc/config.site
2515 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2517 test "x$ac_site_file" = xNONE && continue
2518 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2520 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2521 sed 's/^/| /' "$ac_site_file" >&5
2522 . "$ac_site_file" \
2523 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2525 as_fn_error $? "failed to load site script $ac_site_file
2526 See \`config.log' for more details" "$LINENO" 5; }
2528 done
2530 if test -r "$cache_file"; then
2531 # Some versions of bash will fail to source /dev/null (special files
2532 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2533 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2535 $as_echo "$as_me: loading cache $cache_file" >&6;}
2536 case $cache_file in
2537 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2538 *) . "./$cache_file";;
2539 esac
2541 else
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2543 $as_echo "$as_me: creating cache $cache_file" >&6;}
2544 >$cache_file
2547 as_fn_append ac_header_list " unistd.h"
2548 as_fn_append ac_func_list " secure_getenv"
2549 as_fn_append ac_func_list " __secure_getenv"
2550 as_fn_append ac_func_list " getuid"
2551 as_fn_append ac_func_list " geteuid"
2552 as_fn_append ac_func_list " getgid"
2553 as_fn_append ac_func_list " getegid"
2554 # Check that the precious variables saved in the cache have kept the same
2555 # value.
2556 ac_cache_corrupted=false
2557 for ac_var in $ac_precious_vars; do
2558 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2559 eval ac_new_set=\$ac_env_${ac_var}_set
2560 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2561 eval ac_new_val=\$ac_env_${ac_var}_value
2562 case $ac_old_set,$ac_new_set in
2563 set,)
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2565 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2566 ac_cache_corrupted=: ;;
2567 ,set)
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2569 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2570 ac_cache_corrupted=: ;;
2571 ,);;
2573 if test "x$ac_old_val" != "x$ac_new_val"; then
2574 # differences in whitespace do not lead to failure.
2575 ac_old_val_w=`echo x $ac_old_val`
2576 ac_new_val_w=`echo x $ac_new_val`
2577 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2579 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2580 ac_cache_corrupted=:
2581 else
2582 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2583 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2584 eval $ac_var=\$ac_old_val
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2587 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2589 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2590 fi;;
2591 esac
2592 # Pass precious variables to config.status.
2593 if test "$ac_new_set" = set; then
2594 case $ac_new_val in
2595 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2596 *) ac_arg=$ac_var=$ac_new_val ;;
2597 esac
2598 case " $ac_configure_args " in
2599 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2600 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2601 esac
2603 done
2604 if $ac_cache_corrupted; then
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2608 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2609 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2611 ## -------------------- ##
2612 ## Main body of script. ##
2613 ## -------------------- ##
2615 ac_ext=c
2616 ac_cpp='$CPP $CPPFLAGS'
2617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625 ac_config_headers="$ac_config_headers config.h"
2628 # -------
2629 # Options
2630 # -------
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2633 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2634 # Check whether --enable-version-specific-runtime-libs was given.
2635 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2636 enableval=$enable_version_specific_runtime_libs;
2637 case "$enableval" in
2638 yes|no) ;;
2639 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2640 esac
2642 else
2643 enable_version_specific_runtime_libs=no
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2648 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2650 # We would like our source tree to be readonly. However when releases or
2651 # pre-releases are generated, the flex/bison generated files as well as the
2652 # various formats of manuals need to be included along with the rest of the
2653 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2654 # just that.
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2656 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2657 # Check whether --enable-generated-files-in-srcdir was given.
2658 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2659 enableval=$enable_generated_files_in_srcdir;
2660 case "$enableval" in
2661 yes|no) ;;
2662 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2663 esac
2665 else
2666 enable_generated_files_in_srcdir=no
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2671 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2672 if test "$enable_generated_files_in_srcdir" = yes; then
2673 GENINSRC_TRUE=
2674 GENINSRC_FALSE='#'
2675 else
2676 GENINSRC_TRUE='#'
2677 GENINSRC_FALSE=
2682 # -------
2683 # -------
2685 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2687 # You will slowly go insane if you do not grok the following fact: when
2688 # building this library, the top-level /target/ becomes the library's /host/.
2690 # configure then causes --target to default to --host, exactly like any
2691 # other package using autoconf. Therefore, 'target' and 'host' will
2692 # always be the same. This makes sense both for native and cross compilers
2693 # just think about it for a little while. :-)
2695 # Also, if this library is being configured as part of a cross compiler, the
2696 # top-level configure script will pass the "real" host as $with_cross_host.
2698 # Do not delete or change the following two lines. For why, see
2699 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2700 ac_aux_dir=
2701 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2702 if test -f "$ac_dir/install-sh"; then
2703 ac_aux_dir=$ac_dir
2704 ac_install_sh="$ac_aux_dir/install-sh -c"
2705 break
2706 elif test -f "$ac_dir/install.sh"; then
2707 ac_aux_dir=$ac_dir
2708 ac_install_sh="$ac_aux_dir/install.sh -c"
2709 break
2710 elif test -f "$ac_dir/shtool"; then
2711 ac_aux_dir=$ac_dir
2712 ac_install_sh="$ac_aux_dir/shtool install -c"
2713 break
2715 done
2716 if test -z "$ac_aux_dir"; then
2717 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2720 # These three variables are undocumented and unsupported,
2721 # and are intended to be withdrawn in a future Autoconf release.
2722 # They can cause serious problems if a builder's source tree is in a directory
2723 # whose full name contains unusual characters.
2724 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2725 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2726 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2729 # Make sure we can run config.sub.
2730 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2731 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2734 $as_echo_n "checking build system type... " >&6; }
2735 if ${ac_cv_build+:} false; then :
2736 $as_echo_n "(cached) " >&6
2737 else
2738 ac_build_alias=$build_alias
2739 test "x$ac_build_alias" = x &&
2740 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2741 test "x$ac_build_alias" = x &&
2742 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2743 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2744 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2748 $as_echo "$ac_cv_build" >&6; }
2749 case $ac_cv_build in
2750 *-*-*) ;;
2751 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2752 esac
2753 build=$ac_cv_build
2754 ac_save_IFS=$IFS; IFS='-'
2755 set x $ac_cv_build
2756 shift
2757 build_cpu=$1
2758 build_vendor=$2
2759 shift; shift
2760 # Remember, the first character of IFS is used to create $*,
2761 # except with old shells:
2762 build_os=$*
2763 IFS=$ac_save_IFS
2764 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2768 $as_echo_n "checking host system type... " >&6; }
2769 if ${ac_cv_host+:} false; then :
2770 $as_echo_n "(cached) " >&6
2771 else
2772 if test "x$host_alias" = x; then
2773 ac_cv_host=$ac_cv_build
2774 else
2775 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2776 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2781 $as_echo "$ac_cv_host" >&6; }
2782 case $ac_cv_host in
2783 *-*-*) ;;
2784 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2785 esac
2786 host=$ac_cv_host
2787 ac_save_IFS=$IFS; IFS='-'
2788 set x $ac_cv_host
2789 shift
2790 host_cpu=$1
2791 host_vendor=$2
2792 shift; shift
2793 # Remember, the first character of IFS is used to create $*,
2794 # except with old shells:
2795 host_os=$*
2796 IFS=$ac_save_IFS
2797 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2801 $as_echo_n "checking target system type... " >&6; }
2802 if ${ac_cv_target+:} false; then :
2803 $as_echo_n "(cached) " >&6
2804 else
2805 if test "x$target_alias" = x; then
2806 ac_cv_target=$ac_cv_host
2807 else
2808 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2814 $as_echo "$ac_cv_target" >&6; }
2815 case $ac_cv_target in
2816 *-*-*) ;;
2817 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2818 esac
2819 target=$ac_cv_target
2820 ac_save_IFS=$IFS; IFS='-'
2821 set x $ac_cv_target
2822 shift
2823 target_cpu=$1
2824 target_vendor=$2
2825 shift; shift
2826 # Remember, the first character of IFS is used to create $*,
2827 # except with old shells:
2828 target_os=$*
2829 IFS=$ac_save_IFS
2830 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2833 # The aliases save the names the user supplied, while $host etc.
2834 # will get canonicalized.
2835 test -n "$target_alias" &&
2836 test "$program_prefix$program_suffix$program_transform_name" = \
2837 NONENONEs,x,x, &&
2838 program_prefix=${target_alias}-
2840 target_alias=${target_alias-$host_alias}
2842 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2843 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2844 # 1.9.0: minimum required version
2845 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2846 # of other PACKAGE_* variables will, however, and there's nothing
2847 # we can do about that; they come from AC_INIT).
2848 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2849 # file in the top srcdir, etc, etc), so stop complaining.
2850 # no-dist: we don't want 'dist' and related rules.
2851 # -Wall: turns on all automake warnings...
2852 # -Wno-portability: ...except this one, since GNU make is required.
2853 # -Wno-override: ... and this one, since we do want this in testsuite.
2854 am__api_version='1.15'
2856 # Find a good install program. We prefer a C program (faster),
2857 # so one script is as good as another. But avoid the broken or
2858 # incompatible versions:
2859 # SysV /etc/install, /usr/sbin/install
2860 # SunOS /usr/etc/install
2861 # IRIX /sbin/install
2862 # AIX /bin/install
2863 # AmigaOS /C/install, which installs bootblocks on floppy discs
2864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2867 # OS/2's system install, which has a completely different semantic
2868 # ./install, which can be erroneously created by make from ./install.sh.
2869 # Reject install programs that cannot install multiple files.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2871 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2872 if test -z "$INSTALL"; then
2873 if ${ac_cv_path_install+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 # Account for people who put trailing slashes in PATH elements.
2882 case $as_dir/ in #((
2883 ./ | .// | /[cC]/* | \
2884 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2885 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2886 /usr/ucb/* ) ;;
2888 # OSF1 and SCO ODT 3.0 have their own names for install.
2889 # Don't use installbsd from OSF since it installs stuff as root
2890 # by default.
2891 for ac_prog in ginstall scoinst install; do
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2894 if test $ac_prog = install &&
2895 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2896 # AIX install. It has an incompatible calling convention.
2898 elif test $ac_prog = install &&
2899 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2900 # program-specific install script used by HP pwplus--don't use.
2902 else
2903 rm -rf conftest.one conftest.two conftest.dir
2904 echo one > conftest.one
2905 echo two > conftest.two
2906 mkdir conftest.dir
2907 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2908 test -s conftest.one && test -s conftest.two &&
2909 test -s conftest.dir/conftest.one &&
2910 test -s conftest.dir/conftest.two
2911 then
2912 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2913 break 3
2917 done
2918 done
2920 esac
2922 done
2923 IFS=$as_save_IFS
2925 rm -rf conftest.one conftest.two conftest.dir
2928 if test "${ac_cv_path_install+set}" = set; then
2929 INSTALL=$ac_cv_path_install
2930 else
2931 # As a last resort, use the slow shell script. Don't cache a
2932 # value for INSTALL within a source directory, because that will
2933 # break other packages using the cache if that directory is
2934 # removed, or if the value is a relative name.
2935 INSTALL=$ac_install_sh
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2939 $as_echo "$INSTALL" >&6; }
2941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2942 # It thinks the first close brace ends the variable substitution.
2943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2950 $as_echo_n "checking whether build environment is sane... " >&6; }
2951 # Reject unsafe characters in $srcdir or the absolute working directory
2952 # name. Accept space and tab only in the latter.
2953 am_lf='
2955 case `pwd` in
2956 *[\\\"\#\$\&\'\`$am_lf]*)
2957 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2958 esac
2959 case $srcdir in
2960 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2961 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2962 esac
2964 # Do 'set' in a subshell so we don't clobber the current shell's
2965 # arguments. Must try -L first in case configure is actually a
2966 # symlink; some systems play weird games with the mod time of symlinks
2967 # (eg FreeBSD returns the mod time of the symlink's containing
2968 # directory).
2969 if (
2970 am_has_slept=no
2971 for am_try in 1 2; do
2972 echo "timestamp, slept: $am_has_slept" > conftest.file
2973 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2974 if test "$*" = "X"; then
2975 # -L didn't work.
2976 set X `ls -t "$srcdir/configure" conftest.file`
2978 if test "$*" != "X $srcdir/configure conftest.file" \
2979 && test "$*" != "X conftest.file $srcdir/configure"; then
2981 # If neither matched, then we have a broken ls. This can happen
2982 # if, for instance, CONFIG_SHELL is bash and it inherits a
2983 # broken ls alias from the environment. This has actually
2984 # happened. Such a system could not be considered "sane".
2985 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2986 alias in your environment" "$LINENO" 5
2988 if test "$2" = conftest.file || test $am_try -eq 2; then
2989 break
2991 # Just in case.
2992 sleep 1
2993 am_has_slept=yes
2994 done
2995 test "$2" = conftest.file
2997 then
2998 # Ok.
3000 else
3001 as_fn_error $? "newly created file is older than distributed files!
3002 Check your system clock" "$LINENO" 5
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3005 $as_echo "yes" >&6; }
3006 # If we didn't sleep, we still need to ensure time stamps of config.status and
3007 # generated files are strictly newer.
3008 am_sleep_pid=
3009 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3010 ( sleep 1 ) &
3011 am_sleep_pid=$!
3014 rm -f conftest.file
3016 test "$program_prefix" != NONE &&
3017 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3018 # Use a double $ so make ignores it.
3019 test "$program_suffix" != NONE &&
3020 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3021 # Double any \ or $.
3022 # By default was `s,x,x', remove it if useless.
3023 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3024 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3026 # Expand $ac_aux_dir to an absolute path.
3027 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3029 if test x"${MISSING+set}" != xset; then
3030 case $am_aux_dir in
3031 *\ * | *\ *)
3032 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3034 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3035 esac
3037 # Use eval to expand $SHELL
3038 if eval "$MISSING --is-lightweight"; then
3039 am_missing_run="$MISSING "
3040 else
3041 am_missing_run=
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3043 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3046 if test x"${install_sh+set}" != xset; then
3047 case $am_aux_dir in
3048 *\ * | *\ *)
3049 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3051 install_sh="\${SHELL} $am_aux_dir/install-sh"
3052 esac
3055 # Installed binaries are usually stripped using 'strip' when the user
3056 # run "make install-strip". However 'strip' might not be the right
3057 # tool to use in cross-compilation environments, therefore Automake
3058 # will honor the 'STRIP' environment variable to overrule this program.
3059 if test "$cross_compiling" != no; then
3060 if test -n "$ac_tool_prefix"; then
3061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3062 set dummy ${ac_tool_prefix}strip; ac_word=$2
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3064 $as_echo_n "checking for $ac_word... " >&6; }
3065 if ${ac_cv_prog_STRIP+:} false; then :
3066 $as_echo_n "(cached) " >&6
3067 else
3068 if test -n "$STRIP"; then
3069 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3070 else
3071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3072 for as_dir in $PATH
3074 IFS=$as_save_IFS
3075 test -z "$as_dir" && as_dir=.
3076 for ac_exec_ext in '' $ac_executable_extensions; do
3077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3078 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 break 2
3082 done
3083 done
3084 IFS=$as_save_IFS
3088 STRIP=$ac_cv_prog_STRIP
3089 if test -n "$STRIP"; then
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3091 $as_echo "$STRIP" >&6; }
3092 else
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3094 $as_echo "no" >&6; }
3099 if test -z "$ac_cv_prog_STRIP"; then
3100 ac_ct_STRIP=$STRIP
3101 # Extract the first word of "strip", so it can be a program name with args.
3102 set dummy strip; ac_word=$2
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3104 $as_echo_n "checking for $ac_word... " >&6; }
3105 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3106 $as_echo_n "(cached) " >&6
3107 else
3108 if test -n "$ac_ct_STRIP"; then
3109 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3110 else
3111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112 for as_dir in $PATH
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
3116 for ac_exec_ext in '' $ac_executable_extensions; do
3117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3118 ac_cv_prog_ac_ct_STRIP="strip"
3119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3120 break 2
3122 done
3123 done
3124 IFS=$as_save_IFS
3128 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3129 if test -n "$ac_ct_STRIP"; then
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3131 $as_echo "$ac_ct_STRIP" >&6; }
3132 else
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3134 $as_echo "no" >&6; }
3137 if test "x$ac_ct_STRIP" = x; then
3138 STRIP=":"
3139 else
3140 case $cross_compiling:$ac_tool_warned in
3141 yes:)
3142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3144 ac_tool_warned=yes ;;
3145 esac
3146 STRIP=$ac_ct_STRIP
3148 else
3149 STRIP="$ac_cv_prog_STRIP"
3153 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3156 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3157 if test -z "$MKDIR_P"; then
3158 if ${ac_cv_path_mkdir+:} false; then :
3159 $as_echo_n "(cached) " >&6
3160 else
3161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3162 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3164 IFS=$as_save_IFS
3165 test -z "$as_dir" && as_dir=.
3166 for ac_prog in mkdir gmkdir; do
3167 for ac_exec_ext in '' $ac_executable_extensions; do
3168 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3169 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3170 'mkdir (GNU coreutils) '* | \
3171 'mkdir (coreutils) '* | \
3172 'mkdir (fileutils) '4.1*)
3173 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3174 break 3;;
3175 esac
3176 done
3177 done
3178 done
3179 IFS=$as_save_IFS
3183 test -d ./--version && rmdir ./--version
3184 if test "${ac_cv_path_mkdir+set}" = set; then
3185 MKDIR_P="$ac_cv_path_mkdir -p"
3186 else
3187 # As a last resort, use the slow shell script. Don't cache a
3188 # value for MKDIR_P within a source directory, because that will
3189 # break other packages using the cache if that directory is
3190 # removed, or if the value is a relative name.
3191 MKDIR_P="$ac_install_sh -d"
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3195 $as_echo "$MKDIR_P" >&6; }
3197 for ac_prog in gawk mawk nawk awk
3199 # Extract the first word of "$ac_prog", so it can be a program name with args.
3200 set dummy $ac_prog; ac_word=$2
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3202 $as_echo_n "checking for $ac_word... " >&6; }
3203 if ${ac_cv_prog_AWK+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205 else
3206 if test -n "$AWK"; then
3207 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3208 else
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3212 IFS=$as_save_IFS
3213 test -z "$as_dir" && as_dir=.
3214 for ac_exec_ext in '' $ac_executable_extensions; do
3215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3216 ac_cv_prog_AWK="$ac_prog"
3217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3218 break 2
3220 done
3221 done
3222 IFS=$as_save_IFS
3226 AWK=$ac_cv_prog_AWK
3227 if test -n "$AWK"; then
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3229 $as_echo "$AWK" >&6; }
3230 else
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3232 $as_echo "no" >&6; }
3236 test -n "$AWK" && break
3237 done
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3240 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3241 set x ${MAKE-make}
3242 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3243 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3244 $as_echo_n "(cached) " >&6
3245 else
3246 cat >conftest.make <<\_ACEOF
3247 SHELL = /bin/sh
3248 all:
3249 @echo '@@@%%%=$(MAKE)=@@@%%%'
3250 _ACEOF
3251 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3252 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3253 *@@@%%%=?*=@@@%%%*)
3254 eval ac_cv_prog_make_${ac_make}_set=yes;;
3256 eval ac_cv_prog_make_${ac_make}_set=no;;
3257 esac
3258 rm -f conftest.make
3260 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262 $as_echo "yes" >&6; }
3263 SET_MAKE=
3264 else
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3266 $as_echo "no" >&6; }
3267 SET_MAKE="MAKE=${MAKE-make}"
3270 rm -rf .tst 2>/dev/null
3271 mkdir .tst 2>/dev/null
3272 if test -d .tst; then
3273 am__leading_dot=.
3274 else
3275 am__leading_dot=_
3277 rmdir .tst 2>/dev/null
3279 # Check whether --enable-silent-rules was given.
3280 if test "${enable_silent_rules+set}" = set; then :
3281 enableval=$enable_silent_rules;
3284 case $enable_silent_rules in # (((
3285 yes) AM_DEFAULT_VERBOSITY=0;;
3286 no) AM_DEFAULT_VERBOSITY=1;;
3287 *) AM_DEFAULT_VERBOSITY=1;;
3288 esac
3289 am_make=${MAKE-make}
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3291 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3292 if ${am_cv_make_support_nested_variables+:} false; then :
3293 $as_echo_n "(cached) " >&6
3294 else
3295 if $as_echo 'TRUE=$(BAR$(V))
3296 BAR0=false
3297 BAR1=true
3299 am__doit:
3300 @$(TRUE)
3301 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3302 am_cv_make_support_nested_variables=yes
3303 else
3304 am_cv_make_support_nested_variables=no
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3308 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3309 if test $am_cv_make_support_nested_variables = yes; then
3310 AM_V='$(V)'
3311 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3312 else
3313 AM_V=$AM_DEFAULT_VERBOSITY
3314 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3316 AM_BACKSLASH='\'
3318 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3319 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3320 # is not polluted with repeated "-I."
3321 am__isrc=' -I$(srcdir)'
3322 # test to see if srcdir already configured
3323 if test -f $srcdir/config.status; then
3324 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3328 # test whether we have cygpath
3329 if test -z "$CYGPATH_W"; then
3330 if (cygpath --version) >/dev/null 2>/dev/null; then
3331 CYGPATH_W='cygpath -w'
3332 else
3333 CYGPATH_W=echo
3338 # Define the identity of the package.
3339 PACKAGE='libgomp'
3340 VERSION='1.0'
3343 cat >>confdefs.h <<_ACEOF
3344 #define PACKAGE "$PACKAGE"
3345 _ACEOF
3348 cat >>confdefs.h <<_ACEOF
3349 #define VERSION "$VERSION"
3350 _ACEOF
3352 # Some tools Automake needs.
3354 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3357 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3360 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3363 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3366 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3368 # For better backward compatibility. To be removed once Automake 1.9.x
3369 # dies out for good. For more background, see:
3370 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3371 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3372 mkdir_p='$(MKDIR_P)'
3374 # We need awk for the "check" target (and possibly the TAP driver). The
3375 # system "awk" is bad on some platforms.
3376 # Always define AMTAR for backward compatibility. Yes, it's still used
3377 # in the wild :-( We should find a proper way to deprecate it ...
3378 AMTAR='$${TAR-tar}'
3381 # We'll loop over all known methods to create a tar archive until one works.
3382 _am_tools='gnutar pax cpio none'
3384 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3391 # POSIX will say in a future version that running "rm -f" with no argument
3392 # is OK; and we want to be able to make that assumption in our Makefile
3393 # recipes. So use an aggressive probe to check that the usage we want is
3394 # actually supported "in the wild" to an acceptable degree.
3395 # See automake bug#10828.
3396 # To make any issue more visible, cause the running configure to be aborted
3397 # by default if the 'rm' program in use doesn't match our expectations; the
3398 # user can still override this though.
3399 if rm -f && rm -fr && rm -rf; then : OK; else
3400 cat >&2 <<'END'
3401 Oops!
3403 Your 'rm' program seems unable to run without file operands specified
3404 on the command line, even when the '-f' option is present. This is contrary
3405 to the behaviour of most rm programs out there, and not conforming with
3406 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3408 Please tell bug-automake@gnu.org about your system, including the value
3409 of your $PATH and any error possibly output before this message. This
3410 can help us improve future automake versions.
3413 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3414 echo 'Configuration will proceed anyway, since you have set the' >&2
3415 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3416 echo >&2
3417 else
3418 cat >&2 <<'END'
3419 Aborting the configuration process, to ensure you take notice of the issue.
3421 You can download and install GNU coreutils to get an 'rm' implementation
3422 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3424 If you want to complete the configuration process using your problematic
3425 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3426 to "yes", and re-run configure.
3429 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3433 # Default to --enable-multilib
3434 # Check whether --enable-multilib was given.
3435 if test "${enable_multilib+set}" = set; then :
3436 enableval=$enable_multilib; case "$enableval" in
3437 yes) multilib=yes ;;
3438 no) multilib=no ;;
3439 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3440 esac
3441 else
3442 multilib=yes
3446 # We may get other options which we leave undocumented:
3447 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3448 # See config-ml.in if you want the gory details.
3450 if test "$srcdir" = "."; then
3451 if test "$with_target_subdir" != "."; then
3452 multi_basedir="$srcdir/$with_multisrctop../.."
3453 else
3454 multi_basedir="$srcdir/$with_multisrctop.."
3456 else
3457 multi_basedir="$srcdir/.."
3461 # Even if the default multilib is not a cross compilation,
3462 # it may be that some of the other multilibs are.
3463 if test $cross_compiling = no && test $multilib = yes \
3464 && test "x${with_multisubdir}" != x ; then
3465 cross_compiling=maybe
3468 ac_config_commands="$ac_config_commands default-1"
3472 # Check whether --with-toolexeclibdir was given.
3473 if test "${with_toolexeclibdir+set}" = set; then :
3474 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3478 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3480 esac
3481 else
3482 with_toolexeclibdir=no
3487 # Calculate toolexeclibdir
3488 # Also toolexecdir, though it's only used in toolexeclibdir
3489 case ${enable_version_specific_runtime_libs} in
3490 yes)
3491 # Need the gcc compiler version to know where to install libraries
3492 # and header files if --enable-version-specific-runtime-libs option
3493 # is selected.
3494 toolexecdir='$(libdir)/gcc/$(target_alias)'
3495 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3498 if test -n "$with_cross_host" &&
3499 test x"$with_cross_host" != x"no"; then
3500 # Install a library built with a cross compiler in tooldir, not libdir.
3501 toolexecdir='$(exec_prefix)/$(target_alias)'
3502 case ${with_toolexeclibdir} in
3504 toolexeclibdir='$(toolexecdir)/lib'
3507 toolexeclibdir=${with_toolexeclibdir}
3509 esac
3510 else
3511 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3512 toolexeclibdir='$(libdir)'
3514 multi_os_directory=`$CC -print-multi-os-directory`
3515 case $multi_os_directory in
3516 .) ;; # Avoid trailing /.
3517 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3518 esac
3520 esac
3524 # Check the compiler.
3525 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3526 # We must force CC to /not/ be precious variables; otherwise
3527 # the wrong, non-multilib-adjusted value will be used in multilibs.
3528 # As a side effect, we have to subst CFLAGS ourselves.
3532 ac_ext=c
3533 ac_cpp='$CPP $CPPFLAGS'
3534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3537 if test -n "$ac_tool_prefix"; then
3538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3541 $as_echo_n "checking for $ac_word... " >&6; }
3542 if ${ac_cv_prog_CC+:} false; then :
3543 $as_echo_n "(cached) " >&6
3544 else
3545 if test -n "$CC"; then
3546 ac_cv_prog_CC="$CC" # Let the user override the test.
3547 else
3548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549 for as_dir in $PATH
3551 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=.
3553 for ac_exec_ext in '' $ac_executable_extensions; do
3554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3557 break 2
3559 done
3560 done
3561 IFS=$as_save_IFS
3565 CC=$ac_cv_prog_CC
3566 if test -n "$CC"; then
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568 $as_echo "$CC" >&6; }
3569 else
3570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571 $as_echo "no" >&6; }
3576 if test -z "$ac_cv_prog_CC"; then
3577 ac_ct_CC=$CC
3578 # Extract the first word of "gcc", so it can be a program name with args.
3579 set dummy gcc; ac_word=$2
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581 $as_echo_n "checking for $ac_word... " >&6; }
3582 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3583 $as_echo_n "(cached) " >&6
3584 else
3585 if test -n "$ac_ct_CC"; then
3586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3587 else
3588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3589 for as_dir in $PATH
3591 IFS=$as_save_IFS
3592 test -z "$as_dir" && as_dir=.
3593 for ac_exec_ext in '' $ac_executable_extensions; do
3594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3595 ac_cv_prog_ac_ct_CC="gcc"
3596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3597 break 2
3599 done
3600 done
3601 IFS=$as_save_IFS
3605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3606 if test -n "$ac_ct_CC"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3608 $as_echo "$ac_ct_CC" >&6; }
3609 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3614 if test "x$ac_ct_CC" = x; then
3615 CC=""
3616 else
3617 case $cross_compiling:$ac_tool_warned in
3618 yes:)
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621 ac_tool_warned=yes ;;
3622 esac
3623 CC=$ac_ct_CC
3625 else
3626 CC="$ac_cv_prog_CC"
3629 if test -z "$CC"; then
3630 if test -n "$ac_tool_prefix"; then
3631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3632 set dummy ${ac_tool_prefix}cc; ac_word=$2
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3634 $as_echo_n "checking for $ac_word... " >&6; }
3635 if ${ac_cv_prog_CC+:} false; then :
3636 $as_echo_n "(cached) " >&6
3637 else
3638 if test -n "$CC"; then
3639 ac_cv_prog_CC="$CC" # Let the user override the test.
3640 else
3641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3642 for as_dir in $PATH
3644 IFS=$as_save_IFS
3645 test -z "$as_dir" && as_dir=.
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3648 ac_cv_prog_CC="${ac_tool_prefix}cc"
3649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3650 break 2
3652 done
3653 done
3654 IFS=$as_save_IFS
3658 CC=$ac_cv_prog_CC
3659 if test -n "$CC"; then
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3661 $as_echo "$CC" >&6; }
3662 else
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3664 $as_echo "no" >&6; }
3670 if test -z "$CC"; then
3671 # Extract the first word of "cc", so it can be a program name with args.
3672 set dummy cc; ac_word=$2
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3674 $as_echo_n "checking for $ac_word... " >&6; }
3675 if ${ac_cv_prog_CC+:} false; then :
3676 $as_echo_n "(cached) " >&6
3677 else
3678 if test -n "$CC"; then
3679 ac_cv_prog_CC="$CC" # Let the user override the test.
3680 else
3681 ac_prog_rejected=no
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 for as_dir in $PATH
3685 IFS=$as_save_IFS
3686 test -z "$as_dir" && as_dir=.
3687 for ac_exec_ext in '' $ac_executable_extensions; do
3688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3690 ac_prog_rejected=yes
3691 continue
3693 ac_cv_prog_CC="cc"
3694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3695 break 2
3697 done
3698 done
3699 IFS=$as_save_IFS
3701 if test $ac_prog_rejected = yes; then
3702 # We found a bogon in the path, so make sure we never use it.
3703 set dummy $ac_cv_prog_CC
3704 shift
3705 if test $# != 0; then
3706 # We chose a different compiler from the bogus one.
3707 # However, it has the same basename, so the bogon will be chosen
3708 # first if we set CC to just the basename; use the full file name.
3709 shift
3710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3715 CC=$ac_cv_prog_CC
3716 if test -n "$CC"; then
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3718 $as_echo "$CC" >&6; }
3719 else
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3721 $as_echo "no" >&6; }
3726 if test -z "$CC"; then
3727 if test -n "$ac_tool_prefix"; then
3728 for ac_prog in cl.exe
3730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if ${ac_cv_prog_CC+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$CC"; then
3738 ac_cv_prog_CC="$CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3751 done
3752 done
3753 IFS=$as_save_IFS
3757 CC=$ac_cv_prog_CC
3758 if test -n "$CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3760 $as_echo "$CC" >&6; }
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3767 test -n "$CC" && break
3768 done
3770 if test -z "$CC"; then
3771 ac_ct_CC=$CC
3772 for ac_prog in cl.exe
3774 # Extract the first word of "$ac_prog", so it can be a program name with args.
3775 set dummy $ac_prog; ac_word=$2
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3777 $as_echo_n "checking for $ac_word... " >&6; }
3778 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3779 $as_echo_n "(cached) " >&6
3780 else
3781 if test -n "$ac_ct_CC"; then
3782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3783 else
3784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 for as_dir in $PATH
3787 IFS=$as_save_IFS
3788 test -z "$as_dir" && as_dir=.
3789 for ac_exec_ext in '' $ac_executable_extensions; do
3790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3791 ac_cv_prog_ac_ct_CC="$ac_prog"
3792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3793 break 2
3795 done
3796 done
3797 IFS=$as_save_IFS
3801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3802 if test -n "$ac_ct_CC"; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3804 $as_echo "$ac_ct_CC" >&6; }
3805 else
3806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3807 $as_echo "no" >&6; }
3811 test -n "$ac_ct_CC" && break
3812 done
3814 if test "x$ac_ct_CC" = x; then
3815 CC=""
3816 else
3817 case $cross_compiling:$ac_tool_warned in
3818 yes:)
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3821 ac_tool_warned=yes ;;
3822 esac
3823 CC=$ac_ct_CC
3830 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3832 as_fn_error $? "no acceptable C compiler found in \$PATH
3833 See \`config.log' for more details" "$LINENO" 5; }
3835 # Provide some information about the compiler.
3836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3837 set X $ac_compile
3838 ac_compiler=$2
3839 for ac_option in --version -v -V -qversion; do
3840 { { ac_try="$ac_compiler $ac_option >&5"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3846 $as_echo "$ac_try_echo"; } >&5
3847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3848 ac_status=$?
3849 if test -s conftest.err; then
3850 sed '10a\
3851 ... rest of stderr output deleted ...
3852 10q' conftest.err >conftest.er1
3853 cat conftest.er1 >&5
3855 rm -f conftest.er1 conftest.err
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }
3858 done
3860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3861 /* end confdefs.h. */
3864 main ()
3868 return 0;
3870 _ACEOF
3871 ac_clean_files_save=$ac_clean_files
3872 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3873 # Try to create an executable without -o first, disregard a.out.
3874 # It will help us diagnose broken compilers, and finding out an intuition
3875 # of exeext.
3876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3877 $as_echo_n "checking whether the C compiler works... " >&6; }
3878 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3880 # The possible output files:
3881 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3883 ac_rmfiles=
3884 for ac_file in $ac_files
3886 case $ac_file in
3887 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3888 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3889 esac
3890 done
3891 rm -f $ac_rmfiles
3893 if { { ac_try="$ac_link_default"
3894 case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897 esac
3898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899 $as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_link_default") 2>&5
3901 ac_status=$?
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; then :
3904 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3905 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3906 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3907 # so that the user can short-circuit this test for compilers unknown to
3908 # Autoconf.
3909 for ac_file in $ac_files ''
3911 test -f "$ac_file" || continue
3912 case $ac_file in
3913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3915 [ab].out )
3916 # We found the default executable, but exeext='' is most
3917 # certainly right.
3918 break;;
3919 *.* )
3920 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3921 then :; else
3922 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3924 # We set ac_cv_exeext here because the later test for it is not
3925 # safe: cross compilers may not add the suffix if given an `-o'
3926 # argument, so we may need to know it at that point already.
3927 # Even if this section looks crufty: it has the advantage of
3928 # actually working.
3929 break;;
3931 break;;
3932 esac
3933 done
3934 test "$ac_cv_exeext" = no && ac_cv_exeext=
3936 else
3937 ac_file=''
3939 if test -z "$ac_file"; then :
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 $as_echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3946 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3947 as_fn_error 77 "C compiler cannot create executables
3948 See \`config.log' for more details" "$LINENO" 5; }
3949 else
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3951 $as_echo "yes" >&6; }
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3954 $as_echo_n "checking for C compiler default output file name... " >&6; }
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3956 $as_echo "$ac_file" >&6; }
3957 ac_exeext=$ac_cv_exeext
3959 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3960 ac_clean_files=$ac_clean_files_save
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3962 $as_echo_n "checking for suffix of executables... " >&6; }
3963 if { { ac_try="$ac_link"
3964 case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3967 esac
3968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3969 $as_echo "$ac_try_echo"; } >&5
3970 (eval "$ac_link") 2>&5
3971 ac_status=$?
3972 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3973 test $ac_status = 0; }; then :
3974 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3975 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3976 # work properly (i.e., refer to `conftest.exe'), while it won't with
3977 # `rm'.
3978 for ac_file in conftest.exe conftest conftest.*; do
3979 test -f "$ac_file" || continue
3980 case $ac_file in
3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3982 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3983 break;;
3984 * ) break;;
3985 esac
3986 done
3987 else
3988 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3989 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3990 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3991 See \`config.log' for more details" "$LINENO" 5; }
3993 rm -f conftest conftest$ac_cv_exeext
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3995 $as_echo "$ac_cv_exeext" >&6; }
3997 rm -f conftest.$ac_ext
3998 EXEEXT=$ac_cv_exeext
3999 ac_exeext=$EXEEXT
4000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4001 /* end confdefs.h. */
4002 #include <stdio.h>
4004 main ()
4006 FILE *f = fopen ("conftest.out", "w");
4007 return ferror (f) || fclose (f) != 0;
4010 return 0;
4012 _ACEOF
4013 ac_clean_files="$ac_clean_files conftest.out"
4014 # Check that the compiler produces executables we can run. If not, either
4015 # the compiler is broken, or we cross compile.
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4017 $as_echo_n "checking whether we are cross compiling... " >&6; }
4018 if test "$cross_compiling" != yes; then
4019 { { ac_try="$ac_link"
4020 case "(($ac_try" in
4021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4022 *) ac_try_echo=$ac_try;;
4023 esac
4024 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4025 $as_echo "$ac_try_echo"; } >&5
4026 (eval "$ac_link") 2>&5
4027 ac_status=$?
4028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4029 test $ac_status = 0; }
4030 if { ac_try='./conftest$ac_cv_exeext'
4031 { { case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4034 esac
4035 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4036 $as_echo "$ac_try_echo"; } >&5
4037 (eval "$ac_try") 2>&5
4038 ac_status=$?
4039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }; }; then
4041 cross_compiling=no
4042 else
4043 if test "$cross_compiling" = maybe; then
4044 cross_compiling=yes
4045 else
4046 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4047 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4048 as_fn_error $? "cannot run C compiled programs.
4049 If you meant to cross compile, use \`--host'.
4050 See \`config.log' for more details" "$LINENO" 5; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4055 $as_echo "$cross_compiling" >&6; }
4057 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4058 ac_clean_files=$ac_clean_files_save
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4060 $as_echo_n "checking for suffix of object files... " >&6; }
4061 if ${ac_cv_objext+:} false; then :
4062 $as_echo_n "(cached) " >&6
4063 else
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4068 main ()
4072 return 0;
4074 _ACEOF
4075 rm -f conftest.o conftest.obj
4076 if { { ac_try="$ac_compile"
4077 case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082 $as_echo "$ac_try_echo"; } >&5
4083 (eval "$ac_compile") 2>&5
4084 ac_status=$?
4085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }; then :
4087 for ac_file in conftest.o conftest.obj conftest.*; do
4088 test -f "$ac_file" || continue;
4089 case $ac_file in
4090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4091 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4092 break;;
4093 esac
4094 done
4095 else
4096 $as_echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4100 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4101 as_fn_error $? "cannot compute suffix of object files: cannot compile
4102 See \`config.log' for more details" "$LINENO" 5; }
4104 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4107 $as_echo "$ac_cv_objext" >&6; }
4108 OBJEXT=$ac_cv_objext
4109 ac_objext=$OBJEXT
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4111 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4112 if ${ac_cv_c_compiler_gnu+:} false; then :
4113 $as_echo_n "(cached) " >&6
4114 else
4115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4116 /* end confdefs.h. */
4119 main ()
4121 #ifndef __GNUC__
4122 choke me
4123 #endif
4126 return 0;
4128 _ACEOF
4129 if ac_fn_c_try_compile "$LINENO"; then :
4130 ac_compiler_gnu=yes
4131 else
4132 ac_compiler_gnu=no
4134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4139 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4140 if test $ac_compiler_gnu = yes; then
4141 GCC=yes
4142 else
4143 GCC=
4145 ac_test_CFLAGS=${CFLAGS+set}
4146 ac_save_CFLAGS=$CFLAGS
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4148 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4149 if ${ac_cv_prog_cc_g+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 ac_save_c_werror_flag=$ac_c_werror_flag
4153 ac_c_werror_flag=yes
4154 ac_cv_prog_cc_g=no
4155 CFLAGS="-g"
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157 /* end confdefs.h. */
4160 main ()
4164 return 0;
4166 _ACEOF
4167 if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_prog_cc_g=yes
4169 else
4170 CFLAGS=""
4171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4172 /* end confdefs.h. */
4175 main ()
4179 return 0;
4181 _ACEOF
4182 if ac_fn_c_try_compile "$LINENO"; then :
4184 else
4185 ac_c_werror_flag=$ac_save_c_werror_flag
4186 CFLAGS="-g"
4187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4188 /* end confdefs.h. */
4191 main ()
4195 return 0;
4197 _ACEOF
4198 if ac_fn_c_try_compile "$LINENO"; then :
4199 ac_cv_prog_cc_g=yes
4201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 ac_c_werror_flag=$ac_save_c_werror_flag
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4209 $as_echo "$ac_cv_prog_cc_g" >&6; }
4210 if test "$ac_test_CFLAGS" = set; then
4211 CFLAGS=$ac_save_CFLAGS
4212 elif test $ac_cv_prog_cc_g = yes; then
4213 if test "$GCC" = yes; then
4214 CFLAGS="-g -O2"
4215 else
4216 CFLAGS="-g"
4218 else
4219 if test "$GCC" = yes; then
4220 CFLAGS="-O2"
4221 else
4222 CFLAGS=
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4226 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4227 if ${ac_cv_prog_cc_c89+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 ac_cv_prog_cc_c89=no
4231 ac_save_CC=$CC
4232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4233 /* end confdefs.h. */
4234 #include <stdarg.h>
4235 #include <stdio.h>
4236 struct stat;
4237 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4238 struct buf { int x; };
4239 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4240 static char *e (p, i)
4241 char **p;
4242 int i;
4244 return p[i];
4246 static char *f (char * (*g) (char **, int), char **p, ...)
4248 char *s;
4249 va_list v;
4250 va_start (v,p);
4251 s = g (p, va_arg (v,int));
4252 va_end (v);
4253 return s;
4256 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4257 function prototypes and stuff, but not '\xHH' hex character constants.
4258 These don't provoke an error unfortunately, instead are silently treated
4259 as 'x'. The following induces an error, until -std is added to get
4260 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4261 array size at least. It's necessary to write '\x00'==0 to get something
4262 that's true only with -std. */
4263 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4265 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4266 inside strings and character constants. */
4267 #define FOO(x) 'x'
4268 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4270 int test (int i, double x);
4271 struct s1 {int (*f) (int a);};
4272 struct s2 {int (*f) (double a);};
4273 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4274 int argc;
4275 char **argv;
4277 main ()
4279 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4281 return 0;
4283 _ACEOF
4284 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4285 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4287 CC="$ac_save_CC $ac_arg"
4288 if ac_fn_c_try_compile "$LINENO"; then :
4289 ac_cv_prog_cc_c89=$ac_arg
4291 rm -f core conftest.err conftest.$ac_objext
4292 test "x$ac_cv_prog_cc_c89" != "xno" && break
4293 done
4294 rm -f conftest.$ac_ext
4295 CC=$ac_save_CC
4298 # AC_CACHE_VAL
4299 case "x$ac_cv_prog_cc_c89" in
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4302 $as_echo "none needed" >&6; } ;;
4303 xno)
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4305 $as_echo "unsupported" >&6; } ;;
4307 CC="$CC $ac_cv_prog_cc_c89"
4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4309 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4310 esac
4311 if test "x$ac_cv_prog_cc_c89" != xno; then :
4315 ac_ext=c
4316 ac_cpp='$CPP $CPPFLAGS'
4317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4321 ac_ext=c
4322 ac_cpp='$CPP $CPPFLAGS'
4323 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4324 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4325 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4327 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4328 if ${am_cv_prog_cc_c_o+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4335 main ()
4339 return 0;
4341 _ACEOF
4342 # Make sure it works both with $CC and with simple cc.
4343 # Following AC_PROG_CC_C_O, we do the test twice because some
4344 # compilers refuse to overwrite an existing .o file with -o,
4345 # though they will create one.
4346 am_cv_prog_cc_c_o=yes
4347 for am_i in 1 2; do
4348 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4349 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4350 ac_status=$?
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } \
4353 && test -f conftest2.$ac_objext; then
4354 : OK
4355 else
4356 am_cv_prog_cc_c_o=no
4357 break
4359 done
4360 rm -f core conftest*
4361 unset am_i
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4364 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4365 if test "$am_cv_prog_cc_c_o" != yes; then
4366 # Losing compiler, so override with the script.
4367 # FIXME: It is wrong to rewrite CC.
4368 # But if we don't then we get into trouble of one sort or another.
4369 # A longer-term fix would be to have automake use am__CC in this case,
4370 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4371 CC="$am_aux_dir/compile $CC"
4373 ac_ext=c
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4379 DEPDIR="${am__leading_dot}deps"
4381 ac_config_commands="$ac_config_commands depfiles"
4384 am_make=${MAKE-make}
4385 cat > confinc << 'END'
4386 am__doit:
4387 @echo this is the am__doit target
4388 .PHONY: am__doit
4390 # If we don't find an include directive, just comment out the code.
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4392 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4393 am__include="#"
4394 am__quote=
4395 _am_result=none
4396 # First try GNU make style include.
4397 echo "include confinc" > confmf
4398 # Ignore all kinds of additional output from 'make'.
4399 case `$am_make -s -f confmf 2> /dev/null` in #(
4400 *the\ am__doit\ target*)
4401 am__include=include
4402 am__quote=
4403 _am_result=GNU
4405 esac
4406 # Now try BSD make style include.
4407 if test "$am__include" = "#"; then
4408 echo '.include "confinc"' > confmf
4409 case `$am_make -s -f confmf 2> /dev/null` in #(
4410 *the\ am__doit\ target*)
4411 am__include=.include
4412 am__quote="\""
4413 _am_result=BSD
4415 esac
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4420 $as_echo "$_am_result" >&6; }
4421 rm -f confinc confmf
4423 # Check whether --enable-dependency-tracking was given.
4424 if test "${enable_dependency_tracking+set}" = set; then :
4425 enableval=$enable_dependency_tracking;
4428 if test "x$enable_dependency_tracking" != xno; then
4429 am_depcomp="$ac_aux_dir/depcomp"
4430 AMDEPBACKSLASH='\'
4431 am__nodep='_no'
4433 if test "x$enable_dependency_tracking" != xno; then
4434 AMDEP_TRUE=
4435 AMDEP_FALSE='#'
4436 else
4437 AMDEP_TRUE='#'
4438 AMDEP_FALSE=
4443 depcc="$CC" am_compiler_list=
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4446 $as_echo_n "checking dependency style of $depcc... " >&6; }
4447 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4448 $as_echo_n "(cached) " >&6
4449 else
4450 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4451 # We make a subdir and do the tests there. Otherwise we can end up
4452 # making bogus files that we don't know about and never remove. For
4453 # instance it was reported that on HP-UX the gcc test will end up
4454 # making a dummy file named 'D' -- because '-MD' means "put the output
4455 # in D".
4456 rm -rf conftest.dir
4457 mkdir conftest.dir
4458 # Copy depcomp to subdir because otherwise we won't find it if we're
4459 # using a relative directory.
4460 cp "$am_depcomp" conftest.dir
4461 cd conftest.dir
4462 # We will build objects and dependencies in a subdirectory because
4463 # it helps to detect inapplicable dependency modes. For instance
4464 # both Tru64's cc and ICC support -MD to output dependencies as a
4465 # side effect of compilation, but ICC will put the dependencies in
4466 # the current directory while Tru64 will put them in the object
4467 # directory.
4468 mkdir sub
4470 am_cv_CC_dependencies_compiler_type=none
4471 if test "$am_compiler_list" = ""; then
4472 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4474 am__universal=false
4475 case " $depcc " in #(
4476 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4477 esac
4479 for depmode in $am_compiler_list; do
4480 # Setup a source with many dependencies, because some compilers
4481 # like to wrap large dependency lists on column 80 (with \), and
4482 # we should not choose a depcomp mode which is confused by this.
4484 # We need to recreate these files for each test, as the compiler may
4485 # overwrite some of them when testing with obscure command lines.
4486 # This happens at least with the AIX C compiler.
4487 : > sub/conftest.c
4488 for i in 1 2 3 4 5 6; do
4489 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4490 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4491 # Solaris 10 /bin/sh.
4492 echo '/* dummy */' > sub/conftst$i.h
4493 done
4494 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4496 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4497 # mode. It turns out that the SunPro C++ compiler does not properly
4498 # handle '-M -o', and we need to detect this. Also, some Intel
4499 # versions had trouble with output in subdirs.
4500 am__obj=sub/conftest.${OBJEXT-o}
4501 am__minus_obj="-o $am__obj"
4502 case $depmode in
4503 gcc)
4504 # This depmode causes a compiler race in universal mode.
4505 test "$am__universal" = false || continue
4507 nosideeffect)
4508 # After this tag, mechanisms are not by side-effect, so they'll
4509 # only be used when explicitly requested.
4510 if test "x$enable_dependency_tracking" = xyes; then
4511 continue
4512 else
4513 break
4516 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4517 # This compiler won't grok '-c -o', but also, the minuso test has
4518 # not run yet. These depmodes are late enough in the game, and
4519 # so weak that their functioning should not be impacted.
4520 am__obj=conftest.${OBJEXT-o}
4521 am__minus_obj=
4523 none) break ;;
4524 esac
4525 if depmode=$depmode \
4526 source=sub/conftest.c object=$am__obj \
4527 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4528 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4529 >/dev/null 2>conftest.err &&
4530 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4531 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4532 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4533 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4534 # icc doesn't choke on unknown options, it will just issue warnings
4535 # or remarks (even with -Werror). So we grep stderr for any message
4536 # that says an option was ignored or not supported.
4537 # When given -MP, icc 7.0 and 7.1 complain thusly:
4538 # icc: Command line warning: ignoring option '-M'; no argument required
4539 # The diagnosis changed in icc 8.0:
4540 # icc: Command line remark: option '-MP' not supported
4541 if (grep 'ignoring option' conftest.err ||
4542 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4543 am_cv_CC_dependencies_compiler_type=$depmode
4544 break
4547 done
4549 cd ..
4550 rm -rf conftest.dir
4551 else
4552 am_cv_CC_dependencies_compiler_type=none
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4557 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4558 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4561 test "x$enable_dependency_tracking" != xno \
4562 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4563 am__fastdepCC_TRUE=
4564 am__fastdepCC_FALSE='#'
4565 else
4566 am__fastdepCC_TRUE='#'
4567 am__fastdepCC_FALSE=
4575 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4576 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4577 # in both places for now and restore CFLAGS at the end of config.
4578 save_CFLAGS="$CFLAGS"
4580 # Check whether --enable-werror was given.
4581 if test "${enable_werror+set}" = set; then :
4582 enableval=$enable_werror;
4585 # Add -Wall -Werror if we are using GCC.
4586 if test "x$GCC" = "xyes"; then :
4587 XCFLAGS="$XCFLAGS -Wall"
4589 if test "x$enable_werror" != "xno" && test "x$GCC" = "xyes"; then :
4590 XCFLAGS="$XCFLAGS -Werror"
4593 # Find other programs we need.
4594 if test -n "$ac_tool_prefix"; then
4595 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4596 set dummy ${ac_tool_prefix}ar; ac_word=$2
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4598 $as_echo_n "checking for $ac_word... " >&6; }
4599 if ${ac_cv_prog_AR+:} false; then :
4600 $as_echo_n "(cached) " >&6
4601 else
4602 if test -n "$AR"; then
4603 ac_cv_prog_AR="$AR" # Let the user override the test.
4604 else
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 for as_dir in $PATH
4608 IFS=$as_save_IFS
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4612 ac_cv_prog_AR="${ac_tool_prefix}ar"
4613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4614 break 2
4616 done
4617 done
4618 IFS=$as_save_IFS
4622 AR=$ac_cv_prog_AR
4623 if test -n "$AR"; then
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4625 $as_echo "$AR" >&6; }
4626 else
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628 $as_echo "no" >&6; }
4633 if test -z "$ac_cv_prog_AR"; then
4634 ac_ct_AR=$AR
4635 # Extract the first word of "ar", so it can be a program name with args.
4636 set dummy ar; ac_word=$2
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638 $as_echo_n "checking for $ac_word... " >&6; }
4639 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641 else
4642 if test -n "$ac_ct_AR"; then
4643 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4644 else
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646 for as_dir in $PATH
4648 IFS=$as_save_IFS
4649 test -z "$as_dir" && as_dir=.
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652 ac_cv_prog_ac_ct_AR="ar"
4653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654 break 2
4656 done
4657 done
4658 IFS=$as_save_IFS
4662 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4663 if test -n "$ac_ct_AR"; then
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4665 $as_echo "$ac_ct_AR" >&6; }
4666 else
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668 $as_echo "no" >&6; }
4671 if test "x$ac_ct_AR" = x; then
4672 AR=""
4673 else
4674 case $cross_compiling:$ac_tool_warned in
4675 yes:)
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4678 ac_tool_warned=yes ;;
4679 esac
4680 AR=$ac_ct_AR
4682 else
4683 AR="$ac_cv_prog_AR"
4686 if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4688 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4690 $as_echo_n "checking for $ac_word... " >&6; }
4691 if ${ac_cv_prog_RANLIB+:} false; then :
4692 $as_echo_n "(cached) " >&6
4693 else
4694 if test -n "$RANLIB"; then
4695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4708 done
4709 done
4710 IFS=$as_save_IFS
4714 RANLIB=$ac_cv_prog_RANLIB
4715 if test -n "$RANLIB"; then
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4717 $as_echo "$RANLIB" >&6; }
4718 else
4719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4720 $as_echo "no" >&6; }
4725 if test -z "$ac_cv_prog_RANLIB"; then
4726 ac_ct_RANLIB=$RANLIB
4727 # Extract the first word of "ranlib", so it can be a program name with args.
4728 set dummy ranlib; ac_word=$2
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4730 $as_echo_n "checking for $ac_word... " >&6; }
4731 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4734 if test -n "$ac_ct_RANLIB"; then
4735 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4736 else
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4744 ac_cv_prog_ac_ct_RANLIB="ranlib"
4745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4748 done
4749 done
4750 IFS=$as_save_IFS
4754 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4755 if test -n "$ac_ct_RANLIB"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4757 $as_echo "$ac_ct_RANLIB" >&6; }
4758 else
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4760 $as_echo "no" >&6; }
4763 if test "x$ac_ct_RANLIB" = x; then
4764 RANLIB="ranlib-not-found-in-path-error"
4765 else
4766 case $cross_compiling:$ac_tool_warned in
4767 yes:)
4768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4770 ac_tool_warned=yes ;;
4771 esac
4772 RANLIB=$ac_ct_RANLIB
4774 else
4775 RANLIB="$ac_cv_prog_RANLIB"
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4779 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4780 set x ${MAKE-make}
4781 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4782 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 cat >conftest.make <<\_ACEOF
4786 SHELL = /bin/sh
4787 all:
4788 @echo '@@@%%%=$(MAKE)=@@@%%%'
4789 _ACEOF
4790 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4791 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4792 *@@@%%%=?*=@@@%%%*)
4793 eval ac_cv_prog_make_${ac_make}_set=yes;;
4795 eval ac_cv_prog_make_${ac_make}_set=no;;
4796 esac
4797 rm -f conftest.make
4799 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4801 $as_echo "yes" >&6; }
4802 SET_MAKE=
4803 else
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4805 $as_echo "no" >&6; }
4806 SET_MAKE="MAKE=${MAKE-make}"
4811 # See if makeinfo has been installed and is modern enough
4812 # that we can use it.
4814 # Extract the first word of "makeinfo", so it can be a program name with args.
4815 set dummy makeinfo; 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_prog_MAKEINFO+:} false; then :
4819 $as_echo_n "(cached) " >&6
4820 else
4821 if test -n "$MAKEINFO"; then
4822 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4823 else
4824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4825 for as_dir in $PATH
4827 IFS=$as_save_IFS
4828 test -z "$as_dir" && as_dir=.
4829 for ac_exec_ext in '' $ac_executable_extensions; do
4830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4831 ac_cv_prog_MAKEINFO="makeinfo"
4832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4833 break 2
4835 done
4836 done
4837 IFS=$as_save_IFS
4841 MAKEINFO=$ac_cv_prog_MAKEINFO
4842 if test -n "$MAKEINFO"; then
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4844 $as_echo "$MAKEINFO" >&6; }
4845 else
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4847 $as_echo "no" >&6; }
4851 if test -n "$MAKEINFO"; then
4852 # Found it, now check the version.
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4854 $as_echo_n "checking for modern makeinfo... " >&6; }
4855 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4859 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4861 case $ac_prog_version in
4862 '') gcc_cv_prog_makeinfo_modern=no;;
4863 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4864 *) gcc_cv_prog_makeinfo_modern=no;;
4865 esac
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4869 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4870 else
4871 gcc_cv_prog_makeinfo_modern=no
4873 if test $gcc_cv_prog_makeinfo_modern = no; then
4874 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4877 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4878 BUILD_INFO_TRUE=
4879 BUILD_INFO_FALSE='#'
4880 else
4881 BUILD_INFO_TRUE='#'
4882 BUILD_INFO_FALSE=
4887 # Configure libtool
4888 case `pwd` in
4889 *\ * | *\ *)
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4891 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4892 esac
4896 macro_version='2.2.7a'
4897 macro_revision='1.3134'
4911 ltmain="$ac_aux_dir/ltmain.sh"
4913 # Backslashify metacharacters that are still active within
4914 # double-quoted strings.
4915 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4917 # Same as above, but do not quote variable references.
4918 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4920 # Sed substitution to delay expansion of an escaped shell variable in a
4921 # double_quote_subst'ed string.
4922 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4924 # Sed substitution to delay expansion of an escaped single quote.
4925 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4927 # Sed substitution to avoid accidental globbing in evaled expressions
4928 no_glob_subst='s/\*/\\\*/g'
4930 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4931 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4932 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4935 $as_echo_n "checking how to print strings... " >&6; }
4936 # Test print first, because it will be a builtin if present.
4937 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4938 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4939 ECHO='print -r --'
4940 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4941 ECHO='printf %s\n'
4942 else
4943 # Use this function as a fallback that always works.
4944 func_fallback_echo ()
4946 eval 'cat <<_LTECHO_EOF
4948 _LTECHO_EOF'
4950 ECHO='func_fallback_echo'
4953 # func_echo_all arg...
4954 # Invoke $ECHO with all args, space-separated.
4955 func_echo_all ()
4957 $ECHO ""
4960 case "$ECHO" in
4961 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4962 $as_echo "printf" >&6; } ;;
4963 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4964 $as_echo "print -r" >&6; } ;;
4965 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4966 $as_echo "cat" >&6; } ;;
4967 esac
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4983 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4984 if ${ac_cv_path_SED+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4988 for ac_i in 1 2 3 4 5 6 7; do
4989 ac_script="$ac_script$as_nl$ac_script"
4990 done
4991 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4992 { ac_script=; unset ac_script;}
4993 if test -z "$SED"; then
4994 ac_path_SED_found=false
4995 # Loop through the user's path and test for each of PROGNAME-LIST
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_prog in sed gsed; do
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5004 as_fn_executable_p "$ac_path_SED" || continue
5005 # Check for GNU ac_path_SED and select it if it is found.
5006 # Check for GNU $ac_path_SED
5007 case `"$ac_path_SED" --version 2>&1` in
5008 *GNU*)
5009 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5011 ac_count=0
5012 $as_echo_n 0123456789 >"conftest.in"
5013 while :
5015 cat "conftest.in" "conftest.in" >"conftest.tmp"
5016 mv "conftest.tmp" "conftest.in"
5017 cp "conftest.in" "conftest.nl"
5018 $as_echo '' >> "conftest.nl"
5019 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5021 as_fn_arith $ac_count + 1 && ac_count=$as_val
5022 if test $ac_count -gt ${ac_path_SED_max-0}; then
5023 # Best one so far, save it but keep looking for a better one
5024 ac_cv_path_SED="$ac_path_SED"
5025 ac_path_SED_max=$ac_count
5027 # 10*(2^10) chars as input seems more than enough
5028 test $ac_count -gt 10 && break
5029 done
5030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5031 esac
5033 $ac_path_SED_found && break 3
5034 done
5035 done
5036 done
5037 IFS=$as_save_IFS
5038 if test -z "$ac_cv_path_SED"; then
5039 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5041 else
5042 ac_cv_path_SED=$SED
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5047 $as_echo "$ac_cv_path_SED" >&6; }
5048 SED="$ac_cv_path_SED"
5049 rm -f conftest.sed
5051 test -z "$SED" && SED=sed
5052 Xsed="$SED -e 1s/^X//"
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5065 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5066 if ${ac_cv_path_GREP+:} false; then :
5067 $as_echo_n "(cached) " >&6
5068 else
5069 if test -z "$GREP"; then
5070 ac_path_GREP_found=false
5071 # Loop through the user's path and test for each of PROGNAME-LIST
5072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5073 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5075 IFS=$as_save_IFS
5076 test -z "$as_dir" && as_dir=.
5077 for ac_prog in grep ggrep; do
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5080 as_fn_executable_p "$ac_path_GREP" || continue
5081 # Check for GNU ac_path_GREP and select it if it is found.
5082 # Check for GNU $ac_path_GREP
5083 case `"$ac_path_GREP" --version 2>&1` in
5084 *GNU*)
5085 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5087 ac_count=0
5088 $as_echo_n 0123456789 >"conftest.in"
5089 while :
5091 cat "conftest.in" "conftest.in" >"conftest.tmp"
5092 mv "conftest.tmp" "conftest.in"
5093 cp "conftest.in" "conftest.nl"
5094 $as_echo 'GREP' >> "conftest.nl"
5095 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5096 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5097 as_fn_arith $ac_count + 1 && ac_count=$as_val
5098 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5099 # Best one so far, save it but keep looking for a better one
5100 ac_cv_path_GREP="$ac_path_GREP"
5101 ac_path_GREP_max=$ac_count
5103 # 10*(2^10) chars as input seems more than enough
5104 test $ac_count -gt 10 && break
5105 done
5106 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5107 esac
5109 $ac_path_GREP_found && break 3
5110 done
5111 done
5112 done
5113 IFS=$as_save_IFS
5114 if test -z "$ac_cv_path_GREP"; then
5115 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5117 else
5118 ac_cv_path_GREP=$GREP
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5123 $as_echo "$ac_cv_path_GREP" >&6; }
5124 GREP="$ac_cv_path_GREP"
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5128 $as_echo_n "checking for egrep... " >&6; }
5129 if ${ac_cv_path_EGREP+:} false; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5133 then ac_cv_path_EGREP="$GREP -E"
5134 else
5135 if test -z "$EGREP"; then
5136 ac_path_EGREP_found=false
5137 # Loop through the user's path and test for each of PROGNAME-LIST
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
5143 for ac_prog in egrep; do
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5146 as_fn_executable_p "$ac_path_EGREP" || continue
5147 # Check for GNU ac_path_EGREP and select it if it is found.
5148 # Check for GNU $ac_path_EGREP
5149 case `"$ac_path_EGREP" --version 2>&1` in
5150 *GNU*)
5151 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5153 ac_count=0
5154 $as_echo_n 0123456789 >"conftest.in"
5155 while :
5157 cat "conftest.in" "conftest.in" >"conftest.tmp"
5158 mv "conftest.tmp" "conftest.in"
5159 cp "conftest.in" "conftest.nl"
5160 $as_echo 'EGREP' >> "conftest.nl"
5161 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5162 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5163 as_fn_arith $ac_count + 1 && ac_count=$as_val
5164 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5165 # Best one so far, save it but keep looking for a better one
5166 ac_cv_path_EGREP="$ac_path_EGREP"
5167 ac_path_EGREP_max=$ac_count
5169 # 10*(2^10) chars as input seems more than enough
5170 test $ac_count -gt 10 && break
5171 done
5172 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5173 esac
5175 $ac_path_EGREP_found && break 3
5176 done
5177 done
5178 done
5179 IFS=$as_save_IFS
5180 if test -z "$ac_cv_path_EGREP"; then
5181 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5183 else
5184 ac_cv_path_EGREP=$EGREP
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5190 $as_echo "$ac_cv_path_EGREP" >&6; }
5191 EGREP="$ac_cv_path_EGREP"
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5195 $as_echo_n "checking for fgrep... " >&6; }
5196 if ${ac_cv_path_FGREP+:} false; then :
5197 $as_echo_n "(cached) " >&6
5198 else
5199 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5200 then ac_cv_path_FGREP="$GREP -F"
5201 else
5202 if test -z "$FGREP"; then
5203 ac_path_FGREP_found=false
5204 # Loop through the user's path and test for each of PROGNAME-LIST
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5208 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=.
5210 for ac_prog in fgrep; do
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5213 as_fn_executable_p "$ac_path_FGREP" || continue
5214 # Check for GNU ac_path_FGREP and select it if it is found.
5215 # Check for GNU $ac_path_FGREP
5216 case `"$ac_path_FGREP" --version 2>&1` in
5217 *GNU*)
5218 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5220 ac_count=0
5221 $as_echo_n 0123456789 >"conftest.in"
5222 while :
5224 cat "conftest.in" "conftest.in" >"conftest.tmp"
5225 mv "conftest.tmp" "conftest.in"
5226 cp "conftest.in" "conftest.nl"
5227 $as_echo 'FGREP' >> "conftest.nl"
5228 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5229 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5230 as_fn_arith $ac_count + 1 && ac_count=$as_val
5231 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5232 # Best one so far, save it but keep looking for a better one
5233 ac_cv_path_FGREP="$ac_path_FGREP"
5234 ac_path_FGREP_max=$ac_count
5236 # 10*(2^10) chars as input seems more than enough
5237 test $ac_count -gt 10 && break
5238 done
5239 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5240 esac
5242 $ac_path_FGREP_found && break 3
5243 done
5244 done
5245 done
5246 IFS=$as_save_IFS
5247 if test -z "$ac_cv_path_FGREP"; then
5248 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5250 else
5251 ac_cv_path_FGREP=$FGREP
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5257 $as_echo "$ac_cv_path_FGREP" >&6; }
5258 FGREP="$ac_cv_path_FGREP"
5261 test -z "$GREP" && GREP=grep
5281 # Check whether --with-gnu-ld was given.
5282 if test "${with_gnu_ld+set}" = set; then :
5283 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5284 else
5285 with_gnu_ld=no
5288 ac_prog=ld
5289 if test "$GCC" = yes; then
5290 # Check if gcc -print-prog-name=ld gives a path.
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5292 $as_echo_n "checking for ld used by $CC... " >&6; }
5293 case $host in
5294 *-*-mingw*)
5295 # gcc leaves a trailing carriage return which upsets mingw
5296 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5298 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5299 esac
5300 case $ac_prog in
5301 # Accept absolute paths.
5302 [\\/]* | ?:[\\/]*)
5303 re_direlt='/[^/][^/]*/\.\./'
5304 # Canonicalize the pathname of ld
5305 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5306 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5307 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5308 done
5309 test -z "$LD" && LD="$ac_prog"
5312 # If it fails, then pretend we aren't using GCC.
5313 ac_prog=ld
5316 # If it is relative, then search for the first ld in PATH.
5317 with_gnu_ld=unknown
5319 esac
5320 elif test "$with_gnu_ld" = yes; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5322 $as_echo_n "checking for GNU ld... " >&6; }
5323 else
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5325 $as_echo_n "checking for non-GNU ld... " >&6; }
5327 if ${lt_cv_path_LD+:} false; then :
5328 $as_echo_n "(cached) " >&6
5329 else
5330 if test -z "$LD"; then
5331 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5332 for ac_dir in $PATH; do
5333 IFS="$lt_save_ifs"
5334 test -z "$ac_dir" && ac_dir=.
5335 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5336 lt_cv_path_LD="$ac_dir/$ac_prog"
5337 # Check to see if the program is GNU ld. I'd rather use --version,
5338 # but apparently some variants of GNU ld only accept -v.
5339 # Break only if it was the GNU/non-GNU ld that we prefer.
5340 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5341 *GNU* | *'with BFD'*)
5342 test "$with_gnu_ld" != no && break
5345 test "$with_gnu_ld" != yes && break
5347 esac
5349 done
5350 IFS="$lt_save_ifs"
5351 else
5352 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5356 LD="$lt_cv_path_LD"
5357 if test -n "$LD"; then
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5359 $as_echo "$LD" >&6; }
5360 else
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5362 $as_echo "no" >&6; }
5364 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5366 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5367 if ${lt_cv_prog_gnu_ld+:} false; then :
5368 $as_echo_n "(cached) " >&6
5369 else
5370 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5371 case `$LD -v 2>&1 </dev/null` in
5372 *GNU* | *'with BFD'*)
5373 lt_cv_prog_gnu_ld=yes
5376 lt_cv_prog_gnu_ld=no
5378 esac
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5381 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5382 with_gnu_ld=$lt_cv_prog_gnu_ld
5392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5393 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5394 if ${lt_cv_path_NM+:} false; then :
5395 $as_echo_n "(cached) " >&6
5396 else
5397 if test -n "$NM"; then
5398 # Let the user override the test.
5399 lt_cv_path_NM="$NM"
5400 else
5401 lt_nm_to_check="${ac_tool_prefix}nm"
5402 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5403 lt_nm_to_check="$lt_nm_to_check nm"
5405 for lt_tmp_nm in $lt_nm_to_check; do
5406 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5407 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5408 IFS="$lt_save_ifs"
5409 test -z "$ac_dir" && ac_dir=.
5410 tmp_nm="$ac_dir/$lt_tmp_nm"
5411 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5412 # Check to see if the nm accepts a BSD-compat flag.
5413 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5414 # nm: unknown option "B" ignored
5415 # Tru64's nm complains that /dev/null is an invalid object file
5416 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5417 */dev/null* | *'Invalid file or object type'*)
5418 lt_cv_path_NM="$tmp_nm -B"
5419 break
5422 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5423 */dev/null*)
5424 lt_cv_path_NM="$tmp_nm -p"
5425 break
5428 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5429 continue # so that we can try to find one that supports BSD flags
5431 esac
5433 esac
5435 done
5436 IFS="$lt_save_ifs"
5437 done
5438 : ${lt_cv_path_NM=no}
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5442 $as_echo "$lt_cv_path_NM" >&6; }
5443 if test "$lt_cv_path_NM" != "no"; then
5444 NM="$lt_cv_path_NM"
5445 else
5446 # Didn't find any BSD compatible name lister, look for dumpbin.
5447 if test -n "$DUMPBIN"; then :
5448 # Let the user override the test.
5449 else
5450 if test -n "$ac_tool_prefix"; then
5451 for ac_prog in dumpbin "link -dump"
5453 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5454 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_DUMPBIN+:} false; then :
5458 $as_echo_n "(cached) " >&6
5459 else
5460 if test -n "$DUMPBIN"; then
5461 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5462 else
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5464 for as_dir in $PATH
5466 IFS=$as_save_IFS
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5472 break 2
5474 done
5475 done
5476 IFS=$as_save_IFS
5480 DUMPBIN=$ac_cv_prog_DUMPBIN
5481 if test -n "$DUMPBIN"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5483 $as_echo "$DUMPBIN" >&6; }
5484 else
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5490 test -n "$DUMPBIN" && break
5491 done
5493 if test -z "$DUMPBIN"; then
5494 ac_ct_DUMPBIN=$DUMPBIN
5495 for ac_prog in dumpbin "link -dump"
5497 # Extract the first word of "$ac_prog", so it can be a program name with args.
5498 set dummy $ac_prog; ac_word=$2
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5500 $as_echo_n "checking for $ac_word... " >&6; }
5501 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5502 $as_echo_n "(cached) " >&6
5503 else
5504 if test -n "$ac_ct_DUMPBIN"; then
5505 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5518 done
5519 done
5520 IFS=$as_save_IFS
5524 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5525 if test -n "$ac_ct_DUMPBIN"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5527 $as_echo "$ac_ct_DUMPBIN" >&6; }
5528 else
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5530 $as_echo "no" >&6; }
5534 test -n "$ac_ct_DUMPBIN" && break
5535 done
5537 if test "x$ac_ct_DUMPBIN" = x; then
5538 DUMPBIN=":"
5539 else
5540 case $cross_compiling:$ac_tool_warned in
5541 yes:)
5542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5543 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5544 ac_tool_warned=yes ;;
5545 esac
5546 DUMPBIN=$ac_ct_DUMPBIN
5550 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5551 *COFF*)
5552 DUMPBIN="$DUMPBIN -symbols"
5555 DUMPBIN=:
5557 esac
5560 if test "$DUMPBIN" != ":"; then
5561 NM="$DUMPBIN"
5564 test -z "$NM" && NM=nm
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5572 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5573 if ${lt_cv_nm_interface+:} false; then :
5574 $as_echo_n "(cached) " >&6
5575 else
5576 lt_cv_nm_interface="BSD nm"
5577 echo "int some_variable = 0;" > conftest.$ac_ext
5578 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5579 (eval "$ac_compile" 2>conftest.err)
5580 cat conftest.err >&5
5581 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5582 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5583 cat conftest.err >&5
5584 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5585 cat conftest.out >&5
5586 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5587 lt_cv_nm_interface="MS dumpbin"
5589 rm -f conftest*
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5592 $as_echo "$lt_cv_nm_interface" >&6; }
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5595 $as_echo_n "checking whether ln -s works... " >&6; }
5596 LN_S=$as_ln_s
5597 if test "$LN_S" = "ln -s"; then
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5599 $as_echo "yes" >&6; }
5600 else
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5602 $as_echo "no, using $LN_S" >&6; }
5605 # find the maximum length of command line arguments
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5607 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5608 if ${lt_cv_sys_max_cmd_len+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5612 teststring="ABCD"
5614 case $build_os in
5615 msdosdjgpp*)
5616 # On DJGPP, this test can blow up pretty badly due to problems in libc
5617 # (any single argument exceeding 2000 bytes causes a buffer overrun
5618 # during glob expansion). Even if it were fixed, the result of this
5619 # check would be larger than it should be.
5620 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5623 gnu*)
5624 # Under GNU Hurd, this test is not required because there is
5625 # no limit to the length of command line arguments.
5626 # Libtool will interpret -1 as no limit whatsoever
5627 lt_cv_sys_max_cmd_len=-1;
5630 cygwin* | mingw* | cegcc*)
5631 # On Win9x/ME, this test blows up -- it succeeds, but takes
5632 # about 5 minutes as the teststring grows exponentially.
5633 # Worse, since 9x/ME are not pre-emptively multitasking,
5634 # you end up with a "frozen" computer, even though with patience
5635 # the test eventually succeeds (with a max line length of 256k).
5636 # Instead, let's just punt: use the minimum linelength reported by
5637 # all of the supported platforms: 8192 (on NT/2K/XP).
5638 lt_cv_sys_max_cmd_len=8192;
5641 mint*)
5642 # On MiNT this can take a long time and run out of memory.
5643 lt_cv_sys_max_cmd_len=8192;
5646 amigaos*)
5647 # On AmigaOS with pdksh, this test takes hours, literally.
5648 # So we just punt and use a minimum line length of 8192.
5649 lt_cv_sys_max_cmd_len=8192;
5652 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5653 # This has been around since 386BSD, at least. Likely further.
5654 if test -x /sbin/sysctl; then
5655 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5656 elif test -x /usr/sbin/sysctl; then
5657 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5658 else
5659 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5661 # And add a safety zone
5662 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5663 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5666 interix*)
5667 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5668 lt_cv_sys_max_cmd_len=196608
5671 osf*)
5672 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5673 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5674 # nice to cause kernel panics so lets avoid the loop below.
5675 # First set a reasonable default.
5676 lt_cv_sys_max_cmd_len=16384
5678 if test -x /sbin/sysconfig; then
5679 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5680 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5681 esac
5684 sco3.2v5*)
5685 lt_cv_sys_max_cmd_len=102400
5687 sysv5* | sco5v6* | sysv4.2uw2*)
5688 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5689 if test -n "$kargmax"; then
5690 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5691 else
5692 lt_cv_sys_max_cmd_len=32768
5696 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5697 if test -n "$lt_cv_sys_max_cmd_len"; then
5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5699 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5700 else
5701 # Make teststring a little bigger before we do anything with it.
5702 # a 1K string should be a reasonable start.
5703 for i in 1 2 3 4 5 6 7 8 ; do
5704 teststring=$teststring$teststring
5705 done
5706 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5707 # If test is not a shell built-in, we'll probably end up computing a
5708 # maximum length that is only half of the actual maximum length, but
5709 # we can't tell.
5710 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5711 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5712 test $i != 17 # 1/2 MB should be enough
5714 i=`expr $i + 1`
5715 teststring=$teststring$teststring
5716 done
5717 # Only check the string length outside the loop.
5718 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5719 teststring=
5720 # Add a significant safety factor because C++ compilers can tack on
5721 # massive amounts of additional arguments before passing them to the
5722 # linker. It appears as though 1/2 is a usable value.
5723 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5726 esac
5730 if test -n $lt_cv_sys_max_cmd_len ; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5732 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5735 $as_echo "none" >&6; }
5737 max_cmd_len=$lt_cv_sys_max_cmd_len
5744 : ${CP="cp -f"}
5745 : ${MV="mv -f"}
5746 : ${RM="rm -f"}
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5749 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5750 # Try some XSI features
5751 xsi_shell=no
5752 ( _lt_dummy="a/b/c"
5753 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5754 = c,a/b,, \
5755 && eval 'test $(( 1 + 1 )) -eq 2 \
5756 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5757 && xsi_shell=yes
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5759 $as_echo "$xsi_shell" >&6; }
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5763 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5764 lt_shell_append=no
5765 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5766 >/dev/null 2>&1 \
5767 && lt_shell_append=yes
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5769 $as_echo "$lt_shell_append" >&6; }
5772 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5773 lt_unset=unset
5774 else
5775 lt_unset=false
5782 # test EBCDIC or ASCII
5783 case `echo X|tr X '\101'` in
5784 A) # ASCII based system
5785 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5786 lt_SP2NL='tr \040 \012'
5787 lt_NL2SP='tr \015\012 \040\040'
5789 *) # EBCDIC based system
5790 lt_SP2NL='tr \100 \n'
5791 lt_NL2SP='tr \r\n \100\100'
5793 esac
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5804 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5805 if ${lt_cv_ld_reload_flag+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 lt_cv_ld_reload_flag='-r'
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5811 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5812 reload_flag=$lt_cv_ld_reload_flag
5813 case $reload_flag in
5814 "" | " "*) ;;
5815 *) reload_flag=" $reload_flag" ;;
5816 esac
5817 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5818 case $host_os in
5819 darwin*)
5820 if test "$GCC" = yes; then
5821 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5822 else
5823 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5826 esac
5836 if test -n "$ac_tool_prefix"; then
5837 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5838 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5840 $as_echo_n "checking for $ac_word... " >&6; }
5841 if ${ac_cv_prog_OBJDUMP+:} false; then :
5842 $as_echo_n "(cached) " >&6
5843 else
5844 if test -n "$OBJDUMP"; then
5845 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5846 else
5847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 for as_dir in $PATH
5850 IFS=$as_save_IFS
5851 test -z "$as_dir" && as_dir=.
5852 for ac_exec_ext in '' $ac_executable_extensions; do
5853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5854 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5856 break 2
5858 done
5859 done
5860 IFS=$as_save_IFS
5864 OBJDUMP=$ac_cv_prog_OBJDUMP
5865 if test -n "$OBJDUMP"; then
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5867 $as_echo "$OBJDUMP" >&6; }
5868 else
5869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5870 $as_echo "no" >&6; }
5875 if test -z "$ac_cv_prog_OBJDUMP"; then
5876 ac_ct_OBJDUMP=$OBJDUMP
5877 # Extract the first word of "objdump", so it can be a program name with args.
5878 set dummy objdump; ac_word=$2
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880 $as_echo_n "checking for $ac_word... " >&6; }
5881 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5882 $as_echo_n "(cached) " >&6
5883 else
5884 if test -n "$ac_ct_OBJDUMP"; then
5885 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5886 else
5887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 for as_dir in $PATH
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
5893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5894 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5898 done
5899 done
5900 IFS=$as_save_IFS
5904 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5905 if test -n "$ac_ct_OBJDUMP"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5907 $as_echo "$ac_ct_OBJDUMP" >&6; }
5908 else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910 $as_echo "no" >&6; }
5913 if test "x$ac_ct_OBJDUMP" = x; then
5914 OBJDUMP="false"
5915 else
5916 case $cross_compiling:$ac_tool_warned in
5917 yes:)
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5920 ac_tool_warned=yes ;;
5921 esac
5922 OBJDUMP=$ac_ct_OBJDUMP
5924 else
5925 OBJDUMP="$ac_cv_prog_OBJDUMP"
5928 test -z "$OBJDUMP" && OBJDUMP=objdump
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5939 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5940 if ${lt_cv_deplibs_check_method+:} false; then :
5941 $as_echo_n "(cached) " >&6
5942 else
5943 lt_cv_file_magic_cmd='$MAGIC_CMD'
5944 lt_cv_file_magic_test_file=
5945 lt_cv_deplibs_check_method='unknown'
5946 # Need to set the preceding variable on all platforms that support
5947 # interlibrary dependencies.
5948 # 'none' -- dependencies not supported.
5949 # `unknown' -- same as none, but documents that we really don't know.
5950 # 'pass_all' -- all dependencies passed with no checks.
5951 # 'test_compile' -- check by making test program.
5952 # 'file_magic [[regex]]' -- check by looking for files in library path
5953 # which responds to the $file_magic_cmd with a given extended regex.
5954 # If you have `file' or equivalent on your system and you're not sure
5955 # whether `pass_all' will *always* work, you probably want this one.
5957 case $host_os in
5958 aix[4-9]*)
5959 lt_cv_deplibs_check_method=pass_all
5962 beos*)
5963 lt_cv_deplibs_check_method=pass_all
5966 bsdi[45]*)
5967 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5968 lt_cv_file_magic_cmd='/usr/bin/file -L'
5969 lt_cv_file_magic_test_file=/shlib/libc.so
5972 cygwin*)
5973 # func_win32_libid is a shell function defined in ltmain.sh
5974 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5975 lt_cv_file_magic_cmd='func_win32_libid'
5978 mingw* | pw32*)
5979 # Base MSYS/MinGW do not provide the 'file' command needed by
5980 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5981 # unless we find 'file', for example because we are cross-compiling.
5982 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5983 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5984 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5985 lt_cv_file_magic_cmd='func_win32_libid'
5986 else
5987 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5988 lt_cv_file_magic_cmd='$OBJDUMP -f'
5992 cegcc*)
5993 # use the weaker test based on 'objdump'. See mingw*.
5994 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5995 lt_cv_file_magic_cmd='$OBJDUMP -f'
5998 darwin* | rhapsody*)
5999 lt_cv_deplibs_check_method=pass_all
6002 freebsd* | dragonfly*)
6003 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6004 case $host_cpu in
6005 i*86 )
6006 # Not sure whether the presence of OpenBSD here was a mistake.
6007 # Let's accept both of them until this is cleared up.
6008 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6009 lt_cv_file_magic_cmd=/usr/bin/file
6010 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6012 esac
6013 else
6014 lt_cv_deplibs_check_method=pass_all
6018 gnu*)
6019 lt_cv_deplibs_check_method=pass_all
6022 haiku*)
6023 lt_cv_deplibs_check_method=pass_all
6026 hpux10.20* | hpux11*)
6027 lt_cv_file_magic_cmd=/usr/bin/file
6028 case $host_cpu in
6029 ia64*)
6030 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6031 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6033 hppa*64*)
6034 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]'
6035 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6038 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6039 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6041 esac
6044 interix[3-9]*)
6045 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6046 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6049 irix5* | irix6* | nonstopux*)
6050 case $LD in
6051 *-32|*"-32 ") libmagic=32-bit;;
6052 *-n32|*"-n32 ") libmagic=N32;;
6053 *-64|*"-64 ") libmagic=64-bit;;
6054 *) libmagic=never-match;;
6055 esac
6056 lt_cv_deplibs_check_method=pass_all
6059 # This must be Linux ELF.
6060 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6061 lt_cv_deplibs_check_method=pass_all
6064 netbsd*)
6065 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6066 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6067 else
6068 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6072 newos6*)
6073 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6074 lt_cv_file_magic_cmd=/usr/bin/file
6075 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6078 *nto* | *qnx*)
6079 lt_cv_deplibs_check_method=pass_all
6082 openbsd*)
6083 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6084 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6085 else
6086 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6090 osf3* | osf4* | osf5*)
6091 lt_cv_deplibs_check_method=pass_all
6094 rdos*)
6095 lt_cv_deplibs_check_method=pass_all
6098 solaris*)
6099 lt_cv_deplibs_check_method=pass_all
6102 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6103 lt_cv_deplibs_check_method=pass_all
6106 sysv4 | sysv4.3*)
6107 case $host_vendor in
6108 motorola)
6109 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]'
6110 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6112 ncr)
6113 lt_cv_deplibs_check_method=pass_all
6115 sequent)
6116 lt_cv_file_magic_cmd='/bin/file'
6117 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6119 sni)
6120 lt_cv_file_magic_cmd='/bin/file'
6121 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6122 lt_cv_file_magic_test_file=/lib/libc.so
6124 siemens)
6125 lt_cv_deplibs_check_method=pass_all
6128 lt_cv_deplibs_check_method=pass_all
6130 esac
6133 tpf*)
6134 lt_cv_deplibs_check_method=pass_all
6136 vxworks*)
6137 # Assume VxWorks cross toolchains are built on Linux, possibly
6138 # as canadian for Windows hosts.
6139 lt_cv_deplibs_check_method=pass_all
6141 esac
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6145 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6146 file_magic_cmd=$lt_cv_file_magic_cmd
6147 deplibs_check_method=$lt_cv_deplibs_check_method
6148 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6161 if test -n "$ac_tool_prefix"; then
6162 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6163 set dummy ${ac_tool_prefix}ar; ac_word=$2
6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6165 $as_echo_n "checking for $ac_word... " >&6; }
6166 if ${ac_cv_prog_AR+:} false; then :
6167 $as_echo_n "(cached) " >&6
6168 else
6169 if test -n "$AR"; then
6170 ac_cv_prog_AR="$AR" # Let the user override the test.
6171 else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173 for as_dir in $PATH
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6179 ac_cv_prog_AR="${ac_tool_prefix}ar"
6180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6181 break 2
6183 done
6184 done
6185 IFS=$as_save_IFS
6189 AR=$ac_cv_prog_AR
6190 if test -n "$AR"; then
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6192 $as_echo "$AR" >&6; }
6193 else
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6195 $as_echo "no" >&6; }
6200 if test -z "$ac_cv_prog_AR"; then
6201 ac_ct_AR=$AR
6202 # Extract the first word of "ar", so it can be a program name with args.
6203 set dummy ar; ac_word=$2
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6205 $as_echo_n "checking for $ac_word... " >&6; }
6206 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6207 $as_echo_n "(cached) " >&6
6208 else
6209 if test -n "$ac_ct_AR"; then
6210 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6211 else
6212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6213 for as_dir in $PATH
6215 IFS=$as_save_IFS
6216 test -z "$as_dir" && as_dir=.
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6219 ac_cv_prog_ac_ct_AR="ar"
6220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6221 break 2
6223 done
6224 done
6225 IFS=$as_save_IFS
6229 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6230 if test -n "$ac_ct_AR"; then
6231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6232 $as_echo "$ac_ct_AR" >&6; }
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6238 if test "x$ac_ct_AR" = x; then
6239 AR="false"
6240 else
6241 case $cross_compiling:$ac_tool_warned in
6242 yes:)
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6245 ac_tool_warned=yes ;;
6246 esac
6247 AR=$ac_ct_AR
6249 else
6250 AR="$ac_cv_prog_AR"
6253 test -z "$AR" && AR=ar
6254 test -z "$AR_FLAGS" && AR_FLAGS=cru
6266 if test -n "$ac_tool_prefix"; then
6267 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6268 set dummy ${ac_tool_prefix}strip; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_STRIP+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -n "$STRIP"; then
6275 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6288 done
6289 done
6290 IFS=$as_save_IFS
6294 STRIP=$ac_cv_prog_STRIP
6295 if test -n "$STRIP"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6297 $as_echo "$STRIP" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6305 if test -z "$ac_cv_prog_STRIP"; then
6306 ac_ct_STRIP=$STRIP
6307 # Extract the first word of "strip", so it can be a program name with args.
6308 set dummy strip; ac_word=$2
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6310 $as_echo_n "checking for $ac_word... " >&6; }
6311 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6312 $as_echo_n "(cached) " >&6
6313 else
6314 if test -n "$ac_ct_STRIP"; then
6315 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6316 else
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6324 ac_cv_prog_ac_ct_STRIP="strip"
6325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6328 done
6329 done
6330 IFS=$as_save_IFS
6334 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6335 if test -n "$ac_ct_STRIP"; then
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6337 $as_echo "$ac_ct_STRIP" >&6; }
6338 else
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6340 $as_echo "no" >&6; }
6343 if test "x$ac_ct_STRIP" = x; then
6344 STRIP=":"
6345 else
6346 case $cross_compiling:$ac_tool_warned in
6347 yes:)
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6349 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6350 ac_tool_warned=yes ;;
6351 esac
6352 STRIP=$ac_ct_STRIP
6354 else
6355 STRIP="$ac_cv_prog_STRIP"
6358 test -z "$STRIP" && STRIP=:
6365 if test -n "$ac_tool_prefix"; then
6366 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6367 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369 $as_echo_n "checking for $ac_word... " >&6; }
6370 if ${ac_cv_prog_RANLIB+:} false; then :
6371 $as_echo_n "(cached) " >&6
6372 else
6373 if test -n "$RANLIB"; then
6374 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6375 else
6376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 for as_dir in $PATH
6379 IFS=$as_save_IFS
6380 test -z "$as_dir" && as_dir=.
6381 for ac_exec_ext in '' $ac_executable_extensions; do
6382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6383 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6385 break 2
6387 done
6388 done
6389 IFS=$as_save_IFS
6393 RANLIB=$ac_cv_prog_RANLIB
6394 if test -n "$RANLIB"; then
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6396 $as_echo "$RANLIB" >&6; }
6397 else
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399 $as_echo "no" >&6; }
6404 if test -z "$ac_cv_prog_RANLIB"; then
6405 ac_ct_RANLIB=$RANLIB
6406 # Extract the first word of "ranlib", so it can be a program name with args.
6407 set dummy ranlib; ac_word=$2
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6409 $as_echo_n "checking for $ac_word... " >&6; }
6410 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6411 $as_echo_n "(cached) " >&6
6412 else
6413 if test -n "$ac_ct_RANLIB"; then
6414 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6415 else
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417 for as_dir in $PATH
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_ac_ct_RANLIB="ranlib"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6427 done
6428 done
6429 IFS=$as_save_IFS
6433 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6434 if test -n "$ac_ct_RANLIB"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6436 $as_echo "$ac_ct_RANLIB" >&6; }
6437 else
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6442 if test "x$ac_ct_RANLIB" = x; then
6443 RANLIB=":"
6444 else
6445 case $cross_compiling:$ac_tool_warned in
6446 yes:)
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6449 ac_tool_warned=yes ;;
6450 esac
6451 RANLIB=$ac_ct_RANLIB
6453 else
6454 RANLIB="$ac_cv_prog_RANLIB"
6457 test -z "$RANLIB" && RANLIB=:
6464 # Determine commands to create old-style static archives.
6465 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6466 old_postinstall_cmds='chmod 644 $oldlib'
6467 old_postuninstall_cmds=
6469 if test -n "$RANLIB"; then
6470 case $host_os in
6471 openbsd*)
6472 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6475 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6477 esac
6478 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6481 case $host_os in
6482 darwin*)
6483 lock_old_archive_extraction=yes ;;
6485 lock_old_archive_extraction=no ;;
6486 esac
6526 # If no C compiler was specified, use CC.
6527 LTCC=${LTCC-"$CC"}
6529 # If no C compiler flags were specified, use CFLAGS.
6530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6532 # Allow CC to be a program name with arguments.
6533 compiler=$CC
6536 # Check for command to grab the raw symbol name followed by C symbol from nm.
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6538 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6539 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6540 $as_echo_n "(cached) " >&6
6541 else
6543 # These are sane defaults that work on at least a few old systems.
6544 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6546 # Character class describing NM global symbol codes.
6547 symcode='[BCDEGRST]'
6549 # Regexp to match symbols that can be accessed directly from C.
6550 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6552 # Define system-specific variables.
6553 case $host_os in
6554 aix*)
6555 symcode='[BCDT]'
6557 cygwin* | mingw* | pw32* | cegcc*)
6558 symcode='[ABCDGISTW]'
6560 hpux*)
6561 if test "$host_cpu" = ia64; then
6562 symcode='[ABCDEGRST]'
6565 irix* | nonstopux*)
6566 symcode='[BCDEGRST]'
6568 osf*)
6569 symcode='[BCDEGQRST]'
6571 solaris*)
6572 symcode='[BDRT]'
6574 sco3.2v5*)
6575 symcode='[DT]'
6577 sysv4.2uw2*)
6578 symcode='[DT]'
6580 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6581 symcode='[ABDT]'
6583 sysv4)
6584 symcode='[DFNSTU]'
6586 esac
6588 # If we're using GNU nm, then use its standard symbol codes.
6589 case `$NM -V 2>&1` in
6590 *GNU* | *'with BFD'*)
6591 symcode='[ABCDGIRSTW]' ;;
6592 esac
6594 # Transform an extracted symbol line into a proper C declaration.
6595 # Some systems (esp. on ia64) link data and code symbols differently,
6596 # so use this general approach.
6597 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6599 # Transform an extracted symbol line into symbol name and symbol address
6600 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6601 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'"
6603 # Handle CRLF in mingw tool chain
6604 opt_cr=
6605 case $build_os in
6606 mingw*)
6607 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6609 esac
6611 # Try without a prefix underscore, then with it.
6612 for ac_symprfx in "" "_"; do
6614 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6615 symxfrm="\\1 $ac_symprfx\\2 \\2"
6617 # Write the raw and C identifiers.
6618 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6619 # Fake it for dumpbin and say T for any non-static function
6620 # and D for any global variable.
6621 # Also find C++ and __fastcall symbols from MSVC++,
6622 # which start with @ or ?.
6623 lt_cv_sys_global_symbol_pipe="$AWK '"\
6624 " {last_section=section; section=\$ 3};"\
6625 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6626 " \$ 0!~/External *\|/{next};"\
6627 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6628 " {if(hide[section]) next};"\
6629 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6630 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6631 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6632 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6633 " ' prfx=^$ac_symprfx"
6634 else
6635 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6638 # Check to see that the pipe works correctly.
6639 pipe_works=no
6641 rm -f conftest*
6642 cat > conftest.$ac_ext <<_LT_EOF
6643 #ifdef __cplusplus
6644 extern "C" {
6645 #endif
6646 char nm_test_var;
6647 void nm_test_func(void);
6648 void nm_test_func(void){}
6649 #ifdef __cplusplus
6651 #endif
6652 int main(){nm_test_var='a';nm_test_func();return(0);}
6653 _LT_EOF
6655 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6656 (eval $ac_compile) 2>&5
6657 ac_status=$?
6658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6659 test $ac_status = 0; }; then
6660 # Now try to grab the symbols.
6661 nlist=conftest.nm
6662 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6663 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6664 ac_status=$?
6665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6666 test $ac_status = 0; } && test -s "$nlist"; then
6667 # Try sorting and uniquifying the output.
6668 if sort "$nlist" | uniq > "$nlist"T; then
6669 mv -f "$nlist"T "$nlist"
6670 else
6671 rm -f "$nlist"T
6674 # Make sure that we snagged all the symbols we need.
6675 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6676 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6677 cat <<_LT_EOF > conftest.$ac_ext
6678 #ifdef __cplusplus
6679 extern "C" {
6680 #endif
6682 _LT_EOF
6683 # Now generate the symbol file.
6684 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6686 cat <<_LT_EOF >> conftest.$ac_ext
6688 /* The mapping between symbol names and symbols. */
6689 const struct {
6690 const char *name;
6691 void *address;
6693 lt__PROGRAM__LTX_preloaded_symbols[] =
6695 { "@PROGRAM@", (void *) 0 },
6696 _LT_EOF
6697 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6698 cat <<\_LT_EOF >> conftest.$ac_ext
6699 {0, (void *) 0}
6702 /* This works around a problem in FreeBSD linker */
6703 #ifdef FREEBSD_WORKAROUND
6704 static const void *lt_preloaded_setup() {
6705 return lt__PROGRAM__LTX_preloaded_symbols;
6707 #endif
6709 #ifdef __cplusplus
6711 #endif
6712 _LT_EOF
6713 # Now try linking the two files.
6714 mv conftest.$ac_objext conftstm.$ac_objext
6715 lt_save_LIBS="$LIBS"
6716 lt_save_CFLAGS="$CFLAGS"
6717 LIBS="conftstm.$ac_objext"
6718 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6720 (eval $ac_link) 2>&5
6721 ac_status=$?
6722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6723 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6724 pipe_works=yes
6726 LIBS="$lt_save_LIBS"
6727 CFLAGS="$lt_save_CFLAGS"
6728 else
6729 echo "cannot find nm_test_func in $nlist" >&5
6731 else
6732 echo "cannot find nm_test_var in $nlist" >&5
6734 else
6735 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6737 else
6738 echo "$progname: failed program was:" >&5
6739 cat conftest.$ac_ext >&5
6741 rm -rf conftest* conftst*
6743 # Do not use the global_symbol_pipe unless it works.
6744 if test "$pipe_works" = yes; then
6745 break
6746 else
6747 lt_cv_sys_global_symbol_pipe=
6749 done
6753 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6754 lt_cv_sys_global_symbol_to_cdecl=
6756 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6758 $as_echo "failed" >&6; }
6759 else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6761 $as_echo "ok" >&6; }
6786 # Check whether --enable-libtool-lock was given.
6787 if test "${enable_libtool_lock+set}" = set; then :
6788 enableval=$enable_libtool_lock;
6791 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6793 # Some flags need to be propagated to the compiler or linker for good
6794 # libtool support.
6795 case $host in
6796 ia64-*-hpux*)
6797 # Find out which ABI we are using.
6798 echo 'int i;' > conftest.$ac_ext
6799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6800 (eval $ac_compile) 2>&5
6801 ac_status=$?
6802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6803 test $ac_status = 0; }; then
6804 case `/usr/bin/file conftest.$ac_objext` in
6805 *ELF-32*)
6806 HPUX_IA64_MODE="32"
6808 *ELF-64*)
6809 HPUX_IA64_MODE="64"
6811 esac
6813 rm -rf conftest*
6815 *-*-irix6*)
6816 # Find out which ABI we are using.
6817 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6819 (eval $ac_compile) 2>&5
6820 ac_status=$?
6821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6822 test $ac_status = 0; }; then
6823 if test "$lt_cv_prog_gnu_ld" = yes; then
6824 case `/usr/bin/file conftest.$ac_objext` in
6825 *32-bit*)
6826 LD="${LD-ld} -melf32bsmip"
6828 *N32*)
6829 LD="${LD-ld} -melf32bmipn32"
6831 *64-bit*)
6832 LD="${LD-ld} -melf64bmip"
6834 esac
6835 else
6836 case `/usr/bin/file conftest.$ac_objext` in
6837 *32-bit*)
6838 LD="${LD-ld} -32"
6840 *N32*)
6841 LD="${LD-ld} -n32"
6843 *64-bit*)
6844 LD="${LD-ld} -64"
6846 esac
6849 rm -rf conftest*
6852 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6853 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6854 # Find out which ABI we are using.
6855 echo 'int i;' > conftest.$ac_ext
6856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6857 (eval $ac_compile) 2>&5
6858 ac_status=$?
6859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6860 test $ac_status = 0; }; then
6861 case `/usr/bin/file conftest.o` in
6862 *32-bit*)
6863 case $host in
6864 x86_64-*kfreebsd*-gnu)
6865 LD="${LD-ld} -m elf_i386_fbsd"
6867 x86_64-*linux*)
6868 case `/usr/bin/file conftest.o` in
6869 *x86-64*)
6870 LD="${LD-ld} -m elf32_x86_64"
6873 LD="${LD-ld} -m elf_i386"
6875 esac
6877 powerpc64le-*linux*)
6878 LD="${LD-ld} -m elf32lppclinux"
6880 powerpc64-*linux*)
6881 LD="${LD-ld} -m elf32ppclinux"
6883 s390x-*linux*)
6884 LD="${LD-ld} -m elf_s390"
6886 sparc64-*linux*)
6887 LD="${LD-ld} -m elf32_sparc"
6889 esac
6891 *64-bit*)
6892 case $host in
6893 x86_64-*kfreebsd*-gnu)
6894 LD="${LD-ld} -m elf_x86_64_fbsd"
6896 x86_64-*linux*)
6897 LD="${LD-ld} -m elf_x86_64"
6899 powerpcle-*linux*)
6900 LD="${LD-ld} -m elf64lppc"
6902 powerpc-*linux*)
6903 LD="${LD-ld} -m elf64ppc"
6905 s390*-*linux*|s390*-*tpf*)
6906 LD="${LD-ld} -m elf64_s390"
6908 sparc*-*linux*)
6909 LD="${LD-ld} -m elf64_sparc"
6911 esac
6913 esac
6915 rm -rf conftest*
6918 *-*-sco3.2v5*)
6919 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6920 SAVE_CFLAGS="$CFLAGS"
6921 CFLAGS="$CFLAGS -belf"
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6923 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6924 if ${lt_cv_cc_needs_belf+:} false; then :
6925 $as_echo_n "(cached) " >&6
6926 else
6927 ac_ext=c
6928 ac_cpp='$CPP $CPPFLAGS'
6929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6934 /* end confdefs.h. */
6937 main ()
6941 return 0;
6943 _ACEOF
6944 if ac_fn_c_try_link "$LINENO"; then :
6945 lt_cv_cc_needs_belf=yes
6946 else
6947 lt_cv_cc_needs_belf=no
6949 rm -f core conftest.err conftest.$ac_objext \
6950 conftest$ac_exeext conftest.$ac_ext
6951 ac_ext=c
6952 ac_cpp='$CPP $CPPFLAGS'
6953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6959 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6960 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6961 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6962 CFLAGS="$SAVE_CFLAGS"
6965 sparc*-*solaris*)
6966 # Find out which ABI we are using.
6967 echo 'int i;' > conftest.$ac_ext
6968 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6969 (eval $ac_compile) 2>&5
6970 ac_status=$?
6971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6972 test $ac_status = 0; }; then
6973 case `/usr/bin/file conftest.o` in
6974 *64-bit*)
6975 case $lt_cv_prog_gnu_ld in
6976 yes*) LD="${LD-ld} -m elf64_sparc" ;;
6978 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6979 LD="${LD-ld} -64"
6982 esac
6984 esac
6986 rm -rf conftest*
6988 esac
6990 need_locks="$enable_libtool_lock"
6993 case $host_os in
6994 rhapsody* | darwin*)
6995 if test -n "$ac_tool_prefix"; then
6996 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7001 $as_echo_n "(cached) " >&6
7002 else
7003 if test -n "$DSYMUTIL"; then
7004 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7009 IFS=$as_save_IFS
7010 test -z "$as_dir" && as_dir=.
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7013 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015 break 2
7017 done
7018 done
7019 IFS=$as_save_IFS
7023 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7024 if test -n "$DSYMUTIL"; then
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7026 $as_echo "$DSYMUTIL" >&6; }
7027 else
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7034 if test -z "$ac_cv_prog_DSYMUTIL"; then
7035 ac_ct_DSYMUTIL=$DSYMUTIL
7036 # Extract the first word of "dsymutil", so it can be a program name with args.
7037 set dummy dsymutil; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 if test -n "$ac_ct_DSYMUTIL"; then
7044 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7049 IFS=$as_save_IFS
7050 test -z "$as_dir" && as_dir=.
7051 for ac_exec_ext in '' $ac_executable_extensions; do
7052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7053 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055 break 2
7057 done
7058 done
7059 IFS=$as_save_IFS
7063 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7064 if test -n "$ac_ct_DSYMUTIL"; then
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7066 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7067 else
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7072 if test "x$ac_ct_DSYMUTIL" = x; then
7073 DSYMUTIL=":"
7074 else
7075 case $cross_compiling:$ac_tool_warned in
7076 yes:)
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079 ac_tool_warned=yes ;;
7080 esac
7081 DSYMUTIL=$ac_ct_DSYMUTIL
7083 else
7084 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7087 if test -n "$ac_tool_prefix"; then
7088 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7089 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7091 $as_echo_n "checking for $ac_word... " >&6; }
7092 if ${ac_cv_prog_NMEDIT+:} false; then :
7093 $as_echo_n "(cached) " >&6
7094 else
7095 if test -n "$NMEDIT"; then
7096 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7097 else
7098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7099 for as_dir in $PATH
7101 IFS=$as_save_IFS
7102 test -z "$as_dir" && as_dir=.
7103 for ac_exec_ext in '' $ac_executable_extensions; do
7104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7105 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7107 break 2
7109 done
7110 done
7111 IFS=$as_save_IFS
7115 NMEDIT=$ac_cv_prog_NMEDIT
7116 if test -n "$NMEDIT"; then
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7118 $as_echo "$NMEDIT" >&6; }
7119 else
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7121 $as_echo "no" >&6; }
7126 if test -z "$ac_cv_prog_NMEDIT"; then
7127 ac_ct_NMEDIT=$NMEDIT
7128 # Extract the first word of "nmedit", so it can be a program name with args.
7129 set dummy nmedit; ac_word=$2
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7131 $as_echo_n "checking for $ac_word... " >&6; }
7132 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7133 $as_echo_n "(cached) " >&6
7134 else
7135 if test -n "$ac_ct_NMEDIT"; then
7136 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7137 else
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7139 for as_dir in $PATH
7141 IFS=$as_save_IFS
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 break 2
7149 done
7150 done
7151 IFS=$as_save_IFS
7155 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7156 if test -n "$ac_ct_NMEDIT"; then
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7158 $as_echo "$ac_ct_NMEDIT" >&6; }
7159 else
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7161 $as_echo "no" >&6; }
7164 if test "x$ac_ct_NMEDIT" = x; then
7165 NMEDIT=":"
7166 else
7167 case $cross_compiling:$ac_tool_warned in
7168 yes:)
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7171 ac_tool_warned=yes ;;
7172 esac
7173 NMEDIT=$ac_ct_NMEDIT
7175 else
7176 NMEDIT="$ac_cv_prog_NMEDIT"
7179 if test -n "$ac_tool_prefix"; then
7180 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7181 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183 $as_echo_n "checking for $ac_word... " >&6; }
7184 if ${ac_cv_prog_LIPO+:} false; then :
7185 $as_echo_n "(cached) " >&6
7186 else
7187 if test -n "$LIPO"; then
7188 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7197 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7201 done
7202 done
7203 IFS=$as_save_IFS
7207 LIPO=$ac_cv_prog_LIPO
7208 if test -n "$LIPO"; then
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7210 $as_echo "$LIPO" >&6; }
7211 else
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7213 $as_echo "no" >&6; }
7218 if test -z "$ac_cv_prog_LIPO"; then
7219 ac_ct_LIPO=$LIPO
7220 # Extract the first word of "lipo", so it can be a program name with args.
7221 set dummy lipo; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 if test -n "$ac_ct_LIPO"; then
7228 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_ac_ct_LIPO="lipo"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7241 done
7242 done
7243 IFS=$as_save_IFS
7247 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7248 if test -n "$ac_ct_LIPO"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7250 $as_echo "$ac_ct_LIPO" >&6; }
7251 else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7256 if test "x$ac_ct_LIPO" = x; then
7257 LIPO=":"
7258 else
7259 case $cross_compiling:$ac_tool_warned in
7260 yes:)
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7263 ac_tool_warned=yes ;;
7264 esac
7265 LIPO=$ac_ct_LIPO
7267 else
7268 LIPO="$ac_cv_prog_LIPO"
7271 if test -n "$ac_tool_prefix"; then
7272 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7273 set dummy ${ac_tool_prefix}otool; ac_word=$2
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7275 $as_echo_n "checking for $ac_word... " >&6; }
7276 if ${ac_cv_prog_OTOOL+:} false; then :
7277 $as_echo_n "(cached) " >&6
7278 else
7279 if test -n "$OTOOL"; then
7280 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7281 else
7282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7283 for as_dir in $PATH
7285 IFS=$as_save_IFS
7286 test -z "$as_dir" && as_dir=.
7287 for ac_exec_ext in '' $ac_executable_extensions; do
7288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7289 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 break 2
7293 done
7294 done
7295 IFS=$as_save_IFS
7299 OTOOL=$ac_cv_prog_OTOOL
7300 if test -n "$OTOOL"; then
7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7302 $as_echo "$OTOOL" >&6; }
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7310 if test -z "$ac_cv_prog_OTOOL"; then
7311 ac_ct_OTOOL=$OTOOL
7312 # Extract the first word of "otool", so it can be a program name with args.
7313 set dummy otool; ac_word=$2
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315 $as_echo_n "checking for $ac_word... " >&6; }
7316 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7317 $as_echo_n "(cached) " >&6
7318 else
7319 if test -n "$ac_ct_OTOOL"; then
7320 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7321 else
7322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7323 for as_dir in $PATH
7325 IFS=$as_save_IFS
7326 test -z "$as_dir" && as_dir=.
7327 for ac_exec_ext in '' $ac_executable_extensions; do
7328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7329 ac_cv_prog_ac_ct_OTOOL="otool"
7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7331 break 2
7333 done
7334 done
7335 IFS=$as_save_IFS
7339 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7340 if test -n "$ac_ct_OTOOL"; then
7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7342 $as_echo "$ac_ct_OTOOL" >&6; }
7343 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7348 if test "x$ac_ct_OTOOL" = x; then
7349 OTOOL=":"
7350 else
7351 case $cross_compiling:$ac_tool_warned in
7352 yes:)
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7355 ac_tool_warned=yes ;;
7356 esac
7357 OTOOL=$ac_ct_OTOOL
7359 else
7360 OTOOL="$ac_cv_prog_OTOOL"
7363 if test -n "$ac_tool_prefix"; then
7364 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7365 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7367 $as_echo_n "checking for $ac_word... " >&6; }
7368 if ${ac_cv_prog_OTOOL64+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 if test -n "$OTOOL64"; then
7372 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7373 else
7374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7375 for as_dir in $PATH
7377 IFS=$as_save_IFS
7378 test -z "$as_dir" && as_dir=.
7379 for ac_exec_ext in '' $ac_executable_extensions; do
7380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7381 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7383 break 2
7385 done
7386 done
7387 IFS=$as_save_IFS
7391 OTOOL64=$ac_cv_prog_OTOOL64
7392 if test -n "$OTOOL64"; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7394 $as_echo "$OTOOL64" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7402 if test -z "$ac_cv_prog_OTOOL64"; then
7403 ac_ct_OTOOL64=$OTOOL64
7404 # Extract the first word of "otool64", so it can be a program name with args.
7405 set dummy otool64; ac_word=$2
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407 $as_echo_n "checking for $ac_word... " >&6; }
7408 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7409 $as_echo_n "(cached) " >&6
7410 else
7411 if test -n "$ac_ct_OTOOL64"; then
7412 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7413 else
7414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7415 for as_dir in $PATH
7417 IFS=$as_save_IFS
7418 test -z "$as_dir" && as_dir=.
7419 for ac_exec_ext in '' $ac_executable_extensions; do
7420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7421 ac_cv_prog_ac_ct_OTOOL64="otool64"
7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 break 2
7425 done
7426 done
7427 IFS=$as_save_IFS
7431 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7432 if test -n "$ac_ct_OTOOL64"; then
7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7434 $as_echo "$ac_ct_OTOOL64" >&6; }
7435 else
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7440 if test "x$ac_ct_OTOOL64" = x; then
7441 OTOOL64=":"
7442 else
7443 case $cross_compiling:$ac_tool_warned in
7444 yes:)
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7447 ac_tool_warned=yes ;;
7448 esac
7449 OTOOL64=$ac_ct_OTOOL64
7451 else
7452 OTOOL64="$ac_cv_prog_OTOOL64"
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7482 $as_echo_n "checking for -single_module linker flag... " >&6; }
7483 if ${lt_cv_apple_cc_single_mod+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 lt_cv_apple_cc_single_mod=no
7487 if test -z "${LT_MULTI_MODULE}"; then
7488 # By default we will add the -single_module flag. You can override
7489 # by either setting the environment variable LT_MULTI_MODULE
7490 # non-empty at configure time, or by adding -multi_module to the
7491 # link flags.
7492 rm -rf libconftest.dylib*
7493 echo "int foo(void){return 1;}" > conftest.c
7494 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7495 -dynamiclib -Wl,-single_module conftest.c" >&5
7496 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7497 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7498 _lt_result=$?
7499 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7500 lt_cv_apple_cc_single_mod=yes
7501 else
7502 cat conftest.err >&5
7504 rm -rf libconftest.dylib*
7505 rm -f conftest.*
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7509 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7511 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7512 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7513 $as_echo_n "(cached) " >&6
7514 else
7515 lt_cv_ld_exported_symbols_list=no
7516 save_LDFLAGS=$LDFLAGS
7517 echo "_main" > conftest.sym
7518 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7523 main ()
7527 return 0;
7529 _ACEOF
7530 if ac_fn_c_try_link "$LINENO"; then :
7531 lt_cv_ld_exported_symbols_list=yes
7532 else
7533 lt_cv_ld_exported_symbols_list=no
7535 rm -f core conftest.err conftest.$ac_objext \
7536 conftest$ac_exeext conftest.$ac_ext
7537 LDFLAGS="$save_LDFLAGS"
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7541 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7543 $as_echo_n "checking for -force_load linker flag... " >&6; }
7544 if ${lt_cv_ld_force_load+:} false; then :
7545 $as_echo_n "(cached) " >&6
7546 else
7547 lt_cv_ld_force_load=no
7548 cat > conftest.c << _LT_EOF
7549 int forced_loaded() { return 2;}
7550 _LT_EOF
7551 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7552 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7553 echo "$AR cru libconftest.a conftest.o" >&5
7554 $AR cru libconftest.a conftest.o 2>&5
7555 cat > conftest.c << _LT_EOF
7556 int main() { return 0;}
7557 _LT_EOF
7558 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7559 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7560 _lt_result=$?
7561 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7562 lt_cv_ld_force_load=yes
7563 else
7564 cat conftest.err >&5
7566 rm -f conftest.err libconftest.a conftest conftest.c
7567 rm -rf conftest.dSYM
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7571 $as_echo "$lt_cv_ld_force_load" >&6; }
7572 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
7573 # build without first building modern cctools / linker.
7574 case $host_cpu-$host_os in
7575 *-rhapsody* | *-darwin1.[012])
7576 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7577 *-darwin1.*)
7578 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7579 *-darwin*)
7580 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
7581 # deployment target is forced to an earlier version.
7582 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
7583 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
7585 10.[012][,.]*)
7586 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7590 esac
7592 esac
7593 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7594 _lt_dar_single_mod='$single_module'
7596 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7597 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7598 else
7599 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7601 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7602 _lt_dsymutil='~$DSYMUTIL $lib || :'
7603 else
7604 _lt_dsymutil=
7607 esac
7609 ac_ext=c
7610 ac_cpp='$CPP $CPPFLAGS'
7611 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7612 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7613 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7615 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7616 # On Suns, sometimes $CPP names a directory.
7617 if test -n "$CPP" && test -d "$CPP"; then
7618 CPP=
7620 if test -z "$CPP"; then
7621 if ${ac_cv_prog_CPP+:} false; then :
7622 $as_echo_n "(cached) " >&6
7623 else
7624 # Double quotes because CPP needs to be expanded
7625 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7627 ac_preproc_ok=false
7628 for ac_c_preproc_warn_flag in '' yes
7630 # Use a header file that comes with gcc, so configuring glibc
7631 # with a fresh cross-compiler works.
7632 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7633 # <limits.h> exists even on freestanding compilers.
7634 # On the NeXT, cc -E runs the code through the compiler's parser,
7635 # not just through cpp. "Syntax error" is here to catch this case.
7636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7637 /* end confdefs.h. */
7638 #ifdef __STDC__
7639 # include <limits.h>
7640 #else
7641 # include <assert.h>
7642 #endif
7643 Syntax error
7644 _ACEOF
7645 if ac_fn_c_try_cpp "$LINENO"; then :
7647 else
7648 # Broken: fails on valid input.
7649 continue
7651 rm -f conftest.err conftest.i conftest.$ac_ext
7653 # OK, works on sane cases. Now check whether nonexistent headers
7654 # can be detected and how.
7655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7656 /* end confdefs.h. */
7657 #include <ac_nonexistent.h>
7658 _ACEOF
7659 if ac_fn_c_try_cpp "$LINENO"; then :
7660 # Broken: success on invalid input.
7661 continue
7662 else
7663 # Passes both tests.
7664 ac_preproc_ok=:
7665 break
7667 rm -f conftest.err conftest.i conftest.$ac_ext
7669 done
7670 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7671 rm -f conftest.i conftest.err conftest.$ac_ext
7672 if $ac_preproc_ok; then :
7673 break
7676 done
7677 ac_cv_prog_CPP=$CPP
7680 CPP=$ac_cv_prog_CPP
7681 else
7682 ac_cv_prog_CPP=$CPP
7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7685 $as_echo "$CPP" >&6; }
7686 ac_preproc_ok=false
7687 for ac_c_preproc_warn_flag in '' yes
7689 # Use a header file that comes with gcc, so configuring glibc
7690 # with a fresh cross-compiler works.
7691 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7692 # <limits.h> exists even on freestanding compilers.
7693 # On the NeXT, cc -E runs the code through the compiler's parser,
7694 # not just through cpp. "Syntax error" is here to catch this case.
7695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7696 /* end confdefs.h. */
7697 #ifdef __STDC__
7698 # include <limits.h>
7699 #else
7700 # include <assert.h>
7701 #endif
7702 Syntax error
7703 _ACEOF
7704 if ac_fn_c_try_cpp "$LINENO"; then :
7706 else
7707 # Broken: fails on valid input.
7708 continue
7710 rm -f conftest.err conftest.i conftest.$ac_ext
7712 # OK, works on sane cases. Now check whether nonexistent headers
7713 # can be detected and how.
7714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7715 /* end confdefs.h. */
7716 #include <ac_nonexistent.h>
7717 _ACEOF
7718 if ac_fn_c_try_cpp "$LINENO"; then :
7719 # Broken: success on invalid input.
7720 continue
7721 else
7722 # Passes both tests.
7723 ac_preproc_ok=:
7724 break
7726 rm -f conftest.err conftest.i conftest.$ac_ext
7728 done
7729 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7730 rm -f conftest.i conftest.err conftest.$ac_ext
7731 if $ac_preproc_ok; then :
7733 else
7734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7736 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7737 See \`config.log' for more details" "$LINENO" 5; }
7740 ac_ext=c
7741 ac_cpp='$CPP $CPPFLAGS'
7742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7748 $as_echo_n "checking for ANSI C header files... " >&6; }
7749 if ${ac_cv_header_stdc+:} false; then :
7750 $as_echo_n "(cached) " >&6
7751 else
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7753 /* end confdefs.h. */
7754 #include <stdlib.h>
7755 #include <stdarg.h>
7756 #include <string.h>
7757 #include <float.h>
7760 main ()
7764 return 0;
7766 _ACEOF
7767 if ac_fn_c_try_compile "$LINENO"; then :
7768 ac_cv_header_stdc=yes
7769 else
7770 ac_cv_header_stdc=no
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7774 if test $ac_cv_header_stdc = yes; then
7775 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777 /* end confdefs.h. */
7778 #include <string.h>
7780 _ACEOF
7781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7782 $EGREP "memchr" >/dev/null 2>&1; then :
7784 else
7785 ac_cv_header_stdc=no
7787 rm -f conftest*
7791 if test $ac_cv_header_stdc = yes; then
7792 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7794 /* end confdefs.h. */
7795 #include <stdlib.h>
7797 _ACEOF
7798 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7799 $EGREP "free" >/dev/null 2>&1; then :
7801 else
7802 ac_cv_header_stdc=no
7804 rm -f conftest*
7808 if test $ac_cv_header_stdc = yes; then
7809 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7810 if test "$cross_compiling" = yes; then :
7812 else
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 #include <ctype.h>
7816 #include <stdlib.h>
7817 #if ((' ' & 0x0FF) == 0x020)
7818 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7819 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7820 #else
7821 # define ISLOWER(c) \
7822 (('a' <= (c) && (c) <= 'i') \
7823 || ('j' <= (c) && (c) <= 'r') \
7824 || ('s' <= (c) && (c) <= 'z'))
7825 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7826 #endif
7828 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7830 main ()
7832 int i;
7833 for (i = 0; i < 256; i++)
7834 if (XOR (islower (i), ISLOWER (i))
7835 || toupper (i) != TOUPPER (i))
7836 return 2;
7837 return 0;
7839 _ACEOF
7840 if ac_fn_c_try_run "$LINENO"; then :
7842 else
7843 ac_cv_header_stdc=no
7845 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7846 conftest.$ac_objext conftest.beam conftest.$ac_ext
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7852 $as_echo "$ac_cv_header_stdc" >&6; }
7853 if test $ac_cv_header_stdc = yes; then
7855 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7859 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7860 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7861 inttypes.h stdint.h unistd.h
7862 do :
7863 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7864 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7866 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7867 cat >>confdefs.h <<_ACEOF
7868 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7869 _ACEOF
7873 done
7876 for ac_header in dlfcn.h
7877 do :
7878 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7880 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7881 cat >>confdefs.h <<_ACEOF
7882 #define HAVE_DLFCN_H 1
7883 _ACEOF
7887 done
7893 # Set options
7897 enable_dlopen=no
7900 enable_win32_dll=no
7903 # Check whether --enable-shared was given.
7904 if test "${enable_shared+set}" = set; then :
7905 enableval=$enable_shared; p=${PACKAGE-default}
7906 case $enableval in
7907 yes) enable_shared=yes ;;
7908 no) enable_shared=no ;;
7910 enable_shared=no
7911 # Look at the argument we got. We use all the common list separators.
7912 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7913 for pkg in $enableval; do
7914 IFS="$lt_save_ifs"
7915 if test "X$pkg" = "X$p"; then
7916 enable_shared=yes
7918 done
7919 IFS="$lt_save_ifs"
7921 esac
7922 else
7923 enable_shared=yes
7934 # Check whether --enable-static was given.
7935 if test "${enable_static+set}" = set; then :
7936 enableval=$enable_static; p=${PACKAGE-default}
7937 case $enableval in
7938 yes) enable_static=yes ;;
7939 no) enable_static=no ;;
7941 enable_static=no
7942 # Look at the argument we got. We use all the common list separators.
7943 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7944 for pkg in $enableval; do
7945 IFS="$lt_save_ifs"
7946 if test "X$pkg" = "X$p"; then
7947 enable_static=yes
7949 done
7950 IFS="$lt_save_ifs"
7952 esac
7953 else
7954 enable_static=yes
7966 # Check whether --with-pic was given.
7967 if test "${with_pic+set}" = set; then :
7968 withval=$with_pic; pic_mode="$withval"
7969 else
7970 pic_mode=default
7974 test -z "$pic_mode" && pic_mode=default
7982 # Check whether --enable-fast-install was given.
7983 if test "${enable_fast_install+set}" = set; then :
7984 enableval=$enable_fast_install; p=${PACKAGE-default}
7985 case $enableval in
7986 yes) enable_fast_install=yes ;;
7987 no) enable_fast_install=no ;;
7989 enable_fast_install=no
7990 # Look at the argument we got. We use all the common list separators.
7991 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7992 for pkg in $enableval; do
7993 IFS="$lt_save_ifs"
7994 if test "X$pkg" = "X$p"; then
7995 enable_fast_install=yes
7997 done
7998 IFS="$lt_save_ifs"
8000 esac
8001 else
8002 enable_fast_install=yes
8015 # This can be used to rebuild libtool when needed
8016 LIBTOOL_DEPS="$ltmain"
8018 # Always use our own libtool.
8019 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8046 test -z "$LN_S" && LN_S="ln -s"
8061 if test -n "${ZSH_VERSION+set}" ; then
8062 setopt NO_GLOB_SUBST
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8066 $as_echo_n "checking for objdir... " >&6; }
8067 if ${lt_cv_objdir+:} false; then :
8068 $as_echo_n "(cached) " >&6
8069 else
8070 rm -f .libs 2>/dev/null
8071 mkdir .libs 2>/dev/null
8072 if test -d .libs; then
8073 lt_cv_objdir=.libs
8074 else
8075 # MS-DOS does not allow filenames that begin with a dot.
8076 lt_cv_objdir=_libs
8078 rmdir .libs 2>/dev/null
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8081 $as_echo "$lt_cv_objdir" >&6; }
8082 objdir=$lt_cv_objdir
8088 cat >>confdefs.h <<_ACEOF
8089 #define LT_OBJDIR "$lt_cv_objdir/"
8090 _ACEOF
8095 case $host_os in
8096 aix3*)
8097 # AIX sometimes has problems with the GCC collect2 program. For some
8098 # reason, if we set the COLLECT_NAMES environment variable, the problems
8099 # vanish in a puff of smoke.
8100 if test "X${COLLECT_NAMES+set}" != Xset; then
8101 COLLECT_NAMES=
8102 export COLLECT_NAMES
8105 esac
8107 # Global variables:
8108 ofile=libtool
8109 can_build_shared=yes
8111 # All known linkers require a `.a' archive for static linking (except MSVC,
8112 # which needs '.lib').
8113 libext=a
8115 with_gnu_ld="$lt_cv_prog_gnu_ld"
8117 old_CC="$CC"
8118 old_CFLAGS="$CFLAGS"
8120 # Set sane defaults for various variables
8121 test -z "$CC" && CC=cc
8122 test -z "$LTCC" && LTCC=$CC
8123 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8124 test -z "$LD" && LD=ld
8125 test -z "$ac_objext" && ac_objext=o
8127 for cc_temp in $compiler""; do
8128 case $cc_temp in
8129 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8130 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8131 \-*) ;;
8132 *) break;;
8133 esac
8134 done
8135 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8138 # Only perform the check for file, if the check method requires it
8139 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8140 case $deplibs_check_method in
8141 file_magic*)
8142 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8144 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8145 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8146 $as_echo_n "(cached) " >&6
8147 else
8148 case $MAGIC_CMD in
8149 [\\/*] | ?:[\\/]*)
8150 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8153 lt_save_MAGIC_CMD="$MAGIC_CMD"
8154 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8155 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8156 for ac_dir in $ac_dummy; do
8157 IFS="$lt_save_ifs"
8158 test -z "$ac_dir" && ac_dir=.
8159 if test -f $ac_dir/${ac_tool_prefix}file; then
8160 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8161 if test -n "$file_magic_test_file"; then
8162 case $deplibs_check_method in
8163 "file_magic "*)
8164 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8165 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8166 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8167 $EGREP "$file_magic_regex" > /dev/null; then
8169 else
8170 cat <<_LT_EOF 1>&2
8172 *** Warning: the command libtool uses to detect shared libraries,
8173 *** $file_magic_cmd, produces output that libtool cannot recognize.
8174 *** The result is that libtool may fail to recognize shared libraries
8175 *** as such. This will affect the creation of libtool libraries that
8176 *** depend on shared libraries, but programs linked with such libtool
8177 *** libraries will work regardless of this problem. Nevertheless, you
8178 *** may want to report the problem to your system manager and/or to
8179 *** bug-libtool@gnu.org
8181 _LT_EOF
8182 fi ;;
8183 esac
8185 break
8187 done
8188 IFS="$lt_save_ifs"
8189 MAGIC_CMD="$lt_save_MAGIC_CMD"
8191 esac
8194 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8195 if test -n "$MAGIC_CMD"; then
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8197 $as_echo "$MAGIC_CMD" >&6; }
8198 else
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8200 $as_echo "no" >&6; }
8207 if test -z "$lt_cv_path_MAGIC_CMD"; then
8208 if test -n "$ac_tool_prefix"; then
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8210 $as_echo_n "checking for file... " >&6; }
8211 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8212 $as_echo_n "(cached) " >&6
8213 else
8214 case $MAGIC_CMD in
8215 [\\/*] | ?:[\\/]*)
8216 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8219 lt_save_MAGIC_CMD="$MAGIC_CMD"
8220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8221 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8222 for ac_dir in $ac_dummy; do
8223 IFS="$lt_save_ifs"
8224 test -z "$ac_dir" && ac_dir=.
8225 if test -f $ac_dir/file; then
8226 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8227 if test -n "$file_magic_test_file"; then
8228 case $deplibs_check_method in
8229 "file_magic "*)
8230 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8231 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8232 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8233 $EGREP "$file_magic_regex" > /dev/null; then
8235 else
8236 cat <<_LT_EOF 1>&2
8238 *** Warning: the command libtool uses to detect shared libraries,
8239 *** $file_magic_cmd, produces output that libtool cannot recognize.
8240 *** The result is that libtool may fail to recognize shared libraries
8241 *** as such. This will affect the creation of libtool libraries that
8242 *** depend on shared libraries, but programs linked with such libtool
8243 *** libraries will work regardless of this problem. Nevertheless, you
8244 *** may want to report the problem to your system manager and/or to
8245 *** bug-libtool@gnu.org
8247 _LT_EOF
8248 fi ;;
8249 esac
8251 break
8253 done
8254 IFS="$lt_save_ifs"
8255 MAGIC_CMD="$lt_save_MAGIC_CMD"
8257 esac
8260 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8261 if test -n "$MAGIC_CMD"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8263 $as_echo "$MAGIC_CMD" >&6; }
8264 else
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8270 else
8271 MAGIC_CMD=:
8277 esac
8279 # Use C for the default configuration in the libtool script
8281 lt_save_CC="$CC"
8282 ac_ext=c
8283 ac_cpp='$CPP $CPPFLAGS'
8284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8289 # Source file extension for C test sources.
8290 ac_ext=c
8292 # Object file extension for compiled C test sources.
8293 objext=o
8294 objext=$objext
8296 # Code to be used in simple compile tests
8297 lt_simple_compile_test_code="int some_variable = 0;"
8299 # Code to be used in simple link tests
8300 lt_simple_link_test_code='int main(){return(0);}'
8308 # If no C compiler was specified, use CC.
8309 LTCC=${LTCC-"$CC"}
8311 # If no C compiler flags were specified, use CFLAGS.
8312 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8314 # Allow CC to be a program name with arguments.
8315 compiler=$CC
8317 # Save the default compiler, since it gets overwritten when the other
8318 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8319 compiler_DEFAULT=$CC
8321 # save warnings/boilerplate of simple test code
8322 ac_outfile=conftest.$ac_objext
8323 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8324 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8325 _lt_compiler_boilerplate=`cat conftest.err`
8326 $RM conftest*
8328 ac_outfile=conftest.$ac_objext
8329 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8330 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8331 _lt_linker_boilerplate=`cat conftest.err`
8332 $RM -r conftest*
8335 ## CAVEAT EMPTOR:
8336 ## There is no encapsulation within the following macros, do not change
8337 ## the running order or otherwise move them around unless you know exactly
8338 ## what you are doing...
8339 if test -n "$compiler"; then
8341 lt_prog_compiler_no_builtin_flag=
8343 if test "$GCC" = yes; then
8344 case $cc_basename in
8345 nvcc*)
8346 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8348 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8349 esac
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8352 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8353 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8354 $as_echo_n "(cached) " >&6
8355 else
8356 lt_cv_prog_compiler_rtti_exceptions=no
8357 ac_outfile=conftest.$ac_objext
8358 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8359 lt_compiler_flag="-fno-rtti -fno-exceptions"
8360 # Insert the option either (1) after the last *FLAGS variable, or
8361 # (2) before a word containing "conftest.", or (3) at the end.
8362 # Note that $ac_compile itself does not contain backslashes and begins
8363 # with a dollar sign (not a hyphen), so the echo should work correctly.
8364 # The option is referenced via a variable to avoid confusing sed.
8365 lt_compile=`echo "$ac_compile" | $SED \
8366 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8367 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8368 -e 's:$: $lt_compiler_flag:'`
8369 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8370 (eval "$lt_compile" 2>conftest.err)
8371 ac_status=$?
8372 cat conftest.err >&5
8373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8374 if (exit $ac_status) && test -s "$ac_outfile"; then
8375 # The compiler can only warn and ignore the option if not recognized
8376 # So say no if there are warnings other than the usual output.
8377 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8378 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8379 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8380 lt_cv_prog_compiler_rtti_exceptions=yes
8383 $RM conftest*
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8387 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8389 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8390 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8391 else
8402 lt_prog_compiler_wl=
8403 lt_prog_compiler_pic=
8404 lt_prog_compiler_static=
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8407 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8409 if test "$GCC" = yes; then
8410 lt_prog_compiler_wl='-Wl,'
8411 lt_prog_compiler_static='-static'
8413 case $host_os in
8414 aix*)
8415 # All AIX code is PIC.
8416 if test "$host_cpu" = ia64; then
8417 # AIX 5 now supports IA64 processor
8418 lt_prog_compiler_static='-Bstatic'
8420 lt_prog_compiler_pic='-fPIC'
8423 amigaos*)
8424 case $host_cpu in
8425 powerpc)
8426 # see comment about AmigaOS4 .so support
8427 lt_prog_compiler_pic='-fPIC'
8429 m68k)
8430 # FIXME: we need at least 68020 code to build shared libraries, but
8431 # adding the `-m68020' flag to GCC prevents building anything better,
8432 # like `-m68040'.
8433 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8435 esac
8438 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8439 # PIC is the default for these OSes.
8442 mingw* | cygwin* | pw32* | os2* | cegcc*)
8443 # This hack is so that the source file can tell whether it is being
8444 # built for inclusion in a dll (and should export symbols for example).
8445 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8446 # (--disable-auto-import) libraries
8447 lt_prog_compiler_pic='-DDLL_EXPORT'
8450 darwin* | rhapsody*)
8451 # PIC is the default on this platform
8452 # Common symbols not allowed in MH_DYLIB files
8453 lt_prog_compiler_pic='-fno-common'
8456 haiku*)
8457 # PIC is the default for Haiku.
8458 # The "-static" flag exists, but is broken.
8459 lt_prog_compiler_static=
8462 hpux*)
8463 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8464 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8465 # sets the default TLS model and affects inlining.
8466 case $host_cpu in
8467 hppa*64*)
8468 # +Z the default
8471 lt_prog_compiler_pic='-fPIC'
8473 esac
8476 interix[3-9]*)
8477 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8478 # Instead, we relocate shared libraries at runtime.
8481 msdosdjgpp*)
8482 # Just because we use GCC doesn't mean we suddenly get shared libraries
8483 # on systems that don't support them.
8484 lt_prog_compiler_can_build_shared=no
8485 enable_shared=no
8488 *nto* | *qnx*)
8489 # QNX uses GNU C++, but need to define -shared option too, otherwise
8490 # it will coredump.
8491 lt_prog_compiler_pic='-fPIC -shared'
8494 sysv4*MP*)
8495 if test -d /usr/nec; then
8496 lt_prog_compiler_pic=-Kconform_pic
8501 lt_prog_compiler_pic='-fPIC'
8503 esac
8505 case $cc_basename in
8506 nvcc*) # Cuda Compiler Driver 2.2
8507 lt_prog_compiler_wl='-Xlinker '
8508 lt_prog_compiler_pic='-Xcompiler -fPIC'
8510 esac
8511 else
8512 # PORTME Check for flag to pass linker flags through the system compiler.
8513 case $host_os in
8514 aix*)
8515 lt_prog_compiler_wl='-Wl,'
8516 if test "$host_cpu" = ia64; then
8517 # AIX 5 now supports IA64 processor
8518 lt_prog_compiler_static='-Bstatic'
8519 else
8520 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8524 mingw* | cygwin* | pw32* | os2* | cegcc*)
8525 # This hack is so that the source file can tell whether it is being
8526 # built for inclusion in a dll (and should export symbols for example).
8527 lt_prog_compiler_pic='-DDLL_EXPORT'
8530 hpux9* | hpux10* | hpux11*)
8531 lt_prog_compiler_wl='-Wl,'
8532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8533 # not for PA HP-UX.
8534 case $host_cpu in
8535 hppa*64*|ia64*)
8536 # +Z the default
8539 lt_prog_compiler_pic='+Z'
8541 esac
8542 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8543 lt_prog_compiler_static='${wl}-a ${wl}archive'
8546 irix5* | irix6* | nonstopux*)
8547 lt_prog_compiler_wl='-Wl,'
8548 # PIC (with -KPIC) is the default.
8549 lt_prog_compiler_static='-non_shared'
8552 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8553 case $cc_basename in
8554 # old Intel for x86_64 which still supported -KPIC.
8555 ecc*)
8556 lt_prog_compiler_wl='-Wl,'
8557 lt_prog_compiler_pic='-KPIC'
8558 lt_prog_compiler_static='-static'
8560 # icc used to be incompatible with GCC.
8561 # ICC 10 doesn't accept -KPIC any more.
8562 icc* | ifort*)
8563 lt_prog_compiler_wl='-Wl,'
8564 lt_prog_compiler_pic='-fPIC'
8565 lt_prog_compiler_static='-static'
8567 # Lahey Fortran 8.1.
8568 lf95*)
8569 lt_prog_compiler_wl='-Wl,'
8570 lt_prog_compiler_pic='--shared'
8571 lt_prog_compiler_static='--static'
8573 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8574 # Portland Group compilers (*not* the Pentium gcc compiler,
8575 # which looks to be a dead project)
8576 lt_prog_compiler_wl='-Wl,'
8577 lt_prog_compiler_pic='-fpic'
8578 lt_prog_compiler_static='-Bstatic'
8580 ccc*)
8581 lt_prog_compiler_wl='-Wl,'
8582 # All Alpha code is PIC.
8583 lt_prog_compiler_static='-non_shared'
8585 xl* | bgxl* | bgf* | mpixl*)
8586 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8587 lt_prog_compiler_wl='-Wl,'
8588 lt_prog_compiler_pic='-qpic'
8589 lt_prog_compiler_static='-qstaticlink'
8592 case `$CC -V 2>&1 | sed 5q` in
8593 *Sun\ F* | *Sun*Fortran*)
8594 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8595 lt_prog_compiler_pic='-KPIC'
8596 lt_prog_compiler_static='-Bstatic'
8597 lt_prog_compiler_wl=''
8599 *Sun\ C*)
8600 # Sun C 5.9
8601 lt_prog_compiler_pic='-KPIC'
8602 lt_prog_compiler_static='-Bstatic'
8603 lt_prog_compiler_wl='-Wl,'
8605 esac
8607 esac
8610 newsos6)
8611 lt_prog_compiler_pic='-KPIC'
8612 lt_prog_compiler_static='-Bstatic'
8615 *nto* | *qnx*)
8616 # QNX uses GNU C++, but need to define -shared option too, otherwise
8617 # it will coredump.
8618 lt_prog_compiler_pic='-fPIC -shared'
8621 osf3* | osf4* | osf5*)
8622 lt_prog_compiler_wl='-Wl,'
8623 # All OSF/1 code is PIC.
8624 lt_prog_compiler_static='-non_shared'
8627 rdos*)
8628 lt_prog_compiler_static='-non_shared'
8631 solaris*)
8632 lt_prog_compiler_pic='-KPIC'
8633 lt_prog_compiler_static='-Bstatic'
8634 case $cc_basename in
8635 f77* | f90* | f95*)
8636 lt_prog_compiler_wl='-Qoption ld ';;
8638 lt_prog_compiler_wl='-Wl,';;
8639 esac
8642 sunos4*)
8643 lt_prog_compiler_wl='-Qoption ld '
8644 lt_prog_compiler_pic='-PIC'
8645 lt_prog_compiler_static='-Bstatic'
8648 sysv4 | sysv4.2uw2* | sysv4.3*)
8649 lt_prog_compiler_wl='-Wl,'
8650 lt_prog_compiler_pic='-KPIC'
8651 lt_prog_compiler_static='-Bstatic'
8654 sysv4*MP*)
8655 if test -d /usr/nec ;then
8656 lt_prog_compiler_pic='-Kconform_pic'
8657 lt_prog_compiler_static='-Bstatic'
8661 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8662 lt_prog_compiler_wl='-Wl,'
8663 lt_prog_compiler_pic='-KPIC'
8664 lt_prog_compiler_static='-Bstatic'
8667 unicos*)
8668 lt_prog_compiler_wl='-Wl,'
8669 lt_prog_compiler_can_build_shared=no
8672 uts4*)
8673 lt_prog_compiler_pic='-pic'
8674 lt_prog_compiler_static='-Bstatic'
8678 lt_prog_compiler_can_build_shared=no
8680 esac
8683 case $host_os in
8684 # For platforms which do not support PIC, -DPIC is meaningless:
8685 *djgpp*)
8686 lt_prog_compiler_pic=
8689 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8691 esac
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8693 $as_echo "$lt_prog_compiler_pic" >&6; }
8701 # Check to make sure the PIC flag actually works.
8703 if test -n "$lt_prog_compiler_pic"; then
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8705 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8706 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8707 $as_echo_n "(cached) " >&6
8708 else
8709 lt_cv_prog_compiler_pic_works=no
8710 ac_outfile=conftest.$ac_objext
8711 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8712 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8713 # Insert the option either (1) after the last *FLAGS variable, or
8714 # (2) before a word containing "conftest.", or (3) at the end.
8715 # Note that $ac_compile itself does not contain backslashes and begins
8716 # with a dollar sign (not a hyphen), so the echo should work correctly.
8717 # The option is referenced via a variable to avoid confusing sed.
8718 lt_compile=`echo "$ac_compile" | $SED \
8719 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8720 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8721 -e 's:$: $lt_compiler_flag:'`
8722 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8723 (eval "$lt_compile" 2>conftest.err)
8724 ac_status=$?
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 if (exit $ac_status) && test -s "$ac_outfile"; then
8728 # The compiler can only warn and ignore the option if not recognized
8729 # So say no if there are warnings other than the usual output.
8730 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8731 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8732 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8733 lt_cv_prog_compiler_pic_works=yes
8736 $RM conftest*
8739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8740 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8742 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8743 case $lt_prog_compiler_pic in
8744 "" | " "*) ;;
8745 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8746 esac
8747 else
8748 lt_prog_compiler_pic=
8749 lt_prog_compiler_can_build_shared=no
8760 # Check to make sure the static flag actually works.
8762 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8764 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8765 if ${lt_cv_prog_compiler_static_works+:} false; then :
8766 $as_echo_n "(cached) " >&6
8767 else
8768 lt_cv_prog_compiler_static_works=no
8769 save_LDFLAGS="$LDFLAGS"
8770 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8771 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8772 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8773 # The linker can only warn and ignore the option if not recognized
8774 # So say no if there are warnings
8775 if test -s conftest.err; then
8776 # Append any errors to the config.log.
8777 cat conftest.err 1>&5
8778 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8779 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8780 if diff conftest.exp conftest.er2 >/dev/null; then
8781 lt_cv_prog_compiler_static_works=yes
8783 else
8784 lt_cv_prog_compiler_static_works=yes
8787 $RM -r conftest*
8788 LDFLAGS="$save_LDFLAGS"
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8792 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8794 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8796 else
8797 lt_prog_compiler_static=
8806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8807 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8808 if ${lt_cv_prog_compiler_c_o+:} false; then :
8809 $as_echo_n "(cached) " >&6
8810 else
8811 lt_cv_prog_compiler_c_o=no
8812 $RM -r conftest 2>/dev/null
8813 mkdir conftest
8814 cd conftest
8815 mkdir out
8816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8818 lt_compiler_flag="-o out/conftest2.$ac_objext"
8819 # Insert the option either (1) after the last *FLAGS variable, or
8820 # (2) before a word containing "conftest.", or (3) at the end.
8821 # Note that $ac_compile itself does not contain backslashes and begins
8822 # with a dollar sign (not a hyphen), so the echo should work correctly.
8823 lt_compile=`echo "$ac_compile" | $SED \
8824 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8826 -e 's:$: $lt_compiler_flag:'`
8827 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8828 (eval "$lt_compile" 2>out/conftest.err)
8829 ac_status=$?
8830 cat out/conftest.err >&5
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8833 then
8834 # The compiler can only warn and ignore the option if not recognized
8835 # So say no if there are warnings
8836 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8837 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8838 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8839 lt_cv_prog_compiler_c_o=yes
8842 chmod u+w . 2>&5
8843 $RM conftest*
8844 # SGI C++ compiler will create directory out/ii_files/ for
8845 # template instantiation
8846 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8847 $RM out/* && rmdir out
8848 cd ..
8849 $RM -r conftest
8850 $RM conftest*
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8854 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8862 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8863 if ${lt_cv_prog_compiler_c_o+:} false; then :
8864 $as_echo_n "(cached) " >&6
8865 else
8866 lt_cv_prog_compiler_c_o=no
8867 $RM -r conftest 2>/dev/null
8868 mkdir conftest
8869 cd conftest
8870 mkdir out
8871 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8873 lt_compiler_flag="-o out/conftest2.$ac_objext"
8874 # Insert the option either (1) after the last *FLAGS variable, or
8875 # (2) before a word containing "conftest.", or (3) at the end.
8876 # Note that $ac_compile itself does not contain backslashes and begins
8877 # with a dollar sign (not a hyphen), so the echo should work correctly.
8878 lt_compile=`echo "$ac_compile" | $SED \
8879 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8880 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8881 -e 's:$: $lt_compiler_flag:'`
8882 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8883 (eval "$lt_compile" 2>out/conftest.err)
8884 ac_status=$?
8885 cat out/conftest.err >&5
8886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8888 then
8889 # The compiler can only warn and ignore the option if not recognized
8890 # So say no if there are warnings
8891 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8892 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8893 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8894 lt_cv_prog_compiler_c_o=yes
8897 chmod u+w . 2>&5
8898 $RM conftest*
8899 # SGI C++ compiler will create directory out/ii_files/ for
8900 # template instantiation
8901 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8902 $RM out/* && rmdir out
8903 cd ..
8904 $RM -r conftest
8905 $RM conftest*
8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8909 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8914 hard_links="nottested"
8915 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8916 # do not overwrite the value of need_locks provided by the user
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8918 $as_echo_n "checking if we can lock with hard links... " >&6; }
8919 hard_links=yes
8920 $RM conftest*
8921 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8922 touch conftest.a
8923 ln conftest.a conftest.b 2>&5 || hard_links=no
8924 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8926 $as_echo "$hard_links" >&6; }
8927 if test "$hard_links" = no; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8929 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8930 need_locks=warn
8932 else
8933 need_locks=no
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8942 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8944 runpath_var=
8945 allow_undefined_flag=
8946 always_export_symbols=no
8947 archive_cmds=
8948 archive_expsym_cmds=
8949 compiler_needs_object=no
8950 enable_shared_with_static_runtimes=no
8951 export_dynamic_flag_spec=
8952 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8953 hardcode_automatic=no
8954 hardcode_direct=no
8955 hardcode_direct_absolute=no
8956 hardcode_libdir_flag_spec=
8957 hardcode_libdir_flag_spec_ld=
8958 hardcode_libdir_separator=
8959 hardcode_minus_L=no
8960 hardcode_shlibpath_var=unsupported
8961 inherit_rpath=no
8962 link_all_deplibs=unknown
8963 module_cmds=
8964 module_expsym_cmds=
8965 old_archive_from_new_cmds=
8966 old_archive_from_expsyms_cmds=
8967 thread_safe_flag_spec=
8968 whole_archive_flag_spec=
8969 # include_expsyms should be a list of space-separated symbols to be *always*
8970 # included in the symbol list
8971 include_expsyms=
8972 # exclude_expsyms can be an extended regexp of symbols to exclude
8973 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8974 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8975 # as well as any symbol that contains `d'.
8976 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8977 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8978 # platforms (ab)use it in PIC code, but their linkers get confused if
8979 # the symbol is explicitly referenced. Since portable code cannot
8980 # rely on this symbol name, it's probably fine to never include it in
8981 # preloaded symbol tables.
8982 # Exclude shared library initialization/finalization symbols.
8983 extract_expsyms_cmds=
8985 case $host_os in
8986 cygwin* | mingw* | pw32* | cegcc*)
8987 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8988 # When not using gcc, we currently assume that we are using
8989 # Microsoft Visual C++.
8990 if test "$GCC" != yes; then
8991 with_gnu_ld=no
8994 interix*)
8995 # we just hope/assume this is gcc and not c89 (= MSVC++)
8996 with_gnu_ld=yes
8998 openbsd*)
8999 with_gnu_ld=no
9001 esac
9003 ld_shlibs=yes
9005 # On some targets, GNU ld is compatible enough with the native linker
9006 # that we're better off using the native interface for both.
9007 lt_use_gnu_ld_interface=no
9008 if test "$with_gnu_ld" = yes; then
9009 case $host_os in
9010 aix*)
9011 # The AIX port of GNU ld has always aspired to compatibility
9012 # with the native linker. However, as the warning in the GNU ld
9013 # block says, versions before 2.19.5* couldn't really create working
9014 # shared libraries, regardless of the interface used.
9015 case `$LD -v 2>&1` in
9016 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9017 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9018 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9020 lt_use_gnu_ld_interface=yes
9022 esac
9025 lt_use_gnu_ld_interface=yes
9027 esac
9030 if test "$lt_use_gnu_ld_interface" = yes; then
9031 # If archive_cmds runs LD, not CC, wlarc should be empty
9032 wlarc='${wl}'
9034 # Set some defaults for GNU ld with shared library support. These
9035 # are reset later if shared libraries are not supported. Putting them
9036 # here allows them to be overridden if necessary.
9037 runpath_var=LD_RUN_PATH
9038 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9039 export_dynamic_flag_spec='${wl}--export-dynamic'
9040 # ancient GNU ld didn't support --whole-archive et. al.
9041 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9042 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9043 else
9044 whole_archive_flag_spec=
9046 supports_anon_versioning=no
9047 case `$LD -v 2>&1` in
9048 *GNU\ gold*) supports_anon_versioning=yes ;;
9049 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9050 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9051 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9052 *\ 2.11.*) ;; # other 2.11 versions
9053 *) supports_anon_versioning=yes ;;
9054 esac
9056 # See if GNU ld supports shared libraries.
9057 case $host_os in
9058 aix[3-9]*)
9059 # On AIX/PPC, the GNU linker is very broken
9060 if test "$host_cpu" != ia64; then
9061 ld_shlibs=no
9062 cat <<_LT_EOF 1>&2
9064 *** Warning: the GNU linker, at least up to release 2.19, is reported
9065 *** to be unable to reliably create shared libraries on AIX.
9066 *** Therefore, libtool is disabling shared libraries support. If you
9067 *** really care for shared libraries, you may want to install binutils
9068 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9069 *** You will then need to restart the configuration process.
9071 _LT_EOF
9075 amigaos*)
9076 case $host_cpu in
9077 powerpc)
9078 # see comment about AmigaOS4 .so support
9079 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9080 archive_expsym_cmds=''
9082 m68k)
9083 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)'
9084 hardcode_libdir_flag_spec='-L$libdir'
9085 hardcode_minus_L=yes
9087 esac
9090 beos*)
9091 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9092 allow_undefined_flag=unsupported
9093 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9094 # support --undefined. This deserves some investigation. FIXME
9095 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9096 else
9097 ld_shlibs=no
9101 cygwin* | mingw* | pw32* | cegcc*)
9102 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9103 # as there is no search path for DLLs.
9104 hardcode_libdir_flag_spec='-L$libdir'
9105 export_dynamic_flag_spec='${wl}--export-all-symbols'
9106 allow_undefined_flag=unsupported
9107 always_export_symbols=no
9108 enable_shared_with_static_runtimes=yes
9109 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9111 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9112 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9113 # If the export-symbols file already is a .def file (1st line
9114 # is EXPORTS), use it as is; otherwise, prepend...
9115 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9116 cp $export_symbols $output_objdir/$soname.def;
9117 else
9118 echo EXPORTS > $output_objdir/$soname.def;
9119 cat $export_symbols >> $output_objdir/$soname.def;
9121 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9122 else
9123 ld_shlibs=no
9127 haiku*)
9128 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9129 link_all_deplibs=yes
9132 interix[3-9]*)
9133 hardcode_direct=no
9134 hardcode_shlibpath_var=no
9135 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9136 export_dynamic_flag_spec='${wl}-E'
9137 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9138 # Instead, shared libraries are loaded at an image base (0x10000000 by
9139 # default) and relocated if they conflict, which is a slow very memory
9140 # consuming and fragmenting process. To avoid this, we pick a random,
9141 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9142 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9143 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9144 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'
9147 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9148 tmp_diet=no
9149 if test "$host_os" = linux-dietlibc; then
9150 case $cc_basename in
9151 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9152 esac
9154 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9155 && test "$tmp_diet" = no
9156 then
9157 tmp_addflag=' $pic_flag'
9158 tmp_sharedflag='-shared'
9159 case $cc_basename,$host_cpu in
9160 pgcc*) # Portland Group C compiler
9161 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'
9162 tmp_addflag=' $pic_flag'
9164 pgf77* | pgf90* | pgf95* | pgfortran*)
9165 # Portland Group f77 and f90 compilers
9166 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'
9167 tmp_addflag=' $pic_flag -Mnomain' ;;
9168 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9169 tmp_addflag=' -i_dynamic' ;;
9170 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9171 tmp_addflag=' -i_dynamic -nofor_main' ;;
9172 ifc* | ifort*) # Intel Fortran compiler
9173 tmp_addflag=' -nofor_main' ;;
9174 lf95*) # Lahey Fortran 8.1
9175 whole_archive_flag_spec=
9176 tmp_sharedflag='--shared' ;;
9177 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9178 tmp_sharedflag='-qmkshrobj'
9179 tmp_addflag= ;;
9180 nvcc*) # Cuda Compiler Driver 2.2
9181 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'
9182 compiler_needs_object=yes
9184 esac
9185 case `$CC -V 2>&1 | sed 5q` in
9186 *Sun\ C*) # Sun C 5.9
9187 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'
9188 compiler_needs_object=yes
9189 tmp_sharedflag='-G' ;;
9190 *Sun\ F*) # Sun Fortran 8.3
9191 tmp_sharedflag='-G' ;;
9192 esac
9193 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195 if test "x$supports_anon_versioning" = xyes; then
9196 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9197 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9198 echo "local: *; };" >> $output_objdir/$libname.ver~
9199 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9202 case $cc_basename in
9203 xlf* | bgf* | bgxlf* | mpixlf*)
9204 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9205 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9206 hardcode_libdir_flag_spec=
9207 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9208 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9209 if test "x$supports_anon_versioning" = xyes; then
9210 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9211 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9212 echo "local: *; };" >> $output_objdir/$libname.ver~
9213 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9216 esac
9217 else
9218 ld_shlibs=no
9222 netbsd*)
9223 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9224 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9225 wlarc=
9226 else
9227 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9228 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9232 solaris*)
9233 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9234 ld_shlibs=no
9235 cat <<_LT_EOF 1>&2
9237 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9238 *** create shared libraries on Solaris systems. Therefore, libtool
9239 *** is disabling shared libraries support. We urge you to upgrade GNU
9240 *** binutils to release 2.9.1 or newer. Another option is to modify
9241 *** your PATH or compiler configuration so that the native linker is
9242 *** used, and then restart.
9244 _LT_EOF
9245 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9246 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9247 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9248 else
9249 ld_shlibs=no
9253 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9254 case `$LD -v 2>&1` in
9255 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9256 ld_shlibs=no
9257 cat <<_LT_EOF 1>&2
9259 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9260 *** reliably create shared libraries on SCO systems. Therefore, libtool
9261 *** is disabling shared libraries support. We urge you to upgrade GNU
9262 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9263 *** your PATH or compiler configuration so that the native linker is
9264 *** used, and then restart.
9266 _LT_EOF
9269 # For security reasons, it is highly recommended that you always
9270 # use absolute paths for naming shared libraries, and exclude the
9271 # DT_RUNPATH tag from executables and libraries. But doing so
9272 # requires that you compile everything twice, which is a pain.
9273 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9274 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9275 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9276 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9277 else
9278 ld_shlibs=no
9281 esac
9284 sunos4*)
9285 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9286 wlarc=
9287 hardcode_direct=yes
9288 hardcode_shlibpath_var=no
9292 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9293 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9294 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9295 else
9296 ld_shlibs=no
9299 esac
9301 if test "$ld_shlibs" = no; then
9302 runpath_var=
9303 hardcode_libdir_flag_spec=
9304 export_dynamic_flag_spec=
9305 whole_archive_flag_spec=
9307 else
9308 # PORTME fill in a description of your system's linker (not GNU ld)
9309 case $host_os in
9310 aix3*)
9311 allow_undefined_flag=unsupported
9312 always_export_symbols=yes
9313 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'
9314 # Note: this linker hardcodes the directories in LIBPATH if there
9315 # are no directories specified by -L.
9316 hardcode_minus_L=yes
9317 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9318 # Neither direct hardcoding nor static linking is supported with a
9319 # broken collect2.
9320 hardcode_direct=unsupported
9324 aix[4-9]*)
9325 if test "$host_cpu" = ia64; then
9326 # On IA64, the linker does run time linking by default, so we don't
9327 # have to do anything special.
9328 aix_use_runtimelinking=no
9329 exp_sym_flag='-Bexport'
9330 no_entry_flag=""
9331 else
9332 # If we're using GNU nm, then we don't want the "-C" option.
9333 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9334 # Also, AIX nm treats weak defined symbols like other global
9335 # defined symbols, whereas GNU nm marks them as "W".
9336 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9337 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'
9338 else
9339 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'
9341 aix_use_runtimelinking=no
9343 # Test if we are trying to use run time linking or normal
9344 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9345 # need to do runtime linking.
9346 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9347 for ld_flag in $LDFLAGS; do
9348 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9349 aix_use_runtimelinking=yes
9350 break
9352 done
9354 esac
9356 exp_sym_flag='-bexport'
9357 no_entry_flag='-bnoentry'
9360 # When large executables or shared objects are built, AIX ld can
9361 # have problems creating the table of contents. If linking a library
9362 # or program results in "error TOC overflow" add -mminimal-toc to
9363 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9364 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9366 archive_cmds=''
9367 hardcode_direct=yes
9368 hardcode_direct_absolute=yes
9369 hardcode_libdir_separator=':'
9370 link_all_deplibs=yes
9371 file_list_spec='${wl}-f,'
9373 if test "$GCC" = yes; then
9374 case $host_os in aix4.[012]|aix4.[012].*)
9375 # We only want to do this on AIX 4.2 and lower, the check
9376 # below for broken collect2 doesn't work under 4.3+
9377 collect2name=`${CC} -print-prog-name=collect2`
9378 if test -f "$collect2name" &&
9379 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9380 then
9381 # We have reworked collect2
9383 else
9384 # We have old collect2
9385 hardcode_direct=unsupported
9386 # It fails to find uninstalled libraries when the uninstalled
9387 # path is not listed in the libpath. Setting hardcode_minus_L
9388 # to unsupported forces relinking
9389 hardcode_minus_L=yes
9390 hardcode_libdir_flag_spec='-L$libdir'
9391 hardcode_libdir_separator=
9394 esac
9395 shared_flag='-shared'
9396 if test "$aix_use_runtimelinking" = yes; then
9397 shared_flag="$shared_flag "'${wl}-G'
9399 else
9400 # not using gcc
9401 if test "$host_cpu" = ia64; then
9402 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9403 # chokes on -Wl,-G. The following line is correct:
9404 shared_flag='-G'
9405 else
9406 if test "$aix_use_runtimelinking" = yes; then
9407 shared_flag='${wl}-G'
9408 else
9409 shared_flag='${wl}-bM:SRE'
9414 export_dynamic_flag_spec='${wl}-bexpall'
9415 # It seems that -bexpall does not export symbols beginning with
9416 # underscore (_), so it is better to generate a list of symbols to export.
9417 always_export_symbols=yes
9418 if test "$aix_use_runtimelinking" = yes; then
9419 # Warning - without using the other runtime loading flags (-brtl),
9420 # -berok will link without error, but may produce a broken library.
9421 allow_undefined_flag='-berok'
9422 # Determine the default libpath from the value encoded in an
9423 # empty executable.
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425 /* end confdefs.h. */
9428 main ()
9432 return 0;
9434 _ACEOF
9435 if ac_fn_c_try_link "$LINENO"; then :
9437 lt_aix_libpath_sed='
9438 /Import File Strings/,/^$/ {
9439 /^0/ {
9440 s/^0 *\(.*\)$/\1/
9444 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9445 # Check for a 64-bit object if we didn't find anything.
9446 if test -z "$aix_libpath"; then
9447 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9450 rm -f core conftest.err conftest.$ac_objext \
9451 conftest$ac_exeext conftest.$ac_ext
9452 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9454 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9455 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"
9456 else
9457 if test "$host_cpu" = ia64; then
9458 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9459 allow_undefined_flag="-z nodefs"
9460 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"
9461 else
9462 # Determine the default libpath from the value encoded in an
9463 # empty executable.
9464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465 /* end confdefs.h. */
9468 main ()
9472 return 0;
9474 _ACEOF
9475 if ac_fn_c_try_link "$LINENO"; then :
9477 lt_aix_libpath_sed='
9478 /Import File Strings/,/^$/ {
9479 /^0/ {
9480 s/^0 *\(.*\)$/\1/
9484 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9485 # Check for a 64-bit object if we didn't find anything.
9486 if test -z "$aix_libpath"; then
9487 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9490 rm -f core conftest.err conftest.$ac_objext \
9491 conftest$ac_exeext conftest.$ac_ext
9492 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9494 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9495 # Warning - without using the other run time loading flags,
9496 # -berok will link without error, but may produce a broken library.
9497 no_undefined_flag=' ${wl}-bernotok'
9498 allow_undefined_flag=' ${wl}-berok'
9499 if test "$with_gnu_ld" = yes; then
9500 # We only use this code for GNU lds that support --whole-archive.
9501 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9502 else
9503 # Exported symbols can be pulled into shared objects from archives
9504 whole_archive_flag_spec='$convenience'
9506 archive_cmds_need_lc=yes
9507 # This is similar to how AIX traditionally builds its shared libraries.
9508 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'
9513 amigaos*)
9514 case $host_cpu in
9515 powerpc)
9516 # see comment about AmigaOS4 .so support
9517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9518 archive_expsym_cmds=''
9520 m68k)
9521 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)'
9522 hardcode_libdir_flag_spec='-L$libdir'
9523 hardcode_minus_L=yes
9525 esac
9528 bsdi[45]*)
9529 export_dynamic_flag_spec=-rdynamic
9532 cygwin* | mingw* | pw32* | cegcc*)
9533 # When not using gcc, we currently assume that we are using
9534 # Microsoft Visual C++.
9535 # hardcode_libdir_flag_spec is actually meaningless, as there is
9536 # no search path for DLLs.
9537 hardcode_libdir_flag_spec=' '
9538 allow_undefined_flag=unsupported
9539 # Tell ltmain to make .lib files, not .a files.
9540 libext=lib
9541 # Tell ltmain to make .dll files, not .so files.
9542 shrext_cmds=".dll"
9543 # FIXME: Setting linknames here is a bad hack.
9544 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9545 # The linker will automatically build a .lib file if we build a DLL.
9546 old_archive_from_new_cmds='true'
9547 # FIXME: Should let the user specify the lib program.
9548 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9549 fix_srcfile_path='`cygpath -w "$srcfile"`'
9550 enable_shared_with_static_runtimes=yes
9553 darwin* | rhapsody*)
9556 archive_cmds_need_lc=no
9557 hardcode_direct=no
9558 hardcode_automatic=yes
9559 hardcode_shlibpath_var=unsupported
9560 if test "$lt_cv_ld_force_load" = "yes"; then
9561 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\"`'
9562 else
9563 whole_archive_flag_spec=''
9565 link_all_deplibs=yes
9566 allow_undefined_flag="$_lt_dar_allow_undefined"
9567 case $cc_basename in
9568 ifort*) _lt_dar_can_shared=yes ;;
9569 *) _lt_dar_can_shared=$GCC ;;
9570 esac
9571 if test "$_lt_dar_can_shared" = "yes"; then
9572 output_verbose_link_cmd=func_echo_all
9573 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9574 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9575 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}"
9576 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}"
9578 else
9579 ld_shlibs=no
9584 dgux*)
9585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9586 hardcode_libdir_flag_spec='-L$libdir'
9587 hardcode_shlibpath_var=no
9590 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9591 # support. Future versions do this automatically, but an explicit c++rt0.o
9592 # does not break anything, and helps significantly (at the cost of a little
9593 # extra space).
9594 freebsd2.2*)
9595 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9596 hardcode_libdir_flag_spec='-R$libdir'
9597 hardcode_direct=yes
9598 hardcode_shlibpath_var=no
9601 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9602 freebsd2.*)
9603 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9604 hardcode_direct=yes
9605 hardcode_minus_L=yes
9606 hardcode_shlibpath_var=no
9609 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9610 freebsd* | dragonfly*)
9611 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9612 hardcode_libdir_flag_spec='-R$libdir'
9613 hardcode_direct=yes
9614 hardcode_shlibpath_var=no
9617 hpux9*)
9618 if test "$GCC" = yes; then
9619 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'
9620 else
9621 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'
9623 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9624 hardcode_libdir_separator=:
9625 hardcode_direct=yes
9627 # hardcode_minus_L: Not really in the search PATH,
9628 # but as the default location of the library.
9629 hardcode_minus_L=yes
9630 export_dynamic_flag_spec='${wl}-E'
9633 hpux10*)
9634 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9635 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9636 else
9637 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9639 if test "$with_gnu_ld" = no; then
9640 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9641 hardcode_libdir_flag_spec_ld='+b $libdir'
9642 hardcode_libdir_separator=:
9643 hardcode_direct=yes
9644 hardcode_direct_absolute=yes
9645 export_dynamic_flag_spec='${wl}-E'
9646 # hardcode_minus_L: Not really in the search PATH,
9647 # but as the default location of the library.
9648 hardcode_minus_L=yes
9652 hpux11*)
9653 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9654 case $host_cpu in
9655 hppa*64*)
9656 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9658 ia64*)
9659 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9662 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9664 esac
9665 else
9666 case $host_cpu in
9667 hppa*64*)
9668 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9670 ia64*)
9671 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9675 # Older versions of the 11.00 compiler do not understand -b yet
9676 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9678 $as_echo_n "checking if $CC understands -b... " >&6; }
9679 if ${lt_cv_prog_compiler__b+:} false; then :
9680 $as_echo_n "(cached) " >&6
9681 else
9682 lt_cv_prog_compiler__b=no
9683 save_LDFLAGS="$LDFLAGS"
9684 LDFLAGS="$LDFLAGS -b"
9685 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9686 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9687 # The linker can only warn and ignore the option if not recognized
9688 # So say no if there are warnings
9689 if test -s conftest.err; then
9690 # Append any errors to the config.log.
9691 cat conftest.err 1>&5
9692 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9693 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9694 if diff conftest.exp conftest.er2 >/dev/null; then
9695 lt_cv_prog_compiler__b=yes
9697 else
9698 lt_cv_prog_compiler__b=yes
9701 $RM -r conftest*
9702 LDFLAGS="$save_LDFLAGS"
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9706 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9708 if test x"$lt_cv_prog_compiler__b" = xyes; then
9709 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9710 else
9711 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9715 esac
9717 if test "$with_gnu_ld" = no; then
9718 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9719 hardcode_libdir_separator=:
9721 case $host_cpu in
9722 hppa*64*|ia64*)
9723 hardcode_direct=no
9724 hardcode_shlibpath_var=no
9727 hardcode_direct=yes
9728 hardcode_direct_absolute=yes
9729 export_dynamic_flag_spec='${wl}-E'
9731 # hardcode_minus_L: Not really in the search PATH,
9732 # but as the default location of the library.
9733 hardcode_minus_L=yes
9735 esac
9739 irix5* | irix6* | nonstopux*)
9740 if test "$GCC" = yes; then
9741 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'
9742 # Try to use the -exported_symbol ld option, if it does not
9743 # work, assume that -exports_file does not work either and
9744 # implicitly export all symbols.
9745 save_LDFLAGS="$LDFLAGS"
9746 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9749 int foo(void) {}
9750 _ACEOF
9751 if ac_fn_c_try_link "$LINENO"; then :
9752 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'
9755 rm -f core conftest.err conftest.$ac_objext \
9756 conftest$ac_exeext conftest.$ac_ext
9757 LDFLAGS="$save_LDFLAGS"
9758 else
9759 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'
9760 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'
9762 archive_cmds_need_lc='no'
9763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9764 hardcode_libdir_separator=:
9765 inherit_rpath=yes
9766 link_all_deplibs=yes
9769 netbsd*)
9770 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9772 else
9773 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9775 hardcode_libdir_flag_spec='-R$libdir'
9776 hardcode_direct=yes
9777 hardcode_shlibpath_var=no
9780 newsos6)
9781 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9782 hardcode_direct=yes
9783 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9784 hardcode_libdir_separator=:
9785 hardcode_shlibpath_var=no
9788 *nto* | *qnx*)
9791 openbsd*)
9792 if test -f /usr/libexec/ld.so; then
9793 hardcode_direct=yes
9794 hardcode_shlibpath_var=no
9795 hardcode_direct_absolute=yes
9796 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9797 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9798 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9800 export_dynamic_flag_spec='${wl}-E'
9801 else
9802 case $host_os in
9803 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9804 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9805 hardcode_libdir_flag_spec='-R$libdir'
9808 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9809 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9811 esac
9813 else
9814 ld_shlibs=no
9818 os2*)
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 hardcode_minus_L=yes
9821 allow_undefined_flag=unsupported
9822 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'
9823 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9826 osf3*)
9827 if test "$GCC" = yes; then
9828 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9829 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'
9830 else
9831 allow_undefined_flag=' -expect_unresolved \*'
9832 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'
9834 archive_cmds_need_lc='no'
9835 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9836 hardcode_libdir_separator=:
9839 osf4* | osf5*) # as osf3* with the addition of -msym flag
9840 if test "$GCC" = yes; then
9841 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9842 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'
9843 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9844 else
9845 allow_undefined_flag=' -expect_unresolved \*'
9846 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'
9847 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~
9848 $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'
9850 # Both c and cxx compiler support -rpath directly
9851 hardcode_libdir_flag_spec='-rpath $libdir'
9853 archive_cmds_need_lc='no'
9854 hardcode_libdir_separator=:
9857 solaris*)
9858 no_undefined_flag=' -z defs'
9859 if test "$GCC" = yes; then
9860 wlarc='${wl}'
9861 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9862 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9863 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9864 else
9865 case `$CC -V 2>&1` in
9866 *"Compilers 5.0"*)
9867 wlarc=''
9868 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9870 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9873 wlarc='${wl}'
9874 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9875 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9876 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9878 esac
9880 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_shlibpath_var=no
9882 case $host_os in
9883 solaris2.[0-5] | solaris2.[0-5].*) ;;
9885 # The compiler driver will combine and reorder linker options,
9886 # but understands `-z linker_flag'. GCC discards it without `$wl',
9887 # but is careful enough not to reorder.
9888 # Supported since Solaris 2.6 (maybe 2.5.1?)
9889 if test "$GCC" = yes; then
9890 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9891 else
9892 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9895 esac
9896 link_all_deplibs=yes
9899 sunos4*)
9900 if test "x$host_vendor" = xsequent; then
9901 # Use $CC to link under sequent, because it throws in some extra .o
9902 # files that make .init and .fini sections work.
9903 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9904 else
9905 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9907 hardcode_libdir_flag_spec='-L$libdir'
9908 hardcode_direct=yes
9909 hardcode_minus_L=yes
9910 hardcode_shlibpath_var=no
9913 sysv4)
9914 case $host_vendor in
9915 sni)
9916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9917 hardcode_direct=yes # is this really true???
9919 siemens)
9920 ## LD is ld it makes a PLAMLIB
9921 ## CC just makes a GrossModule.
9922 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9923 reload_cmds='$CC -r -o $output$reload_objs'
9924 hardcode_direct=no
9926 motorola)
9927 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9928 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9930 esac
9931 runpath_var='LD_RUN_PATH'
9932 hardcode_shlibpath_var=no
9935 sysv4.3*)
9936 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937 hardcode_shlibpath_var=no
9938 export_dynamic_flag_spec='-Bexport'
9941 sysv4*MP*)
9942 if test -d /usr/nec; then
9943 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9944 hardcode_shlibpath_var=no
9945 runpath_var=LD_RUN_PATH
9946 hardcode_runpath_var=yes
9947 ld_shlibs=yes
9951 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9952 no_undefined_flag='${wl}-z,text'
9953 archive_cmds_need_lc=no
9954 hardcode_shlibpath_var=no
9955 runpath_var='LD_RUN_PATH'
9957 if test "$GCC" = yes; then
9958 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9959 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9960 else
9961 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9962 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9966 sysv5* | sco3.2v5* | sco5v6*)
9967 # Note: We can NOT use -z defs as we might desire, because we do not
9968 # link with -lc, and that would cause any symbols used from libc to
9969 # always be unresolved, which means just about no library would
9970 # ever link correctly. If we're not using GNU ld we use -z text
9971 # though, which does catch some bad symbols but isn't as heavy-handed
9972 # as -z defs.
9973 no_undefined_flag='${wl}-z,text'
9974 allow_undefined_flag='${wl}-z,nodefs'
9975 archive_cmds_need_lc=no
9976 hardcode_shlibpath_var=no
9977 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9978 hardcode_libdir_separator=':'
9979 link_all_deplibs=yes
9980 export_dynamic_flag_spec='${wl}-Bexport'
9981 runpath_var='LD_RUN_PATH'
9983 if test "$GCC" = yes; then
9984 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9985 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9986 else
9987 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9992 uts4*)
9993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994 hardcode_libdir_flag_spec='-L$libdir'
9995 hardcode_shlibpath_var=no
9999 ld_shlibs=no
10001 esac
10003 if test x$host_vendor = xsni; then
10004 case $host in
10005 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10006 export_dynamic_flag_spec='${wl}-Blargedynsym'
10008 esac
10012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10013 $as_echo "$ld_shlibs" >&6; }
10014 test "$ld_shlibs" = no && can_build_shared=no
10016 with_gnu_ld=$with_gnu_ld
10033 # Do we need to explicitly link libc?
10035 case "x$archive_cmds_need_lc" in
10036 x|xyes)
10037 # Assume -lc should be added
10038 archive_cmds_need_lc=yes
10040 if test "$enable_shared" = yes && test "$GCC" = yes; then
10041 case $archive_cmds in
10042 *'~'*)
10043 # FIXME: we may have to deal with multi-command sequences.
10045 '$CC '*)
10046 # Test whether the compiler implicitly links with -lc since on some
10047 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10048 # to ld, don't add -lc before -lgcc.
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10050 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10051 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10052 $as_echo_n "(cached) " >&6
10053 else
10054 $RM conftest*
10055 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10058 (eval $ac_compile) 2>&5
10059 ac_status=$?
10060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10061 test $ac_status = 0; } 2>conftest.err; then
10062 soname=conftest
10063 lib=conftest
10064 libobjs=conftest.$ac_objext
10065 deplibs=
10066 wl=$lt_prog_compiler_wl
10067 pic_flag=$lt_prog_compiler_pic
10068 compiler_flags=-v
10069 linker_flags=-v
10070 verstring=
10071 output_objdir=.
10072 libname=conftest
10073 lt_save_allow_undefined_flag=$allow_undefined_flag
10074 allow_undefined_flag=
10075 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10076 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10077 ac_status=$?
10078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10079 test $ac_status = 0; }
10080 then
10081 lt_cv_archive_cmds_need_lc=no
10082 else
10083 lt_cv_archive_cmds_need_lc=yes
10085 allow_undefined_flag=$lt_save_allow_undefined_flag
10086 else
10087 cat conftest.err 1>&5
10089 $RM conftest*
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10093 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10094 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10096 esac
10099 esac
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10258 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10260 if test "$GCC" = yes; then
10261 case $host_os in
10262 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10263 *) lt_awk_arg="/^libraries:/" ;;
10264 esac
10265 case $host_os in
10266 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10267 *) lt_sed_strip_eq="s,=/,/,g" ;;
10268 esac
10269 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10270 case $lt_search_path_spec in
10271 *\;*)
10272 # if the path contains ";" then we assume it to be the separator
10273 # otherwise default to the standard path separator (i.e. ":") - it is
10274 # assumed that no part of a normal pathname contains ";" but that should
10275 # okay in the real world where ";" in dirpaths is itself problematic.
10276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10279 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10281 esac
10282 # Ok, now we have the path, separated by spaces, we can step through it
10283 # and add multilib dir if necessary.
10284 lt_tmp_lt_search_path_spec=
10285 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10286 for lt_sys_path in $lt_search_path_spec; do
10287 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10288 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10289 else
10290 test -d "$lt_sys_path" && \
10291 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10293 done
10294 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10295 BEGIN {RS=" "; FS="/|\n";} {
10296 lt_foo="";
10297 lt_count=0;
10298 for (lt_i = NF; lt_i > 0; lt_i--) {
10299 if ($lt_i != "" && $lt_i != ".") {
10300 if ($lt_i == "..") {
10301 lt_count++;
10302 } else {
10303 if (lt_count == 0) {
10304 lt_foo="/" $lt_i lt_foo;
10305 } else {
10306 lt_count--;
10311 if (lt_foo != "") { lt_freq[lt_foo]++; }
10312 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10314 # AWK program above erroneously prepends '/' to C:/dos/paths
10315 # for these hosts.
10316 case $host_os in
10317 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10318 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10319 esac
10320 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10321 else
10322 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10324 library_names_spec=
10325 libname_spec='lib$name'
10326 soname_spec=
10327 shrext_cmds=".so"
10328 postinstall_cmds=
10329 postuninstall_cmds=
10330 finish_cmds=
10331 finish_eval=
10332 shlibpath_var=
10333 shlibpath_overrides_runpath=unknown
10334 version_type=none
10335 dynamic_linker="$host_os ld.so"
10336 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10337 need_lib_prefix=unknown
10338 hardcode_into_libs=no
10340 # when you set need_version to no, make sure it does not cause -set_version
10341 # flags to be left without arguments
10342 need_version=unknown
10344 case $host_os in
10345 aix3*)
10346 version_type=linux
10347 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10348 shlibpath_var=LIBPATH
10350 # AIX 3 has no versioning support, so we append a major version to the name.
10351 soname_spec='${libname}${release}${shared_ext}$major'
10354 aix[4-9]*)
10355 version_type=linux
10356 need_lib_prefix=no
10357 need_version=no
10358 hardcode_into_libs=yes
10359 if test "$host_cpu" = ia64; then
10360 # AIX 5 supports IA64
10361 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10362 shlibpath_var=LD_LIBRARY_PATH
10363 else
10364 # With GCC up to 2.95.x, collect2 would create an import file
10365 # for dependence libraries. The import file would start with
10366 # the line `#! .'. This would cause the generated library to
10367 # depend on `.', always an invalid library. This was fixed in
10368 # development snapshots of GCC prior to 3.0.
10369 case $host_os in
10370 aix4 | aix4.[01] | aix4.[01].*)
10371 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10372 echo ' yes '
10373 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10375 else
10376 can_build_shared=no
10379 esac
10380 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10381 # soname into executable. Probably we can add versioning support to
10382 # collect2, so additional links can be useful in future.
10383 if test "$aix_use_runtimelinking" = yes; then
10384 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10385 # instead of lib<name>.a to let people know that these are not
10386 # typical AIX shared libraries.
10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10388 else
10389 # We preserve .a as extension for shared libraries through AIX4.2
10390 # and later when we are not doing run time linking.
10391 library_names_spec='${libname}${release}.a $libname.a'
10392 soname_spec='${libname}${release}${shared_ext}$major'
10394 shlibpath_var=LIBPATH
10398 amigaos*)
10399 case $host_cpu in
10400 powerpc)
10401 # Since July 2007 AmigaOS4 officially supports .so libraries.
10402 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10405 m68k)
10406 library_names_spec='$libname.ixlibrary $libname.a'
10407 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10408 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'
10410 esac
10413 beos*)
10414 library_names_spec='${libname}${shared_ext}'
10415 dynamic_linker="$host_os ld.so"
10416 shlibpath_var=LIBRARY_PATH
10419 bsdi[45]*)
10420 version_type=linux
10421 need_version=no
10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10423 soname_spec='${libname}${release}${shared_ext}$major'
10424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10428 # the default ld.so.conf also contains /usr/contrib/lib and
10429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10430 # libtool to hard-code these into programs
10433 cygwin* | mingw* | pw32* | cegcc*)
10434 version_type=windows
10435 shrext_cmds=".dll"
10436 need_version=no
10437 need_lib_prefix=no
10439 case $GCC,$host_os in
10440 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10441 library_names_spec='$libname.dll.a'
10442 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10443 postinstall_cmds='base_file=`basename \${file}`~
10444 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10445 dldir=$destdir/`dirname \$dlpath`~
10446 test -d \$dldir || mkdir -p \$dldir~
10447 $install_prog $dir/$dlname \$dldir/$dlname~
10448 chmod a+x \$dldir/$dlname~
10449 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10450 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10453 dlpath=$dir/\$dldll~
10454 $RM \$dlpath'
10455 shlibpath_overrides_runpath=yes
10457 case $host_os in
10458 cygwin*)
10459 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10460 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10462 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10464 mingw* | cegcc*)
10465 # MinGW DLLs use traditional 'lib' prefix
10466 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10468 pw32*)
10469 # pw32 DLLs use 'pw' prefix rather than 'lib'
10470 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10472 esac
10476 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10478 esac
10479 dynamic_linker='Win32 ld.exe'
10480 # FIXME: first we should search . and the directory the executable is in
10481 shlibpath_var=PATH
10484 darwin* | rhapsody*)
10485 dynamic_linker="$host_os dyld"
10486 version_type=darwin
10487 need_lib_prefix=no
10488 need_version=no
10489 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10490 soname_spec='${libname}${release}${major}$shared_ext'
10491 shlibpath_overrides_runpath=yes
10492 shlibpath_var=DYLD_LIBRARY_PATH
10493 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10495 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10496 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10499 dgux*)
10500 version_type=linux
10501 need_lib_prefix=no
10502 need_version=no
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10504 soname_spec='${libname}${release}${shared_ext}$major'
10505 shlibpath_var=LD_LIBRARY_PATH
10508 freebsd* | dragonfly*)
10509 # DragonFly does not have aout. When/if they implement a new
10510 # versioning mechanism, adjust this.
10511 if test -x /usr/bin/objformat; then
10512 objformat=`/usr/bin/objformat`
10513 else
10514 case $host_os in
10515 freebsd[23].*) objformat=aout ;;
10516 *) objformat=elf ;;
10517 esac
10519 version_type=freebsd-$objformat
10520 case $version_type in
10521 freebsd-elf*)
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10523 need_version=no
10524 need_lib_prefix=no
10526 freebsd-*)
10527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10528 need_version=yes
10530 esac
10531 shlibpath_var=LD_LIBRARY_PATH
10532 case $host_os in
10533 freebsd2.*)
10534 shlibpath_overrides_runpath=yes
10536 freebsd3.[01]* | freebsdelf3.[01]*)
10537 shlibpath_overrides_runpath=yes
10538 hardcode_into_libs=yes
10540 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10541 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10542 shlibpath_overrides_runpath=no
10543 hardcode_into_libs=yes
10545 *) # from 4.6 on, and DragonFly
10546 shlibpath_overrides_runpath=yes
10547 hardcode_into_libs=yes
10549 esac
10552 haiku*)
10553 version_type=linux
10554 need_lib_prefix=no
10555 need_version=no
10556 dynamic_linker="$host_os runtime_loader"
10557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10558 soname_spec='${libname}${release}${shared_ext}$major'
10559 shlibpath_var=LIBRARY_PATH
10560 shlibpath_overrides_runpath=yes
10561 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10562 hardcode_into_libs=yes
10565 hpux9* | hpux10* | hpux11*)
10566 # Give a soname corresponding to the major version so that dld.sl refuses to
10567 # link against other versions.
10568 version_type=sunos
10569 need_lib_prefix=no
10570 need_version=no
10571 case $host_cpu in
10572 ia64*)
10573 shrext_cmds='.so'
10574 hardcode_into_libs=yes
10575 dynamic_linker="$host_os dld.so"
10576 shlibpath_var=LD_LIBRARY_PATH
10577 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579 soname_spec='${libname}${release}${shared_ext}$major'
10580 if test "X$HPUX_IA64_MODE" = X32; then
10581 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10582 else
10583 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10585 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10587 hppa*64*)
10588 shrext_cmds='.sl'
10589 hardcode_into_libs=yes
10590 dynamic_linker="$host_os dld.sl"
10591 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10592 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10594 soname_spec='${libname}${release}${shared_ext}$major'
10595 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10596 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10599 shrext_cmds='.sl'
10600 dynamic_linker="$host_os dld.sl"
10601 shlibpath_var=SHLIB_PATH
10602 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10604 soname_spec='${libname}${release}${shared_ext}$major'
10606 esac
10607 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10608 postinstall_cmds='chmod 555 $lib'
10609 # or fails outright, so override atomically:
10610 install_override_mode=555
10613 interix[3-9]*)
10614 version_type=linux
10615 need_lib_prefix=no
10616 need_version=no
10617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10618 soname_spec='${libname}${release}${shared_ext}$major'
10619 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 shlibpath_overrides_runpath=no
10622 hardcode_into_libs=yes
10625 irix5* | irix6* | nonstopux*)
10626 case $host_os in
10627 nonstopux*) version_type=nonstopux ;;
10629 if test "$lt_cv_prog_gnu_ld" = yes; then
10630 version_type=linux
10631 else
10632 version_type=irix
10633 fi ;;
10634 esac
10635 need_lib_prefix=no
10636 need_version=no
10637 soname_spec='${libname}${release}${shared_ext}$major'
10638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10639 case $host_os in
10640 irix5* | nonstopux*)
10641 libsuff= shlibsuff=
10644 case $LD in # libtool.m4 will add one of these switches to LD
10645 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10646 libsuff= shlibsuff= libmagic=32-bit;;
10647 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10648 libsuff=32 shlibsuff=N32 libmagic=N32;;
10649 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10650 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10651 *) libsuff= shlibsuff= libmagic=never-match;;
10652 esac
10654 esac
10655 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10656 shlibpath_overrides_runpath=no
10657 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10658 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10659 hardcode_into_libs=yes
10662 # No shared lib support for Linux oldld, aout, or coff.
10663 linux*oldld* | linux*aout* | linux*coff*)
10664 dynamic_linker=no
10667 # This must be Linux ELF.
10669 # uclinux* changes (here and below) have been submitted to the libtool
10670 # project, but have not yet been accepted: they are GCC-local changes
10671 # for the time being. (See
10672 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10673 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
10674 version_type=linux
10675 need_lib_prefix=no
10676 need_version=no
10677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10678 soname_spec='${libname}${release}${shared_ext}$major'
10679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10680 shlibpath_var=LD_LIBRARY_PATH
10681 shlibpath_overrides_runpath=no
10683 # Some binutils ld are patched to set DT_RUNPATH
10684 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10685 $as_echo_n "(cached) " >&6
10686 else
10687 lt_cv_shlibpath_overrides_runpath=no
10688 save_LDFLAGS=$LDFLAGS
10689 save_libdir=$libdir
10690 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10691 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10693 /* end confdefs.h. */
10696 main ()
10700 return 0;
10702 _ACEOF
10703 if ac_fn_c_try_link "$LINENO"; then :
10704 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10705 lt_cv_shlibpath_overrides_runpath=yes
10708 rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710 LDFLAGS=$save_LDFLAGS
10711 libdir=$save_libdir
10715 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10717 # This implies no fast_install, which is unacceptable.
10718 # Some rework will be needed to allow for fast_install
10719 # before this can be enabled.
10720 hardcode_into_libs=yes
10722 # Append ld.so.conf contents to the search path
10723 if test -f /etc/ld.so.conf; then
10724 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' ' '`
10725 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10728 # We used to test for /lib/ld.so.1 and disable shared libraries on
10729 # powerpc, because MkLinux only supported shared libraries with the
10730 # GNU dynamic linker. Since this was broken with cross compilers,
10731 # most powerpc-linux boxes support dynamic linking these days and
10732 # people can always --disable-shared, the test was removed, and we
10733 # assume the GNU/Linux dynamic linker is in use.
10734 dynamic_linker='GNU/Linux ld.so'
10737 netbsd*)
10738 version_type=sunos
10739 need_lib_prefix=no
10740 need_version=no
10741 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10743 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10744 dynamic_linker='NetBSD (a.out) ld.so'
10745 else
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10747 soname_spec='${libname}${release}${shared_ext}$major'
10748 dynamic_linker='NetBSD ld.elf_so'
10750 shlibpath_var=LD_LIBRARY_PATH
10751 shlibpath_overrides_runpath=yes
10752 hardcode_into_libs=yes
10755 newsos6)
10756 version_type=linux
10757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10758 shlibpath_var=LD_LIBRARY_PATH
10759 shlibpath_overrides_runpath=yes
10762 *nto* | *qnx*)
10763 version_type=qnx
10764 need_lib_prefix=no
10765 need_version=no
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10767 soname_spec='${libname}${release}${shared_ext}$major'
10768 shlibpath_var=LD_LIBRARY_PATH
10769 shlibpath_overrides_runpath=no
10770 hardcode_into_libs=yes
10771 dynamic_linker='ldqnx.so'
10774 openbsd*)
10775 version_type=sunos
10776 sys_lib_dlsearch_path_spec="/usr/lib"
10777 need_lib_prefix=no
10778 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10779 case $host_os in
10780 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10781 *) need_version=no ;;
10782 esac
10783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10785 shlibpath_var=LD_LIBRARY_PATH
10786 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10787 case $host_os in
10788 openbsd2.[89] | openbsd2.[89].*)
10789 shlibpath_overrides_runpath=no
10792 shlibpath_overrides_runpath=yes
10794 esac
10795 else
10796 shlibpath_overrides_runpath=yes
10800 os2*)
10801 libname_spec='$name'
10802 shrext_cmds=".dll"
10803 need_lib_prefix=no
10804 library_names_spec='$libname${shared_ext} $libname.a'
10805 dynamic_linker='OS/2 ld.exe'
10806 shlibpath_var=LIBPATH
10809 osf3* | osf4* | osf5*)
10810 version_type=osf
10811 need_lib_prefix=no
10812 need_version=no
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10815 shlibpath_var=LD_LIBRARY_PATH
10816 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10817 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10820 rdos*)
10821 dynamic_linker=no
10824 solaris*)
10825 version_type=linux
10826 need_lib_prefix=no
10827 need_version=no
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 shlibpath_var=LD_LIBRARY_PATH
10831 shlibpath_overrides_runpath=yes
10832 hardcode_into_libs=yes
10833 # ldd complains unless libraries are executable
10834 postinstall_cmds='chmod +x $lib'
10837 sunos4*)
10838 version_type=sunos
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10840 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=yes
10843 if test "$with_gnu_ld" = yes; then
10844 need_lib_prefix=no
10846 need_version=yes
10849 sysv4 | sysv4.3*)
10850 version_type=linux
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 shlibpath_var=LD_LIBRARY_PATH
10854 case $host_vendor in
10855 sni)
10856 shlibpath_overrides_runpath=no
10857 need_lib_prefix=no
10858 runpath_var=LD_RUN_PATH
10860 siemens)
10861 need_lib_prefix=no
10863 motorola)
10864 need_lib_prefix=no
10865 need_version=no
10866 shlibpath_overrides_runpath=no
10867 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10869 esac
10872 sysv4*MP*)
10873 if test -d /usr/nec ;then
10874 version_type=linux
10875 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10876 soname_spec='$libname${shared_ext}.$major'
10877 shlibpath_var=LD_LIBRARY_PATH
10881 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10882 version_type=freebsd-elf
10883 need_lib_prefix=no
10884 need_version=no
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10886 soname_spec='${libname}${release}${shared_ext}$major'
10887 shlibpath_var=LD_LIBRARY_PATH
10888 shlibpath_overrides_runpath=yes
10889 hardcode_into_libs=yes
10890 if test "$with_gnu_ld" = yes; then
10891 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10892 else
10893 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10894 case $host_os in
10895 sco3.2v5*)
10896 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10898 esac
10900 sys_lib_dlsearch_path_spec='/usr/lib'
10903 tpf*)
10904 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10905 version_type=linux
10906 need_lib_prefix=no
10907 need_version=no
10908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10909 shlibpath_var=LD_LIBRARY_PATH
10910 shlibpath_overrides_runpath=no
10911 hardcode_into_libs=yes
10914 uts4*)
10915 version_type=linux
10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10917 soname_spec='${libname}${release}${shared_ext}$major'
10918 shlibpath_var=LD_LIBRARY_PATH
10921 # Shared libraries for VwWorks, >= 7 only at this stage
10922 # and (fpic) still incompatible with "large" code models
10923 # in a few configurations. Only for RTP mode in any case,
10924 # and upon explicit request at configure time.
10925 vxworks7*)
10926 dynamic_linker=no
10927 case ${with_multisubdir}-${enable_shared} in
10928 *large*)
10930 *mrtp*-yes)
10931 version_type=linux
10932 need_lib_prefix=no
10933 need_version=no
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935 soname_spec='${libname}${release}${shared_ext}$major'
10936 dynamic_linker="$host_os module_loader"
10938 esac
10941 dynamic_linker=no
10943 esac
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10945 $as_echo "$dynamic_linker" >&6; }
10946 test "$dynamic_linker" = no && can_build_shared=no
10948 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10949 if test "$GCC" = yes; then
10950 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10953 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10954 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10956 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10957 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11052 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11053 hardcode_action=
11054 if test -n "$hardcode_libdir_flag_spec" ||
11055 test -n "$runpath_var" ||
11056 test "X$hardcode_automatic" = "Xyes" ; then
11058 # We can hardcode non-existent directories.
11059 if test "$hardcode_direct" != no &&
11060 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11061 # have to relink, otherwise we might link with an installed library
11062 # when we should be linking with a yet-to-be-installed one
11063 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11064 test "$hardcode_minus_L" != no; then
11065 # Linking always hardcodes the temporary library directory.
11066 hardcode_action=relink
11067 else
11068 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11069 hardcode_action=immediate
11071 else
11072 # We cannot hardcode anything, or else we can only hardcode existing
11073 # directories.
11074 hardcode_action=unsupported
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11077 $as_echo "$hardcode_action" >&6; }
11079 if test "$hardcode_action" = relink ||
11080 test "$inherit_rpath" = yes; then
11081 # Fast installation is not supported
11082 enable_fast_install=no
11083 elif test "$shlibpath_overrides_runpath" = yes ||
11084 test "$enable_shared" = no; then
11085 # Fast installation is not necessary
11086 enable_fast_install=needless
11094 if test "x$enable_dlopen" != xyes; then
11095 enable_dlopen=unknown
11096 enable_dlopen_self=unknown
11097 enable_dlopen_self_static=unknown
11098 else
11099 lt_cv_dlopen=no
11100 lt_cv_dlopen_libs=
11102 case $host_os in
11103 beos*)
11104 lt_cv_dlopen="load_add_on"
11105 lt_cv_dlopen_libs=
11106 lt_cv_dlopen_self=yes
11109 mingw* | pw32* | cegcc*)
11110 lt_cv_dlopen="LoadLibrary"
11111 lt_cv_dlopen_libs=
11114 cygwin*)
11115 lt_cv_dlopen="dlopen"
11116 lt_cv_dlopen_libs=
11119 darwin*)
11120 # if libdl is installed we need to link against it
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11122 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11123 if ${ac_cv_lib_dl_dlopen+:} false; then :
11124 $as_echo_n "(cached) " >&6
11125 else
11126 ac_check_lib_save_LIBS=$LIBS
11127 LIBS="-ldl $LIBS"
11128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11129 /* end confdefs.h. */
11131 /* Override any GCC internal prototype to avoid an error.
11132 Use char because int might match the return type of a GCC
11133 builtin and then its argument prototype would still apply. */
11134 #ifdef __cplusplus
11135 extern "C"
11136 #endif
11137 char dlopen ();
11139 main ()
11141 return dlopen ();
11143 return 0;
11145 _ACEOF
11146 if ac_fn_c_try_link "$LINENO"; then :
11147 ac_cv_lib_dl_dlopen=yes
11148 else
11149 ac_cv_lib_dl_dlopen=no
11151 rm -f core conftest.err conftest.$ac_objext \
11152 conftest$ac_exeext conftest.$ac_ext
11153 LIBS=$ac_check_lib_save_LIBS
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11156 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11157 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11158 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11159 else
11161 lt_cv_dlopen="dyld"
11162 lt_cv_dlopen_libs=
11163 lt_cv_dlopen_self=yes
11170 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11171 if test "x$ac_cv_func_shl_load" = xyes; then :
11172 lt_cv_dlopen="shl_load"
11173 else
11174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11175 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11176 if ${ac_cv_lib_dld_shl_load+:} false; then :
11177 $as_echo_n "(cached) " >&6
11178 else
11179 ac_check_lib_save_LIBS=$LIBS
11180 LIBS="-ldld $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 shl_load ();
11192 main ()
11194 return shl_load ();
11196 return 0;
11198 _ACEOF
11199 if ac_fn_c_try_link "$LINENO"; then :
11200 ac_cv_lib_dld_shl_load=yes
11201 else
11202 ac_cv_lib_dld_shl_load=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_dld_shl_load" >&5
11209 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11210 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11211 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11212 else
11213 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11214 if test "x$ac_cv_func_dlopen" = xyes; then :
11215 lt_cv_dlopen="dlopen"
11216 else
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11218 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11219 if ${ac_cv_lib_dl_dlopen+:} false; then :
11220 $as_echo_n "(cached) " >&6
11221 else
11222 ac_check_lib_save_LIBS=$LIBS
11223 LIBS="-ldl $LIBS"
11224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11225 /* end confdefs.h. */
11227 /* Override any GCC internal prototype to avoid an error.
11228 Use char because int might match the return type of a GCC
11229 builtin and then its argument prototype would still apply. */
11230 #ifdef __cplusplus
11231 extern "C"
11232 #endif
11233 char dlopen ();
11235 main ()
11237 return dlopen ();
11239 return 0;
11241 _ACEOF
11242 if ac_fn_c_try_link "$LINENO"; then :
11243 ac_cv_lib_dl_dlopen=yes
11244 else
11245 ac_cv_lib_dl_dlopen=no
11247 rm -f core conftest.err conftest.$ac_objext \
11248 conftest$ac_exeext conftest.$ac_ext
11249 LIBS=$ac_check_lib_save_LIBS
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11252 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11253 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11255 else
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11257 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11258 if ${ac_cv_lib_svld_dlopen+:} false; then :
11259 $as_echo_n "(cached) " >&6
11260 else
11261 ac_check_lib_save_LIBS=$LIBS
11262 LIBS="-lsvld $LIBS"
11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11264 /* end confdefs.h. */
11266 /* Override any GCC internal prototype to avoid an error.
11267 Use char because int might match the return type of a GCC
11268 builtin and then its argument prototype would still apply. */
11269 #ifdef __cplusplus
11270 extern "C"
11271 #endif
11272 char dlopen ();
11274 main ()
11276 return dlopen ();
11278 return 0;
11280 _ACEOF
11281 if ac_fn_c_try_link "$LINENO"; then :
11282 ac_cv_lib_svld_dlopen=yes
11283 else
11284 ac_cv_lib_svld_dlopen=no
11286 rm -f core conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
11288 LIBS=$ac_check_lib_save_LIBS
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11291 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11292 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11293 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11294 else
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11296 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11297 if ${ac_cv_lib_dld_dld_link+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 ac_check_lib_save_LIBS=$LIBS
11301 LIBS="-ldld $LIBS"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11308 #ifdef __cplusplus
11309 extern "C"
11310 #endif
11311 char dld_link ();
11313 main ()
11315 return dld_link ();
11317 return 0;
11319 _ACEOF
11320 if ac_fn_c_try_link "$LINENO"; then :
11321 ac_cv_lib_dld_dld_link=yes
11322 else
11323 ac_cv_lib_dld_dld_link=no
11325 rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
11327 LIBS=$ac_check_lib_save_LIBS
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11330 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11331 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11332 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11351 esac
11353 if test "x$lt_cv_dlopen" != xno; then
11354 enable_dlopen=yes
11355 else
11356 enable_dlopen=no
11359 case $lt_cv_dlopen in
11360 dlopen)
11361 save_CPPFLAGS="$CPPFLAGS"
11362 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11364 save_LDFLAGS="$LDFLAGS"
11365 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11367 save_LIBS="$LIBS"
11368 LIBS="$lt_cv_dlopen_libs $LIBS"
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11371 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11372 if ${lt_cv_dlopen_self+:} false; then :
11373 $as_echo_n "(cached) " >&6
11374 else
11375 if test "$cross_compiling" = yes; then :
11376 lt_cv_dlopen_self=cross
11377 else
11378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11379 lt_status=$lt_dlunknown
11380 cat > conftest.$ac_ext <<_LT_EOF
11381 #line 11381 "configure"
11382 #include "confdefs.h"
11384 #if HAVE_DLFCN_H
11385 #include <dlfcn.h>
11386 #endif
11388 #include <stdio.h>
11390 #ifdef RTLD_GLOBAL
11391 # define LT_DLGLOBAL RTLD_GLOBAL
11392 #else
11393 # ifdef DL_GLOBAL
11394 # define LT_DLGLOBAL DL_GLOBAL
11395 # else
11396 # define LT_DLGLOBAL 0
11397 # endif
11398 #endif
11400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11401 find out it does not work in some platform. */
11402 #ifndef LT_DLLAZY_OR_NOW
11403 # ifdef RTLD_LAZY
11404 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11405 # else
11406 # ifdef DL_LAZY
11407 # define LT_DLLAZY_OR_NOW DL_LAZY
11408 # else
11409 # ifdef RTLD_NOW
11410 # define LT_DLLAZY_OR_NOW RTLD_NOW
11411 # else
11412 # ifdef DL_NOW
11413 # define LT_DLLAZY_OR_NOW DL_NOW
11414 # else
11415 # define LT_DLLAZY_OR_NOW 0
11416 # endif
11417 # endif
11418 # endif
11419 # endif
11420 #endif
11422 /* When -fvisbility=hidden is used, assume the code has been annotated
11423 correspondingly for the symbols needed. */
11424 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11425 void fnord () __attribute__((visibility("default")));
11426 #endif
11428 void fnord () { int i=42; }
11429 int main ()
11431 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11432 int status = $lt_dlunknown;
11434 if (self)
11436 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11437 else
11439 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11440 else puts (dlerror ());
11442 /* dlclose (self); */
11444 else
11445 puts (dlerror ());
11447 return status;
11449 _LT_EOF
11450 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11451 (eval $ac_link) 2>&5
11452 ac_status=$?
11453 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11454 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11455 (./conftest; exit; ) >&5 2>/dev/null
11456 lt_status=$?
11457 case x$lt_status in
11458 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11459 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11460 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11461 esac
11462 else :
11463 # compilation failed
11464 lt_cv_dlopen_self=no
11467 rm -fr conftest*
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11472 $as_echo "$lt_cv_dlopen_self" >&6; }
11474 if test "x$lt_cv_dlopen_self" = xyes; then
11475 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11477 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11478 if ${lt_cv_dlopen_self_static+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 if test "$cross_compiling" = yes; then :
11482 lt_cv_dlopen_self_static=cross
11483 else
11484 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11485 lt_status=$lt_dlunknown
11486 cat > conftest.$ac_ext <<_LT_EOF
11487 #line 11487 "configure"
11488 #include "confdefs.h"
11490 #if HAVE_DLFCN_H
11491 #include <dlfcn.h>
11492 #endif
11494 #include <stdio.h>
11496 #ifdef RTLD_GLOBAL
11497 # define LT_DLGLOBAL RTLD_GLOBAL
11498 #else
11499 # ifdef DL_GLOBAL
11500 # define LT_DLGLOBAL DL_GLOBAL
11501 # else
11502 # define LT_DLGLOBAL 0
11503 # endif
11504 #endif
11506 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11507 find out it does not work in some platform. */
11508 #ifndef LT_DLLAZY_OR_NOW
11509 # ifdef RTLD_LAZY
11510 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11511 # else
11512 # ifdef DL_LAZY
11513 # define LT_DLLAZY_OR_NOW DL_LAZY
11514 # else
11515 # ifdef RTLD_NOW
11516 # define LT_DLLAZY_OR_NOW RTLD_NOW
11517 # else
11518 # ifdef DL_NOW
11519 # define LT_DLLAZY_OR_NOW DL_NOW
11520 # else
11521 # define LT_DLLAZY_OR_NOW 0
11522 # endif
11523 # endif
11524 # endif
11525 # endif
11526 #endif
11528 /* When -fvisbility=hidden is used, assume the code has been annotated
11529 correspondingly for the symbols needed. */
11530 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11531 void fnord () __attribute__((visibility("default")));
11532 #endif
11534 void fnord () { int i=42; }
11535 int main ()
11537 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11538 int status = $lt_dlunknown;
11540 if (self)
11542 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11543 else
11545 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11546 else puts (dlerror ());
11548 /* dlclose (self); */
11550 else
11551 puts (dlerror ());
11553 return status;
11555 _LT_EOF
11556 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11557 (eval $ac_link) 2>&5
11558 ac_status=$?
11559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11560 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11561 (./conftest; exit; ) >&5 2>/dev/null
11562 lt_status=$?
11563 case x$lt_status in
11564 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11565 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11566 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11567 esac
11568 else :
11569 # compilation failed
11570 lt_cv_dlopen_self_static=no
11573 rm -fr conftest*
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11578 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11581 CPPFLAGS="$save_CPPFLAGS"
11582 LDFLAGS="$save_LDFLAGS"
11583 LIBS="$save_LIBS"
11585 esac
11587 case $lt_cv_dlopen_self in
11588 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11589 *) enable_dlopen_self=unknown ;;
11590 esac
11592 case $lt_cv_dlopen_self_static in
11593 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11594 *) enable_dlopen_self_static=unknown ;;
11595 esac
11614 striplib=
11615 old_striplib=
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11617 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11618 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11619 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11620 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11622 $as_echo "yes" >&6; }
11623 else
11624 # FIXME - insert some real tests, host_os isn't really good enough
11625 case $host_os in
11626 darwin*)
11627 if test -n "$STRIP" ; then
11628 striplib="$STRIP -x"
11629 old_striplib="$STRIP -S"
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11631 $as_echo "yes" >&6; }
11632 else
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11639 $as_echo "no" >&6; }
11641 esac
11655 # Report which library types will actually be built
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11657 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11659 $as_echo "$can_build_shared" >&6; }
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11662 $as_echo_n "checking whether to build shared libraries... " >&6; }
11663 test "$can_build_shared" = "no" && enable_shared=no
11665 # On AIX, shared libraries and static libraries use the same namespace, and
11666 # are all built from PIC.
11667 case $host_os in
11668 aix3*)
11669 test "$enable_shared" = yes && enable_static=no
11670 if test -n "$RANLIB"; then
11671 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11672 postinstall_cmds='$RANLIB $lib'
11676 aix[4-9]*)
11677 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11678 test "$enable_shared" = yes && enable_static=no
11681 esac
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11683 $as_echo "$enable_shared" >&6; }
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11686 $as_echo_n "checking whether to build static libraries... " >&6; }
11687 # Make sure either enable_shared or enable_static is yes.
11688 test "$enable_shared" = yes || enable_static=yes
11689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11690 $as_echo "$enable_static" >&6; }
11696 ac_ext=c
11697 ac_cpp='$CPP $CPPFLAGS'
11698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11702 CC="$lt_save_CC"
11716 ac_config_commands="$ac_config_commands libtool"
11721 # Only expand once:
11727 case $host in
11728 *-cygwin* | *-mingw*)
11729 # 'host' will be top-level target in the case of a target lib,
11730 # we must compare to with_cross_host to decide if this is a native
11731 # or cross-compiler and select where to install dlls appropriately.
11732 if test -n "$with_cross_host" &&
11733 test x"$with_cross_host" != x"no"; then
11734 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11735 else
11736 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11740 lt_host_flags=
11742 esac
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11751 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11752 # Check whether --enable-maintainer-mode was given.
11753 if test "${enable_maintainer_mode+set}" = set; then :
11754 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11755 else
11756 USE_MAINTAINER_MODE=no
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11760 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11761 if test $USE_MAINTAINER_MODE = yes; then
11762 MAINTAINER_MODE_TRUE=
11763 MAINTAINER_MODE_FALSE='#'
11764 else
11765 MAINTAINER_MODE_TRUE='#'
11766 MAINTAINER_MODE_FALSE=
11769 MAINT=$MAINTAINER_MODE_TRUE
11773 # We optionally test libgomp C++ support, and for that want to use the proper
11774 # C++ driver, 'g++' (or 'xg++' for build-tree testing). Given that build of
11775 # target libstdc++-v3 depends on target libgomp (see '../Makefile.def'), we
11776 # cannot make build of target libgomp depend on target libstdc++-v3: circular
11777 # dependency. We thus cannot instantiate 'AC_PROG_CXX' here: we'd get
11778 # '-funconfigured-libstdc++-v3' (see '../configure.ac'). Therefore, just
11779 # capture 'CXX', and we'll fix this up at 'make check' time (see
11780 # 'testsuite/lib/libgomp.exp:libgomp_init').
11783 # Create a spec file, so that compile/link tests don't fail
11784 test -f libgfortran.spec || touch libgfortran.spec
11785 FCFLAGS="$FCFLAGS -L."
11787 # We need 'gfortran' to compile parts of the library, and test libgomp Fortran
11788 # support.
11789 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11790 #AC_PROG_FC(gfortran)
11791 case `echo $GFORTRAN` in
11792 -* | no* )
11793 FC=no ;;
11795 set dummy $GFORTRAN; ac_word=$2
11796 if test -x "$ac_word"; then
11797 FC="$GFORTRAN"
11798 else
11799 FC=no
11800 fi ;;
11801 esac
11802 ac_ext=${ac_fc_srcext-f}
11803 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11804 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11805 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11806 if test -n "$ac_tool_prefix"; then
11807 for ac_prog in gfortran
11809 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11810 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11812 $as_echo_n "checking for $ac_word... " >&6; }
11813 if ${ac_cv_prog_FC+:} false; then :
11814 $as_echo_n "(cached) " >&6
11815 else
11816 if test -n "$FC"; then
11817 ac_cv_prog_FC="$FC" # Let the user override the test.
11818 else
11819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11820 for as_dir in $PATH
11822 IFS=$as_save_IFS
11823 test -z "$as_dir" && as_dir=.
11824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11826 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11828 break 2
11830 done
11831 done
11832 IFS=$as_save_IFS
11836 FC=$ac_cv_prog_FC
11837 if test -n "$FC"; then
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11839 $as_echo "$FC" >&6; }
11840 else
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11842 $as_echo "no" >&6; }
11846 test -n "$FC" && break
11847 done
11849 if test -z "$FC"; then
11850 ac_ct_FC=$FC
11851 for ac_prog in gfortran
11853 # Extract the first word of "$ac_prog", so it can be a program name with args.
11854 set dummy $ac_prog; ac_word=$2
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11856 $as_echo_n "checking for $ac_word... " >&6; }
11857 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 if test -n "$ac_ct_FC"; then
11861 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11862 else
11863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11864 for as_dir in $PATH
11866 IFS=$as_save_IFS
11867 test -z "$as_dir" && as_dir=.
11868 for ac_exec_ext in '' $ac_executable_extensions; do
11869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11870 ac_cv_prog_ac_ct_FC="$ac_prog"
11871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11872 break 2
11874 done
11875 done
11876 IFS=$as_save_IFS
11880 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11881 if test -n "$ac_ct_FC"; then
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11883 $as_echo "$ac_ct_FC" >&6; }
11884 else
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11886 $as_echo "no" >&6; }
11890 test -n "$ac_ct_FC" && break
11891 done
11893 if test "x$ac_ct_FC" = x; then
11894 FC=""
11895 else
11896 case $cross_compiling:$ac_tool_warned in
11897 yes:)
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11900 ac_tool_warned=yes ;;
11901 esac
11902 FC=$ac_ct_FC
11907 # Provide some information about the compiler.
11908 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11909 set X $ac_compile
11910 ac_compiler=$2
11911 for ac_option in --version -v -V -qversion; do
11912 { { ac_try="$ac_compiler $ac_option >&5"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916 esac
11917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11918 $as_echo "$ac_try_echo"; } >&5
11919 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11920 ac_status=$?
11921 if test -s conftest.err; then
11922 sed '10a\
11923 ... rest of stderr output deleted ...
11924 10q' conftest.err >conftest.er1
11925 cat conftest.er1 >&5
11927 rm -f conftest.er1 conftest.err
11928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11929 test $ac_status = 0; }
11930 done
11931 rm -f a.out
11933 # If we don't use `.F' as extension, the preprocessor is not run on the
11934 # input file. (Note that this only needs to work for GNU compilers.)
11935 ac_save_ext=$ac_ext
11936 ac_ext=F
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11938 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11939 if ${ac_cv_fc_compiler_gnu+:} false; then :
11940 $as_echo_n "(cached) " >&6
11941 else
11942 cat > conftest.$ac_ext <<_ACEOF
11943 program main
11944 #ifndef __GNUC__
11945 choke me
11946 #endif
11949 _ACEOF
11950 if ac_fn_fc_try_compile "$LINENO"; then :
11951 ac_compiler_gnu=yes
11952 else
11953 ac_compiler_gnu=no
11955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11956 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11960 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11961 ac_ext=$ac_save_ext
11962 ac_test_FCFLAGS=${FCFLAGS+set}
11963 ac_save_FCFLAGS=$FCFLAGS
11964 FCFLAGS=
11965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11966 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11967 if ${ac_cv_prog_fc_g+:} false; then :
11968 $as_echo_n "(cached) " >&6
11969 else
11970 FCFLAGS=-g
11971 cat > conftest.$ac_ext <<_ACEOF
11972 program main
11975 _ACEOF
11976 if ac_fn_fc_try_compile "$LINENO"; then :
11977 ac_cv_prog_fc_g=yes
11978 else
11979 ac_cv_prog_fc_g=no
11981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11985 $as_echo "$ac_cv_prog_fc_g" >&6; }
11986 if test "$ac_test_FCFLAGS" = set; then
11987 FCFLAGS=$ac_save_FCFLAGS
11988 elif test $ac_cv_prog_fc_g = yes; then
11989 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11990 FCFLAGS="-g -O2"
11991 else
11992 FCFLAGS="-g"
11994 else
11995 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11996 FCFLAGS="-O2"
11997 else
11998 FCFLAGS=
12002 if test $ac_compiler_gnu = yes; then
12003 GFC=yes
12004 else
12005 GFC=
12007 ac_ext=c
12008 ac_cpp='$CPP $CPPFLAGS'
12009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12013 ac_ext=${ac_fc_srcext-f}
12014 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12015 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12016 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12019 if test -z "$FC" || test "X$FC" = "Xno"; then
12020 _lt_disable_FC=yes
12023 archive_cmds_need_lc_FC=no
12024 allow_undefined_flag_FC=
12025 always_export_symbols_FC=no
12026 archive_expsym_cmds_FC=
12027 export_dynamic_flag_spec_FC=
12028 hardcode_direct_FC=no
12029 hardcode_direct_absolute_FC=no
12030 hardcode_libdir_flag_spec_FC=
12031 hardcode_libdir_flag_spec_ld_FC=
12032 hardcode_libdir_separator_FC=
12033 hardcode_minus_L_FC=no
12034 hardcode_automatic_FC=no
12035 inherit_rpath_FC=no
12036 module_cmds_FC=
12037 module_expsym_cmds_FC=
12038 link_all_deplibs_FC=unknown
12039 old_archive_cmds_FC=$old_archive_cmds
12040 reload_flag_FC=$reload_flag
12041 reload_cmds_FC=$reload_cmds
12042 no_undefined_flag_FC=
12043 whole_archive_flag_spec_FC=
12044 enable_shared_with_static_runtimes_FC=no
12046 # Source file extension for fc test sources.
12047 ac_ext=${ac_fc_srcext-f}
12049 # Object file extension for compiled fc test sources.
12050 objext=o
12051 objext_FC=$objext
12053 # No sense in running all these tests if we already determined that
12054 # the FC compiler isn't working. Some variables (like enable_shared)
12055 # are currently assumed to apply to all compilers on this platform,
12056 # and will be corrupted by setting them based on a non-working compiler.
12057 if test "$_lt_disable_FC" != yes; then
12058 # Code to be used in simple compile tests
12059 lt_simple_compile_test_code="\
12060 subroutine t
12061 return
12065 # Code to be used in simple link tests
12066 lt_simple_link_test_code="\
12067 program t
12071 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12078 # If no C compiler was specified, use CC.
12079 LTCC=${LTCC-"$CC"}
12081 # If no C compiler flags were specified, use CFLAGS.
12082 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12084 # Allow CC to be a program name with arguments.
12085 compiler=$CC
12088 # save warnings/boilerplate of simple test code
12089 ac_outfile=conftest.$ac_objext
12090 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12091 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12092 _lt_compiler_boilerplate=`cat conftest.err`
12093 $RM conftest*
12095 ac_outfile=conftest.$ac_objext
12096 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12097 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12098 _lt_linker_boilerplate=`cat conftest.err`
12099 $RM -r conftest*
12102 # Allow CC to be a program name with arguments.
12103 lt_save_CC="$CC"
12104 lt_save_GCC=$GCC
12105 CC=${FC-"f95"}
12106 compiler=$CC
12107 GCC=$ac_cv_fc_compiler_gnu
12109 compiler_FC=$CC
12110 for cc_temp in $compiler""; do
12111 case $cc_temp in
12112 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12113 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12114 \-*) ;;
12115 *) break;;
12116 esac
12117 done
12118 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12121 if test -n "$compiler"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12123 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12125 $as_echo "$can_build_shared" >&6; }
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12128 $as_echo_n "checking whether to build shared libraries... " >&6; }
12129 test "$can_build_shared" = "no" && enable_shared=no
12131 # On AIX, shared libraries and static libraries use the same namespace, and
12132 # are all built from PIC.
12133 case $host_os in
12134 aix3*)
12135 test "$enable_shared" = yes && enable_static=no
12136 if test -n "$RANLIB"; then
12137 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12138 postinstall_cmds='$RANLIB $lib'
12141 aix[4-9]*)
12142 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12143 test "$enable_shared" = yes && enable_static=no
12146 esac
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12148 $as_echo "$enable_shared" >&6; }
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12151 $as_echo_n "checking whether to build static libraries... " >&6; }
12152 # Make sure either enable_shared or enable_static is yes.
12153 test "$enable_shared" = yes || enable_static=yes
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12155 $as_echo "$enable_static" >&6; }
12157 GCC_FC="$ac_cv_fc_compiler_gnu"
12158 LD_FC="$LD"
12160 ## CAVEAT EMPTOR:
12161 ## There is no encapsulation within the following macros, do not change
12162 ## the running order or otherwise move them around unless you know exactly
12163 ## what you are doing...
12164 # Dependencies to place before and after the object being linked:
12165 predep_objects_FC=
12166 postdep_objects_FC=
12167 predeps_FC=
12168 postdeps_FC=
12169 compiler_lib_search_path_FC=
12171 cat > conftest.$ac_ext <<_LT_EOF
12172 subroutine foo
12173 implicit none
12174 integer a
12176 return
12178 _LT_EOF
12180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12181 (eval $ac_compile) 2>&5
12182 ac_status=$?
12183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184 test $ac_status = 0; }; then
12185 # Parse the compiler output and extract the necessary
12186 # objects, libraries and library flags.
12188 # Sentinel used to keep track of whether or not we are before
12189 # the conftest object file.
12190 pre_test_object_deps_done=no
12192 for p in `eval "$output_verbose_link_cmd"`; do
12193 case $p in
12195 -L* | -R* | -l*)
12196 # Some compilers place space between "-{L,R}" and the path.
12197 # Remove the space.
12198 if test $p = "-L" ||
12199 test $p = "-R"; then
12200 prev=$p
12201 continue
12202 else
12203 prev=
12206 if test "$pre_test_object_deps_done" = no; then
12207 case $p in
12208 -L* | -R*)
12209 # Internal compiler library paths should come after those
12210 # provided the user. The postdeps already come after the
12211 # user supplied libs so there is no need to process them.
12212 if test -z "$compiler_lib_search_path_FC"; then
12213 compiler_lib_search_path_FC="${prev}${p}"
12214 else
12215 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12218 # The "-l" case would never come before the object being
12219 # linked, so don't bother handling this case.
12220 esac
12221 else
12222 if test -z "$postdeps_FC"; then
12223 postdeps_FC="${prev}${p}"
12224 else
12225 postdeps_FC="${postdeps_FC} ${prev}${p}"
12230 *.$objext)
12231 # This assumes that the test object file only shows up
12232 # once in the compiler output.
12233 if test "$p" = "conftest.$objext"; then
12234 pre_test_object_deps_done=yes
12235 continue
12238 if test "$pre_test_object_deps_done" = no; then
12239 if test -z "$predep_objects_FC"; then
12240 predep_objects_FC="$p"
12241 else
12242 predep_objects_FC="$predep_objects_FC $p"
12244 else
12245 if test -z "$postdep_objects_FC"; then
12246 postdep_objects_FC="$p"
12247 else
12248 postdep_objects_FC="$postdep_objects_FC $p"
12253 *) ;; # Ignore the rest.
12255 esac
12256 done
12258 # Clean up.
12259 rm -f a.out a.exe
12260 else
12261 echo "libtool.m4: error: problem compiling FC test program"
12264 $RM -f confest.$objext
12266 # PORTME: override above test on systems where it is broken
12269 case " $postdeps_FC " in
12270 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12271 esac
12272 compiler_lib_search_dirs_FC=
12273 if test -n "${compiler_lib_search_path_FC}"; then
12274 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12307 lt_prog_compiler_wl_FC=
12308 lt_prog_compiler_pic_FC=
12309 lt_prog_compiler_static_FC=
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12312 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12314 if test "$GCC" = yes; then
12315 lt_prog_compiler_wl_FC='-Wl,'
12316 lt_prog_compiler_static_FC='-static'
12318 case $host_os in
12319 aix*)
12320 # All AIX code is PIC.
12321 if test "$host_cpu" = ia64; then
12322 # AIX 5 now supports IA64 processor
12323 lt_prog_compiler_static_FC='-Bstatic'
12325 lt_prog_compiler_pic_FC='-fPIC'
12328 amigaos*)
12329 case $host_cpu in
12330 powerpc)
12331 # see comment about AmigaOS4 .so support
12332 lt_prog_compiler_pic_FC='-fPIC'
12334 m68k)
12335 # FIXME: we need at least 68020 code to build shared libraries, but
12336 # adding the `-m68020' flag to GCC prevents building anything better,
12337 # like `-m68040'.
12338 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12340 esac
12343 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12344 # PIC is the default for these OSes.
12347 mingw* | cygwin* | pw32* | os2* | cegcc*)
12348 # This hack is so that the source file can tell whether it is being
12349 # built for inclusion in a dll (and should export symbols for example).
12350 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12351 # (--disable-auto-import) libraries
12352 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12355 darwin* | rhapsody*)
12356 # PIC is the default on this platform
12357 # Common symbols not allowed in MH_DYLIB files
12358 lt_prog_compiler_pic_FC='-fno-common'
12361 haiku*)
12362 # PIC is the default for Haiku.
12363 # The "-static" flag exists, but is broken.
12364 lt_prog_compiler_static_FC=
12367 hpux*)
12368 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12369 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12370 # sets the default TLS model and affects inlining.
12371 case $host_cpu in
12372 hppa*64*)
12373 # +Z the default
12376 lt_prog_compiler_pic_FC='-fPIC'
12378 esac
12381 interix[3-9]*)
12382 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12383 # Instead, we relocate shared libraries at runtime.
12386 msdosdjgpp*)
12387 # Just because we use GCC doesn't mean we suddenly get shared libraries
12388 # on systems that don't support them.
12389 lt_prog_compiler_can_build_shared_FC=no
12390 enable_shared=no
12393 *nto* | *qnx*)
12394 # QNX uses GNU C++, but need to define -shared option too, otherwise
12395 # it will coredump.
12396 lt_prog_compiler_pic_FC='-fPIC -shared'
12399 sysv4*MP*)
12400 if test -d /usr/nec; then
12401 lt_prog_compiler_pic_FC=-Kconform_pic
12406 lt_prog_compiler_pic_FC='-fPIC'
12408 esac
12410 case $cc_basename in
12411 nvcc*) # Cuda Compiler Driver 2.2
12412 lt_prog_compiler_wl_FC='-Xlinker '
12413 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12415 esac
12416 else
12417 # PORTME Check for flag to pass linker flags through the system compiler.
12418 case $host_os in
12419 aix*)
12420 lt_prog_compiler_wl_FC='-Wl,'
12421 if test "$host_cpu" = ia64; then
12422 # AIX 5 now supports IA64 processor
12423 lt_prog_compiler_static_FC='-Bstatic'
12424 else
12425 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12429 mingw* | cygwin* | pw32* | os2* | cegcc*)
12430 # This hack is so that the source file can tell whether it is being
12431 # built for inclusion in a dll (and should export symbols for example).
12432 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12435 hpux9* | hpux10* | hpux11*)
12436 lt_prog_compiler_wl_FC='-Wl,'
12437 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12438 # not for PA HP-UX.
12439 case $host_cpu in
12440 hppa*64*|ia64*)
12441 # +Z the default
12444 lt_prog_compiler_pic_FC='+Z'
12446 esac
12447 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12448 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12451 irix5* | irix6* | nonstopux*)
12452 lt_prog_compiler_wl_FC='-Wl,'
12453 # PIC (with -KPIC) is the default.
12454 lt_prog_compiler_static_FC='-non_shared'
12457 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12458 case $cc_basename in
12459 # old Intel for x86_64 which still supported -KPIC.
12460 ecc*)
12461 lt_prog_compiler_wl_FC='-Wl,'
12462 lt_prog_compiler_pic_FC='-KPIC'
12463 lt_prog_compiler_static_FC='-static'
12465 # icc used to be incompatible with GCC.
12466 # ICC 10 doesn't accept -KPIC any more.
12467 icc* | ifort*)
12468 lt_prog_compiler_wl_FC='-Wl,'
12469 lt_prog_compiler_pic_FC='-fPIC'
12470 lt_prog_compiler_static_FC='-static'
12472 # Lahey Fortran 8.1.
12473 lf95*)
12474 lt_prog_compiler_wl_FC='-Wl,'
12475 lt_prog_compiler_pic_FC='--shared'
12476 lt_prog_compiler_static_FC='--static'
12478 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12479 # Portland Group compilers (*not* the Pentium gcc compiler,
12480 # which looks to be a dead project)
12481 lt_prog_compiler_wl_FC='-Wl,'
12482 lt_prog_compiler_pic_FC='-fpic'
12483 lt_prog_compiler_static_FC='-Bstatic'
12485 ccc*)
12486 lt_prog_compiler_wl_FC='-Wl,'
12487 # All Alpha code is PIC.
12488 lt_prog_compiler_static_FC='-non_shared'
12490 xl* | bgxl* | bgf* | mpixl*)
12491 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12492 lt_prog_compiler_wl_FC='-Wl,'
12493 lt_prog_compiler_pic_FC='-qpic'
12494 lt_prog_compiler_static_FC='-qstaticlink'
12497 case `$CC -V 2>&1 | sed 5q` in
12498 *Sun\ F* | *Sun*Fortran*)
12499 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12500 lt_prog_compiler_pic_FC='-KPIC'
12501 lt_prog_compiler_static_FC='-Bstatic'
12502 lt_prog_compiler_wl_FC=''
12504 *Sun\ C*)
12505 # Sun C 5.9
12506 lt_prog_compiler_pic_FC='-KPIC'
12507 lt_prog_compiler_static_FC='-Bstatic'
12508 lt_prog_compiler_wl_FC='-Wl,'
12510 esac
12512 esac
12515 newsos6)
12516 lt_prog_compiler_pic_FC='-KPIC'
12517 lt_prog_compiler_static_FC='-Bstatic'
12520 *nto* | *qnx*)
12521 # QNX uses GNU C++, but need to define -shared option too, otherwise
12522 # it will coredump.
12523 lt_prog_compiler_pic_FC='-fPIC -shared'
12526 osf3* | osf4* | osf5*)
12527 lt_prog_compiler_wl_FC='-Wl,'
12528 # All OSF/1 code is PIC.
12529 lt_prog_compiler_static_FC='-non_shared'
12532 rdos*)
12533 lt_prog_compiler_static_FC='-non_shared'
12536 solaris*)
12537 lt_prog_compiler_pic_FC='-KPIC'
12538 lt_prog_compiler_static_FC='-Bstatic'
12539 case $cc_basename in
12540 f77* | f90* | f95*)
12541 lt_prog_compiler_wl_FC='-Qoption ld ';;
12543 lt_prog_compiler_wl_FC='-Wl,';;
12544 esac
12547 sunos4*)
12548 lt_prog_compiler_wl_FC='-Qoption ld '
12549 lt_prog_compiler_pic_FC='-PIC'
12550 lt_prog_compiler_static_FC='-Bstatic'
12553 sysv4 | sysv4.2uw2* | sysv4.3*)
12554 lt_prog_compiler_wl_FC='-Wl,'
12555 lt_prog_compiler_pic_FC='-KPIC'
12556 lt_prog_compiler_static_FC='-Bstatic'
12559 sysv4*MP*)
12560 if test -d /usr/nec ;then
12561 lt_prog_compiler_pic_FC='-Kconform_pic'
12562 lt_prog_compiler_static_FC='-Bstatic'
12566 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12567 lt_prog_compiler_wl_FC='-Wl,'
12568 lt_prog_compiler_pic_FC='-KPIC'
12569 lt_prog_compiler_static_FC='-Bstatic'
12572 unicos*)
12573 lt_prog_compiler_wl_FC='-Wl,'
12574 lt_prog_compiler_can_build_shared_FC=no
12577 uts4*)
12578 lt_prog_compiler_pic_FC='-pic'
12579 lt_prog_compiler_static_FC='-Bstatic'
12583 lt_prog_compiler_can_build_shared_FC=no
12585 esac
12588 case $host_os in
12589 # For platforms which do not support PIC, -DPIC is meaningless:
12590 *djgpp*)
12591 lt_prog_compiler_pic_FC=
12594 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12596 esac
12597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12598 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12603 # Check to make sure the PIC flag actually works.
12605 if test -n "$lt_prog_compiler_pic_FC"; then
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12607 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12608 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12609 $as_echo_n "(cached) " >&6
12610 else
12611 lt_cv_prog_compiler_pic_works_FC=no
12612 ac_outfile=conftest.$ac_objext
12613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12614 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12615 # Insert the option either (1) after the last *FLAGS variable, or
12616 # (2) before a word containing "conftest.", or (3) at the end.
12617 # Note that $ac_compile itself does not contain backslashes and begins
12618 # with a dollar sign (not a hyphen), so the echo should work correctly.
12619 # The option is referenced via a variable to avoid confusing sed.
12620 lt_compile=`echo "$ac_compile" | $SED \
12621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12623 -e 's:$: $lt_compiler_flag:'`
12624 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12625 (eval "$lt_compile" 2>conftest.err)
12626 ac_status=$?
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 if (exit $ac_status) && test -s "$ac_outfile"; then
12630 # The compiler can only warn and ignore the option if not recognized
12631 # So say no if there are warnings other than the usual output.
12632 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12635 lt_cv_prog_compiler_pic_works_FC=yes
12638 $RM conftest*
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12642 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12644 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12645 case $lt_prog_compiler_pic_FC in
12646 "" | " "*) ;;
12647 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12648 esac
12649 else
12650 lt_prog_compiler_pic_FC=
12651 lt_prog_compiler_can_build_shared_FC=no
12659 # Check to make sure the static flag actually works.
12661 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12663 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12664 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12665 $as_echo_n "(cached) " >&6
12666 else
12667 lt_cv_prog_compiler_static_works_FC=no
12668 save_LDFLAGS="$LDFLAGS"
12669 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12670 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12671 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12672 # The linker can only warn and ignore the option if not recognized
12673 # So say no if there are warnings
12674 if test -s conftest.err; then
12675 # Append any errors to the config.log.
12676 cat conftest.err 1>&5
12677 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12678 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12679 if diff conftest.exp conftest.er2 >/dev/null; then
12680 lt_cv_prog_compiler_static_works_FC=yes
12682 else
12683 lt_cv_prog_compiler_static_works_FC=yes
12686 $RM -r conftest*
12687 LDFLAGS="$save_LDFLAGS"
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12691 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12693 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12695 else
12696 lt_prog_compiler_static_FC=
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12703 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12704 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 lt_cv_prog_compiler_c_o_FC=no
12708 $RM -r conftest 2>/dev/null
12709 mkdir conftest
12710 cd conftest
12711 mkdir out
12712 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12714 lt_compiler_flag="-o out/conftest2.$ac_objext"
12715 # Insert the option either (1) after the last *FLAGS variable, or
12716 # (2) before a word containing "conftest.", or (3) at the end.
12717 # Note that $ac_compile itself does not contain backslashes and begins
12718 # with a dollar sign (not a hyphen), so the echo should work correctly.
12719 lt_compile=`echo "$ac_compile" | $SED \
12720 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12721 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12722 -e 's:$: $lt_compiler_flag:'`
12723 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12724 (eval "$lt_compile" 2>out/conftest.err)
12725 ac_status=$?
12726 cat out/conftest.err >&5
12727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12728 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12729 then
12730 # The compiler can only warn and ignore the option if not recognized
12731 # So say no if there are warnings
12732 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12733 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12734 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12735 lt_cv_prog_compiler_c_o_FC=yes
12738 chmod u+w . 2>&5
12739 $RM conftest*
12740 # SGI C++ compiler will create directory out/ii_files/ for
12741 # template instantiation
12742 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12743 $RM out/* && rmdir out
12744 cd ..
12745 $RM -r conftest
12746 $RM conftest*
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12750 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12755 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12756 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12757 $as_echo_n "(cached) " >&6
12758 else
12759 lt_cv_prog_compiler_c_o_FC=no
12760 $RM -r conftest 2>/dev/null
12761 mkdir conftest
12762 cd conftest
12763 mkdir out
12764 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12766 lt_compiler_flag="-o out/conftest2.$ac_objext"
12767 # Insert the option either (1) after the last *FLAGS variable, or
12768 # (2) before a word containing "conftest.", or (3) at the end.
12769 # Note that $ac_compile itself does not contain backslashes and begins
12770 # with a dollar sign (not a hyphen), so the echo should work correctly.
12771 lt_compile=`echo "$ac_compile" | $SED \
12772 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12773 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12774 -e 's:$: $lt_compiler_flag:'`
12775 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12776 (eval "$lt_compile" 2>out/conftest.err)
12777 ac_status=$?
12778 cat out/conftest.err >&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12781 then
12782 # The compiler can only warn and ignore the option if not recognized
12783 # So say no if there are warnings
12784 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12785 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12786 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12787 lt_cv_prog_compiler_c_o_FC=yes
12790 chmod u+w . 2>&5
12791 $RM conftest*
12792 # SGI C++ compiler will create directory out/ii_files/ for
12793 # template instantiation
12794 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12795 $RM out/* && rmdir out
12796 cd ..
12797 $RM -r conftest
12798 $RM conftest*
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12802 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12807 hard_links="nottested"
12808 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12809 # do not overwrite the value of need_locks provided by the user
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12811 $as_echo_n "checking if we can lock with hard links... " >&6; }
12812 hard_links=yes
12813 $RM conftest*
12814 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12815 touch conftest.a
12816 ln conftest.a conftest.b 2>&5 || hard_links=no
12817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12819 $as_echo "$hard_links" >&6; }
12820 if test "$hard_links" = no; then
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12822 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12823 need_locks=warn
12825 else
12826 need_locks=no
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12832 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12834 runpath_var=
12835 allow_undefined_flag_FC=
12836 always_export_symbols_FC=no
12837 archive_cmds_FC=
12838 archive_expsym_cmds_FC=
12839 compiler_needs_object_FC=no
12840 enable_shared_with_static_runtimes_FC=no
12841 export_dynamic_flag_spec_FC=
12842 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12843 hardcode_automatic_FC=no
12844 hardcode_direct_FC=no
12845 hardcode_direct_absolute_FC=no
12846 hardcode_libdir_flag_spec_FC=
12847 hardcode_libdir_flag_spec_ld_FC=
12848 hardcode_libdir_separator_FC=
12849 hardcode_minus_L_FC=no
12850 hardcode_shlibpath_var_FC=unsupported
12851 inherit_rpath_FC=no
12852 link_all_deplibs_FC=unknown
12853 module_cmds_FC=
12854 module_expsym_cmds_FC=
12855 old_archive_from_new_cmds_FC=
12856 old_archive_from_expsyms_cmds_FC=
12857 thread_safe_flag_spec_FC=
12858 whole_archive_flag_spec_FC=
12859 # include_expsyms should be a list of space-separated symbols to be *always*
12860 # included in the symbol list
12861 include_expsyms_FC=
12862 # exclude_expsyms can be an extended regexp of symbols to exclude
12863 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12864 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12865 # as well as any symbol that contains `d'.
12866 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12867 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12868 # platforms (ab)use it in PIC code, but their linkers get confused if
12869 # the symbol is explicitly referenced. Since portable code cannot
12870 # rely on this symbol name, it's probably fine to never include it in
12871 # preloaded symbol tables.
12872 # Exclude shared library initialization/finalization symbols.
12873 extract_expsyms_cmds=
12875 case $host_os in
12876 cygwin* | mingw* | pw32* | cegcc*)
12877 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12878 # When not using gcc, we currently assume that we are using
12879 # Microsoft Visual C++.
12880 if test "$GCC" != yes; then
12881 with_gnu_ld=no
12884 interix*)
12885 # we just hope/assume this is gcc and not c89 (= MSVC++)
12886 with_gnu_ld=yes
12888 openbsd*)
12889 with_gnu_ld=no
12891 esac
12893 ld_shlibs_FC=yes
12895 # On some targets, GNU ld is compatible enough with the native linker
12896 # that we're better off using the native interface for both.
12897 lt_use_gnu_ld_interface=no
12898 if test "$with_gnu_ld" = yes; then
12899 case $host_os in
12900 aix*)
12901 # The AIX port of GNU ld has always aspired to compatibility
12902 # with the native linker. However, as the warning in the GNU ld
12903 # block says, versions before 2.19.5* couldn't really create working
12904 # shared libraries, regardless of the interface used.
12905 case `$LD -v 2>&1` in
12906 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12907 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12908 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12910 lt_use_gnu_ld_interface=yes
12912 esac
12915 lt_use_gnu_ld_interface=yes
12917 esac
12920 if test "$lt_use_gnu_ld_interface" = yes; then
12921 # If archive_cmds runs LD, not CC, wlarc should be empty
12922 wlarc='${wl}'
12924 # Set some defaults for GNU ld with shared library support. These
12925 # are reset later if shared libraries are not supported. Putting them
12926 # here allows them to be overridden if necessary.
12927 runpath_var=LD_RUN_PATH
12928 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12929 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12930 # ancient GNU ld didn't support --whole-archive et. al.
12931 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12932 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12933 else
12934 whole_archive_flag_spec_FC=
12936 supports_anon_versioning=no
12937 case `$LD -v 2>&1` in
12938 *GNU\ gold*) supports_anon_versioning=yes ;;
12939 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12940 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12941 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12942 *\ 2.11.*) ;; # other 2.11 versions
12943 *) supports_anon_versioning=yes ;;
12944 esac
12946 # See if GNU ld supports shared libraries.
12947 case $host_os in
12948 aix[3-9]*)
12949 # On AIX/PPC, the GNU linker is very broken
12950 if test "$host_cpu" != ia64; then
12951 ld_shlibs_FC=no
12952 cat <<_LT_EOF 1>&2
12954 *** Warning: the GNU linker, at least up to release 2.19, is reported
12955 *** to be unable to reliably create shared libraries on AIX.
12956 *** Therefore, libtool is disabling shared libraries support. If you
12957 *** really care for shared libraries, you may want to install binutils
12958 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12959 *** You will then need to restart the configuration process.
12961 _LT_EOF
12965 amigaos*)
12966 case $host_cpu in
12967 powerpc)
12968 # see comment about AmigaOS4 .so support
12969 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12970 archive_expsym_cmds_FC=''
12972 m68k)
12973 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)'
12974 hardcode_libdir_flag_spec_FC='-L$libdir'
12975 hardcode_minus_L_FC=yes
12977 esac
12980 beos*)
12981 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12982 allow_undefined_flag_FC=unsupported
12983 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12984 # support --undefined. This deserves some investigation. FIXME
12985 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12986 else
12987 ld_shlibs_FC=no
12991 cygwin* | mingw* | pw32* | cegcc*)
12992 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12993 # as there is no search path for DLLs.
12994 hardcode_libdir_flag_spec_FC='-L$libdir'
12995 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12996 allow_undefined_flag_FC=unsupported
12997 always_export_symbols_FC=no
12998 enable_shared_with_static_runtimes_FC=yes
12999 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13001 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13002 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13003 # If the export-symbols file already is a .def file (1st line
13004 # is EXPORTS), use it as is; otherwise, prepend...
13005 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13006 cp $export_symbols $output_objdir/$soname.def;
13007 else
13008 echo EXPORTS > $output_objdir/$soname.def;
13009 cat $export_symbols >> $output_objdir/$soname.def;
13011 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13012 else
13013 ld_shlibs_FC=no
13017 haiku*)
13018 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13019 link_all_deplibs_FC=yes
13022 interix[3-9]*)
13023 hardcode_direct_FC=no
13024 hardcode_shlibpath_var_FC=no
13025 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13026 export_dynamic_flag_spec_FC='${wl}-E'
13027 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13028 # Instead, shared libraries are loaded at an image base (0x10000000 by
13029 # default) and relocated if they conflict, which is a slow very memory
13030 # consuming and fragmenting process. To avoid this, we pick a random,
13031 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13032 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13033 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'
13034 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'
13037 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13038 tmp_diet=no
13039 if test "$host_os" = linux-dietlibc; then
13040 case $cc_basename in
13041 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13042 esac
13044 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13045 && test "$tmp_diet" = no
13046 then
13047 tmp_addflag=' $pic_flag'
13048 tmp_sharedflag='-shared'
13049 case $cc_basename,$host_cpu in
13050 pgcc*) # Portland Group C compiler
13051 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'
13052 tmp_addflag=' $pic_flag'
13054 pgf77* | pgf90* | pgf95* | pgfortran*)
13055 # Portland Group f77 and f90 compilers
13056 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'
13057 tmp_addflag=' $pic_flag -Mnomain' ;;
13058 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13059 tmp_addflag=' -i_dynamic' ;;
13060 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13061 tmp_addflag=' -i_dynamic -nofor_main' ;;
13062 ifc* | ifort*) # Intel Fortran compiler
13063 tmp_addflag=' -nofor_main' ;;
13064 lf95*) # Lahey Fortran 8.1
13065 whole_archive_flag_spec_FC=
13066 tmp_sharedflag='--shared' ;;
13067 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13068 tmp_sharedflag='-qmkshrobj'
13069 tmp_addflag= ;;
13070 nvcc*) # Cuda Compiler Driver 2.2
13071 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'
13072 compiler_needs_object_FC=yes
13074 esac
13075 case `$CC -V 2>&1 | sed 5q` in
13076 *Sun\ C*) # Sun C 5.9
13077 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'
13078 compiler_needs_object_FC=yes
13079 tmp_sharedflag='-G' ;;
13080 *Sun\ F*) # Sun Fortran 8.3
13081 tmp_sharedflag='-G' ;;
13082 esac
13083 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13085 if test "x$supports_anon_versioning" = xyes; then
13086 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13087 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13088 echo "local: *; };" >> $output_objdir/$libname.ver~
13089 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13092 case $cc_basename in
13093 xlf* | bgf* | bgxlf* | mpixlf*)
13094 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13095 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13096 hardcode_libdir_flag_spec_FC=
13097 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13098 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13099 if test "x$supports_anon_versioning" = xyes; then
13100 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13102 echo "local: *; };" >> $output_objdir/$libname.ver~
13103 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13106 esac
13107 else
13108 ld_shlibs_FC=no
13112 netbsd*)
13113 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13114 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13115 wlarc=
13116 else
13117 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13118 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13122 solaris*)
13123 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13124 ld_shlibs_FC=no
13125 cat <<_LT_EOF 1>&2
13127 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13128 *** create shared libraries on Solaris systems. Therefore, libtool
13129 *** is disabling shared libraries support. We urge you to upgrade GNU
13130 *** binutils to release 2.9.1 or newer. Another option is to modify
13131 *** your PATH or compiler configuration so that the native linker is
13132 *** used, and then restart.
13134 _LT_EOF
13135 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13136 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13137 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13138 else
13139 ld_shlibs_FC=no
13143 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13144 case `$LD -v 2>&1` in
13145 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13146 ld_shlibs_FC=no
13147 cat <<_LT_EOF 1>&2
13149 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13150 *** reliably create shared libraries on SCO systems. Therefore, libtool
13151 *** is disabling shared libraries support. We urge you to upgrade GNU
13152 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13153 *** your PATH or compiler configuration so that the native linker is
13154 *** used, and then restart.
13156 _LT_EOF
13159 # For security reasons, it is highly recommended that you always
13160 # use absolute paths for naming shared libraries, and exclude the
13161 # DT_RUNPATH tag from executables and libraries. But doing so
13162 # requires that you compile everything twice, which is a pain.
13163 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13164 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13165 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13166 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13167 else
13168 ld_shlibs_FC=no
13171 esac
13174 sunos4*)
13175 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13176 wlarc=
13177 hardcode_direct_FC=yes
13178 hardcode_shlibpath_var_FC=no
13182 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13183 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13184 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13185 else
13186 ld_shlibs_FC=no
13189 esac
13191 if test "$ld_shlibs_FC" = no; then
13192 runpath_var=
13193 hardcode_libdir_flag_spec_FC=
13194 export_dynamic_flag_spec_FC=
13195 whole_archive_flag_spec_FC=
13197 else
13198 # PORTME fill in a description of your system's linker (not GNU ld)
13199 case $host_os in
13200 aix3*)
13201 allow_undefined_flag_FC=unsupported
13202 always_export_symbols_FC=yes
13203 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'
13204 # Note: this linker hardcodes the directories in LIBPATH if there
13205 # are no directories specified by -L.
13206 hardcode_minus_L_FC=yes
13207 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13208 # Neither direct hardcoding nor static linking is supported with a
13209 # broken collect2.
13210 hardcode_direct_FC=unsupported
13214 aix[4-9]*)
13215 if test "$host_cpu" = ia64; then
13216 # On IA64, the linker does run time linking by default, so we don't
13217 # have to do anything special.
13218 aix_use_runtimelinking=no
13219 exp_sym_flag='-Bexport'
13220 no_entry_flag=""
13221 else
13222 # If we're using GNU nm, then we don't want the "-C" option.
13223 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13224 # Also, AIX nm treats weak defined symbols like other global
13225 # defined symbols, whereas GNU nm marks them as "W".
13226 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13227 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'
13228 else
13229 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'
13231 aix_use_runtimelinking=no
13233 # Test if we are trying to use run time linking or normal
13234 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13235 # need to do runtime linking.
13236 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13237 for ld_flag in $LDFLAGS; do
13238 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13239 aix_use_runtimelinking=yes
13240 break
13242 done
13244 esac
13246 exp_sym_flag='-bexport'
13247 no_entry_flag='-bnoentry'
13250 # When large executables or shared objects are built, AIX ld can
13251 # have problems creating the table of contents. If linking a library
13252 # or program results in "error TOC overflow" add -mminimal-toc to
13253 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13254 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13256 archive_cmds_FC=''
13257 hardcode_direct_FC=yes
13258 hardcode_direct_absolute_FC=yes
13259 hardcode_libdir_separator_FC=':'
13260 link_all_deplibs_FC=yes
13261 file_list_spec_FC='${wl}-f,'
13263 if test "$GCC" = yes; then
13264 case $host_os in aix4.[012]|aix4.[012].*)
13265 # We only want to do this on AIX 4.2 and lower, the check
13266 # below for broken collect2 doesn't work under 4.3+
13267 collect2name=`${CC} -print-prog-name=collect2`
13268 if test -f "$collect2name" &&
13269 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13270 then
13271 # We have reworked collect2
13273 else
13274 # We have old collect2
13275 hardcode_direct_FC=unsupported
13276 # It fails to find uninstalled libraries when the uninstalled
13277 # path is not listed in the libpath. Setting hardcode_minus_L
13278 # to unsupported forces relinking
13279 hardcode_minus_L_FC=yes
13280 hardcode_libdir_flag_spec_FC='-L$libdir'
13281 hardcode_libdir_separator_FC=
13284 esac
13285 shared_flag='-shared'
13286 if test "$aix_use_runtimelinking" = yes; then
13287 shared_flag="$shared_flag "'${wl}-G'
13289 else
13290 # not using gcc
13291 if test "$host_cpu" = ia64; then
13292 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13293 # chokes on -Wl,-G. The following line is correct:
13294 shared_flag='-G'
13295 else
13296 if test "$aix_use_runtimelinking" = yes; then
13297 shared_flag='${wl}-G'
13298 else
13299 shared_flag='${wl}-bM:SRE'
13304 export_dynamic_flag_spec_FC='${wl}-bexpall'
13305 # It seems that -bexpall does not export symbols beginning with
13306 # underscore (_), so it is better to generate a list of symbols to export.
13307 always_export_symbols_FC=yes
13308 if test "$aix_use_runtimelinking" = yes; then
13309 # Warning - without using the other runtime loading flags (-brtl),
13310 # -berok will link without error, but may produce a broken library.
13311 allow_undefined_flag_FC='-berok'
13312 # Determine the default libpath from the value encoded in an
13313 # empty executable.
13314 cat > conftest.$ac_ext <<_ACEOF
13315 program main
13318 _ACEOF
13319 if ac_fn_fc_try_link "$LINENO"; then :
13321 lt_aix_libpath_sed='
13322 /Import File Strings/,/^$/ {
13323 /^0/ {
13324 s/^0 *\(.*\)$/\1/
13328 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13329 # Check for a 64-bit object if we didn't find anything.
13330 if test -z "$aix_libpath"; then
13331 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13334 rm -f core conftest.err conftest.$ac_objext \
13335 conftest$ac_exeext conftest.$ac_ext
13336 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13338 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13339 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"
13340 else
13341 if test "$host_cpu" = ia64; then
13342 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13343 allow_undefined_flag_FC="-z nodefs"
13344 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"
13345 else
13346 # Determine the default libpath from the value encoded in an
13347 # empty executable.
13348 cat > conftest.$ac_ext <<_ACEOF
13349 program main
13352 _ACEOF
13353 if ac_fn_fc_try_link "$LINENO"; then :
13355 lt_aix_libpath_sed='
13356 /Import File Strings/,/^$/ {
13357 /^0/ {
13358 s/^0 *\(.*\)$/\1/
13362 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13363 # Check for a 64-bit object if we didn't find anything.
13364 if test -z "$aix_libpath"; then
13365 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13368 rm -f core conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext
13370 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13372 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13373 # Warning - without using the other run time loading flags,
13374 # -berok will link without error, but may produce a broken library.
13375 no_undefined_flag_FC=' ${wl}-bernotok'
13376 allow_undefined_flag_FC=' ${wl}-berok'
13377 if test "$with_gnu_ld" = yes; then
13378 # We only use this code for GNU lds that support --whole-archive.
13379 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13380 else
13381 # Exported symbols can be pulled into shared objects from archives
13382 whole_archive_flag_spec_FC='$convenience'
13384 archive_cmds_need_lc_FC=yes
13385 # This is similar to how AIX traditionally builds its shared libraries.
13386 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'
13391 amigaos*)
13392 case $host_cpu in
13393 powerpc)
13394 # see comment about AmigaOS4 .so support
13395 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13396 archive_expsym_cmds_FC=''
13398 m68k)
13399 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)'
13400 hardcode_libdir_flag_spec_FC='-L$libdir'
13401 hardcode_minus_L_FC=yes
13403 esac
13406 bsdi[45]*)
13407 export_dynamic_flag_spec_FC=-rdynamic
13410 cygwin* | mingw* | pw32* | cegcc*)
13411 # When not using gcc, we currently assume that we are using
13412 # Microsoft Visual C++.
13413 # hardcode_libdir_flag_spec is actually meaningless, as there is
13414 # no search path for DLLs.
13415 hardcode_libdir_flag_spec_FC=' '
13416 allow_undefined_flag_FC=unsupported
13417 # Tell ltmain to make .lib files, not .a files.
13418 libext=lib
13419 # Tell ltmain to make .dll files, not .so files.
13420 shrext_cmds=".dll"
13421 # FIXME: Setting linknames here is a bad hack.
13422 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13423 # The linker will automatically build a .lib file if we build a DLL.
13424 old_archive_from_new_cmds_FC='true'
13425 # FIXME: Should let the user specify the lib program.
13426 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13427 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13428 enable_shared_with_static_runtimes_FC=yes
13431 darwin* | rhapsody*)
13434 archive_cmds_need_lc_FC=no
13435 hardcode_direct_FC=no
13436 hardcode_automatic_FC=yes
13437 hardcode_shlibpath_var_FC=unsupported
13438 if test "$lt_cv_ld_force_load" = "yes"; then
13439 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\"`'
13440 else
13441 whole_archive_flag_spec_FC=''
13443 link_all_deplibs_FC=yes
13444 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13445 case $cc_basename in
13446 ifort*) _lt_dar_can_shared=yes ;;
13447 *) _lt_dar_can_shared=$GCC ;;
13448 esac
13449 if test "$_lt_dar_can_shared" = "yes"; then
13450 output_verbose_link_cmd=func_echo_all
13451 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}"
13452 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13453 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}"
13454 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}"
13456 else
13457 ld_shlibs_FC=no
13462 dgux*)
13463 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13464 hardcode_libdir_flag_spec_FC='-L$libdir'
13465 hardcode_shlibpath_var_FC=no
13468 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13469 # support. Future versions do this automatically, but an explicit c++rt0.o
13470 # does not break anything, and helps significantly (at the cost of a little
13471 # extra space).
13472 freebsd2.2*)
13473 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13474 hardcode_libdir_flag_spec_FC='-R$libdir'
13475 hardcode_direct_FC=yes
13476 hardcode_shlibpath_var_FC=no
13479 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13480 freebsd2.*)
13481 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13482 hardcode_direct_FC=yes
13483 hardcode_minus_L_FC=yes
13484 hardcode_shlibpath_var_FC=no
13487 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13488 freebsd* | dragonfly*)
13489 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13490 hardcode_libdir_flag_spec_FC='-R$libdir'
13491 hardcode_direct_FC=yes
13492 hardcode_shlibpath_var_FC=no
13495 hpux9*)
13496 if test "$GCC" = yes; then
13497 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'
13498 else
13499 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'
13501 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13502 hardcode_libdir_separator_FC=:
13503 hardcode_direct_FC=yes
13505 # hardcode_minus_L: Not really in the search PATH,
13506 # but as the default location of the library.
13507 hardcode_minus_L_FC=yes
13508 export_dynamic_flag_spec_FC='${wl}-E'
13511 hpux10*)
13512 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13513 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13514 else
13515 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13517 if test "$with_gnu_ld" = no; then
13518 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13519 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13520 hardcode_libdir_separator_FC=:
13521 hardcode_direct_FC=yes
13522 hardcode_direct_absolute_FC=yes
13523 export_dynamic_flag_spec_FC='${wl}-E'
13524 # hardcode_minus_L: Not really in the search PATH,
13525 # but as the default location of the library.
13526 hardcode_minus_L_FC=yes
13530 hpux11*)
13531 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13532 case $host_cpu in
13533 hppa*64*)
13534 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13536 ia64*)
13537 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13540 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13542 esac
13543 else
13544 case $host_cpu in
13545 hppa*64*)
13546 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13548 ia64*)
13549 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13552 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13554 esac
13556 if test "$with_gnu_ld" = no; then
13557 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13558 hardcode_libdir_separator_FC=:
13560 case $host_cpu in
13561 hppa*64*|ia64*)
13562 hardcode_direct_FC=no
13563 hardcode_shlibpath_var_FC=no
13566 hardcode_direct_FC=yes
13567 hardcode_direct_absolute_FC=yes
13568 export_dynamic_flag_spec_FC='${wl}-E'
13570 # hardcode_minus_L: Not really in the search PATH,
13571 # but as the default location of the library.
13572 hardcode_minus_L_FC=yes
13574 esac
13578 irix5* | irix6* | nonstopux*)
13579 if test "$GCC" = yes; then
13580 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'
13581 # Try to use the -exported_symbol ld option, if it does not
13582 # work, assume that -exports_file does not work either and
13583 # implicitly export all symbols.
13584 save_LDFLAGS="$LDFLAGS"
13585 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13586 cat > conftest.$ac_ext <<_ACEOF
13587 int foo(void) {}
13588 _ACEOF
13589 if ac_fn_fc_try_link "$LINENO"; then :
13590 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'
13593 rm -f core conftest.err conftest.$ac_objext \
13594 conftest$ac_exeext conftest.$ac_ext
13595 LDFLAGS="$save_LDFLAGS"
13596 else
13597 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'
13598 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'
13600 archive_cmds_need_lc_FC='no'
13601 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13602 hardcode_libdir_separator_FC=:
13603 inherit_rpath_FC=yes
13604 link_all_deplibs_FC=yes
13607 netbsd*)
13608 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13609 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13610 else
13611 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13613 hardcode_libdir_flag_spec_FC='-R$libdir'
13614 hardcode_direct_FC=yes
13615 hardcode_shlibpath_var_FC=no
13618 newsos6)
13619 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13620 hardcode_direct_FC=yes
13621 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13622 hardcode_libdir_separator_FC=:
13623 hardcode_shlibpath_var_FC=no
13626 *nto* | *qnx*)
13629 openbsd*)
13630 if test -f /usr/libexec/ld.so; then
13631 hardcode_direct_FC=yes
13632 hardcode_shlibpath_var_FC=no
13633 hardcode_direct_absolute_FC=yes
13634 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13635 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13636 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13637 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13638 export_dynamic_flag_spec_FC='${wl}-E'
13639 else
13640 case $host_os in
13641 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13642 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13643 hardcode_libdir_flag_spec_FC='-R$libdir'
13646 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13647 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13649 esac
13651 else
13652 ld_shlibs_FC=no
13656 os2*)
13657 hardcode_libdir_flag_spec_FC='-L$libdir'
13658 hardcode_minus_L_FC=yes
13659 allow_undefined_flag_FC=unsupported
13660 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'
13661 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13664 osf3*)
13665 if test "$GCC" = yes; then
13666 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13667 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'
13668 else
13669 allow_undefined_flag_FC=' -expect_unresolved \*'
13670 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'
13672 archive_cmds_need_lc_FC='no'
13673 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13674 hardcode_libdir_separator_FC=:
13677 osf4* | osf5*) # as osf3* with the addition of -msym flag
13678 if test "$GCC" = yes; then
13679 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13680 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'
13681 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13682 else
13683 allow_undefined_flag_FC=' -expect_unresolved \*'
13684 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'
13685 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~
13686 $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'
13688 # Both c and cxx compiler support -rpath directly
13689 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13691 archive_cmds_need_lc_FC='no'
13692 hardcode_libdir_separator_FC=:
13695 solaris*)
13696 no_undefined_flag_FC=' -z defs'
13697 if test "$GCC" = yes; then
13698 wlarc='${wl}'
13699 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13700 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13701 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13702 else
13703 case `$CC -V 2>&1` in
13704 *"Compilers 5.0"*)
13705 wlarc=''
13706 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13707 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13708 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13711 wlarc='${wl}'
13712 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13713 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13714 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13716 esac
13718 hardcode_libdir_flag_spec_FC='-R$libdir'
13719 hardcode_shlibpath_var_FC=no
13720 case $host_os in
13721 solaris2.[0-5] | solaris2.[0-5].*) ;;
13723 # The compiler driver will combine and reorder linker options,
13724 # but understands `-z linker_flag'. GCC discards it without `$wl',
13725 # but is careful enough not to reorder.
13726 # Supported since Solaris 2.6 (maybe 2.5.1?)
13727 if test "$GCC" = yes; then
13728 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13729 else
13730 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13733 esac
13734 link_all_deplibs_FC=yes
13737 sunos4*)
13738 if test "x$host_vendor" = xsequent; then
13739 # Use $CC to link under sequent, because it throws in some extra .o
13740 # files that make .init and .fini sections work.
13741 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13742 else
13743 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13745 hardcode_libdir_flag_spec_FC='-L$libdir'
13746 hardcode_direct_FC=yes
13747 hardcode_minus_L_FC=yes
13748 hardcode_shlibpath_var_FC=no
13751 sysv4)
13752 case $host_vendor in
13753 sni)
13754 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13755 hardcode_direct_FC=yes # is this really true???
13757 siemens)
13758 ## LD is ld it makes a PLAMLIB
13759 ## CC just makes a GrossModule.
13760 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13761 reload_cmds_FC='$CC -r -o $output$reload_objs'
13762 hardcode_direct_FC=no
13764 motorola)
13765 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13766 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13768 esac
13769 runpath_var='LD_RUN_PATH'
13770 hardcode_shlibpath_var_FC=no
13773 sysv4.3*)
13774 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13775 hardcode_shlibpath_var_FC=no
13776 export_dynamic_flag_spec_FC='-Bexport'
13779 sysv4*MP*)
13780 if test -d /usr/nec; then
13781 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13782 hardcode_shlibpath_var_FC=no
13783 runpath_var=LD_RUN_PATH
13784 hardcode_runpath_var=yes
13785 ld_shlibs_FC=yes
13789 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13790 no_undefined_flag_FC='${wl}-z,text'
13791 archive_cmds_need_lc_FC=no
13792 hardcode_shlibpath_var_FC=no
13793 runpath_var='LD_RUN_PATH'
13795 if test "$GCC" = yes; then
13796 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13797 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13798 else
13799 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 sysv5* | sco3.2v5* | sco5v6*)
13805 # Note: We can NOT use -z defs as we might desire, because we do not
13806 # link with -lc, and that would cause any symbols used from libc to
13807 # always be unresolved, which means just about no library would
13808 # ever link correctly. If we're not using GNU ld we use -z text
13809 # though, which does catch some bad symbols but isn't as heavy-handed
13810 # as -z defs.
13811 no_undefined_flag_FC='${wl}-z,text'
13812 allow_undefined_flag_FC='${wl}-z,nodefs'
13813 archive_cmds_need_lc_FC=no
13814 hardcode_shlibpath_var_FC=no
13815 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13816 hardcode_libdir_separator_FC=':'
13817 link_all_deplibs_FC=yes
13818 export_dynamic_flag_spec_FC='${wl}-Bexport'
13819 runpath_var='LD_RUN_PATH'
13821 if test "$GCC" = yes; then
13822 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13823 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13824 else
13825 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 uts4*)
13831 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13832 hardcode_libdir_flag_spec_FC='-L$libdir'
13833 hardcode_shlibpath_var_FC=no
13837 ld_shlibs_FC=no
13839 esac
13841 if test x$host_vendor = xsni; then
13842 case $host in
13843 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13844 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13846 esac
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13851 $as_echo "$ld_shlibs_FC" >&6; }
13852 test "$ld_shlibs_FC" = no && can_build_shared=no
13854 with_gnu_ld_FC=$with_gnu_ld
13862 # Do we need to explicitly link libc?
13864 case "x$archive_cmds_need_lc_FC" in
13865 x|xyes)
13866 # Assume -lc should be added
13867 archive_cmds_need_lc_FC=yes
13869 if test "$enable_shared" = yes && test "$GCC" = yes; then
13870 case $archive_cmds_FC in
13871 *'~'*)
13872 # FIXME: we may have to deal with multi-command sequences.
13874 '$CC '*)
13875 # Test whether the compiler implicitly links with -lc since on some
13876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13877 # to ld, don't add -lc before -lgcc.
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13879 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13880 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13881 $as_echo_n "(cached) " >&6
13882 else
13883 $RM conftest*
13884 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13887 (eval $ac_compile) 2>&5
13888 ac_status=$?
13889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13890 test $ac_status = 0; } 2>conftest.err; then
13891 soname=conftest
13892 lib=conftest
13893 libobjs=conftest.$ac_objext
13894 deplibs=
13895 wl=$lt_prog_compiler_wl_FC
13896 pic_flag=$lt_prog_compiler_pic_FC
13897 compiler_flags=-v
13898 linker_flags=-v
13899 verstring=
13900 output_objdir=.
13901 libname=conftest
13902 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13903 allow_undefined_flag_FC=
13904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13905 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13906 ac_status=$?
13907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13908 test $ac_status = 0; }
13909 then
13910 lt_cv_archive_cmds_need_lc_FC=no
13911 else
13912 lt_cv_archive_cmds_need_lc_FC=yes
13914 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13915 else
13916 cat conftest.err 1>&5
13918 $RM conftest*
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13922 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13923 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13925 esac
13928 esac
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13994 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13996 library_names_spec=
13997 libname_spec='lib$name'
13998 soname_spec=
13999 shrext_cmds=".so"
14000 postinstall_cmds=
14001 postuninstall_cmds=
14002 finish_cmds=
14003 finish_eval=
14004 shlibpath_var=
14005 shlibpath_overrides_runpath=unknown
14006 version_type=none
14007 dynamic_linker="$host_os ld.so"
14008 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14009 need_lib_prefix=unknown
14010 hardcode_into_libs=no
14012 # when you set need_version to no, make sure it does not cause -set_version
14013 # flags to be left without arguments
14014 need_version=unknown
14016 case $host_os in
14017 aix3*)
14018 version_type=linux
14019 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14020 shlibpath_var=LIBPATH
14022 # AIX 3 has no versioning support, so we append a major version to the name.
14023 soname_spec='${libname}${release}${shared_ext}$major'
14026 aix[4-9]*)
14027 version_type=linux
14028 need_lib_prefix=no
14029 need_version=no
14030 hardcode_into_libs=yes
14031 if test "$host_cpu" = ia64; then
14032 # AIX 5 supports IA64
14033 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14034 shlibpath_var=LD_LIBRARY_PATH
14035 else
14036 # With GCC up to 2.95.x, collect2 would create an import file
14037 # for dependence libraries. The import file would start with
14038 # the line `#! .'. This would cause the generated library to
14039 # depend on `.', always an invalid library. This was fixed in
14040 # development snapshots of GCC prior to 3.0.
14041 case $host_os in
14042 aix4 | aix4.[01] | aix4.[01].*)
14043 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14044 echo ' yes '
14045 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14047 else
14048 can_build_shared=no
14051 esac
14052 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14053 # soname into executable. Probably we can add versioning support to
14054 # collect2, so additional links can be useful in future.
14055 if test "$aix_use_runtimelinking" = yes; then
14056 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14057 # instead of lib<name>.a to let people know that these are not
14058 # typical AIX shared libraries.
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14060 else
14061 # We preserve .a as extension for shared libraries through AIX4.2
14062 # and later when we are not doing run time linking.
14063 library_names_spec='${libname}${release}.a $libname.a'
14064 soname_spec='${libname}${release}${shared_ext}$major'
14066 shlibpath_var=LIBPATH
14070 amigaos*)
14071 case $host_cpu in
14072 powerpc)
14073 # Since July 2007 AmigaOS4 officially supports .so libraries.
14074 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14077 m68k)
14078 library_names_spec='$libname.ixlibrary $libname.a'
14079 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14080 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'
14082 esac
14085 beos*)
14086 library_names_spec='${libname}${shared_ext}'
14087 dynamic_linker="$host_os ld.so"
14088 shlibpath_var=LIBRARY_PATH
14091 bsdi[45]*)
14092 version_type=linux
14093 need_version=no
14094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14095 soname_spec='${libname}${release}${shared_ext}$major'
14096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14097 shlibpath_var=LD_LIBRARY_PATH
14098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14100 # the default ld.so.conf also contains /usr/contrib/lib and
14101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14102 # libtool to hard-code these into programs
14105 cygwin* | mingw* | pw32* | cegcc*)
14106 version_type=windows
14107 shrext_cmds=".dll"
14108 need_version=no
14109 need_lib_prefix=no
14111 case $GCC,$host_os in
14112 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14113 library_names_spec='$libname.dll.a'
14114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14115 postinstall_cmds='base_file=`basename \${file}`~
14116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14117 dldir=$destdir/`dirname \$dlpath`~
14118 test -d \$dldir || mkdir -p \$dldir~
14119 $install_prog $dir/$dlname \$dldir/$dlname~
14120 chmod a+x \$dldir/$dlname~
14121 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14122 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14124 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14125 dlpath=$dir/\$dldll~
14126 $RM \$dlpath'
14127 shlibpath_overrides_runpath=yes
14129 case $host_os in
14130 cygwin*)
14131 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14132 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14135 mingw* | cegcc*)
14136 # MinGW DLLs use traditional 'lib' prefix
14137 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14139 pw32*)
14140 # pw32 DLLs use 'pw' prefix rather than 'lib'
14141 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14143 esac
14147 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14149 esac
14150 dynamic_linker='Win32 ld.exe'
14151 # FIXME: first we should search . and the directory the executable is in
14152 shlibpath_var=PATH
14155 darwin* | rhapsody*)
14156 dynamic_linker="$host_os dyld"
14157 version_type=darwin
14158 need_lib_prefix=no
14159 need_version=no
14160 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14161 soname_spec='${libname}${release}${major}$shared_ext'
14162 shlibpath_overrides_runpath=yes
14163 shlibpath_var=DYLD_LIBRARY_PATH
14164 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14169 dgux*)
14170 version_type=linux
14171 need_lib_prefix=no
14172 need_version=no
14173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14174 soname_spec='${libname}${release}${shared_ext}$major'
14175 shlibpath_var=LD_LIBRARY_PATH
14178 freebsd* | dragonfly*)
14179 # DragonFly does not have aout. When/if they implement a new
14180 # versioning mechanism, adjust this.
14181 if test -x /usr/bin/objformat; then
14182 objformat=`/usr/bin/objformat`
14183 else
14184 case $host_os in
14185 freebsd[23].*) objformat=aout ;;
14186 *) objformat=elf ;;
14187 esac
14189 version_type=freebsd-$objformat
14190 case $version_type in
14191 freebsd-elf*)
14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14193 need_version=no
14194 need_lib_prefix=no
14196 freebsd-*)
14197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14198 need_version=yes
14200 esac
14201 shlibpath_var=LD_LIBRARY_PATH
14202 case $host_os in
14203 freebsd2.*)
14204 shlibpath_overrides_runpath=yes
14206 freebsd3.[01]* | freebsdelf3.[01]*)
14207 shlibpath_overrides_runpath=yes
14208 hardcode_into_libs=yes
14210 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14211 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14212 shlibpath_overrides_runpath=no
14213 hardcode_into_libs=yes
14215 *) # from 4.6 on, and DragonFly
14216 shlibpath_overrides_runpath=yes
14217 hardcode_into_libs=yes
14219 esac
14222 haiku*)
14223 version_type=linux
14224 need_lib_prefix=no
14225 need_version=no
14226 dynamic_linker="$host_os runtime_loader"
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14228 soname_spec='${libname}${release}${shared_ext}$major'
14229 shlibpath_var=LIBRARY_PATH
14230 shlibpath_overrides_runpath=yes
14231 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14232 hardcode_into_libs=yes
14235 hpux9* | hpux10* | hpux11*)
14236 # Give a soname corresponding to the major version so that dld.sl refuses to
14237 # link against other versions.
14238 version_type=sunos
14239 need_lib_prefix=no
14240 need_version=no
14241 case $host_cpu in
14242 ia64*)
14243 shrext_cmds='.so'
14244 hardcode_into_libs=yes
14245 dynamic_linker="$host_os dld.so"
14246 shlibpath_var=LD_LIBRARY_PATH
14247 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14249 soname_spec='${libname}${release}${shared_ext}$major'
14250 if test "X$HPUX_IA64_MODE" = X32; then
14251 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14252 else
14253 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14255 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14257 hppa*64*)
14258 shrext_cmds='.sl'
14259 hardcode_into_libs=yes
14260 dynamic_linker="$host_os dld.sl"
14261 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14264 soname_spec='${libname}${release}${shared_ext}$major'
14265 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14269 shrext_cmds='.sl'
14270 dynamic_linker="$host_os dld.sl"
14271 shlibpath_var=SHLIB_PATH
14272 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14274 soname_spec='${libname}${release}${shared_ext}$major'
14276 esac
14277 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14278 postinstall_cmds='chmod 555 $lib'
14279 # or fails outright, so override atomically:
14280 install_override_mode=555
14283 interix[3-9]*)
14284 version_type=linux
14285 need_lib_prefix=no
14286 need_version=no
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14288 soname_spec='${libname}${release}${shared_ext}$major'
14289 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14290 shlibpath_var=LD_LIBRARY_PATH
14291 shlibpath_overrides_runpath=no
14292 hardcode_into_libs=yes
14295 irix5* | irix6* | nonstopux*)
14296 case $host_os in
14297 nonstopux*) version_type=nonstopux ;;
14299 if test "$lt_cv_prog_gnu_ld" = yes; then
14300 version_type=linux
14301 else
14302 version_type=irix
14303 fi ;;
14304 esac
14305 need_lib_prefix=no
14306 need_version=no
14307 soname_spec='${libname}${release}${shared_ext}$major'
14308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14309 case $host_os in
14310 irix5* | nonstopux*)
14311 libsuff= shlibsuff=
14314 case $LD in # libtool.m4 will add one of these switches to LD
14315 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14316 libsuff= shlibsuff= libmagic=32-bit;;
14317 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14318 libsuff=32 shlibsuff=N32 libmagic=N32;;
14319 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14320 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14321 *) libsuff= shlibsuff= libmagic=never-match;;
14322 esac
14324 esac
14325 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14326 shlibpath_overrides_runpath=no
14327 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14328 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14329 hardcode_into_libs=yes
14332 # No shared lib support for Linux oldld, aout, or coff.
14333 linux*oldld* | linux*aout* | linux*coff*)
14334 dynamic_linker=no
14337 # This must be Linux ELF.
14339 # uclinux* changes (here and below) have been submitted to the libtool
14340 # project, but have not yet been accepted: they are GCC-local changes
14341 # for the time being. (See
14342 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14343 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
14344 version_type=linux
14345 need_lib_prefix=no
14346 need_version=no
14347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14348 soname_spec='${libname}${release}${shared_ext}$major'
14349 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14350 shlibpath_var=LD_LIBRARY_PATH
14351 shlibpath_overrides_runpath=no
14353 # Some binutils ld are patched to set DT_RUNPATH
14354 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14357 lt_cv_shlibpath_overrides_runpath=no
14358 save_LDFLAGS=$LDFLAGS
14359 save_libdir=$libdir
14360 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14361 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14362 cat > conftest.$ac_ext <<_ACEOF
14363 program main
14366 _ACEOF
14367 if ac_fn_fc_try_link "$LINENO"; then :
14368 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14369 lt_cv_shlibpath_overrides_runpath=yes
14372 rm -f core conftest.err conftest.$ac_objext \
14373 conftest$ac_exeext conftest.$ac_ext
14374 LDFLAGS=$save_LDFLAGS
14375 libdir=$save_libdir
14379 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14381 # This implies no fast_install, which is unacceptable.
14382 # Some rework will be needed to allow for fast_install
14383 # before this can be enabled.
14384 hardcode_into_libs=yes
14386 # Append ld.so.conf contents to the search path
14387 if test -f /etc/ld.so.conf; then
14388 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' ' '`
14389 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14392 # We used to test for /lib/ld.so.1 and disable shared libraries on
14393 # powerpc, because MkLinux only supported shared libraries with the
14394 # GNU dynamic linker. Since this was broken with cross compilers,
14395 # most powerpc-linux boxes support dynamic linking these days and
14396 # people can always --disable-shared, the test was removed, and we
14397 # assume the GNU/Linux dynamic linker is in use.
14398 dynamic_linker='GNU/Linux ld.so'
14401 netbsd*)
14402 version_type=sunos
14403 need_lib_prefix=no
14404 need_version=no
14405 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14407 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14408 dynamic_linker='NetBSD (a.out) ld.so'
14409 else
14410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14411 soname_spec='${libname}${release}${shared_ext}$major'
14412 dynamic_linker='NetBSD ld.elf_so'
14414 shlibpath_var=LD_LIBRARY_PATH
14415 shlibpath_overrides_runpath=yes
14416 hardcode_into_libs=yes
14419 newsos6)
14420 version_type=linux
14421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14422 shlibpath_var=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath=yes
14426 *nto* | *qnx*)
14427 version_type=qnx
14428 need_lib_prefix=no
14429 need_version=no
14430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14431 soname_spec='${libname}${release}${shared_ext}$major'
14432 shlibpath_var=LD_LIBRARY_PATH
14433 shlibpath_overrides_runpath=no
14434 hardcode_into_libs=yes
14435 dynamic_linker='ldqnx.so'
14438 openbsd*)
14439 version_type=sunos
14440 sys_lib_dlsearch_path_spec="/usr/lib"
14441 need_lib_prefix=no
14442 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14443 case $host_os in
14444 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14445 *) need_version=no ;;
14446 esac
14447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14449 shlibpath_var=LD_LIBRARY_PATH
14450 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14451 case $host_os in
14452 openbsd2.[89] | openbsd2.[89].*)
14453 shlibpath_overrides_runpath=no
14456 shlibpath_overrides_runpath=yes
14458 esac
14459 else
14460 shlibpath_overrides_runpath=yes
14464 os2*)
14465 libname_spec='$name'
14466 shrext_cmds=".dll"
14467 need_lib_prefix=no
14468 library_names_spec='$libname${shared_ext} $libname.a'
14469 dynamic_linker='OS/2 ld.exe'
14470 shlibpath_var=LIBPATH
14473 osf3* | osf4* | osf5*)
14474 version_type=osf
14475 need_lib_prefix=no
14476 need_version=no
14477 soname_spec='${libname}${release}${shared_ext}$major'
14478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14479 shlibpath_var=LD_LIBRARY_PATH
14480 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14481 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14484 rdos*)
14485 dynamic_linker=no
14488 solaris*)
14489 version_type=linux
14490 need_lib_prefix=no
14491 need_version=no
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 shlibpath_var=LD_LIBRARY_PATH
14495 shlibpath_overrides_runpath=yes
14496 hardcode_into_libs=yes
14497 # ldd complains unless libraries are executable
14498 postinstall_cmds='chmod +x $lib'
14501 sunos4*)
14502 version_type=sunos
14503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14504 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14505 shlibpath_var=LD_LIBRARY_PATH
14506 shlibpath_overrides_runpath=yes
14507 if test "$with_gnu_ld" = yes; then
14508 need_lib_prefix=no
14510 need_version=yes
14513 sysv4 | sysv4.3*)
14514 version_type=linux
14515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14516 soname_spec='${libname}${release}${shared_ext}$major'
14517 shlibpath_var=LD_LIBRARY_PATH
14518 case $host_vendor in
14519 sni)
14520 shlibpath_overrides_runpath=no
14521 need_lib_prefix=no
14522 runpath_var=LD_RUN_PATH
14524 siemens)
14525 need_lib_prefix=no
14527 motorola)
14528 need_lib_prefix=no
14529 need_version=no
14530 shlibpath_overrides_runpath=no
14531 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14533 esac
14536 sysv4*MP*)
14537 if test -d /usr/nec ;then
14538 version_type=linux
14539 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14540 soname_spec='$libname${shared_ext}.$major'
14541 shlibpath_var=LD_LIBRARY_PATH
14545 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14546 version_type=freebsd-elf
14547 need_lib_prefix=no
14548 need_version=no
14549 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14550 soname_spec='${libname}${release}${shared_ext}$major'
14551 shlibpath_var=LD_LIBRARY_PATH
14552 shlibpath_overrides_runpath=yes
14553 hardcode_into_libs=yes
14554 if test "$with_gnu_ld" = yes; then
14555 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14556 else
14557 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14558 case $host_os in
14559 sco3.2v5*)
14560 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14562 esac
14564 sys_lib_dlsearch_path_spec='/usr/lib'
14567 tpf*)
14568 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14569 version_type=linux
14570 need_lib_prefix=no
14571 need_version=no
14572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 shlibpath_overrides_runpath=no
14575 hardcode_into_libs=yes
14578 uts4*)
14579 version_type=linux
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581 soname_spec='${libname}${release}${shared_ext}$major'
14582 shlibpath_var=LD_LIBRARY_PATH
14585 # Shared libraries for VwWorks, >= 7 only at this stage
14586 # and (fpic) still incompatible with "large" code models
14587 # in a few configurations. Only for RTP mode in any case,
14588 # and upon explicit request at configure time.
14589 vxworks7*)
14590 dynamic_linker=no
14591 case ${with_multisubdir}-${enable_shared} in
14592 *large*)
14594 *mrtp*-yes)
14595 version_type=linux
14596 need_lib_prefix=no
14597 need_version=no
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 dynamic_linker="$host_os module_loader"
14602 esac
14605 dynamic_linker=no
14607 esac
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14609 $as_echo "$dynamic_linker" >&6; }
14610 test "$dynamic_linker" = no && can_build_shared=no
14612 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14613 if test "$GCC" = yes; then
14614 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14617 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14618 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14620 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14621 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14662 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14663 hardcode_action_FC=
14664 if test -n "$hardcode_libdir_flag_spec_FC" ||
14665 test -n "$runpath_var_FC" ||
14666 test "X$hardcode_automatic_FC" = "Xyes" ; then
14668 # We can hardcode non-existent directories.
14669 if test "$hardcode_direct_FC" != no &&
14670 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14671 # have to relink, otherwise we might link with an installed library
14672 # when we should be linking with a yet-to-be-installed one
14673 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14674 test "$hardcode_minus_L_FC" != no; then
14675 # Linking always hardcodes the temporary library directory.
14676 hardcode_action_FC=relink
14677 else
14678 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14679 hardcode_action_FC=immediate
14681 else
14682 # We cannot hardcode anything, or else we can only hardcode existing
14683 # directories.
14684 hardcode_action_FC=unsupported
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14687 $as_echo "$hardcode_action_FC" >&6; }
14689 if test "$hardcode_action_FC" = relink ||
14690 test "$inherit_rpath_FC" = yes; then
14691 # Fast installation is not supported
14692 enable_fast_install=no
14693 elif test "$shlibpath_overrides_runpath" = yes ||
14694 test "$enable_shared" = no; then
14695 # Fast installation is not necessary
14696 enable_fast_install=needless
14705 fi # test -n "$compiler"
14707 GCC=$lt_save_GCC
14708 CC="$lt_save_CC"
14709 fi # test "$_lt_disable_FC" != yes
14711 ac_ext=c
14712 ac_cpp='$CPP $CPPFLAGS'
14713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14718 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14720 # For libtool versioning info, format is CURRENT:REVISION:AGE
14721 libtool_VERSION=1:0:0
14724 # Check header files.
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14726 $as_echo_n "checking for ANSI C header files... " >&6; }
14727 if ${ac_cv_header_stdc+:} false; then :
14728 $as_echo_n "(cached) " >&6
14729 else
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14732 #include <stdlib.h>
14733 #include <stdarg.h>
14734 #include <string.h>
14735 #include <float.h>
14738 main ()
14742 return 0;
14744 _ACEOF
14745 if ac_fn_c_try_compile "$LINENO"; then :
14746 ac_cv_header_stdc=yes
14747 else
14748 ac_cv_header_stdc=no
14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 if test $ac_cv_header_stdc = yes; then
14753 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14756 #include <string.h>
14758 _ACEOF
14759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14760 $EGREP "memchr" >/dev/null 2>&1; then :
14762 else
14763 ac_cv_header_stdc=no
14765 rm -f conftest*
14769 if test $ac_cv_header_stdc = yes; then
14770 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14772 /* end confdefs.h. */
14773 #include <stdlib.h>
14775 _ACEOF
14776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14777 $EGREP "free" >/dev/null 2>&1; then :
14779 else
14780 ac_cv_header_stdc=no
14782 rm -f conftest*
14786 if test $ac_cv_header_stdc = yes; then
14787 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14788 if test "$cross_compiling" = yes; then :
14790 else
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 #include <ctype.h>
14794 #include <stdlib.h>
14795 #if ((' ' & 0x0FF) == 0x020)
14796 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14797 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14798 #else
14799 # define ISLOWER(c) \
14800 (('a' <= (c) && (c) <= 'i') \
14801 || ('j' <= (c) && (c) <= 'r') \
14802 || ('s' <= (c) && (c) <= 'z'))
14803 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14804 #endif
14806 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14808 main ()
14810 int i;
14811 for (i = 0; i < 256; i++)
14812 if (XOR (islower (i), ISLOWER (i))
14813 || toupper (i) != TOUPPER (i))
14814 return 2;
14815 return 0;
14817 _ACEOF
14818 if ac_fn_c_try_run "$LINENO"; then :
14820 else
14821 ac_cv_header_stdc=no
14823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14824 conftest.$ac_objext conftest.beam conftest.$ac_ext
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14830 $as_echo "$ac_cv_header_stdc" >&6; }
14831 if test $ac_cv_header_stdc = yes; then
14833 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14838 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14839 if ${ac_cv_header_time+:} false; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 #include <sys/types.h>
14845 #include <sys/time.h>
14846 #include <time.h>
14849 main ()
14851 if ((struct tm *) 0)
14852 return 0;
14854 return 0;
14856 _ACEOF
14857 if ac_fn_c_try_compile "$LINENO"; then :
14858 ac_cv_header_time=yes
14859 else
14860 ac_cv_header_time=no
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14865 $as_echo "$ac_cv_header_time" >&6; }
14866 if test $ac_cv_header_time = yes; then
14868 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14873 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14874 if ${gcc_cv_header_string+:} false; then :
14875 $as_echo_n "(cached) " >&6
14876 else
14877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h. */
14879 #include <string.h>
14880 #include <strings.h>
14882 main ()
14886 return 0;
14888 _ACEOF
14889 if ac_fn_c_try_compile "$LINENO"; then :
14890 gcc_cv_header_string=yes
14891 else
14892 gcc_cv_header_string=no
14894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14897 $as_echo "$gcc_cv_header_string" >&6; }
14898 if test $gcc_cv_header_string = yes; then
14900 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14904 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14905 do :
14906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14907 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14909 cat >>confdefs.h <<_ACEOF
14910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14911 _ACEOF
14915 done
14918 XPCFLAGS=""
14919 case "$host" in
14920 *-*-rtems*)
14921 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14923 nvptx*-*-* | amdgcn*-*-*)
14924 # NVPTX does not support Pthreads, has its own code replacement.
14925 libgomp_use_pthreads=no
14926 # NVPTX is an accelerator-only target
14927 libgomp_offloaded_only=yes
14930 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14931 # In case the pthread.h system header is not found, this test will fail.
14932 CFLAGS="$CFLAGS -pthread"
14933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14934 /* end confdefs.h. */
14935 #include <pthread.h>
14936 void *g(void *d) { return NULL; }
14938 main ()
14940 pthread_t t; pthread_create(&t,NULL,g,NULL);
14942 return 0;
14944 _ACEOF
14945 if ac_fn_c_try_link "$LINENO"; then :
14946 XPCFLAGS=" -Wc,-pthread"
14947 else
14948 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14950 /* end confdefs.h. */
14951 #include <pthread.h>
14952 void *g(void *d) { return NULL; }
14954 main ()
14956 pthread_t t; pthread_create(&t,NULL,g,NULL);
14958 return 0;
14960 _ACEOF
14961 if ac_fn_c_try_link "$LINENO"; then :
14963 else
14964 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
14966 rm -f core conftest.err conftest.$ac_objext \
14967 conftest$ac_exeext conftest.$ac_ext
14969 rm -f core conftest.err conftest.$ac_objext \
14970 conftest$ac_exeext conftest.$ac_ext
14971 esac
14973 if test x$libgomp_use_pthreads != xno; then
14975 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
14979 if test x$libgomp_offloaded_only = xyes; then
14981 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
14985 if test "x$enable_offload_defaulted" = xyes; then
14987 $as_echo "#define OFFLOAD_DEFAULTED 1" >>confdefs.h
14991 # The cast to long int works around a bug in the HP C Compiler
14992 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14993 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14994 # This bug is HP SR number 8606223364.
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
14996 $as_echo_n "checking size of void *... " >&6; }
14997 if ${ac_cv_sizeof_void_p+:} false; then :
14998 $as_echo_n "(cached) " >&6
14999 else
15000 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15002 else
15003 if test "$ac_cv_type_void_p" = yes; then
15004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15005 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15006 as_fn_error 77 "cannot compute sizeof (void *)
15007 See \`config.log' for more details" "$LINENO" 5; }
15008 else
15009 ac_cv_sizeof_void_p=0
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15015 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15019 cat >>confdefs.h <<_ACEOF
15020 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15021 _ACEOF
15025 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15027 # Copyright (C) 2014-2023 Free Software Foundation, Inc.
15029 # Contributed by Mentor Embedded.
15031 # This file is part of the GNU Offloading and Multi Processing Library
15032 # (libgomp).
15034 # Libgomp is free software; you can redistribute it and/or modify it
15035 # under the terms of the GNU General Public License as published by
15036 # the Free Software Foundation; either version 3, or (at your option)
15037 # any later version.
15039 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15040 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15041 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15042 # more details.
15044 # Under Section 7 of GPL version 3, you are granted additional
15045 # permissions described in the GCC Runtime Library Exception, version
15046 # 3.1, as published by the Free Software Foundation.
15048 # You should have received a copy of the GNU General Public License and
15049 # a copy of the GCC Runtime Library Exception along with this program;
15050 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15051 # <http://www.gnu.org/licenses/>.
15053 plugin_support=yes
15054 DL_LIBS=
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15057 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15058 if ${ac_cv_lib_dl_dlsym+:} false; then :
15059 $as_echo_n "(cached) " >&6
15060 else
15061 ac_check_lib_save_LIBS=$LIBS
15062 LIBS="-ldl $LIBS"
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15066 /* Override any GCC internal prototype to avoid an error.
15067 Use char because int might match the return type of a GCC
15068 builtin and then its argument prototype would still apply. */
15069 #ifdef __cplusplus
15070 extern "C"
15071 #endif
15072 char dlsym ();
15074 main ()
15076 return dlsym ();
15078 return 0;
15080 _ACEOF
15081 if ac_fn_c_try_link "$LINENO"; then :
15082 ac_cv_lib_dl_dlsym=yes
15083 else
15084 ac_cv_lib_dl_dlsym=no
15086 rm -f core conftest.err conftest.$ac_objext \
15087 conftest$ac_exeext conftest.$ac_ext
15088 LIBS=$ac_check_lib_save_LIBS
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15091 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15092 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15093 DL_LIBS=-ldl
15094 else
15095 plugin_support=no
15098 if test x"$plugin_support" = xyes; then
15100 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15102 elif test "x${enable_offload_targets-no}" != xno; then
15103 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15108 for ac_header in $ac_header_list
15109 do :
15110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15111 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15113 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15114 cat >>confdefs.h <<_ACEOF
15115 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15116 _ACEOF
15120 done
15128 for ac_func in $ac_func_list
15129 do :
15130 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15131 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15132 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15133 cat >>confdefs.h <<_ACEOF
15134 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15135 _ACEOF
15138 done
15155 PLUGIN_NVPTX=0
15156 PLUGIN_GCN=0
15157 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15158 # plugins, and configure to find the corresponding offload compilers.
15159 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15160 offload_plugins=
15161 offload_targets=
15164 offload_additional_options=
15165 offload_additional_lib_paths=
15168 if test x"$enable_offload_targets" != x; then
15169 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15170 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15171 tgt=`echo $tgt | sed 's/=.*//'`
15172 tgt_plugin=
15173 case $tgt in
15174 nvptx*)
15175 case "${target}" in
15176 aarch64*-*-* | powerpc64le-*-* | x86_64-*-*)
15177 case "$ac_cv_sizeof_void_p" in
15179 # PR libgomp/65099: Currently, we only support offloading in
15180 # 64-bit configurations.
15181 PLUGIN_NVPTX=0
15184 tgt_plugin=nvptx
15185 PLUGIN_NVPTX=1
15187 esac
15189 *-*-*)
15190 # Target architecture not supported.
15191 PLUGIN_NVPTX=0
15193 esac
15195 amdgcn*)
15196 case "${target}" in
15197 x86_64-*-*)
15198 case "$ac_cv_sizeof_void_p" in
15200 PLUGIN_GCN=0
15203 tgt_plugin=gcn
15204 PLUGIN_GCN=1
15206 esac
15208 *-*-*)
15209 PLUGIN_GCN=0
15211 esac
15214 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15216 esac
15217 if test x"$tgt_plugin" = x; then
15218 # Not configuring libgomp for this offload target if we're not building
15219 # the corresponding offload plugin.
15220 continue
15221 elif test x"$offload_plugins" = x; then
15222 offload_plugins=$tgt_plugin
15223 offload_targets=$tgt
15224 else
15225 offload_plugins=$offload_plugins,$tgt_plugin
15226 offload_targets=$offload_targets,$tgt
15228 # Configure additional search paths.
15229 if test x"$tgt_dir" != x; then
15230 offload_additional_options="$offload_additional_options -B$tgt_dir/\$(libexecdir:\$(exec_prefix)/%=%)/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15231 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15232 else
15233 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15234 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15236 done
15239 cat >>confdefs.h <<_ACEOF
15240 #define OFFLOAD_PLUGINS "$offload_plugins"
15241 _ACEOF
15243 if test $PLUGIN_NVPTX = 1; then
15244 PLUGIN_NVPTX_TRUE=
15245 PLUGIN_NVPTX_FALSE='#'
15246 else
15247 PLUGIN_NVPTX_TRUE='#'
15248 PLUGIN_NVPTX_FALSE=
15251 if test $PLUGIN_GCN = 1; then
15252 PLUGIN_GCN_TRUE=
15253 PLUGIN_GCN_FALSE='#'
15254 else
15255 PLUGIN_GCN_TRUE='#'
15256 PLUGIN_GCN_FALSE=
15261 # Check for functions needed.
15262 for ac_func in getloadavg clock_gettime strtoull
15263 do :
15264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15265 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15266 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15267 cat >>confdefs.h <<_ACEOF
15268 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15269 _ACEOF
15272 done
15274 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15275 do :
15276 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15277 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15278 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15279 cat >>confdefs.h <<_ACEOF
15280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15281 _ACEOF
15284 done
15287 # Check for broken semaphore implementation on darwin.
15288 # sem_init returns: sem_init error: Function not implemented.
15289 case "$host" in
15290 *-darwin*)
15292 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15295 esac
15297 # RTEMS specific checks
15298 case "$host" in
15299 *-*-rtems*)
15300 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15302 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15304 cat >>confdefs.h <<_ACEOF
15305 #define HAVE_STRUCT__MUTEX_CONTROL 1
15306 _ACEOF
15312 esac
15314 # Check whether --enable-linux-futex was given.
15315 if test "${enable_linux_futex+set}" = set; then :
15316 enableval=$enable_linux_futex;
15317 case "$enableval" in
15318 yes|no|default) ;;
15319 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15320 esac
15322 else
15323 enable_linux_futex=default
15327 case "$target" in
15328 *-linux* | *-uclinux*)
15329 case "$enable_linux_futex" in
15330 default)
15331 # If headers don't have gettid/futex syscalls definition, then
15332 # default to no, otherwise there will be compile time failures.
15333 # Otherwise, default to yes. If we don't detect we are
15334 # compiled/linked against NPTL and not cross-compiling, check
15335 # if programs are run by default against NPTL and if not, issue
15336 # a warning.
15337 enable_linux_futex=no
15338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15339 /* end confdefs.h. */
15340 #include <sys/syscall.h>
15341 #include <unistd.h>
15342 int lk;
15344 main ()
15346 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15348 return 0;
15350 _ACEOF
15351 if ac_fn_c_try_link "$LINENO"; then :
15352 save_LIBS="$LIBS"
15353 LIBS="-lpthread $LIBS"
15354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15355 /* end confdefs.h. */
15356 #ifndef _GNU_SOURCE
15357 #define _GNU_SOURCE 1
15358 #endif
15359 #include <pthread.h>
15360 pthread_t th; void *status;
15362 main ()
15364 pthread_tryjoin_np (th, &status);
15366 return 0;
15368 _ACEOF
15369 if ac_fn_c_try_link "$LINENO"; then :
15370 enable_linux_futex=yes
15371 else
15372 if test x$cross_compiling = xno; then
15373 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15374 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15376 If so, please configure with --disable-linux-futex" >&5
15377 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15378 If so, please configure with --disable-linux-futex" >&2;}
15381 enable_linux_futex=yes
15383 rm -f core conftest.err conftest.$ac_objext \
15384 conftest$ac_exeext conftest.$ac_ext
15385 LIBS="$save_LIBS"
15387 rm -f core conftest.err conftest.$ac_objext \
15388 conftest$ac_exeext conftest.$ac_ext
15390 yes)
15391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15392 /* end confdefs.h. */
15393 #include <sys/syscall.h>
15394 #include <unistd.h>
15395 int lk;
15397 main ()
15399 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15401 return 0;
15403 _ACEOF
15404 if ac_fn_c_try_link "$LINENO"; then :
15406 else
15407 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15409 rm -f core conftest.err conftest.$ac_objext \
15410 conftest$ac_exeext conftest.$ac_ext
15412 esac
15415 enable_linux_futex=no
15417 esac
15418 if test x$enable_linux_futex = xyes; then
15423 # Check for pthread_{,attr_}[sg]etaffinity_np.
15424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15425 /* end confdefs.h. */
15426 #define _GNU_SOURCE
15427 #include <pthread.h>
15429 main ()
15431 cpu_set_t cpuset;
15432 pthread_attr_t attr;
15433 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15434 if (CPU_ISSET (0, &cpuset))
15435 CPU_SET (1, &cpuset);
15436 else
15437 CPU_ZERO (&cpuset);
15438 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15439 pthread_attr_init (&attr);
15440 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15441 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15443 return 0;
15445 _ACEOF
15446 if ac_fn_c_try_link "$LINENO"; then :
15448 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15451 rm -f core conftest.err conftest.$ac_objext \
15452 conftest$ac_exeext conftest.$ac_ext
15454 # At least for glibc, clock_gettime is in librt. But don't pull that
15455 # in if it still doesn't give us the function we want.
15456 if test $ac_cv_func_clock_gettime = no; then
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15458 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15459 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15460 $as_echo_n "(cached) " >&6
15461 else
15462 ac_check_lib_save_LIBS=$LIBS
15463 LIBS="-lrt $LIBS"
15464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15465 /* end confdefs.h. */
15467 /* Override any GCC internal prototype to avoid an error.
15468 Use char because int might match the return type of a GCC
15469 builtin and then its argument prototype would still apply. */
15470 #ifdef __cplusplus
15471 extern "C"
15472 #endif
15473 char clock_gettime ();
15475 main ()
15477 return clock_gettime ();
15479 return 0;
15481 _ACEOF
15482 if ac_fn_c_try_link "$LINENO"; then :
15483 ac_cv_lib_rt_clock_gettime=yes
15484 else
15485 ac_cv_lib_rt_clock_gettime=no
15487 rm -f core conftest.err conftest.$ac_objext \
15488 conftest$ac_exeext conftest.$ac_ext
15489 LIBS=$ac_check_lib_save_LIBS
15491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15492 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15493 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15494 LIBS="-lrt $LIBS"
15496 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15502 # Check for uname.
15503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15504 /* end confdefs.h. */
15505 #include <string.h>
15506 #include <stdlib.h>
15507 #include <sys/utsname.h>
15509 main ()
15511 struct utsname buf;
15512 volatile size_t len = 0;
15513 if (!uname (buf))
15514 len = strlen (buf.nodename);
15516 return 0;
15518 _ACEOF
15519 if ac_fn_c_try_compile "$LINENO"; then :
15521 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15526 # Check for gethostname.
15527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15528 /* end confdefs.h. */
15529 #include <unistd.h>
15531 main ()
15534 char buf[256];
15535 if (gethostname (buf, sizeof (buf) - 1) == 0)
15536 buf[255] = '\0';
15539 return 0;
15541 _ACEOF
15542 if ac_fn_c_try_compile "$LINENO"; then :
15544 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 # Check for getpid.
15550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* end confdefs.h. */
15552 #include <unistd.h>
15554 main ()
15556 int pid = getpid ();
15558 return 0;
15560 _ACEOF
15561 if ac_fn_c_try_compile "$LINENO"; then :
15563 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15568 # See if we support thread-local storage.
15571 # Check whether --enable-tls was given.
15572 if test "${enable_tls+set}" = set; then :
15573 enableval=$enable_tls;
15574 case "$enableval" in
15575 yes|no) ;;
15576 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15577 esac
15579 else
15580 enable_tls=yes
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15585 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15586 if ${gcc_cv_have_tls+:} false; then :
15587 $as_echo_n "(cached) " >&6
15588 else
15590 if test "$cross_compiling" = yes; then :
15591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15592 /* end confdefs.h. */
15593 __thread int a; int b; int main() { return a = b; }
15594 _ACEOF
15595 if ac_fn_c_try_link "$LINENO"; then :
15596 chktls_save_LDFLAGS="$LDFLAGS"
15597 case $host in
15598 *-*-linux* | -*-uclinuxfdpic*)
15599 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15601 esac
15602 chktls_save_CFLAGS="$CFLAGS"
15603 CFLAGS="-fPIC $CFLAGS"
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 int f() { return 0; }
15607 _ACEOF
15608 if ac_fn_c_try_link "$LINENO"; then :
15609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15610 /* end confdefs.h. */
15611 __thread int a; int b; int f() { return a = b; }
15612 _ACEOF
15613 if ac_fn_c_try_link "$LINENO"; then :
15614 gcc_cv_have_tls=yes
15615 else
15616 gcc_cv_have_tls=no
15618 rm -f core conftest.err conftest.$ac_objext \
15619 conftest$ac_exeext conftest.$ac_ext
15620 else
15621 gcc_cv_have_tls=yes
15623 rm -f core conftest.err conftest.$ac_objext \
15624 conftest$ac_exeext conftest.$ac_ext
15625 CFLAGS="$chktls_save_CFLAGS"
15626 LDFLAGS="$chktls_save_LDFLAGS"
15627 else
15628 gcc_cv_have_tls=no
15630 rm -f core conftest.err conftest.$ac_objext \
15631 conftest$ac_exeext conftest.$ac_ext
15634 else
15635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15636 /* end confdefs.h. */
15637 __thread int a; int b; int main() { return a = b; }
15638 _ACEOF
15639 if ac_fn_c_try_run "$LINENO"; then :
15640 chktls_save_LDFLAGS="$LDFLAGS"
15641 LDFLAGS="-static $LDFLAGS"
15642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15643 /* end confdefs.h. */
15644 int main() { return 0; }
15645 _ACEOF
15646 if ac_fn_c_try_link "$LINENO"; then :
15647 if test "$cross_compiling" = yes; then :
15648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15650 as_fn_error $? "cannot run test program while cross compiling
15651 See \`config.log' for more details" "$LINENO" 5; }
15652 else
15653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15654 /* end confdefs.h. */
15655 __thread int a; int b; int main() { return a = b; }
15656 _ACEOF
15657 if ac_fn_c_try_run "$LINENO"; then :
15658 gcc_cv_have_tls=yes
15659 else
15660 gcc_cv_have_tls=no
15662 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15663 conftest.$ac_objext conftest.beam conftest.$ac_ext
15666 else
15667 gcc_cv_have_tls=yes
15669 rm -f core conftest.err conftest.$ac_objext \
15670 conftest$ac_exeext conftest.$ac_ext
15671 LDFLAGS="$chktls_save_LDFLAGS"
15672 if test $gcc_cv_have_tls = yes; then
15673 chktls_save_CFLAGS="$CFLAGS"
15674 thread_CFLAGS=failed
15675 for flag in '' '-pthread' '-lpthread'; do
15676 CFLAGS="$flag $chktls_save_CFLAGS"
15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679 #include <pthread.h>
15680 void *g(void *d) { return NULL; }
15682 main ()
15684 pthread_t t; pthread_create(&t,NULL,g,NULL);
15686 return 0;
15688 _ACEOF
15689 if ac_fn_c_try_link "$LINENO"; then :
15690 thread_CFLAGS="$flag"
15692 rm -f core conftest.err conftest.$ac_objext \
15693 conftest$ac_exeext conftest.$ac_ext
15694 if test "X$thread_CFLAGS" != Xfailed; then
15695 break
15697 done
15698 CFLAGS="$chktls_save_CFLAGS"
15699 if test "X$thread_CFLAGS" != Xfailed; then
15700 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15701 if test "$cross_compiling" = yes; then :
15702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15704 as_fn_error $? "cannot run test program while cross compiling
15705 See \`config.log' for more details" "$LINENO" 5; }
15706 else
15707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709 #include <pthread.h>
15710 __thread int a;
15711 static int *volatile a_in_other_thread;
15712 static void *
15713 thread_func (void *arg)
15715 a_in_other_thread = &a;
15716 return (void *)0;
15719 main ()
15721 pthread_t thread;
15722 void *thread_retval;
15723 int *volatile a_in_main_thread;
15724 a_in_main_thread = &a;
15725 if (pthread_create (&thread, (pthread_attr_t *)0,
15726 thread_func, (void *)0))
15727 return 0;
15728 if (pthread_join (thread, &thread_retval))
15729 return 0;
15730 return (a_in_other_thread == a_in_main_thread);
15732 return 0;
15734 _ACEOF
15735 if ac_fn_c_try_run "$LINENO"; then :
15736 gcc_cv_have_tls=yes
15737 else
15738 gcc_cv_have_tls=no
15740 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15741 conftest.$ac_objext conftest.beam conftest.$ac_ext
15744 CFLAGS="$chktls_save_CFLAGS"
15747 else
15748 gcc_cv_have_tls=no
15750 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15751 conftest.$ac_objext conftest.beam conftest.$ac_ext
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15756 $as_echo "$gcc_cv_have_tls" >&6; }
15757 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15759 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15763 # See if we have emulated thread-local storage.
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
15766 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
15767 if ${gcc_cv_use_emutls+:} false; then :
15768 $as_echo_n "(cached) " >&6
15769 else
15771 gcc_cv_use_emutls=no
15772 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
15773 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
15774 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15775 (eval $ac_try) 2>&5
15776 ac_status=$?
15777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15778 test $ac_status = 0; }; }; then
15779 if grep __emutls_get_address conftest.s > /dev/null; then
15780 gcc_cv_use_emutls=yes
15783 rm -f conftest.*
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
15787 $as_echo "$gcc_cv_use_emutls" >&6; }
15788 if test "$gcc_cv_use_emutls" = "yes" ; then
15790 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
15794 # See what sort of export controls are available.
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
15797 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
15798 if ${libgomp_cv_have_attribute_visibility+:} false; then :
15799 $as_echo_n "(cached) " >&6
15800 else
15802 save_CFLAGS="$CFLAGS"
15803 CFLAGS="$CFLAGS -Werror"
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15806 void __attribute__((visibility("hidden"))) foo(void) { }
15808 main ()
15812 return 0;
15814 _ACEOF
15815 if ac_fn_c_try_compile "$LINENO"; then :
15816 libgomp_cv_have_attribute_visibility=yes
15817 else
15818 libgomp_cv_have_attribute_visibility=no
15820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 CFLAGS="$save_CFLAGS"
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
15824 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
15825 if test $libgomp_cv_have_attribute_visibility = yes; then
15827 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
15832 $as_echo_n "checking whether the target supports dllexport... " >&6; }
15833 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
15834 $as_echo_n "(cached) " >&6
15835 else
15837 save_CFLAGS="$CFLAGS"
15838 CFLAGS="$CFLAGS -Werror"
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841 void __attribute__((dllexport)) foo(void) { }
15843 main ()
15847 return 0;
15849 _ACEOF
15850 if ac_fn_c_try_compile "$LINENO"; then :
15851 libgomp_cv_have_attribute_dllexport=yes
15852 else
15853 libgomp_cv_have_attribute_dllexport=no
15855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15856 CFLAGS="$save_CFLAGS"
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
15859 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
15860 if test $libgomp_cv_have_attribute_dllexport = yes; then
15862 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
15867 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
15868 if ${libgomp_cv_have_attribute_alias+:} false; then :
15869 $as_echo_n "(cached) " >&6
15870 else
15872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15873 /* end confdefs.h. */
15875 void foo(void) { }
15876 extern void bar(void) __attribute__((alias("foo")));
15878 main ()
15880 bar();
15882 return 0;
15884 _ACEOF
15885 if ac_fn_c_try_link "$LINENO"; then :
15886 libgomp_cv_have_attribute_alias=yes
15887 else
15888 libgomp_cv_have_attribute_alias=no
15890 rm -f core conftest.err conftest.$ac_objext \
15891 conftest$ac_exeext conftest.$ac_ext
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
15894 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
15895 if test $libgomp_cv_have_attribute_alias = yes; then
15897 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
15902 # Check whether --with-gnu-ld was given.
15903 if test "${with_gnu_ld+set}" = set; then :
15904 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15905 else
15906 with_gnu_ld=no
15909 ac_prog=ld
15910 if test "$GCC" = yes; then
15911 # Check if gcc -print-prog-name=ld gives a path.
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15913 $as_echo_n "checking for ld used by $CC... " >&6; }
15914 case $host in
15915 *-*-mingw*)
15916 # gcc leaves a trailing carriage return which upsets mingw
15917 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15919 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15920 esac
15921 case $ac_prog in
15922 # Accept absolute paths.
15923 [\\/]* | ?:[\\/]*)
15924 re_direlt='/[^/][^/]*/\.\./'
15925 # Canonicalize the pathname of ld
15926 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15927 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15928 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15929 done
15930 test -z "$LD" && LD="$ac_prog"
15933 # If it fails, then pretend we aren't using GCC.
15934 ac_prog=ld
15937 # If it is relative, then search for the first ld in PATH.
15938 with_gnu_ld=unknown
15940 esac
15941 elif test "$with_gnu_ld" = yes; then
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15943 $as_echo_n "checking for GNU ld... " >&6; }
15944 else
15945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15946 $as_echo_n "checking for non-GNU ld... " >&6; }
15948 if ${lt_cv_path_LD+:} false; then :
15949 $as_echo_n "(cached) " >&6
15950 else
15951 if test -z "$LD"; then
15952 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15953 for ac_dir in $PATH; do
15954 IFS="$lt_save_ifs"
15955 test -z "$ac_dir" && ac_dir=.
15956 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15957 lt_cv_path_LD="$ac_dir/$ac_prog"
15958 # Check to see if the program is GNU ld. I'd rather use --version,
15959 # but apparently some variants of GNU ld only accept -v.
15960 # Break only if it was the GNU/non-GNU ld that we prefer.
15961 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15962 *GNU* | *'with BFD'*)
15963 test "$with_gnu_ld" != no && break
15966 test "$with_gnu_ld" != yes && break
15968 esac
15970 done
15971 IFS="$lt_save_ifs"
15972 else
15973 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15977 LD="$lt_cv_path_LD"
15978 if test -n "$LD"; then
15979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15980 $as_echo "$LD" >&6; }
15981 else
15982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15983 $as_echo "no" >&6; }
15985 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15987 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15988 if ${lt_cv_prog_gnu_ld+:} false; then :
15989 $as_echo_n "(cached) " >&6
15990 else
15991 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15992 case `$LD -v 2>&1 </dev/null` in
15993 *GNU* | *'with BFD'*)
15994 lt_cv_prog_gnu_ld=yes
15997 lt_cv_prog_gnu_ld=no
15999 esac
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16002 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16003 with_gnu_ld=$lt_cv_prog_gnu_ld
16011 # If we're not using GNU ld, then there's no point in even trying these
16012 # tests. Check for that first. We should have already tested for gld
16013 # by now (in libtool), but require it now just to be safe...
16014 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16015 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16019 # The name set by libtool depends on the version of libtool. Shame on us
16020 # for depending on an impl detail, but c'est la vie. Older versions used
16021 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16022 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16023 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16024 # set (hence we're using an older libtool), then set it.
16025 if test x${with_gnu_ld+set} != xset; then
16026 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16027 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16028 with_gnu_ld=no
16029 else
16030 with_gnu_ld=$ac_cv_prog_gnu_ld
16034 # Start by getting the version number. I think the libtool test already
16035 # does some of this, but throws away the result.
16036 libgomp_ld_is_gold=no
16037 libgomp_ld_is_mold=no
16038 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16039 libgomp_ld_is_gold=yes
16040 elif $LD --version 2>/dev/null | grep 'mold'> /dev/null 2>&1; then
16041 libgomp_ld_is_mold=yes
16044 ldver=`$LD --version 2>/dev/null |
16045 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16047 libgomp_gnu_ld_version=`echo $ldver | \
16048 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16050 # Set --gc-sections.
16051 if test "$with_gnu_ld" = "notbroken"; then
16052 # GNU ld it is! Joy and bunny rabbits!
16054 # All these tests are for C++; save the language and the compiler flags.
16055 # Need to do this so that g++ won't try to link in libstdc++
16056 ac_test_CFLAGS="${CFLAGS+set}"
16057 ac_save_CFLAGS="$CFLAGS"
16058 CFLAGS='-x c++ -Wl,--gc-sections'
16060 # Check for -Wl,--gc-sections
16061 # XXX This test is broken at the moment, as symbols required for linking
16062 # are now in libsupc++ (not built yet). In addition, this test has
16063 # cored on solaris in the past. In addition, --gc-sections doesn't
16064 # really work at the moment (keeps on discarding used sections, first
16065 # .eh_frame and now some of the glibc sections for iconv).
16066 # Bzzzzt. Thanks for playing, maybe next time.
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16068 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16069 if test "$cross_compiling" = yes; then :
16070 ac_sectionLDflags=yes
16071 else
16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16075 int main(void)
16077 try { throw 1; }
16078 catch (...) { };
16079 return 0;
16082 _ACEOF
16083 if ac_fn_c_try_run "$LINENO"; then :
16084 ac_sectionLDflags=yes
16085 else
16086 ac_sectionLDflags=no
16088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16089 conftest.$ac_objext conftest.beam conftest.$ac_ext
16092 if test "$ac_test_CFLAGS" = set; then
16093 CFLAGS="$ac_save_CFLAGS"
16094 else
16095 # this is the suspicious part
16096 CFLAGS=''
16098 if test "$ac_sectionLDflags" = "yes"; then
16099 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16102 $as_echo "$ac_sectionLDflags" >&6; }
16105 # Set linker optimization flags.
16106 if test x"$with_gnu_ld" = x"yes"; then
16107 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16115 # Check whether --enable-symvers was given.
16116 if test "${enable_symvers+set}" = set; then :
16117 enableval=$enable_symvers;
16118 case "$enableval" in
16119 yes|no|gnu*|sun) ;;
16120 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16121 esac
16123 else
16124 enable_symvers=yes
16129 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16130 # don't know enough about $LD to do tricks...
16133 # Turn a 'yes' into a suitable default.
16134 if test x$enable_symvers = xyes ; then
16135 # FIXME The following test is too strict, in theory.
16136 if test $enable_shared = no || test "x$LD" = x; then
16137 enable_symvers=no
16138 else
16139 if test $with_gnu_ld = yes ; then
16140 enable_symvers=gnu
16141 else
16142 case ${target_os} in
16143 # Sun symbol versioning exists since Solaris 2.5.
16144 solaris2.[5-9]* | solaris2.1[0-9]*)
16145 enable_symvers=sun ;;
16147 enable_symvers=no ;;
16148 esac
16153 # Check if 'sun' was requested on non-Solaris 2 platforms.
16154 if test x$enable_symvers = xsun ; then
16155 case ${target_os} in
16156 solaris2*)
16157 # All fine.
16160 # Unlikely to work.
16161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16162 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16164 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16166 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16167 enable_symvers=no
16169 esac
16172 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16173 if test $enable_symvers != no; then
16174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16175 $as_echo_n "checking for shared libgcc... " >&6; }
16176 ac_save_CFLAGS="$CFLAGS"
16177 CFLAGS=' -lgcc_s'
16178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16179 /* end confdefs.h. */
16182 main ()
16184 return 0;
16186 return 0;
16188 _ACEOF
16189 if ac_fn_c_try_link "$LINENO"; then :
16190 libgomp_shared_libgcc=yes
16191 else
16192 libgomp_shared_libgcc=no
16194 rm -f core conftest.err conftest.$ac_objext \
16195 conftest$ac_exeext conftest.$ac_ext
16196 CFLAGS="$ac_save_CFLAGS"
16197 if test $libgomp_shared_libgcc = no; then
16198 cat > conftest.c <<EOF
16199 int main (void) { return 0; }
16201 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16202 -shared -shared-libgcc -o conftest.so \
16203 conftest.c -v 2>&1 >/dev/null \
16204 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16205 rm -f conftest.c conftest.so
16206 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16207 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16209 /* end confdefs.h. */
16212 main ()
16214 return 0;
16216 return 0;
16218 _ACEOF
16219 if ac_fn_c_try_link "$LINENO"; then :
16220 libgomp_shared_libgcc=yes
16222 rm -f core conftest.err conftest.$ac_objext \
16223 conftest$ac_exeext conftest.$ac_ext
16224 CFLAGS="$ac_save_CFLAGS"
16227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16228 $as_echo "$libgomp_shared_libgcc" >&6; }
16231 # For GNU ld, we need at least this version. The format is described in
16232 # LIBGOMP_CHECK_LINKER_FEATURES above.
16233 libgomp_min_gnu_ld_version=21400
16234 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16236 # Check to see if unspecified "yes" value can win, given results above.
16237 # Change "yes" into either "no" or a style name.
16238 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16239 if test $with_gnu_ld = yes; then
16240 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16241 enable_symvers=gnu
16242 elif test $libgomp_ld_is_gold = yes ; then
16243 enable_symvers=gnu
16244 elif test $libgomp_ld_is_mold = yes ; then
16245 enable_symvers=gnu
16246 else
16247 # The right tools, the right setup, but too old. Fallbacks?
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16249 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16251 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16253 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16255 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16256 if test $libgomp_gnu_ld_version -ge 21200 ; then
16257 # Globbing fix is present, proper block support is not.
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16259 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16260 enable_symvers=no
16261 else
16262 # 2.11 or older.
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16264 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16265 enable_symvers=no
16268 elif test $enable_symvers = sun; then
16269 : All interesting versions of Sun ld support sun style symbol versioning.
16270 else
16271 # just fail for now
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16273 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16275 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16277 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16279 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16280 enable_symvers=no
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16285 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16286 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16287 $as_echo_n "(cached) " >&6
16288 else
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291 /* end confdefs.h. */
16292 void foo (void); __asm (".symver foo, bar@SYMVER");
16294 main ()
16298 return 0;
16300 _ACEOF
16301 if ac_fn_c_try_compile "$LINENO"; then :
16302 libgomp_cv_have_as_symver_directive=yes
16303 else
16304 libgomp_cv_have_as_symver_directive=no
16306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16309 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16310 if test $libgomp_cv_have_as_symver_directive = yes; then
16312 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16316 if test $enable_symvers != no; then
16317 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16318 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16319 else
16320 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16321 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16324 if test $enable_symvers = gnu; then
16325 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16326 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16327 else
16328 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16329 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16332 if test $enable_symvers = sun; then
16333 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16334 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16335 else
16336 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16337 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16341 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16343 if test $enable_symvers != no ; then
16344 case ${target_os} in
16345 # The Solaris 2 runtime linker doesn't support the GNU extension of
16346 # binding the same symbol to different versions
16347 solaris2*)
16349 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16352 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16355 esac
16359 if test $enable_symvers = gnu; then
16361 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16365 # Determine cpu count to limit testsuite parallelism.
16366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16367 $as_echo_n "checking the number of available CPUs... " >&6; }
16368 CPU_COUNT="0"
16370 # Try generic methods
16372 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16373 # 'NPROCESSORS_ONLN' are platform-specific
16374 command -v getconf >/dev/null 2>&1 && \
16375 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
16376 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
16377 : # empty
16378 else
16379 # 'nproc' is part of GNU Coreutils and is widely available
16380 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
16383 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16384 : # empty
16385 else
16386 # Try platform-specific preferred methods
16387 case $host_os in #(
16388 *linux*) :
16389 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
16390 *darwin*) :
16391 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
16392 freebsd*) :
16393 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
16394 netbsd*) :
16395 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
16396 solaris*) :
16397 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" ;; #(
16398 mingw*) :
16399 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16400 msys*) :
16401 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16402 cygwin*) :
16403 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16404 *) :
16406 esac
16408 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
16409 : # empty
16410 else
16411 # Try less preferred generic method
16412 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16413 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
16416 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16417 : # empty
16418 else
16419 # Try platform-specific fallback methods
16420 # They can be less accurate and slower then preferred methods
16421 case $host_os in #(
16422 *linux*) :
16423 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
16424 *darwin*) :
16425 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
16426 freebsd*) :
16427 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16428 netbsd*) :
16429 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16430 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16431 solaris*) :
16432 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16433 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
16434 mingw*) :
16435 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16436 : # empty
16437 else
16438 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
16439 fi ;; #(
16440 msys*) :
16441 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16442 cygwin*) :
16443 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16444 *) :
16446 esac
16448 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16450 $as_echo "$CPU_COUNT" >&6; }
16452 else
16453 CPU_COUNT="1"
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16455 $as_echo "unable to detect (assuming 1)" >&6; }
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flock implementation" >&5
16461 $as_echo "$as_me: checking for flock implementation" >&6;}
16462 for ac_prog in flock
16464 # Extract the first word of "$ac_prog", so it can be a program name with args.
16465 set dummy $ac_prog; ac_word=$2
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16467 $as_echo_n "checking for $ac_word... " >&6; }
16468 if ${ac_cv_prog_FLOCK+:} false; then :
16469 $as_echo_n "(cached) " >&6
16470 else
16471 if test -n "$FLOCK"; then
16472 ac_cv_prog_FLOCK="$FLOCK" # Let the user override the test.
16473 else
16474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16475 for as_dir in $PATH
16477 IFS=$as_save_IFS
16478 test -z "$as_dir" && as_dir=.
16479 for ac_exec_ext in '' $ac_executable_extensions; do
16480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16481 ac_cv_prog_FLOCK="$ac_prog"
16482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16483 break 2
16485 done
16486 done
16487 IFS=$as_save_IFS
16491 FLOCK=$ac_cv_prog_FLOCK
16492 if test -n "$FLOCK"; then
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
16494 $as_echo "$FLOCK" >&6; }
16495 else
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16497 $as_echo "no" >&6; }
16501 test -n "$FLOCK" && break
16502 done
16504 # Fallback if 'perl' is available.
16505 if test -z "$FLOCK"; then
16506 # Extract the first word of "perl", so it can be a program name with args.
16507 set dummy perl; ac_word=$2
16508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16509 $as_echo_n "checking for $ac_word... " >&6; }
16510 if ${ac_cv_prog_FLOCK+:} false; then :
16511 $as_echo_n "(cached) " >&6
16512 else
16513 if test -n "$FLOCK"; then
16514 ac_cv_prog_FLOCK="$FLOCK" # Let the user override the test.
16515 else
16516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16517 for as_dir in $PATH
16519 IFS=$as_save_IFS
16520 test -z "$as_dir" && as_dir=.
16521 for ac_exec_ext in '' $ac_executable_extensions; do
16522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16523 ac_cv_prog_FLOCK="$srcdir/testsuite/flock"
16524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16525 break 2
16527 done
16528 done
16529 IFS=$as_save_IFS
16533 FLOCK=$ac_cv_prog_FLOCK
16534 if test -n "$FLOCK"; then
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLOCK" >&5
16536 $as_echo "$FLOCK" >&6; }
16537 else
16538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16539 $as_echo "no" >&6; }
16545 # Get target configury.
16546 . ${srcdir}/configure.tgt
16547 CFLAGS="$save_CFLAGS $XCFLAGS"
16549 # Check for __sync_val_compare_and_swap, but only after the target has
16550 # had a chance to set XCFLAGS.
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16553 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16554 if ${libgomp_cv_have_sync_builtins+:} false; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16559 /* end confdefs.h. */
16562 main ()
16564 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16566 return 0;
16568 _ACEOF
16569 if ac_fn_c_try_link "$LINENO"; then :
16570 libgomp_cv_have_sync_builtins=yes
16571 else
16572 libgomp_cv_have_sync_builtins=no
16574 rm -f core conftest.err conftest.$ac_objext \
16575 conftest$ac_exeext conftest.$ac_ext
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16578 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16579 if test $libgomp_cv_have_sync_builtins = yes; then
16581 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16585 XCFLAGS="$XCFLAGS$XPCFLAGS"
16587 # Add CET specific flags if CET is enabled
16588 # Check whether --enable-cet was given.
16589 if test "${enable_cet+set}" = set; then :
16590 enableval=$enable_cet;
16591 case "$enableval" in
16592 yes|no|auto) ;;
16593 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16594 esac
16596 else
16597 enable_cet=auto
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16602 $as_echo_n "checking for CET support... " >&6; }
16604 # NB: Avoid nested save_CFLAGS and save_LDFLAGS.
16605 case "$host" in
16606 i[34567]86-*-linux* | x86_64-*-linux*)
16607 case "$enable_cet" in
16608 auto)
16609 # Check if target supports multi-byte NOPs
16610 # and if compiler and assembler support CET insn.
16611 cet_save_CFLAGS="$CFLAGS"
16612 CFLAGS="$CFLAGS -fcf-protection"
16613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16614 /* end confdefs.h. */
16617 main ()
16620 #if !defined(__SSE2__)
16621 #error target does not support multi-byte NOPs
16622 #else
16623 asm ("setssbsy");
16624 #endif
16627 return 0;
16629 _ACEOF
16630 if ac_fn_c_try_compile "$LINENO"; then :
16631 enable_cet=yes
16632 else
16633 enable_cet=no
16635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16636 CFLAGS="$cet_save_CFLAGS"
16638 yes)
16639 # Check if assembler supports CET.
16640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16641 /* end confdefs.h. */
16644 main ()
16646 asm ("setssbsy");
16648 return 0;
16650 _ACEOF
16651 if ac_fn_c_try_compile "$LINENO"; then :
16653 else
16654 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16658 esac
16661 enable_cet=no
16663 esac
16664 if test x$enable_cet = xyes; then
16665 CET_FLAGS="-fcf-protection -mshstk"
16666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16667 $as_echo "yes" >&6; }
16668 else
16669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16670 $as_echo "no" >&6; }
16673 XCFLAGS="$XCFLAGS $CET_FLAGS"
16674 FCFLAGS="$FCFLAGS $CET_FLAGS"
16680 # Conditionalize the makefile for this target machine.
16681 tmake_file_=
16682 for f in ${tmake_file}
16684 if test -f ${srcdir}/config/$f
16685 then
16686 tmake_file_="${tmake_file_} \$(srcdir)/config/$f"
16688 done
16689 tmake_file="${tmake_file_}"
16692 # Cleanup and exit.
16693 CFLAGS="$save_CFLAGS"
16694 cat >confcache <<\_ACEOF
16695 # This file is a shell script that caches the results of configure
16696 # tests run on this system so they can be shared between configure
16697 # scripts and configure runs, see configure's option --config-cache.
16698 # It is not useful on other systems. If it contains results you don't
16699 # want to keep, you may remove or edit it.
16701 # config.status only pays attention to the cache file if you give it
16702 # the --recheck option to rerun configure.
16704 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16705 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16706 # following values.
16708 _ACEOF
16710 # The following way of writing the cache mishandles newlines in values,
16711 # but we know of no workaround that is simple, portable, and efficient.
16712 # So, we kill variables containing newlines.
16713 # Ultrix sh set writes to stderr and can't be redirected directly,
16714 # and sets the high bit in the cache file unless we assign to the vars.
16716 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16717 eval ac_val=\$$ac_var
16718 case $ac_val in #(
16719 *${as_nl}*)
16720 case $ac_var in #(
16721 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16722 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16723 esac
16724 case $ac_var in #(
16725 _ | IFS | as_nl) ;; #(
16726 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16727 *) { eval $ac_var=; unset $ac_var;} ;;
16728 esac ;;
16729 esac
16730 done
16732 (set) 2>&1 |
16733 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16734 *${as_nl}ac_space=\ *)
16735 # `set' does not quote correctly, so add quotes: double-quote
16736 # substitution turns \\\\ into \\, and sed turns \\ into \.
16737 sed -n \
16738 "s/'/'\\\\''/g;
16739 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16740 ;; #(
16742 # `set' quotes correctly as required by POSIX, so do not add quotes.
16743 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16745 esac |
16746 sort
16748 sed '
16749 /^ac_cv_env_/b end
16750 t clear
16751 :clear
16752 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16753 t end
16754 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16755 :end' >>confcache
16756 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16757 if test -w "$cache_file"; then
16758 if test "x$cache_file" != "x/dev/null"; then
16759 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16760 $as_echo "$as_me: updating cache $cache_file" >&6;}
16761 if test ! -f "$cache_file" || test -h "$cache_file"; then
16762 cat confcache >"$cache_file"
16763 else
16764 case $cache_file in #(
16765 */* | ?:*)
16766 mv -f confcache "$cache_file"$$ &&
16767 mv -f "$cache_file"$$ "$cache_file" ;; #(
16769 mv -f confcache "$cache_file" ;;
16770 esac
16773 else
16774 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16775 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16778 rm -f confcache
16780 if test ${multilib} = yes; then
16781 multilib_arg="--enable-multilib"
16782 else
16783 multilib_arg=
16786 # Set up the set of libraries that we need to link against for libgomp.
16787 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16788 # which will force linkage against -lpthread (or equivalent for the system).
16789 # That's not 100% ideal, but about the best we can do easily.
16790 if test $enable_shared = yes; then
16791 link_gomp="-lgomp %{static: $LIBS${DL_LIBS:+ $DL_LIBS}}"
16792 else
16793 link_gomp="-lgomp $LIBS${DL_LIBS:+ $DL_LIBS}"
16797 if test "$ac_cv_fc_compiler_gnu" = yes; then
16798 USE_FORTRAN_TRUE=
16799 USE_FORTRAN_FALSE='#'
16800 else
16801 USE_FORTRAN_TRUE='#'
16802 USE_FORTRAN_FALSE=
16806 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16807 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16808 # the underscore here and update the PREREQ. If it doesn't, then we'll
16809 # need to copy this macro to our acinclude.m4.
16810 save_CFLAGS="$CFLAGS"
16811 for i in $config_path; do
16812 if test -f $srcdir/config/$i/omp-lock.h; then
16813 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16814 break
16816 done
16818 if ac_fn_c_compute_int "$LINENO" "sizeof (__INTPTR_TYPE__)" "INTPTR_T_KIND" ""; then :
16823 if ac_fn_c_compute_int "$LINENO" "sizeof (__int128)" "OMP_INT128_SIZE" ""; then :
16825 else
16826 OMP_INT128_SIZE=0
16830 if ac_fn_c_compute_int "$LINENO" "2*sizeof (__INTPTR_TYPE__)" "OMP_DEPEND_KIND" ""; then :
16832 else
16833 OMP_DEPEND_KIND=0
16837 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16839 else
16840 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16844 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16849 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16854 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16859 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16861 else
16862 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16866 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16871 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16876 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16882 # If the lock fits in an integer, then arrange for Fortran to use that
16883 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16884 # Except that we don't have a way at present to multi-lib the installed
16885 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16886 # actual target.
16887 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16888 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
16889 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
16890 OMP_LOCK_KIND=8
16892 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
16893 OMP_NEST_LOCK_KIND=8
16895 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
16896 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
16897 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
16898 OMP_LOCK_25_KIND=8
16900 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
16901 OMP_NEST_LOCK_25_KIND=8
16903 if test "$ac_cv_fc_compiler_gnu" = yes; then
16904 if test $OMP_DEPEND_KIND -eq 16; then
16905 if test $OMP_INT128_SIZE -ne 16; then
16906 as_fn_error $? "unsupported system, cannot find Fortran int kind=16, needed for omp_depend_kind" "$LINENO" 5
16908 else
16909 if test $OMP_DEPEND_KIND -ne 8; then
16910 as_fn_error $? "unsupported system, cannot find Fortran integer kind for omp_depend_kind" "$LINENO" 5
16929 CFLAGS="$save_CFLAGS"
16931 # Determine what GCC version number to use in filesystem paths.
16933 get_gcc_base_ver="cat"
16935 # Check whether --with-gcc-major-version-only was given.
16936 if test "${with_gcc_major_version_only+set}" = set; then :
16937 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
16938 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
16946 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
16948 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
16950 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
16952 ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp"
16954 cat >confcache <<\_ACEOF
16955 # This file is a shell script that caches the results of configure
16956 # tests run on this system so they can be shared between configure
16957 # scripts and configure runs, see configure's option --config-cache.
16958 # It is not useful on other systems. If it contains results you don't
16959 # want to keep, you may remove or edit it.
16961 # config.status only pays attention to the cache file if you give it
16962 # the --recheck option to rerun configure.
16964 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16965 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16966 # following values.
16968 _ACEOF
16970 # The following way of writing the cache mishandles newlines in values,
16971 # but we know of no workaround that is simple, portable, and efficient.
16972 # So, we kill variables containing newlines.
16973 # Ultrix sh set writes to stderr and can't be redirected directly,
16974 # and sets the high bit in the cache file unless we assign to the vars.
16976 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16977 eval ac_val=\$$ac_var
16978 case $ac_val in #(
16979 *${as_nl}*)
16980 case $ac_var in #(
16981 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16982 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16983 esac
16984 case $ac_var in #(
16985 _ | IFS | as_nl) ;; #(
16986 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16987 *) { eval $ac_var=; unset $ac_var;} ;;
16988 esac ;;
16989 esac
16990 done
16992 (set) 2>&1 |
16993 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16994 *${as_nl}ac_space=\ *)
16995 # `set' does not quote correctly, so add quotes: double-quote
16996 # substitution turns \\\\ into \\, and sed turns \\ into \.
16997 sed -n \
16998 "s/'/'\\\\''/g;
16999 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17000 ;; #(
17002 # `set' quotes correctly as required by POSIX, so do not add quotes.
17003 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17005 esac |
17006 sort
17008 sed '
17009 /^ac_cv_env_/b end
17010 t clear
17011 :clear
17012 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17013 t end
17014 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17015 :end' >>confcache
17016 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17017 if test -w "$cache_file"; then
17018 if test "x$cache_file" != "x/dev/null"; then
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17020 $as_echo "$as_me: updating cache $cache_file" >&6;}
17021 if test ! -f "$cache_file" || test -h "$cache_file"; then
17022 cat confcache >"$cache_file"
17023 else
17024 case $cache_file in #(
17025 */* | ?:*)
17026 mv -f confcache "$cache_file"$$ &&
17027 mv -f "$cache_file"$$ "$cache_file" ;; #(
17029 mv -f confcache "$cache_file" ;;
17030 esac
17033 else
17034 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17035 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17038 rm -f confcache
17040 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17041 # Let make expand exec_prefix.
17042 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17044 DEFS=-DHAVE_CONFIG_H
17046 ac_libobjs=
17047 ac_ltlibobjs=
17049 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17050 # 1. Remove the extension, and $U if already installed.
17051 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17052 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17053 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17054 # will be set to the directory where LIBOBJS objects are built.
17055 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17056 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17057 done
17058 LIBOBJS=$ac_libobjs
17060 LTLIBOBJS=$ac_ltlibobjs
17063 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17064 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17068 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17069 if test -n "$am_sleep_pid"; then
17070 # Hide warnings about reused PIDs.
17071 wait $am_sleep_pid 2>/dev/null
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17074 $as_echo "done" >&6; }
17075 if test -n "$EXEEXT"; then
17076 am__EXEEXT_TRUE=
17077 am__EXEEXT_FALSE='#'
17078 else
17079 am__EXEEXT_TRUE='#'
17080 am__EXEEXT_FALSE=
17083 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17084 as_fn_error $? "conditional \"AMDEP\" was never defined.
17085 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17087 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17088 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17089 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17091 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17092 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17093 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17095 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17096 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17097 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17099 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17100 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17101 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17103 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17104 as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined.
17105 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17107 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17108 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17109 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17111 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17112 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17113 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17115 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17116 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17117 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17119 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17120 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17121 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17124 : "${CONFIG_STATUS=./config.status}"
17125 ac_write_fail=0
17126 ac_clean_files_save=$ac_clean_files
17127 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17129 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17130 as_write_fail=0
17131 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17132 #! $SHELL
17133 # Generated by $as_me.
17134 # Run this file to recreate the current configuration.
17135 # Compiler output produced by configure, useful for debugging
17136 # configure, is in config.log if it exists.
17138 debug=false
17139 ac_cs_recheck=false
17140 ac_cs_silent=false
17142 SHELL=\${CONFIG_SHELL-$SHELL}
17143 export SHELL
17144 _ASEOF
17145 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17146 ## -------------------- ##
17147 ## M4sh Initialization. ##
17148 ## -------------------- ##
17150 # Be more Bourne compatible
17151 DUALCASE=1; export DUALCASE # for MKS sh
17152 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17153 emulate sh
17154 NULLCMD=:
17155 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17156 # is contrary to our usage. Disable this feature.
17157 alias -g '${1+"$@"}'='"$@"'
17158 setopt NO_GLOB_SUBST
17159 else
17160 case `(set -o) 2>/dev/null` in #(
17161 *posix*) :
17162 set -o posix ;; #(
17163 *) :
17165 esac
17169 as_nl='
17171 export as_nl
17172 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17173 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17174 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17175 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17176 # Prefer a ksh shell builtin over an external printf program on Solaris,
17177 # but without wasting forks for bash or zsh.
17178 if test -z "$BASH_VERSION$ZSH_VERSION" \
17179 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17180 as_echo='print -r --'
17181 as_echo_n='print -rn --'
17182 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17183 as_echo='printf %s\n'
17184 as_echo_n='printf %s'
17185 else
17186 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17187 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17188 as_echo_n='/usr/ucb/echo -n'
17189 else
17190 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17191 as_echo_n_body='eval
17192 arg=$1;
17193 case $arg in #(
17194 *"$as_nl"*)
17195 expr "X$arg" : "X\\(.*\\)$as_nl";
17196 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17197 esac;
17198 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17200 export as_echo_n_body
17201 as_echo_n='sh -c $as_echo_n_body as_echo'
17203 export as_echo_body
17204 as_echo='sh -c $as_echo_body as_echo'
17207 # The user is always right.
17208 if test "${PATH_SEPARATOR+set}" != set; then
17209 PATH_SEPARATOR=:
17210 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17211 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17212 PATH_SEPARATOR=';'
17217 # IFS
17218 # We need space, tab and new line, in precisely that order. Quoting is
17219 # there to prevent editors from complaining about space-tab.
17220 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17221 # splitting by setting IFS to empty value.)
17222 IFS=" "" $as_nl"
17224 # Find who we are. Look in the path if we contain no directory separator.
17225 as_myself=
17226 case $0 in #((
17227 *[\\/]* ) as_myself=$0 ;;
17228 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17229 for as_dir in $PATH
17231 IFS=$as_save_IFS
17232 test -z "$as_dir" && as_dir=.
17233 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17234 done
17235 IFS=$as_save_IFS
17238 esac
17239 # We did not find ourselves, most probably we were run as `sh COMMAND'
17240 # in which case we are not to be found in the path.
17241 if test "x$as_myself" = x; then
17242 as_myself=$0
17244 if test ! -f "$as_myself"; then
17245 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17246 exit 1
17249 # Unset variables that we do not need and which cause bugs (e.g. in
17250 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17251 # suppresses any "Segmentation fault" message there. '((' could
17252 # trigger a bug in pdksh 5.2.14.
17253 for as_var in BASH_ENV ENV MAIL MAILPATH
17254 do eval test x\${$as_var+set} = xset \
17255 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17256 done
17257 PS1='$ '
17258 PS2='> '
17259 PS4='+ '
17261 # NLS nuisances.
17262 LC_ALL=C
17263 export LC_ALL
17264 LANGUAGE=C
17265 export LANGUAGE
17267 # CDPATH.
17268 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17271 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17272 # ----------------------------------------
17273 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17274 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17275 # script with STATUS, using 1 if that was 0.
17276 as_fn_error ()
17278 as_status=$1; test $as_status -eq 0 && as_status=1
17279 if test "$4"; then
17280 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17281 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17283 $as_echo "$as_me: error: $2" >&2
17284 as_fn_exit $as_status
17285 } # as_fn_error
17288 # as_fn_set_status STATUS
17289 # -----------------------
17290 # Set $? to STATUS, without forking.
17291 as_fn_set_status ()
17293 return $1
17294 } # as_fn_set_status
17296 # as_fn_exit STATUS
17297 # -----------------
17298 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17299 as_fn_exit ()
17301 set +e
17302 as_fn_set_status $1
17303 exit $1
17304 } # as_fn_exit
17306 # as_fn_unset VAR
17307 # ---------------
17308 # Portably unset VAR.
17309 as_fn_unset ()
17311 { eval $1=; unset $1;}
17313 as_unset=as_fn_unset
17314 # as_fn_append VAR VALUE
17315 # ----------------------
17316 # Append the text in VALUE to the end of the definition contained in VAR. Take
17317 # advantage of any shell optimizations that allow amortized linear growth over
17318 # repeated appends, instead of the typical quadratic growth present in naive
17319 # implementations.
17320 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17321 eval 'as_fn_append ()
17323 eval $1+=\$2
17325 else
17326 as_fn_append ()
17328 eval $1=\$$1\$2
17330 fi # as_fn_append
17332 # as_fn_arith ARG...
17333 # ------------------
17334 # Perform arithmetic evaluation on the ARGs, and store the result in the
17335 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17336 # must be portable across $(()) and expr.
17337 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17338 eval 'as_fn_arith ()
17340 as_val=$(( $* ))
17342 else
17343 as_fn_arith ()
17345 as_val=`expr "$@" || test $? -eq 1`
17347 fi # as_fn_arith
17350 if expr a : '\(a\)' >/dev/null 2>&1 &&
17351 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17352 as_expr=expr
17353 else
17354 as_expr=false
17357 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17358 as_basename=basename
17359 else
17360 as_basename=false
17363 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17364 as_dirname=dirname
17365 else
17366 as_dirname=false
17369 as_me=`$as_basename -- "$0" ||
17370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17371 X"$0" : 'X\(//\)$' \| \
17372 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17373 $as_echo X/"$0" |
17374 sed '/^.*\/\([^/][^/]*\)\/*$/{
17375 s//\1/
17378 /^X\/\(\/\/\)$/{
17379 s//\1/
17382 /^X\/\(\/\).*/{
17383 s//\1/
17386 s/.*/./; q'`
17388 # Avoid depending upon Character Ranges.
17389 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17390 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17391 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17392 as_cr_digits='0123456789'
17393 as_cr_alnum=$as_cr_Letters$as_cr_digits
17395 ECHO_C= ECHO_N= ECHO_T=
17396 case `echo -n x` in #(((((
17397 -n*)
17398 case `echo 'xy\c'` in
17399 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17400 xy) ECHO_C='\c';;
17401 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17402 ECHO_T=' ';;
17403 esac;;
17405 ECHO_N='-n';;
17406 esac
17408 rm -f conf$$ conf$$.exe conf$$.file
17409 if test -d conf$$.dir; then
17410 rm -f conf$$.dir/conf$$.file
17411 else
17412 rm -f conf$$.dir
17413 mkdir conf$$.dir 2>/dev/null
17415 if (echo >conf$$.file) 2>/dev/null; then
17416 if ln -s conf$$.file conf$$ 2>/dev/null; then
17417 as_ln_s='ln -s'
17418 # ... but there are two gotchas:
17419 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17420 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17421 # In both cases, we have to default to `cp -pR'.
17422 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17423 as_ln_s='cp -pR'
17424 elif ln conf$$.file conf$$ 2>/dev/null; then
17425 as_ln_s=ln
17426 else
17427 as_ln_s='cp -pR'
17429 else
17430 as_ln_s='cp -pR'
17432 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17433 rmdir conf$$.dir 2>/dev/null
17436 # as_fn_mkdir_p
17437 # -------------
17438 # Create "$as_dir" as a directory, including parents if necessary.
17439 as_fn_mkdir_p ()
17442 case $as_dir in #(
17443 -*) as_dir=./$as_dir;;
17444 esac
17445 test -d "$as_dir" || eval $as_mkdir_p || {
17446 as_dirs=
17447 while :; do
17448 case $as_dir in #(
17449 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17450 *) as_qdir=$as_dir;;
17451 esac
17452 as_dirs="'$as_qdir' $as_dirs"
17453 as_dir=`$as_dirname -- "$as_dir" ||
17454 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17455 X"$as_dir" : 'X\(//\)[^/]' \| \
17456 X"$as_dir" : 'X\(//\)$' \| \
17457 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17458 $as_echo X"$as_dir" |
17459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17460 s//\1/
17463 /^X\(\/\/\)[^/].*/{
17464 s//\1/
17467 /^X\(\/\/\)$/{
17468 s//\1/
17471 /^X\(\/\).*/{
17472 s//\1/
17475 s/.*/./; q'`
17476 test -d "$as_dir" && break
17477 done
17478 test -z "$as_dirs" || eval "mkdir $as_dirs"
17479 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17482 } # as_fn_mkdir_p
17483 if mkdir -p . 2>/dev/null; then
17484 as_mkdir_p='mkdir -p "$as_dir"'
17485 else
17486 test -d ./-p && rmdir ./-p
17487 as_mkdir_p=false
17491 # as_fn_executable_p FILE
17492 # -----------------------
17493 # Test if FILE is an executable regular file.
17494 as_fn_executable_p ()
17496 test -f "$1" && test -x "$1"
17497 } # as_fn_executable_p
17498 as_test_x='test -x'
17499 as_executable_p=as_fn_executable_p
17501 # Sed expression to map a string onto a valid CPP name.
17502 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17504 # Sed expression to map a string onto a valid variable name.
17505 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17508 exec 6>&1
17509 ## ----------------------------------- ##
17510 ## Main body of $CONFIG_STATUS script. ##
17511 ## ----------------------------------- ##
17512 _ASEOF
17513 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17516 # Save the log message, to keep $0 and so on meaningful, and to
17517 # report actual input values of CONFIG_FILES etc. instead of their
17518 # values after options handling.
17519 ac_log="
17520 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17521 generated by GNU Autoconf 2.69. Invocation command line was
17523 CONFIG_FILES = $CONFIG_FILES
17524 CONFIG_HEADERS = $CONFIG_HEADERS
17525 CONFIG_LINKS = $CONFIG_LINKS
17526 CONFIG_COMMANDS = $CONFIG_COMMANDS
17527 $ $0 $@
17529 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17532 _ACEOF
17534 case $ac_config_files in *"
17535 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17536 esac
17538 case $ac_config_headers in *"
17539 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17540 esac
17543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17544 # Files that config.status was made for.
17545 config_files="$ac_config_files"
17546 config_headers="$ac_config_headers"
17547 config_commands="$ac_config_commands"
17549 _ACEOF
17551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17552 ac_cs_usage="\
17553 \`$as_me' instantiates files and other configuration actions
17554 from templates according to the current configuration. Unless the files
17555 and actions are specified as TAGs, all are instantiated by default.
17557 Usage: $0 [OPTION]... [TAG]...
17559 -h, --help print this help, then exit
17560 -V, --version print version number and configuration settings, then exit
17561 --config print configuration, then exit
17562 -q, --quiet, --silent
17563 do not print progress messages
17564 -d, --debug don't remove temporary files
17565 --recheck update $as_me by reconfiguring in the same conditions
17566 --file=FILE[:TEMPLATE]
17567 instantiate the configuration file FILE
17568 --header=FILE[:TEMPLATE]
17569 instantiate the configuration header FILE
17571 Configuration files:
17572 $config_files
17574 Configuration headers:
17575 $config_headers
17577 Configuration commands:
17578 $config_commands
17580 Report bugs to the package provider.
17581 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17582 General help using GNU software: <http://www.gnu.org/gethelp/>."
17584 _ACEOF
17585 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17586 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17587 ac_cs_version="\\
17588 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17589 configured by $0, generated by GNU Autoconf 2.69,
17590 with options \\"\$ac_cs_config\\"
17592 Copyright (C) 2012 Free Software Foundation, Inc.
17593 This config.status script is free software; the Free Software Foundation
17594 gives unlimited permission to copy, distribute and modify it."
17596 ac_pwd='$ac_pwd'
17597 srcdir='$srcdir'
17598 INSTALL='$INSTALL'
17599 MKDIR_P='$MKDIR_P'
17600 AWK='$AWK'
17601 test -n "\$AWK" || AWK=awk
17602 _ACEOF
17604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17605 # The default lists apply if the user does not specify any file.
17606 ac_need_defaults=:
17607 while test $# != 0
17609 case $1 in
17610 --*=?*)
17611 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17612 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17613 ac_shift=:
17615 --*=)
17616 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17617 ac_optarg=
17618 ac_shift=:
17621 ac_option=$1
17622 ac_optarg=$2
17623 ac_shift=shift
17625 esac
17627 case $ac_option in
17628 # Handling of the options.
17629 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17630 ac_cs_recheck=: ;;
17631 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17632 $as_echo "$ac_cs_version"; exit ;;
17633 --config | --confi | --conf | --con | --co | --c )
17634 $as_echo "$ac_cs_config"; exit ;;
17635 --debug | --debu | --deb | --de | --d | -d )
17636 debug=: ;;
17637 --file | --fil | --fi | --f )
17638 $ac_shift
17639 case $ac_optarg in
17640 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17641 '') as_fn_error $? "missing file argument" ;;
17642 esac
17643 as_fn_append CONFIG_FILES " '$ac_optarg'"
17644 ac_need_defaults=false;;
17645 --header | --heade | --head | --hea )
17646 $ac_shift
17647 case $ac_optarg in
17648 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17649 esac
17650 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17651 ac_need_defaults=false;;
17652 --he | --h)
17653 # Conflict between --help and --header
17654 as_fn_error $? "ambiguous option: \`$1'
17655 Try \`$0 --help' for more information.";;
17656 --help | --hel | -h )
17657 $as_echo "$ac_cs_usage"; exit ;;
17658 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17659 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17660 ac_cs_silent=: ;;
17662 # This is an error.
17663 -*) as_fn_error $? "unrecognized option: \`$1'
17664 Try \`$0 --help' for more information." ;;
17666 *) as_fn_append ac_config_targets " $1"
17667 ac_need_defaults=false ;;
17669 esac
17670 shift
17671 done
17673 ac_configure_extra_args=
17675 if $ac_cs_silent; then
17676 exec 6>/dev/null
17677 ac_configure_extra_args="$ac_configure_extra_args --silent"
17680 _ACEOF
17681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17682 if \$ac_cs_recheck; then
17683 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17684 shift
17685 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17686 CONFIG_SHELL='$SHELL'
17687 export CONFIG_SHELL
17688 exec "\$@"
17691 _ACEOF
17692 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17693 exec 5>>config.log
17695 echo
17696 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17697 ## Running $as_me. ##
17698 _ASBOX
17699 $as_echo "$ac_log"
17700 } >&5
17702 _ACEOF
17703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17705 # INIT-COMMANDS
17708 srcdir="$srcdir"
17709 host="$host"
17710 target="$target"
17711 with_multisubdir="$with_multisubdir"
17712 with_multisrctop="$with_multisrctop"
17713 with_target_subdir="$with_target_subdir"
17714 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17715 multi_basedir="$multi_basedir"
17716 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17717 CC="$CC"
17718 CXX="$CXX"
17719 GFORTRAN="$GFORTRAN"
17720 GDC="$GDC"
17721 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17724 # The HP-UX ksh and POSIX shell print the target directory to stdout
17725 # if CDPATH is set.
17726 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17728 sed_quote_subst='$sed_quote_subst'
17729 double_quote_subst='$double_quote_subst'
17730 delay_variable_subst='$delay_variable_subst'
17731 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17732 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17733 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17734 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17735 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17736 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17737 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17738 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17739 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17740 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17741 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17742 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17743 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17744 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17745 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17746 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17747 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17748 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17749 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17750 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17751 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17752 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17753 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17754 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17755 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17756 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17757 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17758 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17759 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17760 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17761 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17762 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17763 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17764 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17765 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17766 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17767 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17768 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17769 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17770 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17771 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17772 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17773 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17774 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17775 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17776 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17777 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17778 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17779 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"`'
17780 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17781 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17782 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17783 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17784 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17785 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17786 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17787 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17788 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17789 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17790 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17791 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17792 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17793 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17794 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17795 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17796 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17797 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17798 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17799 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17800 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17801 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17802 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17803 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17804 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17805 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17806 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17807 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17808 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17809 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17810 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17811 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17812 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17813 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17814 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17815 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17816 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17817 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17818 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17819 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17820 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17821 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17822 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17823 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17824 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17825 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17826 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17827 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17828 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17829 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17830 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17831 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17832 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17833 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17834 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17835 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17836 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17837 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17838 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17839 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17840 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17841 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17842 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17843 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17844 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17845 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17846 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17847 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17848 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17849 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17850 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17851 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17852 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17853 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17854 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17855 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17856 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17857 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17858 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17859 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17860 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17861 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17862 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17863 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17864 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17865 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17866 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17867 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17868 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17869 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17870 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17871 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17872 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17873 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17874 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17875 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17876 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17877 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17878 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17879 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17880 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17881 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17882 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17883 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17884 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17885 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17886 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17887 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17888 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17889 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17890 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17891 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17892 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17893 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17894 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17895 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17896 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17897 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
17898 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
17899 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
17900 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
17901 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
17902 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
17903 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
17904 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
17905 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
17907 LTCC='$LTCC'
17908 LTCFLAGS='$LTCFLAGS'
17909 compiler='$compiler_DEFAULT'
17911 # A function that is used when there is no print builtin or printf.
17912 func_fallback_echo ()
17914 eval 'cat <<_LTECHO_EOF
17916 _LTECHO_EOF'
17919 # Quote evaled strings.
17920 for var in SHELL \
17921 ECHO \
17922 SED \
17923 GREP \
17924 EGREP \
17925 FGREP \
17926 LD \
17927 NM \
17928 LN_S \
17929 lt_SP2NL \
17930 lt_NL2SP \
17931 reload_flag \
17932 OBJDUMP \
17933 deplibs_check_method \
17934 file_magic_cmd \
17935 AR \
17936 AR_FLAGS \
17937 STRIP \
17938 RANLIB \
17939 CC \
17940 CFLAGS \
17941 compiler \
17942 lt_cv_sys_global_symbol_pipe \
17943 lt_cv_sys_global_symbol_to_cdecl \
17944 lt_cv_sys_global_symbol_to_c_name_address \
17945 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17946 lt_prog_compiler_no_builtin_flag \
17947 lt_prog_compiler_wl \
17948 lt_prog_compiler_pic \
17949 lt_prog_compiler_static \
17950 lt_cv_prog_compiler_c_o \
17951 need_locks \
17952 DSYMUTIL \
17953 NMEDIT \
17954 LIPO \
17955 OTOOL \
17956 OTOOL64 \
17957 shrext_cmds \
17958 export_dynamic_flag_spec \
17959 whole_archive_flag_spec \
17960 compiler_needs_object \
17961 with_gnu_ld \
17962 allow_undefined_flag \
17963 no_undefined_flag \
17964 hardcode_libdir_flag_spec \
17965 hardcode_libdir_flag_spec_ld \
17966 hardcode_libdir_separator \
17967 fix_srcfile_path \
17968 exclude_expsyms \
17969 include_expsyms \
17970 file_list_spec \
17971 variables_saved_for_relink \
17972 libname_spec \
17973 library_names_spec \
17974 soname_spec \
17975 install_override_mode \
17976 finish_eval \
17977 old_striplib \
17978 striplib \
17979 compiler_lib_search_dirs \
17980 predep_objects \
17981 postdep_objects \
17982 predeps \
17983 postdeps \
17984 compiler_lib_search_path \
17985 LD_FC \
17986 reload_flag_FC \
17987 compiler_FC \
17988 lt_prog_compiler_no_builtin_flag_FC \
17989 lt_prog_compiler_wl_FC \
17990 lt_prog_compiler_pic_FC \
17991 lt_prog_compiler_static_FC \
17992 lt_cv_prog_compiler_c_o_FC \
17993 export_dynamic_flag_spec_FC \
17994 whole_archive_flag_spec_FC \
17995 compiler_needs_object_FC \
17996 with_gnu_ld_FC \
17997 allow_undefined_flag_FC \
17998 no_undefined_flag_FC \
17999 hardcode_libdir_flag_spec_FC \
18000 hardcode_libdir_flag_spec_ld_FC \
18001 hardcode_libdir_separator_FC \
18002 fix_srcfile_path_FC \
18003 exclude_expsyms_FC \
18004 include_expsyms_FC \
18005 file_list_spec_FC \
18006 compiler_lib_search_dirs_FC \
18007 predep_objects_FC \
18008 postdep_objects_FC \
18009 predeps_FC \
18010 postdeps_FC \
18011 compiler_lib_search_path_FC; do
18012 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18013 *[\\\\\\\`\\"\\\$]*)
18014 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18017 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18019 esac
18020 done
18022 # Double-quote double-evaled strings.
18023 for var in reload_cmds \
18024 old_postinstall_cmds \
18025 old_postuninstall_cmds \
18026 old_archive_cmds \
18027 extract_expsyms_cmds \
18028 old_archive_from_new_cmds \
18029 old_archive_from_expsyms_cmds \
18030 archive_cmds \
18031 archive_expsym_cmds \
18032 module_cmds \
18033 module_expsym_cmds \
18034 export_symbols_cmds \
18035 prelink_cmds \
18036 postinstall_cmds \
18037 postuninstall_cmds \
18038 finish_cmds \
18039 sys_lib_search_path_spec \
18040 sys_lib_dlsearch_path_spec \
18041 reload_cmds_FC \
18042 old_archive_cmds_FC \
18043 old_archive_from_new_cmds_FC \
18044 old_archive_from_expsyms_cmds_FC \
18045 archive_cmds_FC \
18046 archive_expsym_cmds_FC \
18047 module_cmds_FC \
18048 module_expsym_cmds_FC \
18049 export_symbols_cmds_FC \
18050 prelink_cmds_FC; do
18051 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18052 *[\\\\\\\`\\"\\\$]*)
18053 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18056 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18058 esac
18059 done
18061 ac_aux_dir='$ac_aux_dir'
18062 xsi_shell='$xsi_shell'
18063 lt_shell_append='$lt_shell_append'
18065 # See if we are running on zsh, and set the options which allow our
18066 # commands through without removal of \ escapes INIT.
18067 if test -n "\${ZSH_VERSION+set}" ; then
18068 setopt NO_GLOB_SUBST
18072 PACKAGE='$PACKAGE'
18073 VERSION='$VERSION'
18074 TIMESTAMP='$TIMESTAMP'
18075 RM='$RM'
18076 ofile='$ofile'
18083 _ACEOF
18085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18087 # Handling of arguments.
18088 for ac_config_target in $ac_config_targets
18090 case $ac_config_target in
18091 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18092 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18093 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18094 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18095 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18096 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18097 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18098 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18099 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18100 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18101 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18102 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18103 "testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18105 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18106 esac
18107 done
18110 # If the user did not use the arguments to specify the items to instantiate,
18111 # then the envvar interface is used. Set only those that are not.
18112 # We use the long form for the default assignment because of an extremely
18113 # bizarre bug on SunOS 4.1.3.
18114 if $ac_need_defaults; then
18115 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18116 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18117 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18120 # Have a temporary directory for convenience. Make it in the build tree
18121 # simply because there is no reason against having it here, and in addition,
18122 # creating and moving files from /tmp can sometimes cause problems.
18123 # Hook for its removal unless debugging.
18124 # Note that there is a small window in which the directory will not be cleaned:
18125 # after its creation but before its name has been assigned to `$tmp'.
18126 $debug ||
18128 tmp= ac_tmp=
18129 trap 'exit_status=$?
18130 : "${ac_tmp:=$tmp}"
18131 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18133 trap 'as_fn_exit 1' 1 2 13 15
18135 # Create a (secure) tmp directory for tmp files.
18138 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18139 test -d "$tmp"
18140 } ||
18142 tmp=./conf$$-$RANDOM
18143 (umask 077 && mkdir "$tmp")
18144 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18145 ac_tmp=$tmp
18147 # Set up the scripts for CONFIG_FILES section.
18148 # No need to generate them if there are no CONFIG_FILES.
18149 # This happens for instance with `./config.status config.h'.
18150 if test -n "$CONFIG_FILES"; then
18153 ac_cr=`echo X | tr X '\015'`
18154 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18155 # But we know of no other shell where ac_cr would be empty at this
18156 # point, so we can use a bashism as a fallback.
18157 if test "x$ac_cr" = x; then
18158 eval ac_cr=\$\'\\r\'
18160 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18161 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18162 ac_cs_awk_cr='\\r'
18163 else
18164 ac_cs_awk_cr=$ac_cr
18167 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18168 _ACEOF
18172 echo "cat >conf$$subs.awk <<_ACEOF" &&
18173 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18174 echo "_ACEOF"
18175 } >conf$$subs.sh ||
18176 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18177 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18178 ac_delim='%!_!# '
18179 for ac_last_try in false false false false false :; do
18180 . ./conf$$subs.sh ||
18181 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18183 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18184 if test $ac_delim_n = $ac_delim_num; then
18185 break
18186 elif $ac_last_try; then
18187 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18188 else
18189 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18191 done
18192 rm -f conf$$subs.sh
18194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18195 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18196 _ACEOF
18197 sed -n '
18199 s/^/S["/; s/!.*/"]=/
18202 s/^[^!]*!//
18203 :repl
18204 t repl
18205 s/'"$ac_delim"'$//
18206 t delim
18209 s/\(.\{148\}\)..*/\1/
18210 t more1
18211 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18214 b repl
18215 :more1
18216 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18219 s/.\{148\}//
18220 t nl
18221 :delim
18223 s/\(.\{148\}\)..*/\1/
18224 t more2
18225 s/["\\]/\\&/g; s/^/"/; s/$/"/
18228 :more2
18229 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18232 s/.\{148\}//
18233 t delim
18234 ' <conf$$subs.awk | sed '
18235 /^[^""]/{
18237 s/\n//
18239 ' >>$CONFIG_STATUS || ac_write_fail=1
18240 rm -f conf$$subs.awk
18241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18242 _ACAWK
18243 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18244 for (key in S) S_is_set[key] = 1
18245 FS = "\a"
18249 line = $ 0
18250 nfields = split(line, field, "@")
18251 substed = 0
18252 len = length(field[1])
18253 for (i = 2; i < nfields; i++) {
18254 key = field[i]
18255 keylen = length(key)
18256 if (S_is_set[key]) {
18257 value = S[key]
18258 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18259 len += length(value) + length(field[++i])
18260 substed = 1
18261 } else
18262 len += 1 + keylen
18265 print line
18268 _ACAWK
18269 _ACEOF
18270 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18271 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18272 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18273 else
18275 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18276 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18277 _ACEOF
18279 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18280 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18281 # trailing colons and then remove the whole line if VPATH becomes empty
18282 # (actually we leave an empty line to preserve line numbers).
18283 if test "x$srcdir" = x.; then
18284 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18286 s///
18287 s/^/:/
18288 s/[ ]*$/:/
18289 s/:\$(srcdir):/:/g
18290 s/:\${srcdir}:/:/g
18291 s/:@srcdir@:/:/g
18292 s/^:*//
18293 s/:*$//
18295 s/\(=[ ]*\).*/\1/
18297 s/\n//
18298 s/^[^=]*=[ ]*$//
18302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18303 fi # test -n "$CONFIG_FILES"
18305 # Set up the scripts for CONFIG_HEADERS section.
18306 # No need to generate them if there are no CONFIG_HEADERS.
18307 # This happens for instance with `./config.status Makefile'.
18308 if test -n "$CONFIG_HEADERS"; then
18309 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18310 BEGIN {
18311 _ACEOF
18313 # Transform confdefs.h into an awk script `defines.awk', embedded as
18314 # here-document in config.status, that substitutes the proper values into
18315 # config.h.in to produce config.h.
18317 # Create a delimiter string that does not exist in confdefs.h, to ease
18318 # handling of long lines.
18319 ac_delim='%!_!# '
18320 for ac_last_try in false false :; do
18321 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18322 if test -z "$ac_tt"; then
18323 break
18324 elif $ac_last_try; then
18325 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18326 else
18327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18329 done
18331 # For the awk script, D is an array of macro values keyed by name,
18332 # likewise P contains macro parameters if any. Preserve backslash
18333 # newline sequences.
18335 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18336 sed -n '
18337 s/.\{148\}/&'"$ac_delim"'/g
18338 t rset
18339 :rset
18340 s/^[ ]*#[ ]*define[ ][ ]*/ /
18341 t def
18343 :def
18344 s/\\$//
18345 t bsnl
18346 s/["\\]/\\&/g
18347 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18348 D["\1"]=" \3"/p
18349 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18351 :bsnl
18352 s/["\\]/\\&/g
18353 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18354 D["\1"]=" \3\\\\\\n"\\/p
18355 t cont
18356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18357 t cont
18359 :cont
18361 s/.\{148\}/&'"$ac_delim"'/g
18362 t clear
18363 :clear
18364 s/\\$//
18365 t bsnlc
18366 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18368 :bsnlc
18369 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18370 b cont
18371 ' <confdefs.h | sed '
18372 s/'"$ac_delim"'/"\\\
18373 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18376 for (key in D) D_is_set[key] = 1
18377 FS = "\a"
18379 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18380 line = \$ 0
18381 split(line, arg, " ")
18382 if (arg[1] == "#") {
18383 defundef = arg[2]
18384 mac1 = arg[3]
18385 } else {
18386 defundef = substr(arg[1], 2)
18387 mac1 = arg[2]
18389 split(mac1, mac2, "(") #)
18390 macro = mac2[1]
18391 prefix = substr(line, 1, index(line, defundef) - 1)
18392 if (D_is_set[macro]) {
18393 # Preserve the white space surrounding the "#".
18394 print prefix "define", macro P[macro] D[macro]
18395 next
18396 } else {
18397 # Replace #undef with comments. This is necessary, for example,
18398 # in the case of _POSIX_SOURCE, which is predefined and required
18399 # on some systems where configure will not decide to define it.
18400 if (defundef == "undef") {
18401 print "/*", prefix defundef, macro, "*/"
18402 next
18406 { print }
18407 _ACAWK
18408 _ACEOF
18409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18410 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18411 fi # test -n "$CONFIG_HEADERS"
18414 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18415 shift
18416 for ac_tag
18418 case $ac_tag in
18419 :[FHLC]) ac_mode=$ac_tag; continue;;
18420 esac
18421 case $ac_mode$ac_tag in
18422 :[FHL]*:*);;
18423 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18424 :[FH]-) ac_tag=-:-;;
18425 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18426 esac
18427 ac_save_IFS=$IFS
18428 IFS=:
18429 set x $ac_tag
18430 IFS=$ac_save_IFS
18431 shift
18432 ac_file=$1
18433 shift
18435 case $ac_mode in
18436 :L) ac_source=$1;;
18437 :[FH])
18438 ac_file_inputs=
18439 for ac_f
18441 case $ac_f in
18442 -) ac_f="$ac_tmp/stdin";;
18443 *) # Look for the file first in the build tree, then in the source tree
18444 # (if the path is not absolute). The absolute path cannot be DOS-style,
18445 # because $ac_f cannot contain `:'.
18446 test -f "$ac_f" ||
18447 case $ac_f in
18448 [\\/$]*) false;;
18449 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18450 esac ||
18451 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18452 esac
18453 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18454 as_fn_append ac_file_inputs " '$ac_f'"
18455 done
18457 # Let's still pretend it is `configure' which instantiates (i.e., don't
18458 # use $as_me), people would be surprised to read:
18459 # /* config.h. Generated by config.status. */
18460 configure_input='Generated from '`
18461 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18462 `' by configure.'
18463 if test x"$ac_file" != x-; then
18464 configure_input="$ac_file. $configure_input"
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18466 $as_echo "$as_me: creating $ac_file" >&6;}
18468 # Neutralize special characters interpreted by sed in replacement strings.
18469 case $configure_input in #(
18470 *\&* | *\|* | *\\* )
18471 ac_sed_conf_input=`$as_echo "$configure_input" |
18472 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18473 *) ac_sed_conf_input=$configure_input;;
18474 esac
18476 case $ac_tag in
18477 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18478 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18479 esac
18481 esac
18483 ac_dir=`$as_dirname -- "$ac_file" ||
18484 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18485 X"$ac_file" : 'X\(//\)[^/]' \| \
18486 X"$ac_file" : 'X\(//\)$' \| \
18487 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18488 $as_echo X"$ac_file" |
18489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18490 s//\1/
18493 /^X\(\/\/\)[^/].*/{
18494 s//\1/
18497 /^X\(\/\/\)$/{
18498 s//\1/
18501 /^X\(\/\).*/{
18502 s//\1/
18505 s/.*/./; q'`
18506 as_dir="$ac_dir"; as_fn_mkdir_p
18507 ac_builddir=.
18509 case "$ac_dir" in
18510 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18512 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18513 # A ".." for each directory in $ac_dir_suffix.
18514 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18515 case $ac_top_builddir_sub in
18516 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18517 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18518 esac ;;
18519 esac
18520 ac_abs_top_builddir=$ac_pwd
18521 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18522 # for backward compatibility:
18523 ac_top_builddir=$ac_top_build_prefix
18525 case $srcdir in
18526 .) # We are building in place.
18527 ac_srcdir=.
18528 ac_top_srcdir=$ac_top_builddir_sub
18529 ac_abs_top_srcdir=$ac_pwd ;;
18530 [\\/]* | ?:[\\/]* ) # Absolute name.
18531 ac_srcdir=$srcdir$ac_dir_suffix;
18532 ac_top_srcdir=$srcdir
18533 ac_abs_top_srcdir=$srcdir ;;
18534 *) # Relative name.
18535 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18536 ac_top_srcdir=$ac_top_build_prefix$srcdir
18537 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18538 esac
18539 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18542 case $ac_mode in
18545 # CONFIG_FILE
18548 case $INSTALL in
18549 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18550 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18551 esac
18552 ac_MKDIR_P=$MKDIR_P
18553 case $MKDIR_P in
18554 [\\/$]* | ?:[\\/]* ) ;;
18555 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18556 esac
18557 _ACEOF
18559 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18560 # If the template does not know about datarootdir, expand it.
18561 # FIXME: This hack should be removed a few years after 2.60.
18562 ac_datarootdir_hack=; ac_datarootdir_seen=
18563 ac_sed_dataroot='
18564 /datarootdir/ {
18568 /@datadir@/p
18569 /@docdir@/p
18570 /@infodir@/p
18571 /@localedir@/p
18572 /@mandir@/p'
18573 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18574 *datarootdir*) ac_datarootdir_seen=yes;;
18575 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18577 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18578 _ACEOF
18579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18580 ac_datarootdir_hack='
18581 s&@datadir@&$datadir&g
18582 s&@docdir@&$docdir&g
18583 s&@infodir@&$infodir&g
18584 s&@localedir@&$localedir&g
18585 s&@mandir@&$mandir&g
18586 s&\\\${datarootdir}&$datarootdir&g' ;;
18587 esac
18588 _ACEOF
18590 # Neutralize VPATH when `$srcdir' = `.'.
18591 # Shell code in configure.ac might set extrasub.
18592 # FIXME: do we really want to maintain this feature?
18593 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18594 ac_sed_extra="$ac_vpsub
18595 $extrasub
18596 _ACEOF
18597 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18599 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18600 s|@configure_input@|$ac_sed_conf_input|;t t
18601 s&@top_builddir@&$ac_top_builddir_sub&;t t
18602 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18603 s&@srcdir@&$ac_srcdir&;t t
18604 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18605 s&@top_srcdir@&$ac_top_srcdir&;t t
18606 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18607 s&@builddir@&$ac_builddir&;t t
18608 s&@abs_builddir@&$ac_abs_builddir&;t t
18609 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18610 s&@INSTALL@&$ac_INSTALL&;t t
18611 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18612 $ac_datarootdir_hack
18614 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18615 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18617 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18618 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18619 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18620 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18622 which seems to be undefined. Please make sure it is defined" >&5
18623 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18624 which seems to be undefined. Please make sure it is defined" >&2;}
18626 rm -f "$ac_tmp/stdin"
18627 case $ac_file in
18628 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18629 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18630 esac \
18631 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18635 # CONFIG_HEADER
18637 if test x"$ac_file" != x-; then
18639 $as_echo "/* $configure_input */" \
18640 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18641 } >"$ac_tmp/config.h" \
18642 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18643 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18645 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18646 else
18647 rm -f "$ac_file"
18648 mv "$ac_tmp/config.h" "$ac_file" \
18649 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18651 else
18652 $as_echo "/* $configure_input */" \
18653 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18654 || as_fn_error $? "could not create -" "$LINENO" 5
18656 # Compute "$ac_file"'s index in $config_headers.
18657 _am_arg="$ac_file"
18658 _am_stamp_count=1
18659 for _am_header in $config_headers :; do
18660 case $_am_header in
18661 $_am_arg | $_am_arg:* )
18662 break ;;
18664 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18665 esac
18666 done
18667 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18668 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18669 X"$_am_arg" : 'X\(//\)[^/]' \| \
18670 X"$_am_arg" : 'X\(//\)$' \| \
18671 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18672 $as_echo X"$_am_arg" |
18673 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18674 s//\1/
18677 /^X\(\/\/\)[^/].*/{
18678 s//\1/
18681 /^X\(\/\/\)$/{
18682 s//\1/
18685 /^X\(\/\).*/{
18686 s//\1/
18689 s/.*/./; q'`/stamp-h$_am_stamp_count
18692 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18693 $as_echo "$as_me: executing $ac_file commands" >&6;}
18695 esac
18698 case $ac_file$ac_mode in
18699 "default-1":C)
18700 # Only add multilib support code if we just rebuilt the top-level
18701 # Makefile.
18702 case " $CONFIG_FILES " in
18703 *" Makefile "*)
18704 ac_file=Makefile . ${multi_basedir}/config-ml.in
18706 esac ;;
18707 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18708 # Older Autoconf quotes --file arguments for eval, but not when files
18709 # are listed without --file. Let's play safe and only enable the eval
18710 # if we detect the quoting.
18711 case $CONFIG_FILES in
18712 *\'*) eval set x "$CONFIG_FILES" ;;
18713 *) set x $CONFIG_FILES ;;
18714 esac
18715 shift
18716 for mf
18718 # Strip MF so we end up with the name of the file.
18719 mf=`echo "$mf" | sed -e 's/:.*$//'`
18720 # Check whether this is an Automake generated Makefile or not.
18721 # We used to match only the files named 'Makefile.in', but
18722 # some people rename them; so instead we look at the file content.
18723 # Grep'ing the first line is not enough: some people post-process
18724 # each Makefile.in and add a new line on top of each file to say so.
18725 # Grep'ing the whole file is not good either: AIX grep has a line
18726 # limit of 2048, but all sed's we know have understand at least 4000.
18727 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18728 dirpart=`$as_dirname -- "$mf" ||
18729 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18730 X"$mf" : 'X\(//\)[^/]' \| \
18731 X"$mf" : 'X\(//\)$' \| \
18732 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18733 $as_echo X"$mf" |
18734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18735 s//\1/
18738 /^X\(\/\/\)[^/].*/{
18739 s//\1/
18742 /^X\(\/\/\)$/{
18743 s//\1/
18746 /^X\(\/\).*/{
18747 s//\1/
18750 s/.*/./; q'`
18751 else
18752 continue
18754 # Extract the definition of DEPDIR, am__include, and am__quote
18755 # from the Makefile without running 'make'.
18756 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18757 test -z "$DEPDIR" && continue
18758 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18759 test -z "$am__include" && continue
18760 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18761 # Find all dependency output files, they are included files with
18762 # $(DEPDIR) in their names. We invoke sed twice because it is the
18763 # simplest approach to changing $(DEPDIR) to its actual value in the
18764 # expansion.
18765 for file in `sed -n "
18766 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18767 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18768 # Make sure the directory exists.
18769 test -f "$dirpart/$file" && continue
18770 fdir=`$as_dirname -- "$file" ||
18771 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18772 X"$file" : 'X\(//\)[^/]' \| \
18773 X"$file" : 'X\(//\)$' \| \
18774 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18775 $as_echo X"$file" |
18776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18777 s//\1/
18780 /^X\(\/\/\)[^/].*/{
18781 s//\1/
18784 /^X\(\/\/\)$/{
18785 s//\1/
18788 /^X\(\/\).*/{
18789 s//\1/
18792 s/.*/./; q'`
18793 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18794 # echo "creating $dirpart/$file"
18795 echo '# dummy' > "$dirpart/$file"
18796 done
18797 done
18800 "libtool":C)
18802 # See if we are running on zsh, and set the options which allow our
18803 # commands through without removal of \ escapes.
18804 if test -n "${ZSH_VERSION+set}" ; then
18805 setopt NO_GLOB_SUBST
18808 cfgfile="${ofile}T"
18809 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18810 $RM "$cfgfile"
18812 cat <<_LT_EOF >> "$cfgfile"
18813 #! $SHELL
18815 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18816 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18817 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18818 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18820 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18821 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18822 # Written by Gordon Matzigkeit, 1996
18824 # This file is part of GNU Libtool.
18826 # GNU Libtool is free software; you can redistribute it and/or
18827 # modify it under the terms of the GNU General Public License as
18828 # published by the Free Software Foundation; either version 2 of
18829 # the License, or (at your option) any later version.
18831 # As a special exception to the GNU General Public License,
18832 # if you distribute this file as part of a program or library that
18833 # is built using GNU Libtool, you may include this file under the
18834 # same distribution terms that you use for the rest of that program.
18836 # GNU Libtool is distributed in the hope that it will be useful,
18837 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18838 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18839 # GNU General Public License for more details.
18841 # You should have received a copy of the GNU General Public License
18842 # along with GNU Libtool; see the file COPYING. If not, a copy
18843 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18844 # obtained by writing to the Free Software Foundation, Inc.,
18845 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18848 # The names of the tagged configurations supported by this script.
18849 available_tags="FC "
18851 # ### BEGIN LIBTOOL CONFIG
18853 # Which release of libtool.m4 was used?
18854 macro_version=$macro_version
18855 macro_revision=$macro_revision
18857 # Whether or not to build shared libraries.
18858 build_libtool_libs=$enable_shared
18860 # Whether or not to build static libraries.
18861 build_old_libs=$enable_static
18863 # What type of objects to build.
18864 pic_mode=$pic_mode
18866 # Whether or not to optimize for fast installation.
18867 fast_install=$enable_fast_install
18869 # Shell to use when invoking shell scripts.
18870 SHELL=$lt_SHELL
18872 # An echo program that protects backslashes.
18873 ECHO=$lt_ECHO
18875 # The host system.
18876 host_alias=$host_alias
18877 host=$host
18878 host_os=$host_os
18880 # The build system.
18881 build_alias=$build_alias
18882 build=$build
18883 build_os=$build_os
18885 # A sed program that does not truncate output.
18886 SED=$lt_SED
18888 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18889 Xsed="\$SED -e 1s/^X//"
18891 # A grep program that handles long lines.
18892 GREP=$lt_GREP
18894 # An ERE matcher.
18895 EGREP=$lt_EGREP
18897 # A literal string matcher.
18898 FGREP=$lt_FGREP
18900 # A BSD- or MS-compatible name lister.
18901 NM=$lt_NM
18903 # Whether we need soft or hard links.
18904 LN_S=$lt_LN_S
18906 # What is the maximum length of a command?
18907 max_cmd_len=$max_cmd_len
18909 # Object file suffix (normally "o").
18910 objext=$ac_objext
18912 # Executable file suffix (normally "").
18913 exeext=$exeext
18915 # whether the shell understands "unset".
18916 lt_unset=$lt_unset
18918 # turn spaces into newlines.
18919 SP2NL=$lt_lt_SP2NL
18921 # turn newlines into spaces.
18922 NL2SP=$lt_lt_NL2SP
18924 # An object symbol dumper.
18925 OBJDUMP=$lt_OBJDUMP
18927 # Method to check whether dependent libraries are shared objects.
18928 deplibs_check_method=$lt_deplibs_check_method
18930 # Command to use when deplibs_check_method == "file_magic".
18931 file_magic_cmd=$lt_file_magic_cmd
18933 # The archiver.
18934 AR=$lt_AR
18935 AR_FLAGS=$lt_AR_FLAGS
18937 # A symbol stripping program.
18938 STRIP=$lt_STRIP
18940 # Commands used to install an old-style archive.
18941 RANLIB=$lt_RANLIB
18942 old_postinstall_cmds=$lt_old_postinstall_cmds
18943 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18945 # Whether to use a lock for old archive extraction.
18946 lock_old_archive_extraction=$lock_old_archive_extraction
18948 # A C compiler.
18949 LTCC=$lt_CC
18951 # LTCC compiler flags.
18952 LTCFLAGS=$lt_CFLAGS
18954 # Take the output of nm and produce a listing of raw symbols and C names.
18955 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18957 # Transform the output of nm in a proper C declaration.
18958 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18960 # Transform the output of nm in a C name address pair.
18961 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18963 # Transform the output of nm in a C name address pair when lib prefix is needed.
18964 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18966 # The name of the directory that contains temporary libtool files.
18967 objdir=$objdir
18969 # Used to examine libraries when file_magic_cmd begins with "file".
18970 MAGIC_CMD=$MAGIC_CMD
18972 # Must we lock files when doing compilation?
18973 need_locks=$lt_need_locks
18975 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18976 DSYMUTIL=$lt_DSYMUTIL
18978 # Tool to change global to local symbols on Mac OS X.
18979 NMEDIT=$lt_NMEDIT
18981 # Tool to manipulate fat objects and archives on Mac OS X.
18982 LIPO=$lt_LIPO
18984 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18985 OTOOL=$lt_OTOOL
18987 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18988 OTOOL64=$lt_OTOOL64
18990 # Old archive suffix (normally "a").
18991 libext=$libext
18993 # Shared library suffix (normally ".so").
18994 shrext_cmds=$lt_shrext_cmds
18996 # The commands to extract the exported symbol list from a shared archive.
18997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18999 # Variables whose values should be saved in libtool wrapper scripts and
19000 # restored at link time.
19001 variables_saved_for_relink=$lt_variables_saved_for_relink
19003 # Do we need the "lib" prefix for modules?
19004 need_lib_prefix=$need_lib_prefix
19006 # Do we need a version for libraries?
19007 need_version=$need_version
19009 # Library versioning type.
19010 version_type=$version_type
19012 # Shared library runtime path variable.
19013 runpath_var=$runpath_var
19015 # Shared library path variable.
19016 shlibpath_var=$shlibpath_var
19018 # Is shlibpath searched before the hard-coded library search path?
19019 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19021 # Format of library name prefix.
19022 libname_spec=$lt_libname_spec
19024 # List of archive names. First name is the real one, the rest are links.
19025 # The last name is the one that the linker finds with -lNAME
19026 library_names_spec=$lt_library_names_spec
19028 # The coded name of the library, if different from the real name.
19029 soname_spec=$lt_soname_spec
19031 # Permission mode override for installation of shared libraries.
19032 install_override_mode=$lt_install_override_mode
19034 # Command to use after installation of a shared archive.
19035 postinstall_cmds=$lt_postinstall_cmds
19037 # Command to use after uninstallation of a shared archive.
19038 postuninstall_cmds=$lt_postuninstall_cmds
19040 # Commands used to finish a libtool library installation in a directory.
19041 finish_cmds=$lt_finish_cmds
19043 # As "finish_cmds", except a single script fragment to be evaled but
19044 # not shown.
19045 finish_eval=$lt_finish_eval
19047 # Whether we should hardcode library paths into libraries.
19048 hardcode_into_libs=$hardcode_into_libs
19050 # Compile-time system search path for libraries.
19051 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19053 # Run-time system search path for libraries.
19054 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19056 # Whether dlopen is supported.
19057 dlopen_support=$enable_dlopen
19059 # Whether dlopen of programs is supported.
19060 dlopen_self=$enable_dlopen_self
19062 # Whether dlopen of statically linked programs is supported.
19063 dlopen_self_static=$enable_dlopen_self_static
19065 # Commands to strip libraries.
19066 old_striplib=$lt_old_striplib
19067 striplib=$lt_striplib
19070 # The linker used to build libraries.
19071 LD=$lt_LD
19073 # How to create reloadable object files.
19074 reload_flag=$lt_reload_flag
19075 reload_cmds=$lt_reload_cmds
19077 # Commands used to build an old-style archive.
19078 old_archive_cmds=$lt_old_archive_cmds
19080 # A language specific compiler.
19081 CC=$lt_compiler
19083 # Is the compiler the GNU compiler?
19084 with_gcc=$GCC
19086 # Compiler flag to turn off builtin functions.
19087 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19089 # How to pass a linker flag through the compiler.
19090 wl=$lt_lt_prog_compiler_wl
19092 # Additional compiler flags for building library objects.
19093 pic_flag=$lt_lt_prog_compiler_pic
19095 # Compiler flag to prevent dynamic linking.
19096 link_static_flag=$lt_lt_prog_compiler_static
19098 # Does compiler simultaneously support -c and -o options?
19099 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19101 # Whether or not to add -lc for building shared libraries.
19102 build_libtool_need_lc=$archive_cmds_need_lc
19104 # Whether or not to disallow shared libs when runtime libs are static.
19105 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19107 # Compiler flag to allow reflexive dlopens.
19108 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19110 # Compiler flag to generate shared objects directly from archives.
19111 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19113 # Whether the compiler copes with passing no objects directly.
19114 compiler_needs_object=$lt_compiler_needs_object
19116 # Create an old-style archive from a shared archive.
19117 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19119 # Create a temporary old-style archive to link instead of a shared archive.
19120 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19122 # Commands used to build a shared archive.
19123 archive_cmds=$lt_archive_cmds
19124 archive_expsym_cmds=$lt_archive_expsym_cmds
19126 # Commands used to build a loadable module if different from building
19127 # a shared archive.
19128 module_cmds=$lt_module_cmds
19129 module_expsym_cmds=$lt_module_expsym_cmds
19131 # Whether we are building with GNU ld or not.
19132 with_gnu_ld=$lt_with_gnu_ld
19134 # Flag that allows shared libraries with undefined symbols to be built.
19135 allow_undefined_flag=$lt_allow_undefined_flag
19137 # Flag that enforces no undefined symbols.
19138 no_undefined_flag=$lt_no_undefined_flag
19140 # Flag to hardcode \$libdir into a binary during linking.
19141 # This must work even if \$libdir does not exist
19142 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19144 # If ld is used when linking, flag to hardcode \$libdir into a binary
19145 # during linking. This must work even if \$libdir does not exist.
19146 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19148 # Whether we need a single "-rpath" flag with a separated argument.
19149 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19151 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19152 # DIR into the resulting binary.
19153 hardcode_direct=$hardcode_direct
19155 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19156 # DIR into the resulting binary and the resulting library dependency is
19157 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19158 # library is relocated.
19159 hardcode_direct_absolute=$hardcode_direct_absolute
19161 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19162 # into the resulting binary.
19163 hardcode_minus_L=$hardcode_minus_L
19165 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19166 # into the resulting binary.
19167 hardcode_shlibpath_var=$hardcode_shlibpath_var
19169 # Set to "yes" if building a shared library automatically hardcodes DIR
19170 # into the library and all subsequent libraries and executables linked
19171 # against it.
19172 hardcode_automatic=$hardcode_automatic
19174 # Set to yes if linker adds runtime paths of dependent libraries
19175 # to runtime path list.
19176 inherit_rpath=$inherit_rpath
19178 # Whether libtool must link a program against all its dependency libraries.
19179 link_all_deplibs=$link_all_deplibs
19181 # Fix the shell variable \$srcfile for the compiler.
19182 fix_srcfile_path=$lt_fix_srcfile_path
19184 # Set to "yes" if exported symbols are required.
19185 always_export_symbols=$always_export_symbols
19187 # The commands to list exported symbols.
19188 export_symbols_cmds=$lt_export_symbols_cmds
19190 # Symbols that should not be listed in the preloaded symbols.
19191 exclude_expsyms=$lt_exclude_expsyms
19193 # Symbols that must always be exported.
19194 include_expsyms=$lt_include_expsyms
19196 # Commands necessary for linking programs (against libraries) with templates.
19197 prelink_cmds=$lt_prelink_cmds
19199 # Specify filename containing input files.
19200 file_list_spec=$lt_file_list_spec
19202 # How to hardcode a shared library path into an executable.
19203 hardcode_action=$hardcode_action
19205 # The directories searched by this compiler when creating a shared library.
19206 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19208 # Dependencies to place before and after the objects being linked to
19209 # create a shared library.
19210 predep_objects=$lt_predep_objects
19211 postdep_objects=$lt_postdep_objects
19212 predeps=$lt_predeps
19213 postdeps=$lt_postdeps
19215 # The library search path used internally by the compiler when linking
19216 # a shared library.
19217 compiler_lib_search_path=$lt_compiler_lib_search_path
19219 # ### END LIBTOOL CONFIG
19221 _LT_EOF
19223 case $host_os in
19224 aix3*)
19225 cat <<\_LT_EOF >> "$cfgfile"
19226 # AIX sometimes has problems with the GCC collect2 program. For some
19227 # reason, if we set the COLLECT_NAMES environment variable, the problems
19228 # vanish in a puff of smoke.
19229 if test "X${COLLECT_NAMES+set}" != Xset; then
19230 COLLECT_NAMES=
19231 export COLLECT_NAMES
19233 _LT_EOF
19235 esac
19238 ltmain="$ac_aux_dir/ltmain.sh"
19241 # We use sed instead of cat because bash on DJGPP gets confused if
19242 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19243 # text mode, it properly converts lines to CR/LF. This bash problem
19244 # is reportedly fixed, but why not run on old versions too?
19245 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19246 || (rm -f "$cfgfile"; exit 1)
19248 case $xsi_shell in
19249 yes)
19250 cat << \_LT_EOF >> "$cfgfile"
19252 # func_dirname file append nondir_replacement
19253 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19254 # otherwise set result to NONDIR_REPLACEMENT.
19255 func_dirname ()
19257 case ${1} in
19258 */*) func_dirname_result="${1%/*}${2}" ;;
19259 * ) func_dirname_result="${3}" ;;
19260 esac
19263 # func_basename file
19264 func_basename ()
19266 func_basename_result="${1##*/}"
19269 # func_dirname_and_basename file append nondir_replacement
19270 # perform func_basename and func_dirname in a single function
19271 # call:
19272 # dirname: Compute the dirname of FILE. If nonempty,
19273 # add APPEND to the result, otherwise set result
19274 # to NONDIR_REPLACEMENT.
19275 # value returned in "$func_dirname_result"
19276 # basename: Compute filename of FILE.
19277 # value retuned in "$func_basename_result"
19278 # Implementation must be kept synchronized with func_dirname
19279 # and func_basename. For efficiency, we do not delegate to
19280 # those functions but instead duplicate the functionality here.
19281 func_dirname_and_basename ()
19283 case ${1} in
19284 */*) func_dirname_result="${1%/*}${2}" ;;
19285 * ) func_dirname_result="${3}" ;;
19286 esac
19287 func_basename_result="${1##*/}"
19290 # func_stripname prefix suffix name
19291 # strip PREFIX and SUFFIX off of NAME.
19292 # PREFIX and SUFFIX must not contain globbing or regex special
19293 # characters, hashes, percent signs, but SUFFIX may contain a leading
19294 # dot (in which case that matches only a dot).
19295 func_stripname ()
19297 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19298 # positional parameters, so assign one to ordinary parameter first.
19299 func_stripname_result=${3}
19300 func_stripname_result=${func_stripname_result#"${1}"}
19301 func_stripname_result=${func_stripname_result%"${2}"}
19304 # func_opt_split
19305 func_opt_split ()
19307 func_opt_split_opt=${1%%=*}
19308 func_opt_split_arg=${1#*=}
19311 # func_lo2o object
19312 func_lo2o ()
19314 case ${1} in
19315 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19316 *) func_lo2o_result=${1} ;;
19317 esac
19320 # func_xform libobj-or-source
19321 func_xform ()
19323 func_xform_result=${1%.*}.lo
19326 # func_arith arithmetic-term...
19327 func_arith ()
19329 func_arith_result=$(( $* ))
19332 # func_len string
19333 # STRING may not start with a hyphen.
19334 func_len ()
19336 func_len_result=${#1}
19339 _LT_EOF
19341 *) # Bourne compatible functions.
19342 cat << \_LT_EOF >> "$cfgfile"
19344 # func_dirname file append nondir_replacement
19345 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19346 # otherwise set result to NONDIR_REPLACEMENT.
19347 func_dirname ()
19349 # Extract subdirectory from the argument.
19350 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19351 if test "X$func_dirname_result" = "X${1}"; then
19352 func_dirname_result="${3}"
19353 else
19354 func_dirname_result="$func_dirname_result${2}"
19358 # func_basename file
19359 func_basename ()
19361 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19365 # func_stripname prefix suffix name
19366 # strip PREFIX and SUFFIX off of NAME.
19367 # PREFIX and SUFFIX must not contain globbing or regex special
19368 # characters, hashes, percent signs, but SUFFIX may contain a leading
19369 # dot (in which case that matches only a dot).
19370 # func_strip_suffix prefix name
19371 func_stripname ()
19373 case ${2} in
19374 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19375 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19376 esac
19379 # sed scripts:
19380 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19381 my_sed_long_arg='1s/^-[^=]*=//'
19383 # func_opt_split
19384 func_opt_split ()
19386 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19387 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19390 # func_lo2o object
19391 func_lo2o ()
19393 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19396 # func_xform libobj-or-source
19397 func_xform ()
19399 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19402 # func_arith arithmetic-term...
19403 func_arith ()
19405 func_arith_result=`expr "$@"`
19408 # func_len string
19409 # STRING may not start with a hyphen.
19410 func_len ()
19412 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19415 _LT_EOF
19416 esac
19418 case $lt_shell_append in
19419 yes)
19420 cat << \_LT_EOF >> "$cfgfile"
19422 # func_append var value
19423 # Append VALUE to the end of shell variable VAR.
19424 func_append ()
19426 eval "$1+=\$2"
19428 _LT_EOF
19431 cat << \_LT_EOF >> "$cfgfile"
19433 # func_append var value
19434 # Append VALUE to the end of shell variable VAR.
19435 func_append ()
19437 eval "$1=\$$1\$2"
19440 _LT_EOF
19442 esac
19445 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19446 || (rm -f "$cfgfile"; exit 1)
19448 mv -f "$cfgfile" "$ofile" ||
19449 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19450 chmod +x "$ofile"
19453 cat <<_LT_EOF >> "$ofile"
19455 # ### BEGIN LIBTOOL TAG CONFIG: FC
19457 # The linker used to build libraries.
19458 LD=$lt_LD_FC
19460 # How to create reloadable object files.
19461 reload_flag=$lt_reload_flag_FC
19462 reload_cmds=$lt_reload_cmds_FC
19464 # Commands used to build an old-style archive.
19465 old_archive_cmds=$lt_old_archive_cmds_FC
19467 # A language specific compiler.
19468 CC=$lt_compiler_FC
19470 # Is the compiler the GNU compiler?
19471 with_gcc=$GCC_FC
19473 # Compiler flag to turn off builtin functions.
19474 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19476 # How to pass a linker flag through the compiler.
19477 wl=$lt_lt_prog_compiler_wl_FC
19479 # Additional compiler flags for building library objects.
19480 pic_flag=$lt_lt_prog_compiler_pic_FC
19482 # Compiler flag to prevent dynamic linking.
19483 link_static_flag=$lt_lt_prog_compiler_static_FC
19485 # Does compiler simultaneously support -c and -o options?
19486 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19488 # Whether or not to add -lc for building shared libraries.
19489 build_libtool_need_lc=$archive_cmds_need_lc_FC
19491 # Whether or not to disallow shared libs when runtime libs are static.
19492 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19494 # Compiler flag to allow reflexive dlopens.
19495 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19497 # Compiler flag to generate shared objects directly from archives.
19498 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19500 # Whether the compiler copes with passing no objects directly.
19501 compiler_needs_object=$lt_compiler_needs_object_FC
19503 # Create an old-style archive from a shared archive.
19504 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19506 # Create a temporary old-style archive to link instead of a shared archive.
19507 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19509 # Commands used to build a shared archive.
19510 archive_cmds=$lt_archive_cmds_FC
19511 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19513 # Commands used to build a loadable module if different from building
19514 # a shared archive.
19515 module_cmds=$lt_module_cmds_FC
19516 module_expsym_cmds=$lt_module_expsym_cmds_FC
19518 # Whether we are building with GNU ld or not.
19519 with_gnu_ld=$lt_with_gnu_ld_FC
19521 # Flag that allows shared libraries with undefined symbols to be built.
19522 allow_undefined_flag=$lt_allow_undefined_flag_FC
19524 # Flag that enforces no undefined symbols.
19525 no_undefined_flag=$lt_no_undefined_flag_FC
19527 # Flag to hardcode \$libdir into a binary during linking.
19528 # This must work even if \$libdir does not exist
19529 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19531 # If ld is used when linking, flag to hardcode \$libdir into a binary
19532 # during linking. This must work even if \$libdir does not exist.
19533 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19535 # Whether we need a single "-rpath" flag with a separated argument.
19536 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19538 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19539 # DIR into the resulting binary.
19540 hardcode_direct=$hardcode_direct_FC
19542 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19543 # DIR into the resulting binary and the resulting library dependency is
19544 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19545 # library is relocated.
19546 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19548 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19549 # into the resulting binary.
19550 hardcode_minus_L=$hardcode_minus_L_FC
19552 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19553 # into the resulting binary.
19554 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19556 # Set to "yes" if building a shared library automatically hardcodes DIR
19557 # into the library and all subsequent libraries and executables linked
19558 # against it.
19559 hardcode_automatic=$hardcode_automatic_FC
19561 # Set to yes if linker adds runtime paths of dependent libraries
19562 # to runtime path list.
19563 inherit_rpath=$inherit_rpath_FC
19565 # Whether libtool must link a program against all its dependency libraries.
19566 link_all_deplibs=$link_all_deplibs_FC
19568 # Fix the shell variable \$srcfile for the compiler.
19569 fix_srcfile_path=$lt_fix_srcfile_path_FC
19571 # Set to "yes" if exported symbols are required.
19572 always_export_symbols=$always_export_symbols_FC
19574 # The commands to list exported symbols.
19575 export_symbols_cmds=$lt_export_symbols_cmds_FC
19577 # Symbols that should not be listed in the preloaded symbols.
19578 exclude_expsyms=$lt_exclude_expsyms_FC
19580 # Symbols that must always be exported.
19581 include_expsyms=$lt_include_expsyms_FC
19583 # Commands necessary for linking programs (against libraries) with templates.
19584 prelink_cmds=$lt_prelink_cmds_FC
19586 # Specify filename containing input files.
19587 file_list_spec=$lt_file_list_spec_FC
19589 # How to hardcode a shared library path into an executable.
19590 hardcode_action=$hardcode_action_FC
19592 # The directories searched by this compiler when creating a shared library.
19593 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19595 # Dependencies to place before and after the objects being linked to
19596 # create a shared library.
19597 predep_objects=$lt_predep_objects_FC
19598 postdep_objects=$lt_postdep_objects_FC
19599 predeps=$lt_predeps_FC
19600 postdeps=$lt_postdeps_FC
19602 # The library search path used internally by the compiler when linking
19603 # a shared library.
19604 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19606 # ### END LIBTOOL TAG CONFIG: FC
19607 _LT_EOF
19611 esac
19612 done # for ac_tag
19615 as_fn_exit 0
19616 _ACEOF
19617 ac_clean_files=$ac_clean_files_save
19619 test $ac_write_fail = 0 ||
19620 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19623 # configure is writing to config.log, and then calls config.status.
19624 # config.status does its own redirection, appending to config.log.
19625 # Unfortunately, on DOS this fails, as config.log is still kept open
19626 # by configure, so config.status won't be able to write to it; its
19627 # output is simply discarded. So we exec the FD to /dev/null,
19628 # effectively closing config.log, so it can be properly (re)opened and
19629 # appended to by config.status. When coming back to configure, we
19630 # need to make the FD available again.
19631 if test "$no_create" != yes; then
19632 ac_cs_success=:
19633 ac_config_status_args=
19634 test "$silent" = yes &&
19635 ac_config_status_args="$ac_config_status_args --quiet"
19636 exec 5>/dev/null
19637 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19638 exec 5>>config.log
19639 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19640 # would make configure fail if this is the last instruction.
19641 $ac_cs_success || as_fn_exit 1
19643 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19645 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}